@daocloud-proto/hydra 0.1.0-dev-4 → 0.1.0-dev-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,6 @@ import * as HydraCommonCommon from "../../../common/common.pb"
|
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
9
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
10
|
export type CreateAPIKeyRequest = {
|
|
11
|
-
allowModels?: string[]
|
|
12
11
|
name?: string
|
|
13
12
|
}
|
|
14
13
|
|
|
@@ -21,7 +21,7 @@ export enum SKUPriceCurrency {
|
|
|
21
21
|
|
|
22
22
|
export enum ListSKURequestResourceType {
|
|
23
23
|
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
24
|
-
|
|
24
|
+
MODEL = "MODEL",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type Region = {
|
|
@@ -40,7 +40,7 @@ export type ListRegionResponse = {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export type GetRegionRequest = {
|
|
43
|
-
|
|
43
|
+
region?: string
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type SKU = {
|
|
@@ -70,7 +70,7 @@ export class SKUManagement {
|
|
|
70
70
|
return fm.fetchReq<ListRegionRequest, ListRegionResponse>(`/apis/hydra.io/v1alpha1/regions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
71
71
|
}
|
|
72
72
|
static GetRegion(req: GetRegionRequest, initReq?: fm.InitReq): Promise<Region> {
|
|
73
|
-
return fm.fetchReq<GetRegionRequest, Region>(`/apis/hydra.io/v1alpha1/regions/${req["
|
|
73
|
+
return fm.fetchReq<GetRegionRequest, Region>(`/apis/hydra.io/v1alpha1/regions/${req["region"]}?${fm.renderURLSearchParams(req, ["region"])}`, {...initReq, method: "GET"})
|
|
74
74
|
}
|
|
75
75
|
static ListSKUs(req: ListSKURequest, initReq?: fm.InitReq): Promise<ListSKUResponse> {
|
|
76
76
|
return fm.fetchReq<ListSKURequest, ListSKUResponse>(`/apis/hydra.io/v1alpha1/skus?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|