Documentation
¶
Overview ¶
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Example ¶
Example API定義から生成されたコードを直接利用する例
package main import ( "context" "fmt" "os" v1 "github.com/sacloud/phy-api-go/apis/v1" ) var serverURL = "https://secure.sakura.ad.jp/cloud/api/dedicated-phy/1.0" // Example API定義から生成されたコードを直接利用する例 func main() { token := os.Getenv("SAKURACLOUD_ACCESS_TOKEN") secret := os.Getenv("SAKURACLOUD_ACCESS_TOKEN_SECRET") client, err := v1.NewClientWithResponses(serverURL, func(c *v1.Client) error { c.RequestEditors = []v1.RequestEditorFn{ v1.PhyAuthInterceptor(token, secret), v1.PhyRequestInterceptor(), } return nil }) if err != nil { panic(err) } services, err := client.ListServicesWithResponse(context.Background(), &v1.ListServicesParams{}) if err != nil { panic(err) } fmt.Println(services.JSON200.Services[0].Nickname) }
Output: server01
Index ¶
- Constants
- func IsError400(err error) bool
- func IsError401(err error) bool
- func IsError404(err error) bool
- func IsError409(err error) bool
- func IsError429(err error) bool
- func IsError503(err error) bool
- func NewEnableServerPortRequest(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewEnableServerPortRequestWithBody(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewListDedicatedSubnetsRequest(server string, params *ListDedicatedSubnetsParams) (*http.Request, error)
- func NewListOSImagesRequest(server string, serverId ServerId) (*http.Request, error)
- func NewListPrivateNetworksRequest(server string, params *ListPrivateNetworksParams) (*http.Request, error)
- func NewListServersRequest(server string, params *ListServersParams) (*http.Request, error)
- func NewListServicesRequest(server string, params *ListServicesParams) (*http.Request, error)
- func NewOSInstallRequest(server string, serverId ServerId, params *OSInstallParams, ...) (*http.Request, error)
- func NewOSInstallRequestWithBody(server string, serverId ServerId, params *OSInstallParams, contentType string, ...) (*http.Request, error)
- func NewReadDedicatedSubnetRequest(server string, dedicatedSubnetId DedicatedSubnetId, ...) (*http.Request, error)
- func NewReadPrivateNetworkRequest(server string, privateNetworkId PrivateNetworkId) (*http.Request, error)
- func NewReadRAIDStatusRequest(server string, serverId ServerId, params *ReadRAIDStatusParams) (*http.Request, error)
- func NewReadServerPortChannelRequest(server string, serverId ServerId, portChannelId PortChannelId) (*http.Request, error)
- func NewReadServerPortRequest(server string, serverId ServerId, portId PortId) (*http.Request, error)
- func NewReadServerPowerStatusRequest(server string, serverId ServerId) (*http.Request, error)
- func NewReadServerRequest(server string, serverId ServerId) (*http.Request, error)
- func NewReadServerTrafficByPortRequest(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewReadServiceRequest(server string, serviceId ServiceId) (*http.Request, error)
- func NewServerAssignNetworkRequest(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewServerAssignNetworkRequestWithBody(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewServerConfigureBondingRequest(server string, serverId ServerId, portChannelId PortChannelId, ...) (*http.Request, error)
- func NewServerConfigureBondingRequestWithBody(server string, serverId ServerId, portChannelId PortChannelId, ...) (*http.Request, error)
- func NewServerPowerControlRequest(server string, serverId ServerId, params *ServerPowerControlParams, ...) (*http.Request, error)
- func NewServerPowerControlRequestWithBody(server string, serverId ServerId, params *ServerPowerControlParams, ...) (*http.Request, error)
- func NewUpdateServerPortRequest(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewUpdateServerPortRequestWithBody(server string, serverId ServerId, portId PortId, ...) (*http.Request, error)
- func NewUpdateServiceRequest(server string, serviceId ServiceId, params *UpdateServiceParams, ...) (*http.Request, error)
- func NewUpdateServiceRequestWithBody(server string, serviceId ServiceId, params *UpdateServiceParams, ...) (*http.Request, error)
- func PhyAuthInterceptor(token, secret string) func(context.Context, *http.Request) error
- func PhyRequestInterceptor() func(context.Context, *http.Request) error
- func RegisterHandlers(router *gin.Engine, si ServerInterface) *gin.Engine
- func RegisterHandlersWithOptions(router *gin.Engine, si ServerInterface, options GinServerOptions) *gin.Engine
- type AssignNetworkParameter
- type AssignNetworkParameterInternetType
- type AssignNetworkParameterMode
- type AttachedDedicatedSubnet
- type AttachedFirewall
- type AttachedLoadBalancer
- type AttachedPrivateNetwork
- type BondingType
- type CachedPowerStatus
- type CachedPowerStatusStatus
- type Client
- func (c *Client) EnableServerPort(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) EnableServerPortWithBody(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) ListDedicatedSubnets(ctx context.Context, params *ListDedicatedSubnetsParams, ...) (*http.Response, error)
- func (c *Client) ListOSImages(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPrivateNetworks(ctx context.Context, params *ListPrivateNetworksParams, ...) (*http.Response, error)
- func (c *Client) ListServers(ctx context.Context, params *ListServersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListServices(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OSInstall(ctx context.Context, serverId ServerId, params *OSInstallParams, ...) (*http.Response, error)
- func (c *Client) OSInstallWithBody(ctx context.Context, serverId ServerId, params *OSInstallParams, ...) (*http.Response, error)
- func (c *Client) ReadDedicatedSubnet(ctx context.Context, dedicatedSubnetId DedicatedSubnetId, ...) (*http.Response, error)
- func (c *Client) ReadPrivateNetwork(ctx context.Context, privateNetworkId PrivateNetworkId, ...) (*http.Response, error)
- func (c *Client) ReadRAIDStatus(ctx context.Context, serverId ServerId, params *ReadRAIDStatusParams, ...) (*http.Response, error)
- func (c *Client) ReadServer(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReadServerPort(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) ReadServerPortChannel(ctx context.Context, serverId ServerId, portChannelId PortChannelId, ...) (*http.Response, error)
- func (c *Client) ReadServerPowerStatus(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReadServerTrafficByPort(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) ReadService(ctx context.Context, serviceId ServiceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ServerAssignNetwork(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) ServerAssignNetworkWithBody(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) ServerConfigureBonding(ctx context.Context, serverId ServerId, portChannelId PortChannelId, ...) (*http.Response, error)
- func (c *Client) ServerConfigureBondingWithBody(ctx context.Context, serverId ServerId, portChannelId PortChannelId, ...) (*http.Response, error)
- func (c *Client) ServerPowerControl(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, ...) (*http.Response, error)
- func (c *Client) ServerPowerControlWithBody(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, ...) (*http.Response, error)
- func (c *Client) UpdateServerPort(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) UpdateServerPortWithBody(ctx context.Context, serverId ServerId, portId PortId, ...) (*http.Response, error)
- func (c *Client) UpdateService(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, ...) (*http.Response, error)
- func (c *Client) UpdateServiceWithBody(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) EnableServerPortWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*EnableServerPortResponse, error)
- func (c *ClientWithResponses) EnableServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*EnableServerPortResponse, error)
- func (c *ClientWithResponses) ListDedicatedSubnetsWithResponse(ctx context.Context, params *ListDedicatedSubnetsParams, ...) (*ListDedicatedSubnetsResponse, error)
- func (c *ClientWithResponses) ListOSImagesWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ListOSImagesResponse, error)
- func (c *ClientWithResponses) ListPrivateNetworksWithResponse(ctx context.Context, params *ListPrivateNetworksParams, ...) (*ListPrivateNetworksResponse, error)
- func (c *ClientWithResponses) ListServersWithResponse(ctx context.Context, params *ListServersParams, reqEditors ...RequestEditorFn) (*ListServersResponse, error)
- func (c *ClientWithResponses) ListServicesWithResponse(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)
- func (c *ClientWithResponses) OSInstallWithBodyWithResponse(ctx context.Context, serverId ServerId, params *OSInstallParams, ...) (*OSInstallResponse, error)
- func (c *ClientWithResponses) OSInstallWithResponse(ctx context.Context, serverId ServerId, params *OSInstallParams, ...) (*OSInstallResponse, error)
- func (c *ClientWithResponses) ReadDedicatedSubnetWithResponse(ctx context.Context, dedicatedSubnetId DedicatedSubnetId, ...) (*ReadDedicatedSubnetResponse, error)
- func (c *ClientWithResponses) ReadPrivateNetworkWithResponse(ctx context.Context, privateNetworkId PrivateNetworkId, ...) (*ReadPrivateNetworkResponse, error)
- func (c *ClientWithResponses) ReadRAIDStatusWithResponse(ctx context.Context, serverId ServerId, params *ReadRAIDStatusParams, ...) (*ReadRAIDStatusResponse, error)
- func (c *ClientWithResponses) ReadServerPortChannelWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, ...) (*ReadServerPortChannelResponse, error)
- func (c *ClientWithResponses) ReadServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*ReadServerPortResponse, error)
- func (c *ClientWithResponses) ReadServerPowerStatusWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ReadServerPowerStatusResponse, error)
- func (c *ClientWithResponses) ReadServerTrafficByPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*ReadServerTrafficByPortResponse, error)
- func (c *ClientWithResponses) ReadServerWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ReadServerResponse, error)
- func (c *ClientWithResponses) ReadServiceWithResponse(ctx context.Context, serviceId ServiceId, reqEditors ...RequestEditorFn) (*ReadServiceResponse, error)
- func (c *ClientWithResponses) ServerAssignNetworkWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*ServerAssignNetworkResponse, error)
- func (c *ClientWithResponses) ServerAssignNetworkWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*ServerAssignNetworkResponse, error)
- func (c *ClientWithResponses) ServerConfigureBondingWithBodyWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, ...) (*ServerConfigureBondingResponse, error)
- func (c *ClientWithResponses) ServerConfigureBondingWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, ...) (*ServerConfigureBondingResponse, error)
- func (c *ClientWithResponses) ServerPowerControlWithBodyWithResponse(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, ...) (*ServerPowerControlResponse, error)
- func (c *ClientWithResponses) ServerPowerControlWithResponse(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, ...) (*ServerPowerControlResponse, error)
- func (c *ClientWithResponses) UpdateServerPortWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*UpdateServerPortResponse, error)
- func (c *ClientWithResponses) UpdateServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, ...) (*UpdateServerPortResponse, error)
- func (c *ClientWithResponses) UpdateServiceWithBodyWithResponse(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, ...) (*UpdateServiceResponse, error)
- func (c *ClientWithResponses) UpdateServiceWithResponse(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, ...) (*UpdateServiceResponse, error)
- type ClientWithResponsesInterface
- type ConfigureBondingParameter
- type DedicatedSubnet
- type DedicatedSubnetConfigStatus
- type DedicatedSubnetId
- type DedicatedSubnets
- type EnableServerPortJSONBody
- type EnableServerPortJSONRequestBody
- type EnableServerPortParameter
- type EnableServerPortParams
- type EnableServerPortParamsXRequestedWith
- type EnableServerPortResponse
- type FreeWordFilter
- type Generic400
- type Generic401
- type Generic429
- type GinServerOptions
- type HeaderRequestedWith
- type HttpRequestDoer
- type HybridConnection
- type HybridConnections
- type InterfacePort
- type InterfacePortMode
- type Internet
- type InternetSubnetType
- type InvalidParameter
- type InvalidParameterDetail
- type InvalidParameterDetails
- type Ipam
- type IpamType
- type Ipv4
- type Ipv6
- type Ipv6SpecialUseAddressesType
- type Limit
- type ListDedicatedSubnetsParams
- type ListDedicatedSubnetsParamsOrdering
- type ListDedicatedSubnetsResponse
- type ListOSImagesResponse
- type ListPrivateNetworksParams
- type ListPrivateNetworksParamsOrdering
- type ListPrivateNetworksResponse
- type ListServersParams
- type ListServersParamsOrdering
- type ListServersParamsPowerStatus
- type ListServersResponse
- type ListServicesParams
- type ListServicesParamsOrdering
- type ListServicesParamsProductCategory
- type ListServicesResponse
- type MiddlewareFunc
- type OSInstallJSONBody
- type OSInstallJSONRequestBody
- type OSInstallParams
- type OSInstallParamsXRequestedWith
- type OSInstallResponse
- type Offset
- type OsImage
- type OsInstallParameter
- type PaginateMeta
- type PasswordInput
- type PortChannel
- type PortChannelId
- type PortChannelLinkSpeedType
- type PortId
- type PowerControlParameter
- type PrivateNetwork
- type PrivateNetworkId
- type PrivateNetworks
- type ProblemDetails400
- type ProblemDetails400Title
- type ProblemDetails401
- type ProblemDetails401ErrorCode
- type ProblemDetails404
- type ProblemDetails404Title
- type ProblemDetails409
- type ProblemDetails409Title
- type ProblemDetails429
- type ProblemDetails429Title
- type ProblemDetails503
- type ProblemDetails503Title
- type RaidLogicalVolume
- type RaidLogicalVolumeStatus
- type RaidPhysicalDevice
- type RaidPhysicalDeviceStatus
- type RaidStatus
- type RaidStatusOverallStatus
- type ReadDedicatedSubnetParams
- type ReadDedicatedSubnetResponse
- type ReadPrivateNetworkResponse
- type ReadRAIDStatusParams
- type ReadRAIDStatusResponse
- type ReadServerPortChannelResponse
- type ReadServerPortResponse
- type ReadServerPowerStatusResponse
- type ReadServerResponse
- type ReadServerTrafficByPortParams
- type ReadServerTrafficByPortParamsStep
- type ReadServerTrafficByPortResponse
- type ReadServiceResponse
- type RequestEditorFn
- type ResponseBodyDedicatedSubnet
- type ResponseBodyOsImages
- type ResponseBodyPort
- type ResponseBodyPortChannel
- type ResponseBodyPrivateNetwork
- type ResponseBodyRaidStatus
- type ResponseBodyServer
- type ResponseBodyServerPowerStatus
- type ResponseBodyService
- type ResponseBodyTrafficGraph
- type Server
- type ServerAssignNetworkJSONBody
- type ServerAssignNetworkJSONRequestBody
- type ServerAssignNetworkParams
- type ServerAssignNetworkParamsXRequestedWith
- type ServerAssignNetworkResponse
- type ServerConfigureBondingJSONBody
- type ServerConfigureBondingJSONRequestBody
- type ServerConfigureBondingParams
- type ServerConfigureBondingParamsXRequestedWith
- type ServerConfigureBondingResponse
- type ServerId
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) EnableServerPort(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListDedicatedSubnets(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListOSImages(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListPrivateNetworks(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListServers(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListServices(c *gin.Context)
- func (siw *ServerInterfaceWrapper) OSInstall(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadDedicatedSubnet(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadPrivateNetwork(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadRAIDStatus(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadServer(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadServerPort(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadServerPortChannel(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadServerPowerStatus(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadServerTrafficByPort(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ReadService(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ServerAssignNetwork(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ServerConfigureBonding(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ServerPowerControl(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateServerPort(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateService(c *gin.Context)
- type ServerIpv4Global
- type ServerIpv4GlobalType
- type ServerLockStatus
- type ServerPowerControlJSONBody
- type ServerPowerControlJSONRequestBody
- type ServerPowerControlParams
- type ServerPowerControlParamsXRequestedWith
- type ServerPowerControlResponse
- type ServerPowerOperations
- type ServerPowerStatus
- type ServerPowerStatusStatus
- type ServerSpec
- type Servers
- type Service
- type ServiceId
- type ServiceOptionPlansOptionClass
- type ServicePlan
- type ServiceProductCategory
- type ServiceQuiet
- type Services
- type Storage
- type StorageBusType
- type StorageMediaType
- type Tag
- type TagFilter
- type TrafficGraph
- type TrafficGraphData
- type UpdateServerPortJSONBody
- type UpdateServerPortJSONRequestBody
- type UpdateServerPortParameter
- type UpdateServerPortParams
- type UpdateServerPortParamsXRequestedWith
- type UpdateServerPortResponse
- type UpdateServiceJSONBody
- type UpdateServiceJSONRequestBody
- type UpdateServiceParameter
- type UpdateServiceParams
- type UpdateServiceParamsXRequestedWith
- type UpdateServiceResponse
- type Zone
Examples ¶
Constants ¶
const (
Account_api_keyScopes = "account_api_key.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func IsError400 ¶ added in v0.0.5
func IsError401 ¶ added in v0.0.5
func IsError404 ¶ added in v0.0.5
func IsError409 ¶ added in v0.0.5
func IsError429 ¶ added in v0.0.5
func IsError503 ¶ added in v0.0.5
func NewEnableServerPortRequest ¶
func NewEnableServerPortRequest(server string, serverId ServerId, portId PortId, params *EnableServerPortParams, body EnableServerPortJSONRequestBody) (*http.Request, error)
NewEnableServerPortRequest calls the generic EnableServerPort builder with application/json body
func NewEnableServerPortRequestWithBody ¶
func NewEnableServerPortRequestWithBody(server string, serverId ServerId, portId PortId, params *EnableServerPortParams, contentType string, body io.Reader) (*http.Request, error)
NewEnableServerPortRequestWithBody generates requests for EnableServerPort with any type of body
func NewListDedicatedSubnetsRequest ¶
func NewListDedicatedSubnetsRequest(server string, params *ListDedicatedSubnetsParams) (*http.Request, error)
NewListDedicatedSubnetsRequest generates requests for ListDedicatedSubnets
func NewListOSImagesRequest ¶
NewListOSImagesRequest generates requests for ListOSImages
func NewListPrivateNetworksRequest ¶
func NewListPrivateNetworksRequest(server string, params *ListPrivateNetworksParams) (*http.Request, error)
NewListPrivateNetworksRequest generates requests for ListPrivateNetworks
func NewListServersRequest ¶
func NewListServersRequest(server string, params *ListServersParams) (*http.Request, error)
NewListServersRequest generates requests for ListServers
func NewListServicesRequest ¶
func NewListServicesRequest(server string, params *ListServicesParams) (*http.Request, error)
NewListServicesRequest generates requests for ListServices
func NewOSInstallRequest ¶
func NewOSInstallRequest(server string, serverId ServerId, params *OSInstallParams, body OSInstallJSONRequestBody) (*http.Request, error)
NewOSInstallRequest calls the generic OSInstall builder with application/json body
func NewOSInstallRequestWithBody ¶
func NewOSInstallRequestWithBody(server string, serverId ServerId, params *OSInstallParams, contentType string, body io.Reader) (*http.Request, error)
NewOSInstallRequestWithBody generates requests for OSInstall with any type of body
func NewReadDedicatedSubnetRequest ¶
func NewReadDedicatedSubnetRequest(server string, dedicatedSubnetId DedicatedSubnetId, params *ReadDedicatedSubnetParams) (*http.Request, error)
NewReadDedicatedSubnetRequest generates requests for ReadDedicatedSubnet
func NewReadPrivateNetworkRequest ¶
func NewReadPrivateNetworkRequest(server string, privateNetworkId PrivateNetworkId) (*http.Request, error)
NewReadPrivateNetworkRequest generates requests for ReadPrivateNetwork
func NewReadRAIDStatusRequest ¶
func NewReadRAIDStatusRequest(server string, serverId ServerId, params *ReadRAIDStatusParams) (*http.Request, error)
NewReadRAIDStatusRequest generates requests for ReadRAIDStatus
func NewReadServerPortChannelRequest ¶
func NewReadServerPortChannelRequest(server string, serverId ServerId, portChannelId PortChannelId) (*http.Request, error)
NewReadServerPortChannelRequest generates requests for ReadServerPortChannel
func NewReadServerPortRequest ¶
func NewReadServerPortRequest(server string, serverId ServerId, portId PortId) (*http.Request, error)
NewReadServerPortRequest generates requests for ReadServerPort
func NewReadServerPowerStatusRequest ¶
NewReadServerPowerStatusRequest generates requests for ReadServerPowerStatus
func NewReadServerRequest ¶
NewReadServerRequest generates requests for ReadServer
func NewReadServerTrafficByPortRequest ¶
func NewReadServerTrafficByPortRequest(server string, serverId ServerId, portId PortId, params *ReadServerTrafficByPortParams) (*http.Request, error)
NewReadServerTrafficByPortRequest generates requests for ReadServerTrafficByPort
func NewReadServiceRequest ¶
NewReadServiceRequest generates requests for ReadService
func NewServerAssignNetworkRequest ¶
func NewServerAssignNetworkRequest(server string, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, body ServerAssignNetworkJSONRequestBody) (*http.Request, error)
NewServerAssignNetworkRequest calls the generic ServerAssignNetwork builder with application/json body
func NewServerAssignNetworkRequestWithBody ¶
func NewServerAssignNetworkRequestWithBody(server string, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, contentType string, body io.Reader) (*http.Request, error)
NewServerAssignNetworkRequestWithBody generates requests for ServerAssignNetwork with any type of body
func NewServerConfigureBondingRequest ¶
func NewServerConfigureBondingRequest(server string, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, body ServerConfigureBondingJSONRequestBody) (*http.Request, error)
NewServerConfigureBondingRequest calls the generic ServerConfigureBonding builder with application/json body
func NewServerConfigureBondingRequestWithBody ¶
func NewServerConfigureBondingRequestWithBody(server string, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, contentType string, body io.Reader) (*http.Request, error)
NewServerConfigureBondingRequestWithBody generates requests for ServerConfigureBonding with any type of body
func NewServerPowerControlRequest ¶
func NewServerPowerControlRequest(server string, serverId ServerId, params *ServerPowerControlParams, body ServerPowerControlJSONRequestBody) (*http.Request, error)
NewServerPowerControlRequest calls the generic ServerPowerControl builder with application/json body
func NewServerPowerControlRequestWithBody ¶
func NewServerPowerControlRequestWithBody(server string, serverId ServerId, params *ServerPowerControlParams, contentType string, body io.Reader) (*http.Request, error)
NewServerPowerControlRequestWithBody generates requests for ServerPowerControl with any type of body
func NewUpdateServerPortRequest ¶
func NewUpdateServerPortRequest(server string, serverId ServerId, portId PortId, params *UpdateServerPortParams, body UpdateServerPortJSONRequestBody) (*http.Request, error)
NewUpdateServerPortRequest calls the generic UpdateServerPort builder with application/json body
func NewUpdateServerPortRequestWithBody ¶
func NewUpdateServerPortRequestWithBody(server string, serverId ServerId, portId PortId, params *UpdateServerPortParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateServerPortRequestWithBody generates requests for UpdateServerPort with any type of body
func NewUpdateServiceRequest ¶
func NewUpdateServiceRequest(server string, serviceId ServiceId, params *UpdateServiceParams, body UpdateServiceJSONRequestBody) (*http.Request, error)
NewUpdateServiceRequest calls the generic UpdateService builder with application/json body
func NewUpdateServiceRequestWithBody ¶
func NewUpdateServiceRequestWithBody(server string, serviceId ServiceId, params *UpdateServiceParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateServiceRequestWithBody generates requests for UpdateService with any type of body
func PhyAuthInterceptor ¶
PhyAuthInterceptor PHYへのリクエストに認証情報の注入を行う
func PhyRequestInterceptor ¶
PhyRequestInterceptor PHYへのリクエストに必要なヘッダ類の注入を行う
func RegisterHandlers ¶
func RegisterHandlers(router *gin.Engine, si ServerInterface) *gin.Engine
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router *gin.Engine, si ServerInterface, options GinServerOptions) *gin.Engine
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AssignNetworkParameter ¶
type AssignNetworkParameter struct { // 専用グローバルネットワークのサービスコード指定 // `global_network_type`が`dedicated_subnet`の場合に必須 DedicatedSubnetId *string `json:"dedicated_subnet_id"` // * `null` - インターネット接続なし // * `common_subnet` - 共用グローバルネットワーク利用 // * `dedicated_subnet` - 専用グローバルネットワーク利用 InternetType *AssignNetworkParameterInternetType `json:"internet_type"` // ポートモード // // * `access` - アクセスポート // * `trunk` - トランクポート Mode AssignNetworkParameterMode `json:"mode"` // 接続先ローカルネットワークの配列 PrivateNetworkIds *[]string `json:"private_network_ids"` }
ポートの接続ネットワーク指定
`mode=access`の場合は
* 共用グローバルネットワーク * 専用グローバルネットワーク * ローカルネットワーク
のいずれか1つのみ接続可能で、 複数のネットワークが指定されている場合はエラーとなる
type AssignNetworkParameterInternetType ¶
type AssignNetworkParameterInternetType string
* `null` - インターネット接続なし * `common_subnet` - 共用グローバルネットワーク利用 * `dedicated_subnet` - 専用グローバルネットワーク利用
const ( AssignNetworkParameterInternetTypeCommonSubnet AssignNetworkParameterInternetType = "common_subnet" AssignNetworkParameterInternetTypeDedicatedSubnet AssignNetworkParameterInternetType = "dedicated_subnet" )
Defines values for AssignNetworkParameterInternetType.
type AssignNetworkParameterMode ¶
type AssignNetworkParameterMode string
ポートモード
* `access` - アクセスポート * `trunk` - トランクポート
const ( AssignNetworkParameterModeAccess AssignNetworkParameterMode = "access" AssignNetworkParameterModeTrunk AssignNetworkParameterMode = "trunk" )
Defines values for AssignNetworkParameterMode.
type AttachedDedicatedSubnet ¶
type AttachedDedicatedSubnet struct { // 専用グローバルネットワークのサービスコード DedicatedSubnetId string `json:"dedicated_subnet_id"` // 専用グローバルネットワークに設定した名称 Nickname string `json:"nickname"` }
専用グローバルネットワーク情報(共用グローバルネットワーク割り当て時は`null`)
type AttachedFirewall ¶
type AttachedFirewall struct { // ファイアウォールのサービスコード FirewallId string `json:"firewall_id"` // ファイアウォールの名称 Nickname string `json:"nickname"` }
割り当て済みファイアウォール(利用していない場合は`null`)
type AttachedLoadBalancer ¶
type AttachedLoadBalancer struct { // ロードバランサーのサービスコード LoadBalancerId *string `json:"load_balancer_id"` // ロードバランサーの名称 Nickname string `json:"nickname"` }
割り当て済みロードバランサー(利用していない場合は`null`)
type AttachedPrivateNetwork ¶
type AttachedPrivateNetwork struct { // ローカルネットワークに設定した名称 Nickname string `json:"nickname"` // ローカルネットワークID PrivateNetworkId string `json:"private_network_id"` }
ローカルネットワーク情報
type BondingType ¶
type BondingType string
ボンディング方式
* `lacp` - LACP * `static` - static link aggregation * `single` - ボンディングなし(単体構成)
const ( BondingTypeLacp BondingType = "lacp" BondingTypeSingle BondingType = "single" BondingTypeStatic BondingType = "static" )
Defines values for BondingType.
type CachedPowerStatus ¶
type CachedPowerStatus struct { // 電源状態 Status CachedPowerStatusStatus `json:"status"` // 電源状態キャッシュの保存時刻 Stored time.Time `json:"stored"` }
キャッシュされた電源状態(未キャッシュならば`null`)
type CachedPowerStatusStatus ¶
type CachedPowerStatusStatus string
電源状態
const ( CachedPowerStatusStatusOff CachedPowerStatusStatus = "off" CachedPowerStatusStatusOn CachedPowerStatusStatus = "on" )
Defines values for CachedPowerStatusStatus.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) EnableServerPort ¶
func (c *Client) EnableServerPort(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, body EnableServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EnableServerPortWithBody ¶
func (*Client) ListDedicatedSubnets ¶
func (c *Client) ListDedicatedSubnets(ctx context.Context, params *ListDedicatedSubnetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListOSImages ¶
func (*Client) ListPrivateNetworks ¶
func (c *Client) ListPrivateNetworks(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListServers ¶
func (c *Client) ListServers(ctx context.Context, params *ListServersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListServices ¶
func (c *Client) ListServices(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OSInstall ¶
func (c *Client) OSInstall(ctx context.Context, serverId ServerId, params *OSInstallParams, body OSInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OSInstallWithBody ¶
func (*Client) ReadDedicatedSubnet ¶
func (c *Client) ReadDedicatedSubnet(ctx context.Context, dedicatedSubnetId DedicatedSubnetId, params *ReadDedicatedSubnetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReadPrivateNetwork ¶
func (c *Client) ReadPrivateNetwork(ctx context.Context, privateNetworkId PrivateNetworkId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReadRAIDStatus ¶
func (c *Client) ReadRAIDStatus(ctx context.Context, serverId ServerId, params *ReadRAIDStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReadServer ¶
func (*Client) ReadServerPort ¶
func (*Client) ReadServerPortChannel ¶
func (c *Client) ReadServerPortChannel(ctx context.Context, serverId ServerId, portChannelId PortChannelId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReadServerPowerStatus ¶
func (*Client) ReadServerTrafficByPort ¶
func (c *Client) ReadServerTrafficByPort(ctx context.Context, serverId ServerId, portId PortId, params *ReadServerTrafficByPortParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReadService ¶
func (*Client) ServerAssignNetwork ¶
func (c *Client) ServerAssignNetwork(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, body ServerAssignNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ServerAssignNetworkWithBody ¶
func (*Client) ServerConfigureBonding ¶
func (c *Client) ServerConfigureBonding(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, body ServerConfigureBondingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ServerConfigureBondingWithBody ¶
func (c *Client) ServerConfigureBondingWithBody(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ServerPowerControl ¶
func (c *Client) ServerPowerControl(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, body ServerPowerControlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ServerPowerControlWithBody ¶
func (*Client) UpdateServerPort ¶
func (c *Client) UpdateServerPort(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, body UpdateServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateServerPortWithBody ¶
func (*Client) UpdateService ¶
func (c *Client) UpdateService(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateServiceWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // ListDedicatedSubnets request ListDedicatedSubnets(ctx context.Context, params *ListDedicatedSubnetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadDedicatedSubnet request ReadDedicatedSubnet(ctx context.Context, dedicatedSubnetId DedicatedSubnetId, params *ReadDedicatedSubnetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListPrivateNetworks request ListPrivateNetworks(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadPrivateNetwork request ReadPrivateNetwork(ctx context.Context, privateNetworkId PrivateNetworkId, reqEditors ...RequestEditorFn) (*http.Response, error) // ListServers request ListServers(ctx context.Context, params *ListServersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadServer request ReadServer(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*http.Response, error) // ListOSImages request ListOSImages(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*http.Response, error) // OSInstall request with any body OSInstallWithBody(ctx context.Context, serverId ServerId, params *OSInstallParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) OSInstall(ctx context.Context, serverId ServerId, params *OSInstallParams, body OSInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadServerPortChannel request ReadServerPortChannel(ctx context.Context, serverId ServerId, portChannelId PortChannelId, reqEditors ...RequestEditorFn) (*http.Response, error) // ServerConfigureBonding request with any body ServerConfigureBondingWithBody(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ServerConfigureBonding(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, body ServerConfigureBondingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadServerPort request ReadServerPort(ctx context.Context, serverId ServerId, portId PortId, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateServerPort request with any body UpdateServerPortWithBody(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateServerPort(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, body UpdateServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ServerAssignNetwork request with any body ServerAssignNetworkWithBody(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ServerAssignNetwork(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, body ServerAssignNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // EnableServerPort request with any body EnableServerPortWithBody(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) EnableServerPort(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, body EnableServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadServerTrafficByPort request ReadServerTrafficByPort(ctx context.Context, serverId ServerId, portId PortId, params *ReadServerTrafficByPortParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ServerPowerControl request with any body ServerPowerControlWithBody(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ServerPowerControl(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, body ServerPowerControlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadServerPowerStatus request ReadServerPowerStatus(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadRAIDStatus request ReadRAIDStatus(ctx context.Context, serverId ServerId, params *ReadRAIDStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListServices request ListServices(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ReadService request ReadService(ctx context.Context, serviceId ServiceId, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateService request with any body UpdateServiceWithBody(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateService(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) EnableServerPortWithBodyWithResponse ¶
func (c *ClientWithResponses) EnableServerPortWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnableServerPortResponse, error)
EnableServerPortWithBodyWithResponse request with arbitrary body returning *EnableServerPortResponse
func (*ClientWithResponses) EnableServerPortWithResponse ¶
func (c *ClientWithResponses) EnableServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, body EnableServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableServerPortResponse, error)
func (*ClientWithResponses) ListDedicatedSubnetsWithResponse ¶
func (c *ClientWithResponses) ListDedicatedSubnetsWithResponse(ctx context.Context, params *ListDedicatedSubnetsParams, reqEditors ...RequestEditorFn) (*ListDedicatedSubnetsResponse, error)
ListDedicatedSubnetsWithResponse request returning *ListDedicatedSubnetsResponse
func (*ClientWithResponses) ListOSImagesWithResponse ¶
func (c *ClientWithResponses) ListOSImagesWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ListOSImagesResponse, error)
ListOSImagesWithResponse request returning *ListOSImagesResponse
func (*ClientWithResponses) ListPrivateNetworksWithResponse ¶
func (c *ClientWithResponses) ListPrivateNetworksWithResponse(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*ListPrivateNetworksResponse, error)
ListPrivateNetworksWithResponse request returning *ListPrivateNetworksResponse
func (*ClientWithResponses) ListServersWithResponse ¶
func (c *ClientWithResponses) ListServersWithResponse(ctx context.Context, params *ListServersParams, reqEditors ...RequestEditorFn) (*ListServersResponse, error)
ListServersWithResponse request returning *ListServersResponse
func (*ClientWithResponses) ListServicesWithResponse ¶
func (c *ClientWithResponses) ListServicesWithResponse(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)
ListServicesWithResponse request returning *ListServicesResponse
func (*ClientWithResponses) OSInstallWithBodyWithResponse ¶
func (c *ClientWithResponses) OSInstallWithBodyWithResponse(ctx context.Context, serverId ServerId, params *OSInstallParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OSInstallResponse, error)
OSInstallWithBodyWithResponse request with arbitrary body returning *OSInstallResponse
func (*ClientWithResponses) OSInstallWithResponse ¶
func (c *ClientWithResponses) OSInstallWithResponse(ctx context.Context, serverId ServerId, params *OSInstallParams, body OSInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*OSInstallResponse, error)
func (*ClientWithResponses) ReadDedicatedSubnetWithResponse ¶
func (c *ClientWithResponses) ReadDedicatedSubnetWithResponse(ctx context.Context, dedicatedSubnetId DedicatedSubnetId, params *ReadDedicatedSubnetParams, reqEditors ...RequestEditorFn) (*ReadDedicatedSubnetResponse, error)
ReadDedicatedSubnetWithResponse request returning *ReadDedicatedSubnetResponse
func (*ClientWithResponses) ReadPrivateNetworkWithResponse ¶
func (c *ClientWithResponses) ReadPrivateNetworkWithResponse(ctx context.Context, privateNetworkId PrivateNetworkId, reqEditors ...RequestEditorFn) (*ReadPrivateNetworkResponse, error)
ReadPrivateNetworkWithResponse request returning *ReadPrivateNetworkResponse
func (*ClientWithResponses) ReadRAIDStatusWithResponse ¶
func (c *ClientWithResponses) ReadRAIDStatusWithResponse(ctx context.Context, serverId ServerId, params *ReadRAIDStatusParams, reqEditors ...RequestEditorFn) (*ReadRAIDStatusResponse, error)
ReadRAIDStatusWithResponse request returning *ReadRAIDStatusResponse
func (*ClientWithResponses) ReadServerPortChannelWithResponse ¶
func (c *ClientWithResponses) ReadServerPortChannelWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, reqEditors ...RequestEditorFn) (*ReadServerPortChannelResponse, error)
ReadServerPortChannelWithResponse request returning *ReadServerPortChannelResponse
func (*ClientWithResponses) ReadServerPortWithResponse ¶
func (c *ClientWithResponses) ReadServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, reqEditors ...RequestEditorFn) (*ReadServerPortResponse, error)
ReadServerPortWithResponse request returning *ReadServerPortResponse
func (*ClientWithResponses) ReadServerPowerStatusWithResponse ¶
func (c *ClientWithResponses) ReadServerPowerStatusWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ReadServerPowerStatusResponse, error)
ReadServerPowerStatusWithResponse request returning *ReadServerPowerStatusResponse
func (*ClientWithResponses) ReadServerTrafficByPortWithResponse ¶
func (c *ClientWithResponses) ReadServerTrafficByPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *ReadServerTrafficByPortParams, reqEditors ...RequestEditorFn) (*ReadServerTrafficByPortResponse, error)
ReadServerTrafficByPortWithResponse request returning *ReadServerTrafficByPortResponse
func (*ClientWithResponses) ReadServerWithResponse ¶
func (c *ClientWithResponses) ReadServerWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ReadServerResponse, error)
ReadServerWithResponse request returning *ReadServerResponse
func (*ClientWithResponses) ReadServiceWithResponse ¶
func (c *ClientWithResponses) ReadServiceWithResponse(ctx context.Context, serviceId ServiceId, reqEditors ...RequestEditorFn) (*ReadServiceResponse, error)
ReadServiceWithResponse request returning *ReadServiceResponse
func (*ClientWithResponses) ServerAssignNetworkWithBodyWithResponse ¶
func (c *ClientWithResponses) ServerAssignNetworkWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServerAssignNetworkResponse, error)
ServerAssignNetworkWithBodyWithResponse request with arbitrary body returning *ServerAssignNetworkResponse
func (*ClientWithResponses) ServerAssignNetworkWithResponse ¶
func (c *ClientWithResponses) ServerAssignNetworkWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, body ServerAssignNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*ServerAssignNetworkResponse, error)
func (*ClientWithResponses) ServerConfigureBondingWithBodyWithResponse ¶
func (c *ClientWithResponses) ServerConfigureBondingWithBodyWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServerConfigureBondingResponse, error)
ServerConfigureBondingWithBodyWithResponse request with arbitrary body returning *ServerConfigureBondingResponse
func (*ClientWithResponses) ServerConfigureBondingWithResponse ¶
func (c *ClientWithResponses) ServerConfigureBondingWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, body ServerConfigureBondingJSONRequestBody, reqEditors ...RequestEditorFn) (*ServerConfigureBondingResponse, error)
func (*ClientWithResponses) ServerPowerControlWithBodyWithResponse ¶
func (c *ClientWithResponses) ServerPowerControlWithBodyWithResponse(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServerPowerControlResponse, error)
ServerPowerControlWithBodyWithResponse request with arbitrary body returning *ServerPowerControlResponse
func (*ClientWithResponses) ServerPowerControlWithResponse ¶
func (c *ClientWithResponses) ServerPowerControlWithResponse(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, body ServerPowerControlJSONRequestBody, reqEditors ...RequestEditorFn) (*ServerPowerControlResponse, error)
func (*ClientWithResponses) UpdateServerPortWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateServerPortWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServerPortResponse, error)
UpdateServerPortWithBodyWithResponse request with arbitrary body returning *UpdateServerPortResponse
func (*ClientWithResponses) UpdateServerPortWithResponse ¶
func (c *ClientWithResponses) UpdateServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, body UpdateServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServerPortResponse, error)
func (*ClientWithResponses) UpdateServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateServiceWithBodyWithResponse(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)
UpdateServiceWithBodyWithResponse request with arbitrary body returning *UpdateServiceResponse
func (*ClientWithResponses) UpdateServiceWithResponse ¶
func (c *ClientWithResponses) UpdateServiceWithResponse(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // ListDedicatedSubnets request ListDedicatedSubnetsWithResponse(ctx context.Context, params *ListDedicatedSubnetsParams, reqEditors ...RequestEditorFn) (*ListDedicatedSubnetsResponse, error) // ReadDedicatedSubnet request ReadDedicatedSubnetWithResponse(ctx context.Context, dedicatedSubnetId DedicatedSubnetId, params *ReadDedicatedSubnetParams, reqEditors ...RequestEditorFn) (*ReadDedicatedSubnetResponse, error) // ListPrivateNetworks request ListPrivateNetworksWithResponse(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*ListPrivateNetworksResponse, error) // ReadPrivateNetwork request ReadPrivateNetworkWithResponse(ctx context.Context, privateNetworkId PrivateNetworkId, reqEditors ...RequestEditorFn) (*ReadPrivateNetworkResponse, error) // ListServers request ListServersWithResponse(ctx context.Context, params *ListServersParams, reqEditors ...RequestEditorFn) (*ListServersResponse, error) // ReadServer request ReadServerWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ReadServerResponse, error) // ListOSImages request ListOSImagesWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ListOSImagesResponse, error) // OSInstall request with any body OSInstallWithBodyWithResponse(ctx context.Context, serverId ServerId, params *OSInstallParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OSInstallResponse, error) OSInstallWithResponse(ctx context.Context, serverId ServerId, params *OSInstallParams, body OSInstallJSONRequestBody, reqEditors ...RequestEditorFn) (*OSInstallResponse, error) // ReadServerPortChannel request ReadServerPortChannelWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, reqEditors ...RequestEditorFn) (*ReadServerPortChannelResponse, error) // ServerConfigureBonding request with any body ServerConfigureBondingWithBodyWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServerConfigureBondingResponse, error) ServerConfigureBondingWithResponse(ctx context.Context, serverId ServerId, portChannelId PortChannelId, params *ServerConfigureBondingParams, body ServerConfigureBondingJSONRequestBody, reqEditors ...RequestEditorFn) (*ServerConfigureBondingResponse, error) // ReadServerPort request ReadServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, reqEditors ...RequestEditorFn) (*ReadServerPortResponse, error) // UpdateServerPort request with any body UpdateServerPortWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServerPortResponse, error) UpdateServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *UpdateServerPortParams, body UpdateServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServerPortResponse, error) // ServerAssignNetwork request with any body ServerAssignNetworkWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServerAssignNetworkResponse, error) ServerAssignNetworkWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *ServerAssignNetworkParams, body ServerAssignNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*ServerAssignNetworkResponse, error) // EnableServerPort request with any body EnableServerPortWithBodyWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnableServerPortResponse, error) EnableServerPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *EnableServerPortParams, body EnableServerPortJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableServerPortResponse, error) // ReadServerTrafficByPort request ReadServerTrafficByPortWithResponse(ctx context.Context, serverId ServerId, portId PortId, params *ReadServerTrafficByPortParams, reqEditors ...RequestEditorFn) (*ReadServerTrafficByPortResponse, error) // ServerPowerControl request with any body ServerPowerControlWithBodyWithResponse(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServerPowerControlResponse, error) ServerPowerControlWithResponse(ctx context.Context, serverId ServerId, params *ServerPowerControlParams, body ServerPowerControlJSONRequestBody, reqEditors ...RequestEditorFn) (*ServerPowerControlResponse, error) // ReadServerPowerStatus request ReadServerPowerStatusWithResponse(ctx context.Context, serverId ServerId, reqEditors ...RequestEditorFn) (*ReadServerPowerStatusResponse, error) // ReadRAIDStatus request ReadRAIDStatusWithResponse(ctx context.Context, serverId ServerId, params *ReadRAIDStatusParams, reqEditors ...RequestEditorFn) (*ReadRAIDStatusResponse, error) // ListServices request ListServicesWithResponse(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*ListServicesResponse, error) // ReadService request ReadServiceWithResponse(ctx context.Context, serviceId ServiceId, reqEditors ...RequestEditorFn) (*ReadServiceResponse, error) // UpdateService request with any body UpdateServiceWithBodyWithResponse(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error) UpdateServiceWithResponse(ctx context.Context, serviceId ServiceId, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConfigureBondingParameter ¶
type ConfigureBondingParameter struct { // ボンディング方式 // // * `lacp` - LACP // * `static` - static link aggregation // * `single` - ボンディングなし(単体構成) BondingType BondingType `json:"bonding_type"` // 作成するポート名称の指定 // // * `null`の場合は自動設定 // * ボンディング構成する場合は1要素の配列 // * ボンディングなしの場合は2要素の配列 PortNicknames *[]string `json:"port_nicknames"` }
ConfigureBondingParameter defines model for configure_bonding_parameter.
type DedicatedSubnet ¶
type DedicatedSubnet struct { // 設定変更によるロック状態 // `operational` 以外の状態では各種設定変更は不可 // // * `operational` - 操作可能 // * `configure_lb` - LBを設定中 // * `configure_fw` - FWを設定中 // * `enable_ipv6` - IPv6設定中 // * `administrative_lock` - 機器交換などの作業を行っている ConfigStatus DedicatedSubnetConfigStatus `json:"config_status"` // 専用グローバルネットワークのサービスコード DedicatedSubnetId string `json:"dedicated_subnet_id"` // 割り当て済みファイアウォール(利用していない場合は`null`) Firewall *AttachedFirewall `json:"firewall"` Ipv4 Ipv4 `json:"ipv4"` Ipv6 Ipv6 `json:"ipv6"` // 割り当て済みロードバランサー(利用していない場合は`null`) LoadBalancer *AttachedLoadBalancer `json:"load_balancer"` // 割り当て済みサーバー数 ServerCount int `json:"server_count"` // サービス情報 Service ServiceQuiet `json:"service"` Zone Zone `json:"zone"` }
DedicatedSubnet defines model for dedicated_subnet.
type DedicatedSubnetConfigStatus ¶
type DedicatedSubnetConfigStatus string
設定変更によるロック状態 `operational` 以外の状態では各種設定変更は不可
* `operational` - 操作可能 * `configure_lb` - LBを設定中 * `configure_fw` - FWを設定中 * `enable_ipv6` - IPv6設定中 * `administrative_lock` - 機器交換などの作業を行っている
const ( DedicatedSubnetConfigStatusAdministrativeLock DedicatedSubnetConfigStatus = "administrative_lock" DedicatedSubnetConfigStatusConfigureFw DedicatedSubnetConfigStatus = "configure_fw" DedicatedSubnetConfigStatusConfigureLb DedicatedSubnetConfigStatus = "configure_lb" DedicatedSubnetConfigStatusEnableIpv6 DedicatedSubnetConfigStatus = "enable_ipv6" DedicatedSubnetConfigStatusOperational DedicatedSubnetConfigStatus = "operational" )
Defines values for DedicatedSubnetConfigStatus.
type DedicatedSubnetId ¶
type DedicatedSubnetId = string
DedicatedSubnetId defines model for dedicated_subnet_id.
type DedicatedSubnets ¶
type DedicatedSubnets struct { DedicatedSubnets []DedicatedSubnet `json:"dedicated_subnets"` Meta PaginateMeta `json:"meta"` }
DedicatedSubnets defines model for dedicated_subnets.
type EnableServerPortJSONBody ¶
type EnableServerPortJSONBody = EnableServerPortParameter
EnableServerPortJSONBody defines parameters for EnableServerPort.
type EnableServerPortJSONRequestBody ¶
type EnableServerPortJSONRequestBody = EnableServerPortJSONBody
EnableServerPortJSONRequestBody defines body for EnableServerPort for application/json ContentType.
type EnableServerPortParameter ¶
type EnableServerPortParameter struct { // 通信を有効にする場合に `true` Enable bool `json:"enable"` }
EnableServerPortParameter defines model for enable_server_port_parameter.
type EnableServerPortParams ¶
type EnableServerPortParams struct { // CSRF防止用ヘッダー XRequestedWith EnableServerPortParamsXRequestedWith `json:"X-Requested-With"` }
EnableServerPortParams defines parameters for EnableServerPort.
type EnableServerPortParamsXRequestedWith ¶
type EnableServerPortParamsXRequestedWith string
EnableServerPortParamsXRequestedWith defines parameters for EnableServerPort.
type EnableServerPortResponse ¶
type EnableServerPortResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPort JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON409 *ProblemDetails409 JSON429 *ProblemDetails429 }
func ParseEnableServerPortResponse ¶
func ParseEnableServerPortResponse(rsp *http.Response) (*EnableServerPortResponse, error)
ParseEnableServerPortResponse parses an HTTP response from a EnableServerPortWithResponse call
func (EnableServerPortResponse) Result ¶
func (r EnableServerPortResponse) Result() (*ResponseBodyPort, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (EnableServerPortResponse) Status ¶
func (r EnableServerPortResponse) Status() string
Status returns HTTPResponse.Status
func (EnableServerPortResponse) StatusCode ¶
func (r EnableServerPortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (EnableServerPortResponse) UndefinedError ¶
func (r EnableServerPortResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type FreeWordFilter ¶
type FreeWordFilter = []string
FreeWordFilter defines model for free_word_filter.
type GinServerOptions ¶
type GinServerOptions struct { BaseURL string Middlewares []MiddlewareFunc }
GinServerOptions provides options for the Gin server.
type HeaderRequestedWith ¶
type HeaderRequestedWith string
HeaderRequestedWith defines model for header_requested_with.
const (
XMLHttpRequest HeaderRequestedWith = "XMLHttpRequest"
)
Defines values for HeaderRequestedWith.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HybridConnection ¶
type HybridConnection struct { // 接続先別ハイブリッド接続のサービスコード BridgeServiceId *string `json:"bridge_service_id,omitempty"` // 接続先サービスでの一意なネットワーク識別子 DestinationSideId *string `json:"destination_side_id,omitempty"` // 接続先を分類する名称 ServiceName *string `json:"service_name,omitempty"` }
HybridConnection defines model for hybrid_connection.
type HybridConnections ¶
type HybridConnections struct { Destinations []HybridConnection `json:"destinations"` // ハイブリッド接続のサービスコード ServiceId string `json:"service_id"` }
HybridConnections defines model for hybrid_connections.
type InterfacePort ¶
type InterfacePort struct { // ポート有効状態(通信が有効になっている場合 `true`) Enabled bool `json:"enabled"` // グローバル側の帯域幅(Mbps) // ボンディングされている場合は合計値 GlobalBandwidthMbps *int `json:"global_bandwidth_mbps"` // グローバルネットワーク情報 // このポートにインターネット接続が割り当てられていない場合は`null` Internet *Internet `json:"internet"` // ローカル側の帯域幅(Mbps) // ボンディングされている場合は合計値 LocalBandwidthMbps *int `json:"local_bandwidth_mbps"` // 動作モード(初期化後の未設定時は`null`) Mode *InterfacePortMode `json:"mode"` // インターフェース名称 Nickname string `json:"nickname"` // 所属ポートチャネルID PortChannelId int `json:"port_channel_id"` // ポートID PortId int `json:"port_id"` PrivateNetworks []AttachedPrivateNetwork `json:"private_networks"` }
ネットワークインターフェースの接続ポート情報
type InterfacePortMode ¶
type InterfacePortMode string
動作モード(初期化後の未設定時は`null`)
const ( InterfacePortModeAccess InterfacePortMode = "access" InterfacePortModeTrunk InterfacePortMode = "trunk" )
Defines values for InterfacePortMode.
type Internet ¶
type Internet struct { // 専用グローバルネットワーク情報(共用グローバルネットワーク割り当て時は`null`) DedicatedSubnet *AttachedDedicatedSubnet `json:"dedicated_subnet"` // ネットワークアドレス NetworkAddress string `json:"network_address"` // ネットワーク長 PrefixLength int `json:"prefix_length"` // グローバルネットワーク分類 // // * `common_subnet` - 共用グローバルネットワークのIPアドレスを割り当て // * `dedicated_subnet` - 専用グローバルネットワーク割り当て SubnetType InternetSubnetType `json:"subnet_type"` }
グローバルネットワーク情報 このポートにインターネット接続が割り当てられていない場合は`null`
type InternetSubnetType ¶
type InternetSubnetType string
グローバルネットワーク分類
* `common_subnet` - 共用グローバルネットワークのIPアドレスを割り当て * `dedicated_subnet` - 専用グローバルネットワーク割り当て
const ( InternetSubnetTypeCommonSubnet InternetSubnetType = "common_subnet" InternetSubnetTypeDedicatedSubnet InternetSubnetType = "dedicated_subnet" )
Defines values for InternetSubnetType.
type InvalidParameter ¶
type InvalidParameter struct { NonFieldErrors *InvalidParameterDetails `json:"non_field_errors,omitempty"` AdditionalProperties map[string]InvalidParameterDetails `json:"-"` }
入力値に対するエラーを構造化した情報 (titleが`invalid`の場合のみ)
* `non_field_errors` - リクエスト全体に起因した(単一項目でない)エラー内容 * `*` - 対応した入力項目ごとのエラー内容
func (InvalidParameter) Get ¶
func (a InvalidParameter) Get(fieldName string) (value InvalidParameterDetails, found bool)
Getter for additional properties for InvalidParameter. Returns the specified element and whether it was found
func (InvalidParameter) MarshalJSON ¶
func (a InvalidParameter) MarshalJSON() ([]byte, error)
Override default JSON handling for InvalidParameter to handle AdditionalProperties
func (*InvalidParameter) Set ¶
func (a *InvalidParameter) Set(fieldName string, value InvalidParameterDetails)
Setter for additional properties for InvalidParameter
func (*InvalidParameter) UnmarshalJSON ¶
func (a *InvalidParameter) UnmarshalJSON(b []byte) error
Override default JSON handling for InvalidParameter to handle AdditionalProperties
type InvalidParameterDetail ¶
type InvalidParameterDetail struct { // エラー内容を示す簡潔な識別子 Code string `json:"code"` // 人間のためのエラーメッセージ Message string `json:"message"` }
InvalidParameterDetail defines model for invalid_parameter_detail.
type InvalidParameterDetails ¶
type InvalidParameterDetails = []InvalidParameterDetail
InvalidParameterDetails defines model for invalid_parameter_details.
type Ipam ¶
type Ipam struct { // IPアドレスに対しての説明文 Description *string `json:"description,omitempty"` // 専用グローバルネットワークのIPアドレス IpAddress *string `json:"ip_address,omitempty"` Server *struct { // サーバーの名称 Nickname *string `json:"nickname,omitempty"` // サーバーのサービスコード(用途分類が`server`の場合のみ) ServerId *string `json:"server_id,omitempty"` } `json:"server"` // 割り当て用途分類 // // * `gateway` - ゲートウェイアドレス // * `gateway_real` - ゲートウェイ機器実機 // * `load_balancer` - ロードバランサー // * `server` - サーバー // * `void` - 用途登録なし Type *IpamType `json:"type,omitempty"` // 逆引きDNSを設定しているか否か(設定済みの場合 `true`) UseRdns *bool `json:"use_rdns,omitempty"` }
Ipam defines model for ipam.
type IpamType ¶
type IpamType string
割り当て用途分類
* `gateway` - ゲートウェイアドレス * `gateway_real` - ゲートウェイ機器実機 * `load_balancer` - ロードバランサー * `server` - サーバー * `void` - 用途登録なし
type Ipv4 ¶
type Ipv4 struct { // ブロードキャストアドレス BroadcastAddress string `json:"broadcast_address"` // ゲートウェイアドレス GatewayAddress string `json:"gateway_address"` // ネットワークアドレス NetworkAddress string `json:"network_address"` // ネットワーク長 PrefixLength int `json:"prefix_length"` // 特別な用途で割り当て済みのIPアドレスのリスト SpecialUseAddresses *[]Ipam `json:"special_use_addresses,omitempty"` }
Ipv4 defines model for ipv4.
type Ipv6 ¶
type Ipv6 struct { // ブロードキャストアドレス BroadcastAddress string `json:"broadcast_address"` // IPv6が有効になっているか Enabled bool `json:"enabled"` // ゲートウェイアドレス GatewayAddress string `json:"gateway_address"` // ネットワークIPアドレス NetworkAddress string `json:"network_address"` // ネットワーク長 PrefixLength int `json:"prefix_length"` // 特別な用途で割り当て済みのIPアドレスのリスト SpecialUseAddresses *[]struct { IpAddress *string `json:"ip_address,omitempty"` // 割り当て用途分類 // // * `gateway` - ゲートウェイアドレス // * `gateway_real` - ゲートウェイ機器実機 Type *Ipv6SpecialUseAddressesType `json:"type,omitempty"` } `json:"special_use_addresses,omitempty"` }
Ipv6 defines model for ipv6.
type Ipv6SpecialUseAddressesType ¶
type Ipv6SpecialUseAddressesType string
割り当て用途分類
* `gateway` - ゲートウェイアドレス * `gateway_real` - ゲートウェイ機器実機
const ( Ipv6SpecialUseAddressesTypeGateway Ipv6SpecialUseAddressesType = "gateway" Ipv6SpecialUseAddressesTypeGatewayReal Ipv6SpecialUseAddressesType = "gateway_real" )
Defines values for Ipv6SpecialUseAddressesType.
type ListDedicatedSubnetsParams ¶
type ListDedicatedSubnetsParams struct { // タグで絞り込む \ // このクエリーパラメーターを複数指定した場合は **すべてのタグを設定済み(AND)** のものにマッチ Tag *TagFilter `form:"tag,omitempty" json:"tag,omitempty"` // フリーワード検索 // 下記項目の **いずれか** にマッチしたものを抽出する // // * 名前(部分一致) // * 説明(部分一致) // * タグ(部分一致) // // このクエリーパラメーターを複数指定した場合は **複数の語句すべてを含む(AND)** ものにマッチ FreeWord *FreeWordFilter `form:"free_word,omitempty" json:"free_word,omitempty"` // 取得数を指定する Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // 取得開始位置を指定する Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` // 並び順指定, // __-__ から始まる場合は降順指定 // // * `activated` - 利用開始日順 // * `nickname` - 名称順 Ordering *ListDedicatedSubnetsParamsOrdering `form:"ordering,omitempty" json:"ordering,omitempty"` }
ListDedicatedSubnetsParams defines parameters for ListDedicatedSubnets.
type ListDedicatedSubnetsParamsOrdering ¶
type ListDedicatedSubnetsParamsOrdering string
ListDedicatedSubnetsParamsOrdering defines parameters for ListDedicatedSubnets.
type ListDedicatedSubnetsResponse ¶
type ListDedicatedSubnetsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DedicatedSubnets JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON429 *ProblemDetails429 }
func ParseListDedicatedSubnetsResponse ¶
func ParseListDedicatedSubnetsResponse(rsp *http.Response) (*ListDedicatedSubnetsResponse, error)
ParseListDedicatedSubnetsResponse parses an HTTP response from a ListDedicatedSubnetsWithResponse call
func (ListDedicatedSubnetsResponse) Result ¶
func (r ListDedicatedSubnetsResponse) Result() (*DedicatedSubnets, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ListDedicatedSubnetsResponse) Status ¶
func (r ListDedicatedSubnetsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDedicatedSubnetsResponse) StatusCode ¶
func (r ListDedicatedSubnetsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ListDedicatedSubnetsResponse) UndefinedError ¶
func (r ListDedicatedSubnetsResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ListOSImagesResponse ¶
type ListOSImagesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyOsImages JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseListOSImagesResponse ¶
func ParseListOSImagesResponse(rsp *http.Response) (*ListOSImagesResponse, error)
ParseListOSImagesResponse parses an HTTP response from a ListOSImagesWithResponse call
func (ListOSImagesResponse) Result ¶
func (r ListOSImagesResponse) Result() (*ResponseBodyOsImages, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ListOSImagesResponse) Status ¶
func (r ListOSImagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListOSImagesResponse) StatusCode ¶
func (r ListOSImagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ListOSImagesResponse) UndefinedError ¶
func (r ListOSImagesResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ListPrivateNetworksParams ¶
type ListPrivateNetworksParams struct { // タグで絞り込む \ // このクエリーパラメーターを複数指定した場合は **すべてのタグを設定済み(AND)** のものにマッチ Tag *TagFilter `form:"tag,omitempty" json:"tag,omitempty"` // フリーワード検索 // 下記項目の **いずれか** にマッチしたものを抽出する // // * 名前(部分一致) // * 説明(部分一致) // * タグ(部分一致) // // このクエリーパラメーターを複数指定した場合は **複数の語句すべてを含む(AND)** ものにマッチ FreeWord *FreeWordFilter `form:"free_word,omitempty" json:"free_word,omitempty"` // 取得数を指定する Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // 取得開始位置を指定する Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` // 並び順指定, // __-__ から始まる場合は降順指定 // // * `activated` - 利用開始日順 // * `nickname` - 名称順 Ordering *ListPrivateNetworksParamsOrdering `form:"ordering,omitempty" json:"ordering,omitempty"` }
ListPrivateNetworksParams defines parameters for ListPrivateNetworks.
type ListPrivateNetworksParamsOrdering ¶
type ListPrivateNetworksParamsOrdering string
ListPrivateNetworksParamsOrdering defines parameters for ListPrivateNetworks.
type ListPrivateNetworksResponse ¶
type ListPrivateNetworksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PrivateNetworks JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON429 *ProblemDetails429 }
func ParseListPrivateNetworksResponse ¶
func ParseListPrivateNetworksResponse(rsp *http.Response) (*ListPrivateNetworksResponse, error)
ParseListPrivateNetworksResponse parses an HTTP response from a ListPrivateNetworksWithResponse call
func (ListPrivateNetworksResponse) Result ¶
func (r ListPrivateNetworksResponse) Result() (*PrivateNetworks, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ListPrivateNetworksResponse) Status ¶
func (r ListPrivateNetworksResponse) Status() string
Status returns HTTPResponse.Status
func (ListPrivateNetworksResponse) StatusCode ¶
func (r ListPrivateNetworksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ListPrivateNetworksResponse) UndefinedError ¶
func (r ListPrivateNetworksResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ListServersParams ¶
type ListServersParams struct { // キャッシュされた電源状態で絞りこむ PowerStatus *ListServersParamsPowerStatus `form:"power_status,omitempty" json:"power_status,omitempty"` // インターネット接続状態の絞り込み // // * `common` - 共用グローバルネットワークを利用 // * `void` - インターネット接続なし // * `{dedicated_subnet_id}` - 指定した専用グローバルネットワークを利用 Internet *string `form:"internet,omitempty" json:"internet,omitempty"` // ローカルネットワークの接続状態の絞り込み // このパラメーターが複数ある場合は**全てのネットワークに接続済み(AND)**が対象 // // * `void` - ローカル接続なし // * `{private_network_id}` - 指定したローカルネットワークを利用 PrivateNetwork *[]string `form:"private_network,omitempty" json:"private_network,omitempty"` // タグで絞り込む \ // このクエリーパラメーターを複数指定した場合は **すべてのタグを設定済み(AND)** のものにマッチ Tag *TagFilter `form:"tag,omitempty" json:"tag,omitempty"` // フリーワード検索 // 下記項目の **いずれか** にマッチしたものを抽出する // // * 名前(部分一致) // * 説明(部分一致) // * タグ(部分一致) // // このクエリーパラメーターを複数指定した場合は **複数の語句すべてを含む(AND)** ものにマッチ FreeWord *FreeWordFilter `form:"free_word,omitempty" json:"free_word,omitempty"` // 取得数を指定する Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // 取得開始位置を指定する Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` // 並び順の指定, // __-__ から始まる場合は降順指定 // // * `activated` - 利用開始日順 // * `nickname` - 名称順 // * `power_status_stored` - 電源状態更新日時順 Ordering *ListServersParamsOrdering `form:"ordering,omitempty" json:"ordering,omitempty"` }
ListServersParams defines parameters for ListServers.
type ListServersParamsOrdering ¶
type ListServersParamsOrdering string
ListServersParamsOrdering defines parameters for ListServers.
type ListServersParamsPowerStatus ¶
type ListServersParamsPowerStatus string
ListServersParamsPowerStatus defines parameters for ListServers.
type ListServersResponse ¶
type ListServersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Servers JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseListServersResponse ¶
func ParseListServersResponse(rsp *http.Response) (*ListServersResponse, error)
ParseListServersResponse parses an HTTP response from a ListServersWithResponse call
func (ListServersResponse) Result ¶
func (r ListServersResponse) Result() (*Servers, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ListServersResponse) Status ¶
func (r ListServersResponse) Status() string
Status returns HTTPResponse.Status
func (ListServersResponse) StatusCode ¶
func (r ListServersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ListServersResponse) UndefinedError ¶
func (r ListServersResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ListServicesParams ¶
type ListServicesParams struct { // サービスの種類で絞りこむ ProductCategory *ListServicesParamsProductCategory `form:"product_category,omitempty" json:"product_category,omitempty"` // タグで絞り込む \ // このクエリーパラメーターを複数指定した場合は **すべてのタグを設定済み(AND)** のものにマッチ Tag *TagFilter `form:"tag,omitempty" json:"tag,omitempty"` // フリーワード検索 // 下記項目の **いずれか** にマッチしたものを抽出する // // * 名前(部分一致) // * 説明(部分一致) // * タグ(部分一致) // // このクエリーパラメーターを複数指定した場合は **複数の語句すべてを含む(AND)** ものにマッチ FreeWord *FreeWordFilter `form:"free_word,omitempty" json:"free_word,omitempty"` // 取得数を指定する Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` // 取得開始位置を指定する Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` // 並び順指定, // __-__ から始まる場合は降順指定 // // * `activated` - 利用開始日順 // * `nickname` - 名称順 Ordering *ListServicesParamsOrdering `form:"ordering,omitempty" json:"ordering,omitempty"` }
ListServicesParams defines parameters for ListServices.
type ListServicesParamsOrdering ¶
type ListServicesParamsOrdering string
ListServicesParamsOrdering defines parameters for ListServices.
type ListServicesParamsProductCategory ¶
type ListServicesParamsProductCategory string
ListServicesParamsProductCategory defines parameters for ListServices.
type ListServicesResponse ¶
type ListServicesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Services JSON401 *ProblemDetails401 JSON429 *ProblemDetails429 }
func ParseListServicesResponse ¶
func ParseListServicesResponse(rsp *http.Response) (*ListServicesResponse, error)
ParseListServicesResponse parses an HTTP response from a ListServicesWithResponse call
func (ListServicesResponse) Result ¶
func (r ListServicesResponse) Result() (*Services, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ListServicesResponse) Status ¶
func (r ListServicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListServicesResponse) StatusCode ¶
func (r ListServicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ListServicesResponse) UndefinedError ¶
func (r ListServicesResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type MiddlewareFunc ¶
type OSInstallJSONBody ¶
type OSInstallJSONBody = OsInstallParameter
OSInstallJSONBody defines parameters for OSInstall.
type OSInstallJSONRequestBody ¶
type OSInstallJSONRequestBody = OSInstallJSONBody
OSInstallJSONRequestBody defines body for OSInstall for application/json ContentType.
type OSInstallParams ¶
type OSInstallParams struct { // CSRF防止用ヘッダー XRequestedWith OSInstallParamsXRequestedWith `json:"X-Requested-With"` }
OSInstallParams defines parameters for OSInstall.
type OSInstallParamsXRequestedWith ¶
type OSInstallParamsXRequestedWith string
OSInstallParamsXRequestedWith defines parameters for OSInstall.
type OSInstallResponse ¶
type OSInstallResponse struct { Body []byte HTTPResponse *http.Response JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON409 *ProblemDetails409 JSON429 *ProblemDetails429 }
func ParseOSInstallResponse ¶
func ParseOSInstallResponse(rsp *http.Response) (*OSInstallResponse, error)
ParseOSInstallResponse parses an HTTP response from a OSInstallWithResponse call
func (OSInstallResponse) Result ¶
func (r OSInstallResponse) Result() error
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (OSInstallResponse) Status ¶
func (r OSInstallResponse) Status() string
Status returns HTTPResponse.Status
func (OSInstallResponse) StatusCode ¶
func (r OSInstallResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (OSInstallResponse) UndefinedError ¶
func (r OSInstallResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type OsImage ¶
type OsImage struct { // パーティション手動構成が可能か // (パーティション構成の指定が可能な場合に `true`) ManualPartition bool `json:"manual_partition"` // OSの名称 Name string `json:"name"` // インストール実行時に指定するOSイメージ名 OsImageId string `json:"os_image_id"` // イメージがSSH公開鍵認証に対応しているかどうか PublicKeyAuthentication bool `json:"public_key_authentication"` // インストール時にパスワード指定が必要か // (パスワード指定が必要な場合 `true`) RequirePassword bool `json:"require_password"` // OSインストール時に作成される管理ユーザー名 SuperuserName string `json:"superuser_name"` }
OsImage defines model for os_image.
type OsInstallParameter ¶
type OsInstallParameter struct { // パスワードでのSSHログインの許可 // // SSH公開鍵認証に対応したOSイメージでのみ有効なパラメータです AllowPasswordLogin bool `json:"allow_password_login"` // リモートコンソールを利用し手動パーティション指定を行う // (OSが対応している場合のみ) ManualPartition bool `json:"manual_partition"` // インストールするOSイメージ名 OsImageId string `json:"os_image_id"` // 英数字と記号の組み合わせ // 1文字以上のアルファベットと1文字以上の数字が必須 Password PasswordInput `json:"password"` // 専用サーバーに登録するSSH公開鍵のリスト // // SSH公開鍵認証に対応したOSイメージでのみ有効なパラメータです // `allow_password_login`が偽の場合は1つ以上の要素が必要です SshPublicKeys []string `json:"ssh_public_keys"` }
OsInstallParameter defines model for os_install_parameter.
type PaginateMeta ¶
type PaginateMeta struct { // 総件数 Count int `json:"count"` }
PaginateMeta defines model for paginate_meta.
type PortChannel ¶
type PortChannel struct { // ボンディング方式 // // * `lacp` - LACP // * `static` - static link aggregation // * `single` - ボンディングなし(単体構成) BondingType BondingType `json:"bonding_type"` // 提供速度分類 // // * `1gbe` - 1GbE // * `10gbe` - 10GbE LinkSpeedType PortChannelLinkSpeedType `json:"link_speed_type"` // 設定変更によるロック状態(ロック中の場合は `true`) Locked bool `json:"locked"` // ポートチャネルID PortChannelId int `json:"port_channel_id"` // ポートチャネルを構成するポートIDのリスト Ports []int `json:"ports"` }
ネットワークインターフェース ポートチャネル情報
type PortChannelLinkSpeedType ¶
type PortChannelLinkSpeedType string
提供速度分類
* `1gbe` - 1GbE * `10gbe` - 10GbE
const ( PortChannelLinkSpeedTypeN10gbe PortChannelLinkSpeedType = "10gbe" PortChannelLinkSpeedTypeN1gbe PortChannelLinkSpeedType = "1gbe" )
Defines values for PortChannelLinkSpeedType.
type PowerControlParameter ¶
type PowerControlParameter struct { // 操作内容 // // * `on` - 電源ON // * `soft` - ACPIシャットダウン(OSでの電源シャットダウン) // * `reset` - ハードウェア電源リセット(電源OFF+電源ON) // * `off` - ハードウェア電源OFF Operation ServerPowerOperations `json:"operation"` }
PowerControlParameter defines model for power_control_parameter.
type PrivateNetwork ¶
type PrivateNetwork struct { Hybrid HybridConnections `json:"hybrid"` // ローカルネットワークのID PrivateNetworkId string `json:"private_network_id"` // 接続済みサーバー数 ServerCount int `json:"server_count"` // サービス情報 Service ServiceQuiet `json:"service"` // VLAN ID VlanId int `json:"vlan_id"` Zone Zone `json:"zone"` }
PrivateNetwork defines model for private_network.
type PrivateNetworkId ¶
type PrivateNetworkId = string
PrivateNetworkId defines model for private_network_id.
type PrivateNetworks ¶
type PrivateNetworks struct { Meta PaginateMeta `json:"meta"` PrivateNetworks []PrivateNetwork `json:"private_networks"` }
PrivateNetworks defines model for private_networks.
type ProblemDetails400 ¶
type ProblemDetails400 struct { // 人間のためのエラーメッセージ Detail string `json:"detail"` // 入力値に対するエラーを構造化した情報 // (titleが`invalid`の場合のみ) // // * `non_field_errors` - リクエスト全体に起因した(単一項目でない)エラー内容 // * `*` - 対応した入力項目ごとのエラー内容 InvalidParameters *InvalidParameter `json:"invalid_parameters"` // HTTPステータスコード Status int `json:"status"` // エラー内容を示す簡潔な識別子 // // * `invalid` - 不正なリクエスト値,リクエスト値が妥当でない // * `parse_error` - 不正な形式,リクエスト値を読み取ることができない Title ProblemDetails400Title `json:"title"` Type string `json:"type"` }
ProblemDetails400 defines model for problem_details_400.
func (ProblemDetails400) Error ¶
func (e ProblemDetails400) Error() string
type ProblemDetails400Title ¶
type ProblemDetails400Title string
エラー内容を示す簡潔な識別子
* `invalid` - 不正なリクエスト値,リクエスト値が妥当でない * `parse_error` - 不正な形式,リクエスト値を読み取ることができない
const ( ProblemDetails400TitleInvalid ProblemDetails400Title = "invalid" ProblemDetails400TitleParseError ProblemDetails400Title = "parse_error" )
Defines values for ProblemDetails400Title.
type ProblemDetails401 ¶
type ProblemDetails401 struct { // エラー内容を示す簡潔な識別子 ErrorCode ProblemDetails401ErrorCode `json:"error_code"` // 人間のためのエラーメッセージ ErrorMsg string `json:"error_msg"` // HTTPステータスコード Status string `json:"status"` }
ProblemDetails401 defines model for problem_details_401.
func (ProblemDetails401) Error ¶
func (e ProblemDetails401) Error() string
type ProblemDetails401ErrorCode ¶
type ProblemDetails401ErrorCode string
エラー内容を示す簡潔な識別子
const (
)Defines values for ProblemDetails401ErrorCode.
type ProblemDetails404 ¶
type ProblemDetails404 struct { // 人間のためのエラーメッセージ Detail string `json:"detail"` // HTTPステータスコード Status int `json:"status"` // エラー内容を示す簡潔な識別子 // // * `not_found` - 未検出 Title ProblemDetails404Title `json:"title"` Type string `json:"type"` }
ProblemDetails404 defines model for problem_details_404.
func (ProblemDetails404) Error ¶
func (e ProblemDetails404) Error() string
type ProblemDetails404Title ¶
type ProblemDetails404Title string
エラー内容を示す簡潔な識別子
* `not_found` - 未検出
const (
ProblemDetails404TitleNotFound ProblemDetails404Title = "not_found"
)
Defines values for ProblemDetails404Title.
type ProblemDetails409 ¶
type ProblemDetails409 struct { // 人間のためのエラーメッセージ Detail string `json:"detail"` // HTTPステータスコード Status int `json:"status"` // エラー内容を示す簡潔な識別子 // // * `conflict` - 競合を検出 Title ProblemDetails409Title `json:"title"` Type string `json:"type"` }
ProblemDetails409 defines model for problem_details_409.
func (ProblemDetails409) Error ¶
func (e ProblemDetails409) Error() string
type ProblemDetails409Title ¶
type ProblemDetails409Title string
エラー内容を示す簡潔な識別子
* `conflict` - 競合を検出
const (
ProblemDetails409TitleConflict ProblemDetails409Title = "conflict"
)
Defines values for ProblemDetails409Title.
type ProblemDetails429 ¶
type ProblemDetails429 struct { // 人間のためのエラーメッセージ Detail string `json:"detail"` // HTTPステータスコード Status int `json:"status"` // エラー内容を示す簡潔な識別子 // // * `throttled` - リクエスト数制限に達している Title ProblemDetails429Title `json:"title"` Type string `json:"type"` }
ProblemDetails429 defines model for problem_details_429.
func (ProblemDetails429) Error ¶
func (e ProblemDetails429) Error() string
type ProblemDetails429Title ¶
type ProblemDetails429Title string
エラー内容を示す簡潔な識別子
* `throttled` - リクエスト数制限に達している
const (
ProblemDetails429TitleThrottled ProblemDetails429Title = "throttled"
)
Defines values for ProblemDetails429Title.
type ProblemDetails503 ¶
type ProblemDetails503 struct { // 人間のためのエラーメッセージ Detail string `json:"detail"` // HTTPステータスコード Status int `json:"status"` // エラー内容を示す簡潔な識別子 // // * `temporary_unavailable` - 一時的に利用不可 Title ProblemDetails503Title `json:"title"` Type string `json:"type"` }
ProblemDetails503 defines model for problem_details_503.
func (ProblemDetails503) Error ¶
func (e ProblemDetails503) Error() string
type ProblemDetails503Title ¶
type ProblemDetails503Title string
エラー内容を示す簡潔な識別子
* `temporary_unavailable` - 一時的に利用不可
const (
)Defines values for ProblemDetails503Title.
type RaidLogicalVolume ¶
type RaidLogicalVolume struct { PhysicalDeviceIds []string `json:"physical_device_ids"` // RAIDレベル RaidLevel string `json:"raid_level"` // このRAID論理ボリュームの状態 Status RaidLogicalVolumeStatus `json:"status"` // このサーバーのRAID論理ボリュームの一意な識別子 VolumeId string `json:"volume_id"` }
RaidLogicalVolume defines model for raid_logical_volume.
func (*RaidLogicalVolume) UnmarshalJSON ¶ added in v0.0.5
func (v *RaidLogicalVolume) UnmarshalJSON(data []byte) error
UnmarshalJSON RaidLevelに文字列 or 数値を受け入れるための実装
定義上は文字列になっているが数値が入るケースがあるため暫定的にここで違いを吸収し文字列としてUnmarshalする see:https://github.com/sacloud/phy-api-go/issues/92
type RaidLogicalVolumeStatus ¶
type RaidLogicalVolumeStatus string
このRAID論理ボリュームの状態
const ( RaidLogicalVolumeStatusDegraded RaidLogicalVolumeStatus = "degraded" RaidLogicalVolumeStatusFailed RaidLogicalVolumeStatus = "failed" RaidLogicalVolumeStatusOk RaidLogicalVolumeStatus = "ok" RaidLogicalVolumeStatusRebuilding RaidLogicalVolumeStatus = "rebuilding" )
Defines values for RaidLogicalVolumeStatus.
type RaidPhysicalDevice ¶
type RaidPhysicalDevice struct { // サーバーの物理ストレージデバイスの一意な識別子 DeviceId string `json:"device_id"` // 接続スロット番号 Slot int `json:"slot"` // この物理ストレージデバイスの状態 // // * `ok` - 正常 // * `failed` - 異常を検知 Status RaidPhysicalDeviceStatus `json:"status"` }
RaidPhysicalDevice defines model for raid_physical_device.
type RaidPhysicalDeviceStatus ¶
type RaidPhysicalDeviceStatus string
この物理ストレージデバイスの状態
* `ok` - 正常 * `failed` - 異常を検知
const ( RaidPhysicalDeviceStatusFailed RaidPhysicalDeviceStatus = "failed" RaidPhysicalDeviceStatusOk RaidPhysicalDeviceStatus = "ok" )
Defines values for RaidPhysicalDeviceStatus.
type RaidStatus ¶
type RaidStatus struct { // 作成済みRAID論理ボリュームのリスト LogicalVolumes []RaidLogicalVolume `json:"logical_volumes"` // RAID状態を取得した時刻 Monitored time.Time `json:"monitored"` // 総合的なRAID論理ボリューム状態 // // * `ok` - 全てのRAID論理ボリュームと物理デバイスが正常 // * `rebuilding` - 再構築中のRAID論理ボリュームが1つ以上ある(物理デバイスは全て正常、冗長性は低下している) // * `degraded` - 異常検出した物理デバイスが1つ以上ある(論理ボリュームは利用可能、冗長性は低下している) // * `failed` - 故障したRAID論理ボリュームが1つ以上ある(2つ以上の物理デバイスに異常があるRAID5など) // * `null` - RAID論理ボリュームがない // // `failed > degraded > rebuilding > ok` の順でより深刻なものが選択される OverallStatus *RaidStatusOverallStatus `json:"overall_status"` // 認識済み物理ストレージデバイスのリスト PhysicalDevices []RaidPhysicalDevice `json:"physical_devices"` }
RaidStatus defines model for raid_status.
type RaidStatusOverallStatus ¶
type RaidStatusOverallStatus string
総合的なRAID論理ボリューム状態
* `ok` - 全てのRAID論理ボリュームと物理デバイスが正常 * `rebuilding` - 再構築中のRAID論理ボリュームが1つ以上ある(物理デバイスは全て正常、冗長性は低下している) * `degraded` - 異常検出した物理デバイスが1つ以上ある(論理ボリュームは利用可能、冗長性は低下している) * `failed` - 故障したRAID論理ボリュームが1つ以上ある(2つ以上の物理デバイスに異常があるRAID5など) * `null` - RAID論理ボリュームがない
`failed > degraded > rebuilding > ok` の順でより深刻なものが選択される
const ( RaidStatusOverallStatusDegraded RaidStatusOverallStatus = "degraded" RaidStatusOverallStatusFailed RaidStatusOverallStatus = "failed" RaidStatusOverallStatusOk RaidStatusOverallStatus = "ok" RaidStatusOverallStatusRebuilding RaidStatusOverallStatus = "rebuilding" )
Defines values for RaidStatusOverallStatus.
type ReadDedicatedSubnetParams ¶
type ReadDedicatedSubnetParams struct { // IPv6有効状態の最新状態を取得する Refresh *bool `form:"refresh,omitempty" json:"refresh,omitempty"` }
ReadDedicatedSubnetParams defines parameters for ReadDedicatedSubnet.
type ReadDedicatedSubnetResponse ¶
type ReadDedicatedSubnetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyDedicatedSubnet JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 JSON503 *ProblemDetails503 }
func ParseReadDedicatedSubnetResponse ¶
func ParseReadDedicatedSubnetResponse(rsp *http.Response) (*ReadDedicatedSubnetResponse, error)
ParseReadDedicatedSubnetResponse parses an HTTP response from a ReadDedicatedSubnetWithResponse call
func (ReadDedicatedSubnetResponse) Result ¶
func (r ReadDedicatedSubnetResponse) Result() (*ResponseBodyDedicatedSubnet, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadDedicatedSubnetResponse) Status ¶
func (r ReadDedicatedSubnetResponse) Status() string
Status returns HTTPResponse.Status
func (ReadDedicatedSubnetResponse) StatusCode ¶
func (r ReadDedicatedSubnetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadDedicatedSubnetResponse) UndefinedError ¶
func (r ReadDedicatedSubnetResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadPrivateNetworkResponse ¶
type ReadPrivateNetworkResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPrivateNetwork JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseReadPrivateNetworkResponse ¶
func ParseReadPrivateNetworkResponse(rsp *http.Response) (*ReadPrivateNetworkResponse, error)
ParseReadPrivateNetworkResponse parses an HTTP response from a ReadPrivateNetworkWithResponse call
func (ReadPrivateNetworkResponse) Result ¶
func (r ReadPrivateNetworkResponse) Result() (*ResponseBodyPrivateNetwork, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadPrivateNetworkResponse) Status ¶
func (r ReadPrivateNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (ReadPrivateNetworkResponse) StatusCode ¶
func (r ReadPrivateNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadPrivateNetworkResponse) UndefinedError ¶
func (r ReadPrivateNetworkResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadRAIDStatusParams ¶
type ReadRAIDStatusParams struct { // 実機の最新状態を取得 Refresh *bool `form:"refresh,omitempty" json:"refresh,omitempty"` }
ReadRAIDStatusParams defines parameters for ReadRAIDStatus.
type ReadRAIDStatusResponse ¶
type ReadRAIDStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyRaidStatus JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 JSON503 *ProblemDetails503 }
func ParseReadRAIDStatusResponse ¶
func ParseReadRAIDStatusResponse(rsp *http.Response) (*ReadRAIDStatusResponse, error)
ParseReadRAIDStatusResponse parses an HTTP response from a ReadRAIDStatusWithResponse call
func (ReadRAIDStatusResponse) Result ¶
func (r ReadRAIDStatusResponse) Result() (*ResponseBodyRaidStatus, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadRAIDStatusResponse) Status ¶
func (r ReadRAIDStatusResponse) Status() string
Status returns HTTPResponse.Status
func (ReadRAIDStatusResponse) StatusCode ¶
func (r ReadRAIDStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadRAIDStatusResponse) UndefinedError ¶
func (r ReadRAIDStatusResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadServerPortChannelResponse ¶
type ReadServerPortChannelResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPortChannel JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON409 *ProblemDetails409 JSON429 *ProblemDetails429 JSON503 *ProblemDetails503 }
func ParseReadServerPortChannelResponse ¶
func ParseReadServerPortChannelResponse(rsp *http.Response) (*ReadServerPortChannelResponse, error)
ParseReadServerPortChannelResponse parses an HTTP response from a ReadServerPortChannelWithResponse call
func (ReadServerPortChannelResponse) Result ¶
func (r ReadServerPortChannelResponse) Result() (*ResponseBodyPortChannel, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadServerPortChannelResponse) Status ¶
func (r ReadServerPortChannelResponse) Status() string
Status returns HTTPResponse.Status
func (ReadServerPortChannelResponse) StatusCode ¶
func (r ReadServerPortChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadServerPortChannelResponse) UndefinedError ¶
func (r ReadServerPortChannelResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadServerPortResponse ¶
type ReadServerPortResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPort JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 JSON503 *ProblemDetails503 }
func ParseReadServerPortResponse ¶
func ParseReadServerPortResponse(rsp *http.Response) (*ReadServerPortResponse, error)
ParseReadServerPortResponse parses an HTTP response from a ReadServerPortWithResponse call
func (ReadServerPortResponse) Result ¶
func (r ReadServerPortResponse) Result() (*ResponseBodyPort, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadServerPortResponse) Status ¶
func (r ReadServerPortResponse) Status() string
Status returns HTTPResponse.Status
func (ReadServerPortResponse) StatusCode ¶
func (r ReadServerPortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadServerPortResponse) UndefinedError ¶
func (r ReadServerPortResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadServerPowerStatusResponse ¶
type ReadServerPowerStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyServerPowerStatus JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 JSON503 *ProblemDetails503 }
func ParseReadServerPowerStatusResponse ¶
func ParseReadServerPowerStatusResponse(rsp *http.Response) (*ReadServerPowerStatusResponse, error)
ParseReadServerPowerStatusResponse parses an HTTP response from a ReadServerPowerStatusWithResponse call
func (ReadServerPowerStatusResponse) Result ¶
func (r ReadServerPowerStatusResponse) Result() (*ResponseBodyServerPowerStatus, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadServerPowerStatusResponse) Status ¶
func (r ReadServerPowerStatusResponse) Status() string
Status returns HTTPResponse.Status
func (ReadServerPowerStatusResponse) StatusCode ¶
func (r ReadServerPowerStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadServerPowerStatusResponse) UndefinedError ¶
func (r ReadServerPowerStatusResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadServerResponse ¶
type ReadServerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyServer JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseReadServerResponse ¶
func ParseReadServerResponse(rsp *http.Response) (*ReadServerResponse, error)
ParseReadServerResponse parses an HTTP response from a ReadServerWithResponse call
func (ReadServerResponse) Result ¶
func (r ReadServerResponse) Result() (*ResponseBodyServer, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadServerResponse) Status ¶
func (r ReadServerResponse) Status() string
Status returns HTTPResponse.Status
func (ReadServerResponse) StatusCode ¶
func (r ReadServerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadServerResponse) UndefinedError ¶
func (r ReadServerResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadServerTrafficByPortParams ¶
type ReadServerTrafficByPortParams struct { // 取得範囲始点(過去31日前まで,未指定時は7日前) Since *time.Time `form:"since,omitempty" json:"since,omitempty"` // 取得範囲終点(未指定時は現在時刻) Until *time.Time `form:"until,omitempty" json:"until,omitempty"` // データポイント間隔(秒) Step *ReadServerTrafficByPortParamsStep `form:"step,omitempty" json:"step,omitempty"` }
ReadServerTrafficByPortParams defines parameters for ReadServerTrafficByPort.
type ReadServerTrafficByPortParamsStep ¶
type ReadServerTrafficByPortParamsStep int
ReadServerTrafficByPortParamsStep defines parameters for ReadServerTrafficByPort.
type ReadServerTrafficByPortResponse ¶
type ReadServerTrafficByPortResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyTrafficGraph JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseReadServerTrafficByPortResponse ¶
func ParseReadServerTrafficByPortResponse(rsp *http.Response) (*ReadServerTrafficByPortResponse, error)
ParseReadServerTrafficByPortResponse parses an HTTP response from a ReadServerTrafficByPortWithResponse call
func (ReadServerTrafficByPortResponse) Result ¶
func (r ReadServerTrafficByPortResponse) Result() (*ResponseBodyTrafficGraph, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadServerTrafficByPortResponse) Status ¶
func (r ReadServerTrafficByPortResponse) Status() string
Status returns HTTPResponse.Status
func (ReadServerTrafficByPortResponse) StatusCode ¶
func (r ReadServerTrafficByPortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadServerTrafficByPortResponse) UndefinedError ¶
func (r ReadServerTrafficByPortResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ReadServiceResponse ¶
type ReadServiceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyService JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseReadServiceResponse ¶
func ParseReadServiceResponse(rsp *http.Response) (*ReadServiceResponse, error)
ParseReadServiceResponse parses an HTTP response from a ReadServiceWithResponse call
func (ReadServiceResponse) Result ¶
func (r ReadServiceResponse) Result() (*ResponseBodyService, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ReadServiceResponse) Status ¶
func (r ReadServiceResponse) Status() string
Status returns HTTPResponse.Status
func (ReadServiceResponse) StatusCode ¶
func (r ReadServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ReadServiceResponse) UndefinedError ¶
func (r ReadServiceResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseBodyDedicatedSubnet ¶
type ResponseBodyDedicatedSubnet struct {
DedicatedSubnet DedicatedSubnet `json:"dedicated_subnet"`
}
ResponseBodyDedicatedSubnet defines model for response_body_dedicated_subnet.
type ResponseBodyOsImages ¶
type ResponseBodyOsImages struct {
OsImages []OsImage `json:"os_images"`
}
ResponseBodyOsImages defines model for response_body_os_images.
type ResponseBodyPort ¶
type ResponseBodyPort struct { // ネットワークインターフェースの接続ポート情報 Port InterfacePort `json:"port"` }
ResponseBodyPort defines model for response_body_port.
type ResponseBodyPortChannel ¶
type ResponseBodyPortChannel struct { // ネットワークインターフェース ポートチャネル情報 PortChannel PortChannel `json:"port_channel"` }
ResponseBodyPortChannel defines model for response_body_port_channel.
type ResponseBodyPrivateNetwork ¶
type ResponseBodyPrivateNetwork struct {
PrivateNetwork PrivateNetwork `json:"private_network"`
}
ResponseBodyPrivateNetwork defines model for response_body_private_network.
type ResponseBodyRaidStatus ¶
type ResponseBodyRaidStatus struct {
RaidStatus RaidStatus `json:"raid_status"`
}
ResponseBodyRaidStatus defines model for response_body_raid_status.
type ResponseBodyServer ¶
type ResponseBodyServer struct {
Server Server `json:"server"`
}
ResponseBodyServer defines model for response_body_server.
type ResponseBodyServerPowerStatus ¶
type ResponseBodyServerPowerStatus struct {
PowerStatus ServerPowerStatus `json:"power_status"`
}
ResponseBodyServerPowerStatus defines model for response_body_server_power_status.
type ResponseBodyService ¶
type ResponseBodyService struct {
Service Service `json:"service"`
}
ResponseBodyService defines model for response_body_service.
type ResponseBodyTrafficGraph ¶
type ResponseBodyTrafficGraph struct {
TrafficGraph TrafficGraph `json:"traffic_graph"`
}
ResponseBodyTrafficGraph defines model for response_body_traffic_graph.
type Server ¶
type Server struct { // キャッシュされた電源状態(未キャッシュならば`null`) CachedPowerStatus *CachedPowerStatus `json:"cached_power_status"` // グローバルIPアドレス割り当て情報(未設定時は`null`) Ipv4 *ServerIpv4Global `json:"ipv4"` // 設定変更処理によるロック状態 // `null`以外がセットされている場合は // OS再インストール,ネットワークIF設定(VLAN,通信無効など),電源操作を受け付けない // // * `os_install` - OSインストール処理中 // * `configure_raid` - RAID設定処理中 // * `administrative_lock` - 機器交換,増設などの作業を行っている // * `null` - 設定変更を行っていない(処理を完了している) LockStatus *ServerLockStatus `json:"lock_status"` PortChannels []PortChannel `json:"port_channels"` Ports []InterfacePort `json:"ports"` // サーバーのサービスコード ServerId string `json:"server_id"` // サービス情報 Service ServiceQuiet `json:"service"` Spec ServerSpec `json:"spec"` Zone Zone `json:"zone"` }
Server defines model for server.
type ServerAssignNetworkJSONBody ¶
type ServerAssignNetworkJSONBody = AssignNetworkParameter
ServerAssignNetworkJSONBody defines parameters for ServerAssignNetwork.
type ServerAssignNetworkJSONRequestBody ¶
type ServerAssignNetworkJSONRequestBody = ServerAssignNetworkJSONBody
ServerAssignNetworkJSONRequestBody defines body for ServerAssignNetwork for application/json ContentType.
type ServerAssignNetworkParams ¶
type ServerAssignNetworkParams struct { // CSRF防止用ヘッダー XRequestedWith ServerAssignNetworkParamsXRequestedWith `json:"X-Requested-With"` }
ServerAssignNetworkParams defines parameters for ServerAssignNetwork.
type ServerAssignNetworkParamsXRequestedWith ¶
type ServerAssignNetworkParamsXRequestedWith string
ServerAssignNetworkParamsXRequestedWith defines parameters for ServerAssignNetwork.
type ServerAssignNetworkResponse ¶
type ServerAssignNetworkResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPort JSON400 *struct { // Embedded struct due to allOf(#/components/schemas/problem_details_400) ProblemDetails400 `yaml:",inline"` } JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON409 *ProblemDetails409 JSON429 *ProblemDetails429 }
func ParseServerAssignNetworkResponse ¶
func ParseServerAssignNetworkResponse(rsp *http.Response) (*ServerAssignNetworkResponse, error)
ParseServerAssignNetworkResponse parses an HTTP response from a ServerAssignNetworkWithResponse call
func (ServerAssignNetworkResponse) Result ¶
func (r ServerAssignNetworkResponse) Result() (*ResponseBodyPort, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ServerAssignNetworkResponse) Status ¶
func (r ServerAssignNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (ServerAssignNetworkResponse) StatusCode ¶
func (r ServerAssignNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ServerAssignNetworkResponse) UndefinedError ¶
func (r ServerAssignNetworkResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ServerConfigureBondingJSONBody ¶
type ServerConfigureBondingJSONBody = ConfigureBondingParameter
ServerConfigureBondingJSONBody defines parameters for ServerConfigureBonding.
type ServerConfigureBondingJSONRequestBody ¶
type ServerConfigureBondingJSONRequestBody = ServerConfigureBondingJSONBody
ServerConfigureBondingJSONRequestBody defines body for ServerConfigureBonding for application/json ContentType.
type ServerConfigureBondingParams ¶
type ServerConfigureBondingParams struct { // CSRF防止用ヘッダー XRequestedWith ServerConfigureBondingParamsXRequestedWith `json:"X-Requested-With"` }
ServerConfigureBondingParams defines parameters for ServerConfigureBonding.
type ServerConfigureBondingParamsXRequestedWith ¶
type ServerConfigureBondingParamsXRequestedWith string
ServerConfigureBondingParamsXRequestedWith defines parameters for ServerConfigureBonding.
type ServerConfigureBondingResponse ¶
type ServerConfigureBondingResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPortChannel JSON400 *struct { // Embedded struct due to allOf(#/components/schemas/problem_details_400) ProblemDetails400 `yaml:",inline"` } JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON409 *ProblemDetails409 JSON429 *ProblemDetails429 }
func ParseServerConfigureBondingResponse ¶
func ParseServerConfigureBondingResponse(rsp *http.Response) (*ServerConfigureBondingResponse, error)
ParseServerConfigureBondingResponse parses an HTTP response from a ServerConfigureBondingWithResponse call
func (ServerConfigureBondingResponse) Result ¶
func (r ServerConfigureBondingResponse) Result() (*ResponseBodyPortChannel, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ServerConfigureBondingResponse) Status ¶
func (r ServerConfigureBondingResponse) Status() string
Status returns HTTPResponse.Status
func (ServerConfigureBondingResponse) StatusCode ¶
func (r ServerConfigureBondingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ServerConfigureBondingResponse) UndefinedError ¶
func (r ServerConfigureBondingResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ServerInterface ¶
type ServerInterface interface { // 専用グローバルネットワーク 一覧 // (GET /dedicated_subnets/) ListDedicatedSubnets(c *gin.Context, params ListDedicatedSubnetsParams) // 専用グローバルネットワーク // (GET /dedicated_subnets/{dedicated_subnet_id}/) ReadDedicatedSubnet(c *gin.Context, dedicatedSubnetId DedicatedSubnetId, params ReadDedicatedSubnetParams) // ローカルネットワーク 一覧 // (GET /private_networks/) ListPrivateNetworks(c *gin.Context, params ListPrivateNetworksParams) // ローカルネットワーク 詳細 // (GET /private_networks/{private_network_id}/) ReadPrivateNetwork(c *gin.Context, privateNetworkId PrivateNetworkId) // サーバー一覧 // (GET /servers/) ListServers(c *gin.Context, params ListServersParams) // サーバー // (GET /servers/{server_id}/) ReadServer(c *gin.Context, serverId ServerId) // インストール可能OS一覧 // (GET /servers/{server_id}/os_images/) ListOSImages(c *gin.Context, serverId ServerId) // OSインストールの実行 // (POST /servers/{server_id}/os_install/) OSInstall(c *gin.Context, serverId ServerId, params OSInstallParams) // ポートチャネル状態取得 // (GET /servers/{server_id}/port_channels/{port_channel_id}/) ReadServerPortChannel(c *gin.Context, serverId ServerId, portChannelId PortChannelId) // ポートチャネル ボンディング設定 // (POST /servers/{server_id}/port_channels/{port_channel_id}/configure_bonding/) ServerConfigureBonding(c *gin.Context, serverId ServerId, portChannelId PortChannelId, params ServerConfigureBondingParams) // ポート情報取得 // (GET /servers/{server_id}/ports/{port_id}/) ReadServerPort(c *gin.Context, serverId ServerId, portId PortId) // ポート名称設定 // (PATCH /servers/{server_id}/ports/{port_id}/) UpdateServerPort(c *gin.Context, serverId ServerId, portId PortId, params UpdateServerPortParams) // ネットワーク接続設定の変更 // (POST /servers/{server_id}/ports/{port_id}/assign_network/) ServerAssignNetwork(c *gin.Context, serverId ServerId, portId PortId, params ServerAssignNetworkParams) // ポート有効/無効設定 // (POST /servers/{server_id}/ports/{port_id}/enable/) EnableServerPort(c *gin.Context, serverId ServerId, portId PortId, params EnableServerPortParams) // トラフィックデータ取得 // (GET /servers/{server_id}/ports/{port_id}/traffic_graph/) ReadServerTrafficByPort(c *gin.Context, serverId ServerId, portId PortId, params ReadServerTrafficByPortParams) // サーバーの電源操作 // (POST /servers/{server_id}/power_control/) ServerPowerControl(c *gin.Context, serverId ServerId, params ServerPowerControlParams) // サーバーの電源情報を取得する // (GET /servers/{server_id}/power_status/) ReadServerPowerStatus(c *gin.Context, serverId ServerId) // サーバーのRAID状態を取得 // (GET /servers/{server_id}/raid_status/) ReadRAIDStatus(c *gin.Context, serverId ServerId, params ReadRAIDStatusParams) // サービス一覧 // (GET /services/) ListServices(c *gin.Context, params ListServicesParams) // サービス 詳細 // (GET /services/{service_id}/) ReadService(c *gin.Context, serviceId ServiceId) // サービスの名称・説明の変更 // (PATCH /services/{service_id}/) UpdateService(c *gin.Context, serviceId ServiceId, params UpdateServiceParams) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) EnableServerPort ¶
func (siw *ServerInterfaceWrapper) EnableServerPort(c *gin.Context)
EnableServerPort operation middleware
func (*ServerInterfaceWrapper) ListDedicatedSubnets ¶
func (siw *ServerInterfaceWrapper) ListDedicatedSubnets(c *gin.Context)
ListDedicatedSubnets operation middleware
func (*ServerInterfaceWrapper) ListOSImages ¶
func (siw *ServerInterfaceWrapper) ListOSImages(c *gin.Context)
ListOSImages operation middleware
func (*ServerInterfaceWrapper) ListPrivateNetworks ¶
func (siw *ServerInterfaceWrapper) ListPrivateNetworks(c *gin.Context)
ListPrivateNetworks operation middleware
func (*ServerInterfaceWrapper) ListServers ¶
func (siw *ServerInterfaceWrapper) ListServers(c *gin.Context)
ListServers operation middleware
func (*ServerInterfaceWrapper) ListServices ¶
func (siw *ServerInterfaceWrapper) ListServices(c *gin.Context)
ListServices operation middleware
func (*ServerInterfaceWrapper) OSInstall ¶
func (siw *ServerInterfaceWrapper) OSInstall(c *gin.Context)
OSInstall operation middleware
func (*ServerInterfaceWrapper) ReadDedicatedSubnet ¶
func (siw *ServerInterfaceWrapper) ReadDedicatedSubnet(c *gin.Context)
ReadDedicatedSubnet operation middleware
func (*ServerInterfaceWrapper) ReadPrivateNetwork ¶
func (siw *ServerInterfaceWrapper) ReadPrivateNetwork(c *gin.Context)
ReadPrivateNetwork operation middleware
func (*ServerInterfaceWrapper) ReadRAIDStatus ¶
func (siw *ServerInterfaceWrapper) ReadRAIDStatus(c *gin.Context)
ReadRAIDStatus operation middleware
func (*ServerInterfaceWrapper) ReadServer ¶
func (siw *ServerInterfaceWrapper) ReadServer(c *gin.Context)
ReadServer operation middleware
func (*ServerInterfaceWrapper) ReadServerPort ¶
func (siw *ServerInterfaceWrapper) ReadServerPort(c *gin.Context)
ReadServerPort operation middleware
func (*ServerInterfaceWrapper) ReadServerPortChannel ¶
func (siw *ServerInterfaceWrapper) ReadServerPortChannel(c *gin.Context)
ReadServerPortChannel operation middleware
func (*ServerInterfaceWrapper) ReadServerPowerStatus ¶
func (siw *ServerInterfaceWrapper) ReadServerPowerStatus(c *gin.Context)
ReadServerPowerStatus operation middleware
func (*ServerInterfaceWrapper) ReadServerTrafficByPort ¶
func (siw *ServerInterfaceWrapper) ReadServerTrafficByPort(c *gin.Context)
ReadServerTrafficByPort operation middleware
func (*ServerInterfaceWrapper) ReadService ¶
func (siw *ServerInterfaceWrapper) ReadService(c *gin.Context)
ReadService operation middleware
func (*ServerInterfaceWrapper) ServerAssignNetwork ¶
func (siw *ServerInterfaceWrapper) ServerAssignNetwork(c *gin.Context)
ServerAssignNetwork operation middleware
func (*ServerInterfaceWrapper) ServerConfigureBonding ¶
func (siw *ServerInterfaceWrapper) ServerConfigureBonding(c *gin.Context)
ServerConfigureBonding operation middleware
func (*ServerInterfaceWrapper) ServerPowerControl ¶
func (siw *ServerInterfaceWrapper) ServerPowerControl(c *gin.Context)
ServerPowerControl operation middleware
func (*ServerInterfaceWrapper) UpdateServerPort ¶
func (siw *ServerInterfaceWrapper) UpdateServerPort(c *gin.Context)
UpdateServerPort operation middleware
func (*ServerInterfaceWrapper) UpdateService ¶
func (siw *ServerInterfaceWrapper) UpdateService(c *gin.Context)
UpdateService operation middleware
type ServerIpv4Global ¶
type ServerIpv4Global struct { // ゲートウェイアドレス GatewayAddress string `json:"gateway_address"` // IPアドレス IpAddress string `json:"ip_address"` // DNSサーバーリスト NameServers []string `json:"name_servers"` // ネットワークアドレス NetworkAddress string `json:"network_address"` // ネットワーク長 PrefixLength int `json:"prefix_length"` // IPアドレスの種類 // // * `common_ip_address` - 共用グローバルネットワークのIPアドレス // * `dedicated_ip_address` - 専用グローバルネットワークのIPアドレス(割り当て設定が必要) Type ServerIpv4GlobalType `json:"type"` }
グローバルIPアドレス割り当て情報(未設定時は`null`)
type ServerIpv4GlobalType ¶
type ServerIpv4GlobalType string
IPアドレスの種類
* `common_ip_address` - 共用グローバルネットワークのIPアドレス * `dedicated_ip_address` - 専用グローバルネットワークのIPアドレス(割り当て設定が必要)
const ( ServerIpv4GlobalTypeCommonIpAddress ServerIpv4GlobalType = "common_ip_address" ServerIpv4GlobalTypeDedicatedIpAddress ServerIpv4GlobalType = "dedicated_ip_address" )
Defines values for ServerIpv4GlobalType.
type ServerLockStatus ¶
type ServerLockStatus string
設定変更処理によるロック状態 `null`以外がセットされている場合は OS再インストール,ネットワークIF設定(VLAN,通信無効など),電源操作を受け付けない
* `os_install` - OSインストール処理中 * `configure_raid` - RAID設定処理中 * `administrative_lock` - 機器交換,増設などの作業を行っている * `null` - 設定変更を行っていない(処理を完了している)
const ( ServerLockStatusAdministrativeLock ServerLockStatus = "administrative_lock" ServerLockStatusConfigureRaid ServerLockStatus = "configure_raid" ServerLockStatusOsInstall ServerLockStatus = "os_install" )
Defines values for ServerLockStatus.
type ServerPowerControlJSONBody ¶
type ServerPowerControlJSONBody = PowerControlParameter
ServerPowerControlJSONBody defines parameters for ServerPowerControl.
type ServerPowerControlJSONRequestBody ¶
type ServerPowerControlJSONRequestBody = ServerPowerControlJSONBody
ServerPowerControlJSONRequestBody defines body for ServerPowerControl for application/json ContentType.
type ServerPowerControlParams ¶
type ServerPowerControlParams struct { // CSRF防止用ヘッダー XRequestedWith ServerPowerControlParamsXRequestedWith `json:"X-Requested-With"` }
ServerPowerControlParams defines parameters for ServerPowerControl.
type ServerPowerControlParamsXRequestedWith ¶
type ServerPowerControlParamsXRequestedWith string
ServerPowerControlParamsXRequestedWith defines parameters for ServerPowerControl.
type ServerPowerControlResponse ¶
type ServerPowerControlResponse struct { Body []byte HTTPResponse *http.Response JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 JSON503 *ProblemDetails503 }
func ParseServerPowerControlResponse ¶
func ParseServerPowerControlResponse(rsp *http.Response) (*ServerPowerControlResponse, error)
ParseServerPowerControlResponse parses an HTTP response from a ServerPowerControlWithResponse call
func (ServerPowerControlResponse) Result ¶
func (r ServerPowerControlResponse) Result() error
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (ServerPowerControlResponse) Status ¶
func (r ServerPowerControlResponse) Status() string
Status returns HTTPResponse.Status
func (ServerPowerControlResponse) StatusCode ¶
func (r ServerPowerControlResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (ServerPowerControlResponse) UndefinedError ¶
func (r ServerPowerControlResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type ServerPowerOperations ¶
type ServerPowerOperations string
操作内容
* `on` - 電源ON * `soft` - ACPIシャットダウン(OSでの電源シャットダウン) * `reset` - ハードウェア電源リセット(電源OFF+電源ON) * `off` - ハードウェア電源OFF
const ( ServerPowerOperationsOff ServerPowerOperations = "off" ServerPowerOperationsOn ServerPowerOperations = "on" ServerPowerOperationsReset ServerPowerOperations = "reset" ServerPowerOperationsSoft ServerPowerOperations = "soft" )
Defines values for ServerPowerOperations.
type ServerPowerStatus ¶
type ServerPowerStatus struct { // サーバーの電源状態 // // * `on` - 起動 // * `off` - 停止 Status ServerPowerStatusStatus `json:"status"` }
ServerPowerStatus defines model for server_power_status.
type ServerPowerStatusStatus ¶
type ServerPowerStatusStatus string
サーバーの電源状態
* `on` - 起動 * `off` - 停止
const ( ServerPowerStatusStatusOff ServerPowerStatusStatus = "off" ServerPowerStatusStatusOn ServerPowerStatusStatus = "on" )
Defines values for ServerPowerStatusStatus.
type ServerSpec ¶
type ServerSpec struct { // CPUクロック数(GHz) CpuClockSpeed float32 `json:"cpu_clock_speed"` // 総CPUコア数 CpuCoreCount int `json:"cpu_core_count"` // 物理CPU数 CpuCount int `json:"cpu_count"` // CPU製品モデル名 CpuModelName string `json:"cpu_model_name"` // 総メモリ数(GB) MemorySize int `json:"memory_size"` // 10GbEネットワークインターフェース ポートチャネル数 PortChannel10gbeCount int `json:"port_channel_10gbe_count"` // 1GbEネットワークインターフェース ポートチャネル数 PortChannel1gbeCount int `json:"port_channel_1gbe_count"` // ストレージ構成情報 // 同一構成(接続方式,記録方式,容量)ごとの配列 Storages []Storage `json:"storages"` // ストレージ構成物理デバイス数の合計 TotalStorageDeviceCount int `json:"total_storage_device_count"` }
ServerSpec defines model for server_spec.
type Servers ¶
type Servers struct { Meta PaginateMeta `json:"meta"` Servers []Server `json:"servers"` }
Servers defines model for servers.
type Service ¶
type Service struct { // 利用開始日時 Activated time.Time `json:"activated"` // メモ:サーバーやネットワークなどの説明 Description *string `json:"description"` // 名称:サーバーやネットワークなどの表示名 Nickname string `json:"nickname"` OptionPlans *[]struct { // プラン名称 Name *string `json:"name,omitempty"` // オプション申込区分 // // * `upgrade_memory` - 拡張メモリ // * `upgrade_storage` - ストレージ変更 // * `additional_storage1` - 追加ストレージ1 // * `additional_storage2` - 追加ストレージ2 // * `additional_storage3` - 追加ストレージ3 // * `additional_nvme_storage1` - 追加NVMeストレージ1 // * `additional_nvme_storage2` - 追加NVMeストレージ2 // * `os` - 有償OS // * `global_bandwidth` - インターネット帯域オプション // * `local_bandwidth` - ローカルネットワーク帯域オプション OptionClass *ServiceOptionPlansOptionClass `json:"option_class,omitempty"` // プランID PlanId *string `json:"plan_id,omitempty"` } `json:"option_plans,omitempty"` // プラン情報(ローカルネットワークの場合は`null`) Plan *ServicePlan `json:"plan"` // サービスの種類 // // * `server` - サーバー // * `dedicated_subnet` - 専用グローバルネットワーク // * `private_network` - ローカルネットワーク // * `firewall` - ファイアウォール // * `load_balancer` - ロードバランサー ProductCategory ServiceProductCategory `json:"product_category"` ServiceId string `json:"service_id"` Tags []Tag `json:"tags"` }
Service defines model for service.
type ServiceOptionPlansOptionClass ¶
type ServiceOptionPlansOptionClass string
オプション申込区分
* `upgrade_memory` - 拡張メモリ * `upgrade_storage` - ストレージ変更 * `additional_storage1` - 追加ストレージ1 * `additional_storage2` - 追加ストレージ2 * `additional_storage3` - 追加ストレージ3 * `additional_nvme_storage1` - 追加NVMeストレージ1 * `additional_nvme_storage2` - 追加NVMeストレージ2 * `os` - 有償OS * `global_bandwidth` - インターネット帯域オプション * `local_bandwidth` - ローカルネットワーク帯域オプション
const ( ServiceOptionPlansOptionClassAdditionalNvmeStorage1 ServiceOptionPlansOptionClass = "additional_nvme_storage1" ServiceOptionPlansOptionClassAdditionalNvmeStorage2 ServiceOptionPlansOptionClass = "additional_nvme_storage2" ServiceOptionPlansOptionClassAdditionalStorage1 ServiceOptionPlansOptionClass = "additional_storage1" ServiceOptionPlansOptionClassAdditionalStorage2 ServiceOptionPlansOptionClass = "additional_storage2" ServiceOptionPlansOptionClassAdditionalStorage3 ServiceOptionPlansOptionClass = "additional_storage3" ServiceOptionPlansOptionClassGlobalBandwidth ServiceOptionPlansOptionClass = "global_bandwidth" ServiceOptionPlansOptionClassLocalBandwidth ServiceOptionPlansOptionClass = "local_bandwidth" ServiceOptionPlansOptionClassOs ServiceOptionPlansOptionClass = "os" ServiceOptionPlansOptionClassUpgradeMemory ServiceOptionPlansOptionClass = "upgrade_memory" ServiceOptionPlansOptionClassUpgradeStorage ServiceOptionPlansOptionClass = "upgrade_storage" )
Defines values for ServiceOptionPlansOptionClass.
type ServicePlan ¶
プラン情報(ローカルネットワークの場合は`null`)
type ServiceProductCategory ¶
type ServiceProductCategory string
サービスの種類
* `server` - サーバー * `dedicated_subnet` - 専用グローバルネットワーク * `private_network` - ローカルネットワーク * `firewall` - ファイアウォール * `load_balancer` - ロードバランサー
const ( ServiceProductCategoryDedicatedSubnet ServiceProductCategory = "dedicated_subnet" ServiceProductCategoryFirewall ServiceProductCategory = "firewall" ServiceProductCategoryLoadBalancer ServiceProductCategory = "load_balancer" ServiceProductCategoryPrivateNetwork ServiceProductCategory = "private_network" ServiceProductCategoryServer ServiceProductCategory = "server" )
Defines values for ServiceProductCategory.
type ServiceQuiet ¶
type ServiceQuiet struct { // 利用開始日時 Activated time.Time `json:"activated"` // メモ:サーバーやネットワークなどの説明 Description *string `json:"description"` // 名称:サーバーやネットワークなどの表示名 Nickname string `json:"nickname"` // サービスコード ServiceId string `json:"service_id"` Tags *[]Tag `json:"tags,omitempty"` }
サービス情報
type Services ¶
type Services struct { Meta PaginateMeta `json:"meta"` Services []Service `json:"services"` }
Services defines model for services.
type Storage ¶
type Storage struct { // ストレージ接続方式 // // * `sata` - SATA // * `sas` - SAS // * `nvme` - NVMe(PCIe) BusType StorageBusType `json:"bus_type"` // ストレージ構成物理デバイス数 DeviceCount int `json:"device_count"` // ストレージ記録方式 // // * `hdd` - 磁気HDD // * `ssd` - SSD // * `flash_memory` - Flash Memory(不揮発性メモリ) MediaType StorageMediaType `json:"media_type"` // ストレージ1つあたりの容量(GB) Size int `json:"size"` }
Storage defines model for storage.
type StorageBusType ¶
type StorageBusType string
ストレージ接続方式
* `sata` - SATA * `sas` - SAS * `nvme` - NVMe(PCIe)
const ( StorageBusTypeNvme StorageBusType = "nvme" StorageBusTypeSas StorageBusType = "sas" StorageBusTypeSata StorageBusType = "sata" )
Defines values for StorageBusType.
type StorageMediaType ¶
type StorageMediaType string
ストレージ記録方式
* `hdd` - 磁気HDD * `ssd` - SSD * `flash_memory` - Flash Memory(不揮発性メモリ)
const ( StorageMediaTypeFlashMemory StorageMediaType = "flash_memory" StorageMediaTypeHdd StorageMediaType = "hdd" StorageMediaTypeSsd StorageMediaType = "ssd" )
Defines values for StorageMediaType.
type Tag ¶
type Tag struct { // タグの色 Color *string `json:"color"` // タグの名称 Label string `json:"label"` // タグID TagId int `json:"tag_id"` }
Tag defines model for tag.
type TrafficGraph ¶
type TrafficGraph struct { // 受信方向トラフィック Receive []TrafficGraphData `json:"receive"` // 送信方向トラフィック Transmit []TrafficGraphData `json:"transmit"` }
TrafficGraph defines model for traffic_graph.
type TrafficGraphData ¶
type TrafficGraphData struct { // 取得時刻 Timestamp time.Time `json:"timestamp"` // 1つ前のデータからの平均トラフィック(bps) Value int `json:"value"` }
TrafficGraphData defines model for traffic_graph_data.
type UpdateServerPortJSONBody ¶
type UpdateServerPortJSONBody = UpdateServerPortParameter
UpdateServerPortJSONBody defines parameters for UpdateServerPort.
type UpdateServerPortJSONRequestBody ¶
type UpdateServerPortJSONRequestBody = UpdateServerPortJSONBody
UpdateServerPortJSONRequestBody defines body for UpdateServerPort for application/json ContentType.
type UpdateServerPortParameter ¶
type UpdateServerPortParameter struct { // ポート名称 Nickname string `json:"nickname"` }
UpdateServerPortParameter defines model for update_server_port_parameter.
type UpdateServerPortParams ¶
type UpdateServerPortParams struct { // CSRF防止用ヘッダー XRequestedWith UpdateServerPortParamsXRequestedWith `json:"X-Requested-With"` }
UpdateServerPortParams defines parameters for UpdateServerPort.
type UpdateServerPortParamsXRequestedWith ¶
type UpdateServerPortParamsXRequestedWith string
UpdateServerPortParamsXRequestedWith defines parameters for UpdateServerPort.
type UpdateServerPortResponse ¶
type UpdateServerPortResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyPort JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseUpdateServerPortResponse ¶
func ParseUpdateServerPortResponse(rsp *http.Response) (*UpdateServerPortResponse, error)
ParseUpdateServerPortResponse parses an HTTP response from a UpdateServerPortWithResponse call
func (UpdateServerPortResponse) Result ¶
func (r UpdateServerPortResponse) Result() (*ResponseBodyPort, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (UpdateServerPortResponse) Status ¶
func (r UpdateServerPortResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateServerPortResponse) StatusCode ¶
func (r UpdateServerPortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (UpdateServerPortResponse) UndefinedError ¶
func (r UpdateServerPortResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す
type UpdateServiceJSONBody ¶
type UpdateServiceJSONBody = UpdateServiceParameter
UpdateServiceJSONBody defines parameters for UpdateService.
type UpdateServiceJSONRequestBody ¶
type UpdateServiceJSONRequestBody = UpdateServiceJSONBody
UpdateServiceJSONRequestBody defines body for UpdateService for application/json ContentType.
type UpdateServiceParameter ¶
type UpdateServiceParameter struct { // メモ:サーバーやネットワークなどの説明 Description *string `json:"description"` // 名称:サーバーやネットワークなどの表示名 Nickname string `json:"nickname"` }
UpdateServiceParameter defines model for update_service_parameter.
type UpdateServiceParams ¶
type UpdateServiceParams struct { // CSRF防止用ヘッダー XRequestedWith UpdateServiceParamsXRequestedWith `json:"X-Requested-With"` }
UpdateServiceParams defines parameters for UpdateService.
type UpdateServiceParamsXRequestedWith ¶
type UpdateServiceParamsXRequestedWith string
UpdateServiceParamsXRequestedWith defines parameters for UpdateService.
type UpdateServiceResponse ¶
type UpdateServiceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResponseBodyService JSON400 *ProblemDetails400 JSON401 *ProblemDetails401 JSON404 *ProblemDetails404 JSON429 *ProblemDetails429 }
func ParseUpdateServiceResponse ¶
func ParseUpdateServiceResponse(rsp *http.Response) (*UpdateServiceResponse, error)
ParseUpdateServiceResponse parses an HTTP response from a UpdateServiceWithResponse call
func (UpdateServiceResponse) Result ¶
func (r UpdateServiceResponse) Result() (*ResponseBodyService, error)
Result JSON200の結果、もしくは発生したエラーのいずれかを返す
func (UpdateServiceResponse) Status ¶
func (r UpdateServiceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateServiceResponse) StatusCode ¶
func (r UpdateServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
func (UpdateServiceResponse) UndefinedError ¶
func (r UpdateServiceResponse) UndefinedError() error
UndefinedError API定義で未定義なエラーステータスコードを受け取った場合にエラーを返す