Skip to content

Commit

Permalink
fix return type for getVersions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sancyx committed Aug 28, 2019
1 parent 88f4ec6 commit 44c1148
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 94 deletions.
63 changes: 61 additions & 2 deletions api/openapi-spec/cloudinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,12 @@
],
"responses": {
"200": {
"description": "VersionsResponse",
"description": "LocationVersion",
"schema": {
"$ref": "#/definitions/VersionsResponse"
"type": "array",
"items": {
"$ref": "#/definitions/LocationVersion"
}
}
}
}
Expand All @@ -463,6 +466,19 @@
},
"x-go-package": "github.com/banzaicloud/cloudinfo/internal/app/cloudinfo/api"
},
"CloudInfo": {
"description": "CloudInfo is the main entry point for retrieving vm type characteristics and pricing information on different cloud providers",
"type": "object",
"properties": {
"GetContinents": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"Continent": {
"description": "Continent holds continent and regions of a cloud provider",
"type": "object",
Expand Down Expand Up @@ -669,6 +685,16 @@
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"NetworkPerfMapper": {
"description": "NetworkPerfMapper operations related to mapping between virtual machines to network performance categories",
"type": "object",
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"ProductDetailSource": {
"description": "ProductDetailSource product details related set of operations",
"type": "object",
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"ProductDetails": {
"description": "ProductDetails extended view of the virtual machine details",
"type": "object",
Expand Down Expand Up @@ -781,6 +807,17 @@
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"ProviderDescriber": {
"description": "ProviderDescriber describes a provider",
"type": "object",
"properties": {
"ProviderName": {
"description": "ProviderName returns the name of the provider",
"type": "string"
}
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"ProviderResponse": {
"description": "ProviderResponse is the response used for the requested provider",
"type": "object",
Expand Down Expand Up @@ -844,6 +881,17 @@
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"ServiceDescriber": {
"description": "ServiceDescriber represents a service; eg.: oke, eks\nExtend this interface with other operations if needed",
"type": "object",
"properties": {
"ServiceName": {
"description": "ServiceName abstracts the name assembly for the service",
"type": "string"
}
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"ServiceResponse": {
"description": "ServiceResponse holds the list of available services",
"type": "object",
Expand All @@ -868,6 +916,17 @@
},
"x-go-package": "github.com/banzaicloud/cloudinfo/internal/app/cloudinfo/api"
},
"Version": {
"description": "Version represents a version",
"type": "object",
"properties": {
"versions": {
"type": "string",
"x-go-name": "Version"
}
},
"x-go-package": "github.com/banzaicloud/cloudinfo/pkg/cloudinfo"
},
"VersionsResponse": {
"description": "VersionsResponse holds the list of available versions",
"type": "object",
Expand Down
Loading

0 comments on commit 44c1148

Please sign in to comment.