latitudesh-typescript-sdk 0.8.21 → 0.8.23
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.
- package/README.md +3 -1
- package/bin/mcp-server.js +32668 -38228
- package/bin/mcp-server.js.map +122 -208
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesMap.js +4 -2
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesMap.js.map +1 -1
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.d.ts +17 -0
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.js +122 -0
- package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.js.map +1 -0
- package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.d.ts +1 -1
- package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.js +1 -1
- package/dist/commonjs/funcs/serversList.js +14 -0
- package/dist/commonjs/funcs/serversList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js +64 -0
- package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/firewallsGetAllFirewallAssignments.js +1 -1
- package/dist/commonjs/mcp-server/tools/firewallsGetAllFirewallAssignments.js.map +1 -1
- package/dist/commonjs/models/operations/createfirewallassignment.d.ts +1 -1
- package/dist/commonjs/models/operations/getservers.d.ts +72 -2
- package/dist/commonjs/models/operations/getservers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getservers.js +56 -0
- package/dist/commonjs/models/operations/getservers.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/poststoragevolumesmap.d.ts +29 -29
- package/dist/commonjs/models/operations/poststoragevolumesmap.d.ts.map +1 -1
- package/dist/commonjs/models/operations/poststoragevolumesmap.js +36 -36
- package/dist/commonjs/models/operations/poststoragevolumesmap.js.map +1 -1
- package/dist/commonjs/models/operations/poststoragevolumesunmap.d.ts +48 -0
- package/dist/commonjs/models/operations/poststoragevolumesunmap.d.ts.map +1 -0
- package/dist/commonjs/models/operations/poststoragevolumesunmap.js +89 -0
- package/dist/commonjs/models/operations/poststoragevolumesunmap.js.map +1 -0
- package/dist/commonjs/models/serverregionresourcedata.d.ts +2 -0
- package/dist/commonjs/models/serverregionresourcedata.d.ts.map +1 -1
- package/dist/commonjs/models/serverregionresourcedata.js +4 -0
- package/dist/commonjs/models/serverregionresourcedata.js.map +1 -1
- package/dist/commonjs/models/volumedata.d.ts +1 -1
- package/dist/commonjs/sdk/blockstorage.d.ts +7 -0
- package/dist/commonjs/sdk/blockstorage.d.ts.map +1 -1
- package/dist/commonjs/sdk/blockstorage.js +10 -0
- package/dist/commonjs/sdk/blockstorage.js.map +1 -1
- package/dist/commonjs/sdk/firewalls.d.ts +1 -1
- package/dist/commonjs/sdk/firewalls.js +1 -1
- package/dist/esm/funcs/blockStoragePostStorageVolumesMap.js +4 -2
- package/dist/esm/funcs/blockStoragePostStorageVolumesMap.js.map +1 -1
- package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.d.ts +17 -0
- package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
- package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.js +86 -0
- package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.js.map +1 -0
- package/dist/esm/funcs/firewallsGetAllFirewallAssignments.d.ts +1 -1
- package/dist/esm/funcs/firewallsGetAllFirewallAssignments.js +1 -1
- package/dist/esm/funcs/serversList.js +14 -0
- package/dist/esm/funcs/serversList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts +8 -0
- package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js +28 -0
- package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js.map +1 -0
- package/dist/esm/mcp-server/tools/firewallsGetAllFirewallAssignments.js +1 -1
- package/dist/esm/mcp-server/tools/firewallsGetAllFirewallAssignments.js.map +1 -1
- package/dist/esm/models/operations/createfirewallassignment.d.ts +1 -1
- package/dist/esm/models/operations/getservers.d.ts +72 -2
- package/dist/esm/models/operations/getservers.d.ts.map +1 -1
- package/dist/esm/models/operations/getservers.js +56 -0
- package/dist/esm/models/operations/getservers.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/poststoragevolumesmap.d.ts +29 -29
- package/dist/esm/models/operations/poststoragevolumesmap.d.ts.map +1 -1
- package/dist/esm/models/operations/poststoragevolumesmap.js +29 -29
- package/dist/esm/models/operations/poststoragevolumesmap.js.map +1 -1
- package/dist/esm/models/operations/poststoragevolumesunmap.d.ts +48 -0
- package/dist/esm/models/operations/poststoragevolumesunmap.d.ts.map +1 -0
- package/dist/esm/models/operations/poststoragevolumesunmap.js +47 -0
- package/dist/esm/models/operations/poststoragevolumesunmap.js.map +1 -0
- package/dist/esm/models/serverregionresourcedata.d.ts +2 -0
- package/dist/esm/models/serverregionresourcedata.d.ts.map +1 -1
- package/dist/esm/models/serverregionresourcedata.js +4 -0
- package/dist/esm/models/serverregionresourcedata.js.map +1 -1
- package/dist/esm/models/volumedata.d.ts +1 -1
- package/dist/esm/sdk/blockstorage.d.ts +7 -0
- package/dist/esm/sdk/blockstorage.d.ts.map +1 -1
- package/dist/esm/sdk/blockstorage.js +10 -0
- package/dist/esm/sdk/blockstorage.js.map +1 -1
- package/dist/esm/sdk/firewalls.d.ts +1 -1
- package/dist/esm/sdk/firewalls.js +1 -1
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/src/funcs/blockStoragePostStorageVolumesMap.ts +4 -2
- package/src/funcs/blockStoragePostStorageVolumesUnmap.ts +170 -0
- package/src/funcs/firewallsGetAllFirewallAssignments.ts +1 -1
- package/src/funcs/serversList.ts +14 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/blockStoragePostStorageVolumesUnmap.ts +39 -0
- package/src/mcp-server/tools/firewallsGetAllFirewallAssignments.ts +1 -1
- package/src/models/operations/createfirewallassignment.ts +1 -1
- package/src/models/operations/getservers.ts +128 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/poststoragevolumesmap.ts +68 -68
- package/src/models/operations/poststoragevolumesunmap.ts +146 -0
- package/src/models/serverregionresourcedata.ts +6 -0
- package/src/models/volumedata.ts +1 -1
- package/src/sdk/blockstorage.ts +18 -0
- package/src/sdk/firewalls.ts +1 -1
|
@@ -10,27 +10,27 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
import * as models from "../index.js";
|
|
12
12
|
|
|
13
|
-
export const
|
|
13
|
+
export const PostStorageVolumesMapType2 = {
|
|
14
14
|
Volumes: "volumes",
|
|
15
15
|
} as const;
|
|
16
|
-
export type
|
|
17
|
-
typeof
|
|
16
|
+
export type PostStorageVolumesMapType2 = ClosedEnum<
|
|
17
|
+
typeof PostStorageVolumesMapType2
|
|
18
18
|
>;
|
|
19
19
|
|
|
20
|
-
export type
|
|
20
|
+
export type PostStorageVolumesMapAttributes2 = {
|
|
21
21
|
/**
|
|
22
22
|
* ID of the server that will access the volume. The server must belong to the same project and location as the volume, and must be eligible for bonding.
|
|
23
23
|
*/
|
|
24
24
|
serverId: string;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export type
|
|
28
|
-
type:
|
|
29
|
-
attributes:
|
|
27
|
+
export type PostStorageVolumesMapData2 = {
|
|
28
|
+
type: PostStorageVolumesMapType2;
|
|
29
|
+
attributes: PostStorageVolumesMapAttributes2;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export type
|
|
33
|
-
data:
|
|
32
|
+
export type PostStorageVolumesMapRequestBody2 = {
|
|
33
|
+
data: PostStorageVolumesMapData2;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export type PostStorageVolumesMapRequest = {
|
|
@@ -38,7 +38,7 @@ export type PostStorageVolumesMapRequest = {
|
|
|
38
38
|
* Volume ID
|
|
39
39
|
*/
|
|
40
40
|
id: string;
|
|
41
|
-
requestBody:
|
|
41
|
+
requestBody: PostStorageVolumesMapRequestBody2;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export type PostStorageVolumesMapMeta = {};
|
|
@@ -52,17 +52,17 @@ export type PostStorageVolumesMapResponse = {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
55
|
-
export const
|
|
56
|
-
typeof
|
|
57
|
-
> = z.nativeEnum(
|
|
55
|
+
export const PostStorageVolumesMapType2$inboundSchema: z.ZodNativeEnum<
|
|
56
|
+
typeof PostStorageVolumesMapType2
|
|
57
|
+
> = z.nativeEnum(PostStorageVolumesMapType2);
|
|
58
58
|
/** @internal */
|
|
59
|
-
export const
|
|
60
|
-
typeof
|
|
61
|
-
> =
|
|
59
|
+
export const PostStorageVolumesMapType2$outboundSchema: z.ZodNativeEnum<
|
|
60
|
+
typeof PostStorageVolumesMapType2
|
|
61
|
+
> = PostStorageVolumesMapType2$inboundSchema;
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
64
|
-
export const
|
|
65
|
-
|
|
64
|
+
export const PostStorageVolumesMapAttributes2$inboundSchema: z.ZodType<
|
|
65
|
+
PostStorageVolumesMapAttributes2,
|
|
66
66
|
z.ZodTypeDef,
|
|
67
67
|
unknown
|
|
68
68
|
> = z.object({
|
|
@@ -73,15 +73,15 @@ export const PostStorageVolumesMapAttributes$inboundSchema: z.ZodType<
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
/** @internal */
|
|
76
|
-
export type
|
|
76
|
+
export type PostStorageVolumesMapAttributes2$Outbound = {
|
|
77
77
|
server_id: string;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** @internal */
|
|
81
|
-
export const
|
|
82
|
-
|
|
81
|
+
export const PostStorageVolumesMapAttributes2$outboundSchema: z.ZodType<
|
|
82
|
+
PostStorageVolumesMapAttributes2$Outbound,
|
|
83
83
|
z.ZodTypeDef,
|
|
84
|
-
|
|
84
|
+
PostStorageVolumesMapAttributes2
|
|
85
85
|
> = z.object({
|
|
86
86
|
serverId: z.string(),
|
|
87
87
|
}).transform((v) => {
|
|
@@ -90,105 +90,105 @@ export const PostStorageVolumesMapAttributes$outboundSchema: z.ZodType<
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
export function
|
|
94
|
-
|
|
93
|
+
export function postStorageVolumesMapAttributes2ToJSON(
|
|
94
|
+
postStorageVolumesMapAttributes2: PostStorageVolumesMapAttributes2,
|
|
95
95
|
): string {
|
|
96
96
|
return JSON.stringify(
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
PostStorageVolumesMapAttributes2$outboundSchema.parse(
|
|
98
|
+
postStorageVolumesMapAttributes2,
|
|
99
99
|
),
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
|
-
export function
|
|
102
|
+
export function postStorageVolumesMapAttributes2FromJSON(
|
|
103
103
|
jsonString: string,
|
|
104
|
-
): SafeParseResult<
|
|
104
|
+
): SafeParseResult<PostStorageVolumesMapAttributes2, SDKValidationError> {
|
|
105
105
|
return safeParse(
|
|
106
106
|
jsonString,
|
|
107
|
-
(x) =>
|
|
108
|
-
`Failed to parse '
|
|
107
|
+
(x) => PostStorageVolumesMapAttributes2$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'PostStorageVolumesMapAttributes2' from JSON`,
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/** @internal */
|
|
113
|
-
export const
|
|
114
|
-
|
|
113
|
+
export const PostStorageVolumesMapData2$inboundSchema: z.ZodType<
|
|
114
|
+
PostStorageVolumesMapData2,
|
|
115
115
|
z.ZodTypeDef,
|
|
116
116
|
unknown
|
|
117
117
|
> = z.object({
|
|
118
|
-
type:
|
|
119
|
-
attributes: z.lazy(() =>
|
|
118
|
+
type: PostStorageVolumesMapType2$inboundSchema,
|
|
119
|
+
attributes: z.lazy(() => PostStorageVolumesMapAttributes2$inboundSchema),
|
|
120
120
|
});
|
|
121
121
|
/** @internal */
|
|
122
|
-
export type
|
|
122
|
+
export type PostStorageVolumesMapData2$Outbound = {
|
|
123
123
|
type: string;
|
|
124
|
-
attributes:
|
|
124
|
+
attributes: PostStorageVolumesMapAttributes2$Outbound;
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
/** @internal */
|
|
128
|
-
export const
|
|
129
|
-
|
|
128
|
+
export const PostStorageVolumesMapData2$outboundSchema: z.ZodType<
|
|
129
|
+
PostStorageVolumesMapData2$Outbound,
|
|
130
130
|
z.ZodTypeDef,
|
|
131
|
-
|
|
131
|
+
PostStorageVolumesMapData2
|
|
132
132
|
> = z.object({
|
|
133
|
-
type:
|
|
134
|
-
attributes: z.lazy(() =>
|
|
133
|
+
type: PostStorageVolumesMapType2$outboundSchema,
|
|
134
|
+
attributes: z.lazy(() => PostStorageVolumesMapAttributes2$outboundSchema),
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
export function
|
|
138
|
-
|
|
137
|
+
export function postStorageVolumesMapData2ToJSON(
|
|
138
|
+
postStorageVolumesMapData2: PostStorageVolumesMapData2,
|
|
139
139
|
): string {
|
|
140
140
|
return JSON.stringify(
|
|
141
|
-
|
|
141
|
+
PostStorageVolumesMapData2$outboundSchema.parse(postStorageVolumesMapData2),
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
export function
|
|
144
|
+
export function postStorageVolumesMapData2FromJSON(
|
|
145
145
|
jsonString: string,
|
|
146
|
-
): SafeParseResult<
|
|
146
|
+
): SafeParseResult<PostStorageVolumesMapData2, SDKValidationError> {
|
|
147
147
|
return safeParse(
|
|
148
148
|
jsonString,
|
|
149
|
-
(x) =>
|
|
150
|
-
`Failed to parse '
|
|
149
|
+
(x) => PostStorageVolumesMapData2$inboundSchema.parse(JSON.parse(x)),
|
|
150
|
+
`Failed to parse 'PostStorageVolumesMapData2' from JSON`,
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/** @internal */
|
|
155
|
-
export const
|
|
156
|
-
|
|
155
|
+
export const PostStorageVolumesMapRequestBody2$inboundSchema: z.ZodType<
|
|
156
|
+
PostStorageVolumesMapRequestBody2,
|
|
157
157
|
z.ZodTypeDef,
|
|
158
158
|
unknown
|
|
159
159
|
> = z.object({
|
|
160
|
-
data: z.lazy(() =>
|
|
160
|
+
data: z.lazy(() => PostStorageVolumesMapData2$inboundSchema),
|
|
161
161
|
});
|
|
162
162
|
/** @internal */
|
|
163
|
-
export type
|
|
164
|
-
data:
|
|
163
|
+
export type PostStorageVolumesMapRequestBody2$Outbound = {
|
|
164
|
+
data: PostStorageVolumesMapData2$Outbound;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
/** @internal */
|
|
168
|
-
export const
|
|
169
|
-
|
|
168
|
+
export const PostStorageVolumesMapRequestBody2$outboundSchema: z.ZodType<
|
|
169
|
+
PostStorageVolumesMapRequestBody2$Outbound,
|
|
170
170
|
z.ZodTypeDef,
|
|
171
|
-
|
|
171
|
+
PostStorageVolumesMapRequestBody2
|
|
172
172
|
> = z.object({
|
|
173
|
-
data: z.lazy(() =>
|
|
173
|
+
data: z.lazy(() => PostStorageVolumesMapData2$outboundSchema),
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
export function
|
|
177
|
-
|
|
176
|
+
export function postStorageVolumesMapRequestBody2ToJSON(
|
|
177
|
+
postStorageVolumesMapRequestBody2: PostStorageVolumesMapRequestBody2,
|
|
178
178
|
): string {
|
|
179
179
|
return JSON.stringify(
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
PostStorageVolumesMapRequestBody2$outboundSchema.parse(
|
|
181
|
+
postStorageVolumesMapRequestBody2,
|
|
182
182
|
),
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
|
-
export function
|
|
185
|
+
export function postStorageVolumesMapRequestBody2FromJSON(
|
|
186
186
|
jsonString: string,
|
|
187
|
-
): SafeParseResult<
|
|
187
|
+
): SafeParseResult<PostStorageVolumesMapRequestBody2, SDKValidationError> {
|
|
188
188
|
return safeParse(
|
|
189
189
|
jsonString,
|
|
190
|
-
(x) =>
|
|
191
|
-
`Failed to parse '
|
|
190
|
+
(x) => PostStorageVolumesMapRequestBody2$inboundSchema.parse(JSON.parse(x)),
|
|
191
|
+
`Failed to parse 'PostStorageVolumesMapRequestBody2' from JSON`,
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -199,7 +199,7 @@ export const PostStorageVolumesMapRequest$inboundSchema: z.ZodType<
|
|
|
199
199
|
unknown
|
|
200
200
|
> = z.object({
|
|
201
201
|
id: z.string(),
|
|
202
|
-
RequestBody: z.lazy(() =>
|
|
202
|
+
RequestBody: z.lazy(() => PostStorageVolumesMapRequestBody2$inboundSchema),
|
|
203
203
|
}).transform((v) => {
|
|
204
204
|
return remap$(v, {
|
|
205
205
|
"RequestBody": "requestBody",
|
|
@@ -208,7 +208,7 @@ export const PostStorageVolumesMapRequest$inboundSchema: z.ZodType<
|
|
|
208
208
|
/** @internal */
|
|
209
209
|
export type PostStorageVolumesMapRequest$Outbound = {
|
|
210
210
|
id: string;
|
|
211
|
-
RequestBody:
|
|
211
|
+
RequestBody: PostStorageVolumesMapRequestBody2$Outbound;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
/** @internal */
|
|
@@ -218,7 +218,7 @@ export const PostStorageVolumesMapRequest$outboundSchema: z.ZodType<
|
|
|
218
218
|
PostStorageVolumesMapRequest
|
|
219
219
|
> = z.object({
|
|
220
220
|
id: z.string(),
|
|
221
|
-
requestBody: z.lazy(() =>
|
|
221
|
+
requestBody: z.lazy(() => PostStorageVolumesMapRequestBody2$outboundSchema),
|
|
222
222
|
}).transform((v) => {
|
|
223
223
|
return remap$(v, {
|
|
224
224
|
requestBody: "RequestBody",
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import * as models from "../index.js";
|
|
10
|
+
|
|
11
|
+
export type PostStorageVolumesUnmapRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* Volume ID
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type PostStorageVolumesUnmapMeta = {};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Accepted
|
|
22
|
+
*/
|
|
23
|
+
export type PostStorageVolumesUnmapResponse = {
|
|
24
|
+
data?: models.VolumeData | undefined;
|
|
25
|
+
meta?: PostStorageVolumesUnmapMeta | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PostStorageVolumesUnmapRequest$inboundSchema: z.ZodType<
|
|
30
|
+
PostStorageVolumesUnmapRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type PostStorageVolumesUnmapRequest$Outbound = {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const PostStorageVolumesUnmapRequest$outboundSchema: z.ZodType<
|
|
43
|
+
PostStorageVolumesUnmapRequest$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
PostStorageVolumesUnmapRequest
|
|
46
|
+
> = z.object({
|
|
47
|
+
id: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function postStorageVolumesUnmapRequestToJSON(
|
|
51
|
+
postStorageVolumesUnmapRequest: PostStorageVolumesUnmapRequest,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
PostStorageVolumesUnmapRequest$outboundSchema.parse(
|
|
55
|
+
postStorageVolumesUnmapRequest,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function postStorageVolumesUnmapRequestFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<PostStorageVolumesUnmapRequest, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => PostStorageVolumesUnmapRequest$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'PostStorageVolumesUnmapRequest' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const PostStorageVolumesUnmapMeta$inboundSchema: z.ZodType<
|
|
71
|
+
PostStorageVolumesUnmapMeta,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
unknown
|
|
74
|
+
> = z.object({});
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type PostStorageVolumesUnmapMeta$Outbound = {};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const PostStorageVolumesUnmapMeta$outboundSchema: z.ZodType<
|
|
80
|
+
PostStorageVolumesUnmapMeta$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
PostStorageVolumesUnmapMeta
|
|
83
|
+
> = z.object({});
|
|
84
|
+
|
|
85
|
+
export function postStorageVolumesUnmapMetaToJSON(
|
|
86
|
+
postStorageVolumesUnmapMeta: PostStorageVolumesUnmapMeta,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
PostStorageVolumesUnmapMeta$outboundSchema.parse(
|
|
90
|
+
postStorageVolumesUnmapMeta,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
export function postStorageVolumesUnmapMetaFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<PostStorageVolumesUnmapMeta, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => PostStorageVolumesUnmapMeta$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'PostStorageVolumesUnmapMeta' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const PostStorageVolumesUnmapResponse$inboundSchema: z.ZodType<
|
|
106
|
+
PostStorageVolumesUnmapResponse,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.object({
|
|
110
|
+
data: models.VolumeData$inboundSchema.optional(),
|
|
111
|
+
meta: z.lazy(() => PostStorageVolumesUnmapMeta$inboundSchema).optional(),
|
|
112
|
+
});
|
|
113
|
+
/** @internal */
|
|
114
|
+
export type PostStorageVolumesUnmapResponse$Outbound = {
|
|
115
|
+
data?: models.VolumeData$Outbound | undefined;
|
|
116
|
+
meta?: PostStorageVolumesUnmapMeta$Outbound | undefined;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const PostStorageVolumesUnmapResponse$outboundSchema: z.ZodType<
|
|
121
|
+
PostStorageVolumesUnmapResponse$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
PostStorageVolumesUnmapResponse
|
|
124
|
+
> = z.object({
|
|
125
|
+
data: models.VolumeData$outboundSchema.optional(),
|
|
126
|
+
meta: z.lazy(() => PostStorageVolumesUnmapMeta$outboundSchema).optional(),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export function postStorageVolumesUnmapResponseToJSON(
|
|
130
|
+
postStorageVolumesUnmapResponse: PostStorageVolumesUnmapResponse,
|
|
131
|
+
): string {
|
|
132
|
+
return JSON.stringify(
|
|
133
|
+
PostStorageVolumesUnmapResponse$outboundSchema.parse(
|
|
134
|
+
postStorageVolumesUnmapResponse,
|
|
135
|
+
),
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
export function postStorageVolumesUnmapResponseFromJSON(
|
|
139
|
+
jsonString: string,
|
|
140
|
+
): SafeParseResult<PostStorageVolumesUnmapResponse, SDKValidationError> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) => PostStorageVolumesUnmapResponse$inboundSchema.parse(JSON.parse(x)),
|
|
144
|
+
`Failed to parse 'PostStorageVolumesUnmapResponse' from JSON`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -14,6 +14,7 @@ export type ServerRegionResourceDataSite = {
|
|
|
14
14
|
slug?: string | undefined;
|
|
15
15
|
facility?: string | undefined;
|
|
16
16
|
rackId?: string | undefined;
|
|
17
|
+
rackName?: string | null | undefined;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export type ServerRegionResourceData = {
|
|
@@ -33,9 +34,11 @@ export const ServerRegionResourceDataSite$inboundSchema: z.ZodType<
|
|
|
33
34
|
slug: z.string().optional(),
|
|
34
35
|
facility: z.string().optional(),
|
|
35
36
|
rack_id: z.string().optional(),
|
|
37
|
+
rack_name: z.nullable(z.string()).optional(),
|
|
36
38
|
}).transform((v) => {
|
|
37
39
|
return remap$(v, {
|
|
38
40
|
"rack_id": "rackId",
|
|
41
|
+
"rack_name": "rackName",
|
|
39
42
|
});
|
|
40
43
|
});
|
|
41
44
|
/** @internal */
|
|
@@ -45,6 +48,7 @@ export type ServerRegionResourceDataSite$Outbound = {
|
|
|
45
48
|
slug?: string | undefined;
|
|
46
49
|
facility?: string | undefined;
|
|
47
50
|
rack_id?: string | undefined;
|
|
51
|
+
rack_name?: string | null | undefined;
|
|
48
52
|
};
|
|
49
53
|
|
|
50
54
|
/** @internal */
|
|
@@ -58,9 +62,11 @@ export const ServerRegionResourceDataSite$outboundSchema: z.ZodType<
|
|
|
58
62
|
slug: z.string().optional(),
|
|
59
63
|
facility: z.string().optional(),
|
|
60
64
|
rackId: z.string().optional(),
|
|
65
|
+
rackName: z.nullable(z.string()).optional(),
|
|
61
66
|
}).transform((v) => {
|
|
62
67
|
return remap$(v, {
|
|
63
68
|
rackId: "rack_id",
|
|
69
|
+
rackName: "rack_name",
|
|
64
70
|
});
|
|
65
71
|
});
|
|
66
72
|
|
package/src/models/volumedata.ts
CHANGED
|
@@ -35,7 +35,7 @@ export type Initiator = {
|
|
|
35
35
|
*/
|
|
36
36
|
export type Block = {
|
|
37
37
|
/**
|
|
38
|
-
* Mapping lifecycle state: "mapping" while the mapping is being applied, "mapped" once the server can access the volume, or "failed". Mapping
|
|
38
|
+
* Mapping lifecycle state: "mapping" while the mapping is being applied, "mapped" once the server can access the volume, "unmapping" while the mapping is being removed, or "failed". Mapping and unmapping are asynchronous, so poll the volume until this reaches a terminal state. The block object becomes null once the volume is fully unmapped.
|
|
39
39
|
*/
|
|
40
40
|
status?: string | null | undefined;
|
|
41
41
|
/**
|
package/src/sdk/blockstorage.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { blockStorageGetStorageVolumes } from "../funcs/blockStorageGetStorageVo
|
|
|
8
8
|
import { blockStoragePostStorageVolumes } from "../funcs/blockStoragePostStorageVolumes.js";
|
|
9
9
|
import { blockStoragePostStorageVolumesMap } from "../funcs/blockStoragePostStorageVolumesMap.js";
|
|
10
10
|
import { blockStoragePostStorageVolumesMount } from "../funcs/blockStoragePostStorageVolumesMount.js";
|
|
11
|
+
import { blockStoragePostStorageVolumesUnmap } from "../funcs/blockStoragePostStorageVolumesUnmap.js";
|
|
11
12
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
13
|
import * as operations from "../models/operations/index.js";
|
|
13
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -114,4 +115,21 @@ export class BlockStorage extends ClientSDK {
|
|
|
114
115
|
options,
|
|
115
116
|
));
|
|
116
117
|
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Unmap volume from server
|
|
121
|
+
*
|
|
122
|
+
* @remarks
|
|
123
|
+
* Unmaps a high performance volume from the server it is currently mapped to.
|
|
124
|
+
*/
|
|
125
|
+
async postStorageVolumesUnmap(
|
|
126
|
+
request: operations.PostStorageVolumesUnmapRequest,
|
|
127
|
+
options?: RequestOptions,
|
|
128
|
+
): Promise<operations.PostStorageVolumesUnmapResponse> {
|
|
129
|
+
return unwrapAsync(blockStoragePostStorageVolumesUnmap(
|
|
130
|
+
this,
|
|
131
|
+
request,
|
|
132
|
+
options,
|
|
133
|
+
));
|
|
134
|
+
}
|
|
117
135
|
}
|
package/src/sdk/firewalls.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class Firewalls extends ClientSDK {
|
|
|
27
27
|
* List firewall assignments
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Returns a list of all servers and virtual machines assigned to
|
|
30
|
+
* Returns a list of all servers and virtual machines assigned to a firewall.
|
|
31
31
|
*/
|
|
32
32
|
async getAllFirewallAssignments(
|
|
33
33
|
request?: operations.GetAllFirewallAssignmentsRequest | undefined,
|