@fi-ts/api 0.0.0-pr.30.f975ddc2 → 0.0.0-pr.32.a1e64cb5

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.
@@ -58,6 +58,24 @@ export type VLAN = Message<"fits.api.mvm.v1.VLAN"> & {
58
58
  * Use `create(VLANSchema)` to create a new message.
59
59
  */
60
60
  export declare const VLANSchema: GenMessage<VLAN>;
61
+ /**
62
+ * VLANQuery contains fields which can be specified to list specific VLANs.
63
+ *
64
+ * @generated from message fits.api.mvm.v1.VLANQuery
65
+ */
66
+ export type VLANQuery = Message<"fits.api.mvm.v1.VLANQuery"> & {
67
+ /**
68
+ * Filter the listed VLANs by the Windows domain they are associated with.
69
+ *
70
+ * @generated from field: optional string domain_uuid = 1;
71
+ */
72
+ domainUuid?: string | undefined;
73
+ };
74
+ /**
75
+ * Describes the message fits.api.mvm.v1.VLANQuery.
76
+ * Use `create(VLANQuerySchema)` to create a new message.
77
+ */
78
+ export declare const VLANQuerySchema: GenMessage<VLANQuery>;
61
79
  /**
62
80
  * VLANServiceListRequest is the request payload for a VLAN list request.
63
81
  *
@@ -77,11 +95,11 @@ export type VLANServiceListRequest = Message<"fits.api.mvm.v1.VLANServiceListReq
77
95
  */
78
96
  locationUuid: string;
79
97
  /**
80
- * Filter the listed VLANs by the Windows domain they are associated with.
98
+ * Query to list one or more VLANs.
81
99
  *
82
- * @generated from field: optional string domain_uuid = 3;
100
+ * @generated from field: fits.api.mvm.v1.VLANQuery query = 3;
83
101
  */
84
- domainUuid?: string | undefined;
102
+ query?: VLANQuery | undefined;
85
103
  };
86
104
  /**
87
105
  * Describes the message fits.api.mvm.v1.VLANServiceListRequest.
@@ -8,22 +8,27 @@ import { file_fits_api_v1_predefined_rules } from "../../v1/predefined_rules_pb.
8
8
  /**
9
9
  * Describes the file fits/api/mvm/v1/vlan.proto.
10
10
  */
11
- export const file_fits_api_mvm_v1_vlan = /*@__PURE__*/ fileDesc("ChpmaXRzL2FwaS9tdm0vdjEvdmxhbi5wcm90bxIPZml0cy5hcGkubXZtLnYxIuYBCgRWTEFOEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEg8KB3ZsYW5faWQYAiABKAUSIQoMc3VibmV0X3RpdGxlGAMgASgJQgu6SAhyBsCzrrECARIgCgtzdWJuZXRfY2lkchgEIAEoCUILukgIcgaAtK6xAgESHwoNbG9jYXRpb25fdXVpZBgFIAEoCUIIukgFcgOwAQESGwoGdGVuYW50GAYgASgJQgu6SAhyBsCzrrECARIiCgtkb21haW5fdXVpZBgHIAEoCUIIukgFcgOwAQFIAIgBAUIOCgxfZG9tYWluX3V1aWQiigEKFlZMQU5TZXJ2aWNlTGlzdFJlcXVlc3QSGwoGdGVuYW50GAEgASgJQgu6SAhyBsCzrrECARIfCg1sb2NhdGlvbl91dWlkGAIgASgJQgi6SAVyA7ABARIiCgtkb21haW5fdXVpZBgDIAEoCUIIukgFcgOwAQFIAIgBAUIOCgxfZG9tYWluX3V1aWQiPwoXVkxBTlNlcnZpY2VMaXN0UmVzcG9uc2USJAoFdmxhbnMYASADKAsyFS5maXRzLmFwaS5tdm0udjEuVkxBTjJ1CgtWTEFOU2VydmljZRJmCgRMaXN0EicuZml0cy5hcGkubXZtLnYxLlZMQU5TZXJ2aWNlTGlzdFJlcXVlc3QaKC5maXRzLmFwaS5tdm0udjEuVkxBTlNlcnZpY2VMaXN0UmVzcG9uc2UiC8LzGAMBAgPg8xgCQq4BChNjb20uZml0cy5hcGkubXZtLnYxQglWbGFuUHJvdG9QAVotZ2l0aHViLmNvbS9maS10cy9hcGkvZ28vZml0cy9hcGkvbXZtL3YxO212bXYxogIDRkFNqgIPRml0cy5BcGkuTXZtLlYxygIPRml0c1xBcGlcTXZtXFYx4gIbRml0c1xBcGlcTXZtXFYxXEdQQk1ldGFkYXRh6gISRml0czo6QXBpOjpNdm06OlYxYgZwcm90bzM", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules]);
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aVxNdm1cVjHiAhtGaXRzXEFwaVxNdm1cVjFcR1BCTWV0YWRhdGHqAhJGaXRzOjpBcGk6Ok12bTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules]);
12
12
  /**
13
13
  * Describes the message fits.api.mvm.v1.VLAN.
14
14
  * Use `create(VLANSchema)` to create a new message.
15
15
  */
16
16
  export const VLANSchema = /*@__PURE__*/ messageDesc(file_fits_api_mvm_v1_vlan, 0);
17
+ /**
18
+ * Describes the message fits.api.mvm.v1.VLANQuery.
19
+ * Use `create(VLANQuerySchema)` to create a new message.
20
+ */
21
+ export const VLANQuerySchema = /*@__PURE__*/ messageDesc(file_fits_api_mvm_v1_vlan, 1);
17
22
  /**
18
23
  * Describes the message fits.api.mvm.v1.VLANServiceListRequest.
19
24
  * Use `create(VLANServiceListRequestSchema)` to create a new message.
20
25
  */
21
- export const VLANServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_mvm_v1_vlan, 1);
26
+ export const VLANServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_mvm_v1_vlan, 2);
22
27
  /**
23
28
  * Describes the message fits.api.mvm.v1.VLANServiceListResponse.
24
29
  * Use `create(VLANServiceListResponseSchema)` to create a new message.
25
30
  */
26
- export const VLANServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_mvm_v1_vlan, 2);
31
+ export const VLANServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_mvm_v1_vlan, 3);
27
32
  /**
28
33
  * VLANService lists VLANs available for managed VM (MVM) instances.
29
34
  *
@@ -13,7 +13,7 @@ import type { Message } from "@bufbuild/protobuf";
13
13
  * Describes the file fits/api/mvm/v1/vlan.proto.
14
14
  */
15
15
  export const file_fits_api_mvm_v1_vlan: GenFile = /*@__PURE__*/
16
- fileDesc("ChpmaXRzL2FwaS9tdm0vdjEvdmxhbi5wcm90bxIPZml0cy5hcGkubXZtLnYxIuYBCgRWTEFOEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEg8KB3ZsYW5faWQYAiABKAUSIQoMc3VibmV0X3RpdGxlGAMgASgJQgu6SAhyBsCzrrECARIgCgtzdWJuZXRfY2lkchgEIAEoCUILukgIcgaAtK6xAgESHwoNbG9jYXRpb25fdXVpZBgFIAEoCUIIukgFcgOwAQESGwoGdGVuYW50GAYgASgJQgu6SAhyBsCzrrECARIiCgtkb21haW5fdXVpZBgHIAEoCUIIukgFcgOwAQFIAIgBAUIOCgxfZG9tYWluX3V1aWQiigEKFlZMQU5TZXJ2aWNlTGlzdFJlcXVlc3QSGwoGdGVuYW50GAEgASgJQgu6SAhyBsCzrrECARIfCg1sb2NhdGlvbl91dWlkGAIgASgJQgi6SAVyA7ABARIiCgtkb21haW5fdXVpZBgDIAEoCUIIukgFcgOwAQFIAIgBAUIOCgxfZG9tYWluX3V1aWQiPwoXVkxBTlNlcnZpY2VMaXN0UmVzcG9uc2USJAoFdmxhbnMYASADKAsyFS5maXRzLmFwaS5tdm0udjEuVkxBTjJ1CgtWTEFOU2VydmljZRJmCgRMaXN0EicuZml0cy5hcGkubXZtLnYxLlZMQU5TZXJ2aWNlTGlzdFJlcXVlc3QaKC5maXRzLmFwaS5tdm0udjEuVkxBTlNlcnZpY2VMaXN0UmVzcG9uc2UiC8LzGAMBAgPg8xgCQq4BChNjb20uZml0cy5hcGkubXZtLnYxQglWbGFuUHJvdG9QAVotZ2l0aHViLmNvbS9maS10cy9hcGkvZ28vZml0cy9hcGkvbXZtL3YxO212bXYxogIDRkFNqgIPRml0cy5BcGkuTXZtLlYxygIPRml0c1xBcGlcTXZtXFYx4gIbRml0c1xBcGlcTXZtXFYxXEdQQk1ldGFkYXRh6gISRml0czo6QXBpOjpNdm06OlYxYgZwcm90bzM", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules]);
16
+ fileDesc("ChpmaXRzL2FwaS9tdm0vdjEvdmxhbi5wcm90bxIPZml0cy5hcGkubXZtLnYx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_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules]);
17
17
 
18
18
  /**
19
19
  * VLAN is a VLAN that a MVM can be connected to.
@@ -78,6 +78,27 @@ export type VLAN = Message<"fits.api.mvm.v1.VLAN"> & {
78
78
  export const VLANSchema: GenMessage<VLAN> = /*@__PURE__*/
79
79
  messageDesc(file_fits_api_mvm_v1_vlan, 0);
80
80
 
81
+ /**
82
+ * VLANQuery contains fields which can be specified to list specific VLANs.
83
+ *
84
+ * @generated from message fits.api.mvm.v1.VLANQuery
85
+ */
86
+ export type VLANQuery = Message<"fits.api.mvm.v1.VLANQuery"> & {
87
+ /**
88
+ * Filter the listed VLANs by the Windows domain they are associated with.
89
+ *
90
+ * @generated from field: optional string domain_uuid = 1;
91
+ */
92
+ domainUuid?: string | undefined;
93
+ };
94
+
95
+ /**
96
+ * Describes the message fits.api.mvm.v1.VLANQuery.
97
+ * Use `create(VLANQuerySchema)` to create a new message.
98
+ */
99
+ export const VLANQuerySchema: GenMessage<VLANQuery> = /*@__PURE__*/
100
+ messageDesc(file_fits_api_mvm_v1_vlan, 1);
101
+
81
102
  /**
82
103
  * VLANServiceListRequest is the request payload for a VLAN list request.
83
104
  *
@@ -99,11 +120,11 @@ export type VLANServiceListRequest = Message<"fits.api.mvm.v1.VLANServiceListReq
99
120
  locationUuid: string;
100
121
 
101
122
  /**
102
- * Filter the listed VLANs by the Windows domain they are associated with.
123
+ * Query to list one or more VLANs.
103
124
  *
104
- * @generated from field: optional string domain_uuid = 3;
125
+ * @generated from field: fits.api.mvm.v1.VLANQuery query = 3;
105
126
  */
106
- domainUuid?: string | undefined;
127
+ query?: VLANQuery | undefined;
107
128
  };
108
129
 
109
130
  /**
@@ -111,7 +132,7 @@ export type VLANServiceListRequest = Message<"fits.api.mvm.v1.VLANServiceListReq
111
132
  * Use `create(VLANServiceListRequestSchema)` to create a new message.
112
133
  */
113
134
  export const VLANServiceListRequestSchema: GenMessage<VLANServiceListRequest> = /*@__PURE__*/
114
- messageDesc(file_fits_api_mvm_v1_vlan, 1);
135
+ messageDesc(file_fits_api_mvm_v1_vlan, 2);
115
136
 
116
137
  /**
117
138
  * VLANServiceListResponse is the response payload for a VLAN list request.
@@ -132,7 +153,7 @@ export type VLANServiceListResponse = Message<"fits.api.mvm.v1.VLANServiceListRe
132
153
  * Use `create(VLANServiceListResponseSchema)` to create a new message.
133
154
  */
134
155
  export const VLANServiceListResponseSchema: GenMessage<VLANServiceListResponse> = /*@__PURE__*/
135
- messageDesc(file_fits_api_mvm_v1_vlan, 2);
156
+ messageDesc(file_fits_api_mvm_v1_vlan, 3);
136
157
 
137
158
  /**
138
159
  * VLANService lists VLANs available for managed VM (MVM) instances.
@@ -0,0 +1,537 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Labels, Meta, Paging, UpdateLabels, UpdateMeta } from "../../v1/common_pb.js";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file fits/api/pcvm/v1/vm.proto.
6
+ */
7
+ export declare const file_fits_api_pcvm_v1_vm: GenFile;
8
+ /**
9
+ * The VM resource.
10
+ *
11
+ * @generated from message fits.api.pcvm.v1.VM
12
+ */
13
+ export type VM = Message<"fits.api.pcvm.v1.VM"> & {
14
+ /**
15
+ * UUID of this VM.
16
+ *
17
+ * @generated from field: string uuid = 1;
18
+ */
19
+ uuid: string;
20
+ /**
21
+ * Metadata for this VM including labels.
22
+ *
23
+ * @generated from field: fits.api.v1.Meta meta = 2;
24
+ */
25
+ meta?: Meta | undefined;
26
+ /**
27
+ * Name of the VM.
28
+ *
29
+ * @generated from field: string name = 3;
30
+ */
31
+ name: string;
32
+ /**
33
+ * FQDN of the VM, derived from the name at creation or generated by the backend.
34
+ * Tenant this VM belongs to.
35
+ *
36
+ * @generated from field: string tenant = 4;
37
+ */
38
+ tenant: string;
39
+ /**
40
+ * UUID of the project this VM belongs to.
41
+ *
42
+ * @generated from field: string project_uuid = 5;
43
+ */
44
+ projectUuid: string;
45
+ /**
46
+ * Size of the VM.
47
+ *
48
+ * @generated from field: fits.api.pcvm.v1.Size size = 6;
49
+ */
50
+ size: Size;
51
+ /**
52
+ * The status of the VM.
53
+ *
54
+ * @generated from field: fits.api.pcvm.v1.Status status = 7;
55
+ */
56
+ status?: Status | undefined;
57
+ };
58
+ /**
59
+ * Describes the message fits.api.pcvm.v1.VM.
60
+ * Use `create(VMSchema)` to create a new message.
61
+ */
62
+ export declare const VMSchema: GenMessage<VM>;
63
+ /**
64
+ * The Status of a VM.
65
+ *
66
+ * @generated from message fits.api.pcvm.v1.Status
67
+ */
68
+ export type Status = Message<"fits.api.pcvm.v1.Status"> & {
69
+ /**
70
+ * The state of the VM status.
71
+ *
72
+ * @generated from field: fits.api.pcvm.v1.State state = 1;
73
+ */
74
+ state: State;
75
+ /**
76
+ * The info details of the current state.
77
+ *
78
+ * @generated from field: string info = 2;
79
+ */
80
+ info: string;
81
+ /**
82
+ * The current operation running on the VM.
83
+ *
84
+ * @generated from field: fits.api.pcvm.v1.Operation operation = 3;
85
+ */
86
+ operation: Operation;
87
+ };
88
+ /**
89
+ * Describes the message fits.api.pcvm.v1.Status.
90
+ * Use `create(StatusSchema)` to create a new message.
91
+ */
92
+ export declare const StatusSchema: GenMessage<Status>;
93
+ /**
94
+ * The VM query parameters to filter the list of results.
95
+ *
96
+ * @generated from message fits.api.pcvm.v1.VMQuery
97
+ */
98
+ export type VMQuery = Message<"fits.api.pcvm.v1.VMQuery"> & {
99
+ /**
100
+ * The name of the VMs.
101
+ *
102
+ * @generated from field: optional string name = 1;
103
+ */
104
+ name?: string | undefined;
105
+ /**
106
+ * The labels each VM should have.
107
+ *
108
+ * @generated from field: optional fits.api.v1.Labels labels = 2;
109
+ */
110
+ labels?: Labels | undefined;
111
+ };
112
+ /**
113
+ * Describes the message fits.api.pcvm.v1.VMQuery.
114
+ * Use `create(VMQuerySchema)` to create a new message.
115
+ */
116
+ export declare const VMQuerySchema: GenMessage<VMQuery>;
117
+ /**
118
+ * Request to get a VM by UUID.
119
+ *
120
+ * @generated from message fits.api.pcvm.v1.VMServiceGetRequest
121
+ */
122
+ export type VMServiceGetRequest = Message<"fits.api.pcvm.v1.VMServiceGetRequest"> & {
123
+ /**
124
+ * UUID of the VM to get.
125
+ *
126
+ * @generated from field: string uuid = 1;
127
+ */
128
+ uuid: string;
129
+ /**
130
+ * UUID of the project this VM belongs to.
131
+ *
132
+ * @generated from field: string project_uuid = 2;
133
+ */
134
+ projectUuid: string;
135
+ };
136
+ /**
137
+ * Describes the message fits.api.pcvm.v1.VMServiceGetRequest.
138
+ * Use `create(VMServiceGetRequestSchema)` to create a new message.
139
+ */
140
+ export declare const VMServiceGetRequestSchema: GenMessage<VMServiceGetRequest>;
141
+ /**
142
+ * Response containing the requested VM.
143
+ *
144
+ * @generated from message fits.api.pcvm.v1.VMServiceGetResponse
145
+ */
146
+ export type VMServiceGetResponse = Message<"fits.api.pcvm.v1.VMServiceGetResponse"> & {
147
+ /**
148
+ * The VM.
149
+ *
150
+ * @generated from field: fits.api.pcvm.v1.VM vm = 1;
151
+ */
152
+ vm?: VM | undefined;
153
+ };
154
+ /**
155
+ * Describes the message fits.api.pcvm.v1.VMServiceGetResponse.
156
+ * Use `create(VMServiceGetResponseSchema)` to create a new message.
157
+ */
158
+ export declare const VMServiceGetResponseSchema: GenMessage<VMServiceGetResponse>;
159
+ /**
160
+ * The request to create a new VM.
161
+ *
162
+ * @generated from message fits.api.pcvm.v1.VMServiceCreateRequest
163
+ */
164
+ export type VMServiceCreateRequest = Message<"fits.api.pcvm.v1.VMServiceCreateRequest"> & {
165
+ /**
166
+ * UUID of the project this VM belongs to.
167
+ *
168
+ * @generated from field: string project_uuid = 1;
169
+ */
170
+ projectUuid: string;
171
+ /**
172
+ * Name of the VM.
173
+ *
174
+ * @generated from field: string name = 2;
175
+ */
176
+ name: string;
177
+ /**
178
+ * Labels for this VM.
179
+ *
180
+ * @generated from field: fits.api.v1.Labels labels = 3;
181
+ */
182
+ labels?: Labels | undefined;
183
+ /**
184
+ * Size of the VM.
185
+ *
186
+ * @generated from field: fits.api.pcvm.v1.Size size = 4;
187
+ */
188
+ size: Size;
189
+ };
190
+ /**
191
+ * Describes the message fits.api.pcvm.v1.VMServiceCreateRequest.
192
+ * Use `create(VMServiceCreateRequestSchema)` to create a new message.
193
+ */
194
+ export declare const VMServiceCreateRequestSchema: GenMessage<VMServiceCreateRequest>;
195
+ /**
196
+ * The response when creating a new VM.
197
+ *
198
+ * @generated from message fits.api.pcvm.v1.VMServiceCreateResponse
199
+ */
200
+ export type VMServiceCreateResponse = Message<"fits.api.pcvm.v1.VMServiceCreateResponse"> & {
201
+ /**
202
+ * The VM just created.
203
+ *
204
+ * @generated from field: fits.api.pcvm.v1.VM vm = 1;
205
+ */
206
+ vm?: VM | undefined;
207
+ };
208
+ /**
209
+ * Describes the message fits.api.pcvm.v1.VMServiceCreateResponse.
210
+ * Use `create(VMServiceCreateResponseSchema)` to create a new message.
211
+ */
212
+ export declare const VMServiceCreateResponseSchema: GenMessage<VMServiceCreateResponse>;
213
+ /**
214
+ * The request to list and filter VMs.
215
+ *
216
+ * @generated from message fits.api.pcvm.v1.VMServiceListRequest
217
+ */
218
+ export type VMServiceListRequest = Message<"fits.api.pcvm.v1.VMServiceListRequest"> & {
219
+ /**
220
+ * UUID of the project this VM belongs to.
221
+ *
222
+ * @generated from field: string project_uuid = 1;
223
+ */
224
+ projectUuid: string;
225
+ /**
226
+ * Paging details for the list request.
227
+ *
228
+ * @generated from field: fits.api.v1.Paging paging = 2;
229
+ */
230
+ paging?: Paging | undefined;
231
+ /**
232
+ * Query defines how to filter the VMs.
233
+ *
234
+ * @generated from field: fits.api.pcvm.v1.VMQuery query = 3;
235
+ */
236
+ query?: VMQuery | undefined;
237
+ };
238
+ /**
239
+ * Describes the message fits.api.pcvm.v1.VMServiceListRequest.
240
+ * Use `create(VMServiceListRequestSchema)` to create a new message.
241
+ */
242
+ export declare const VMServiceListRequestSchema: GenMessage<VMServiceListRequest>;
243
+ /**
244
+ * The response when listing VMs.
245
+ *
246
+ * @generated from message fits.api.pcvm.v1.VMServiceListResponse
247
+ */
248
+ export type VMServiceListResponse = Message<"fits.api.pcvm.v1.VMServiceListResponse"> & {
249
+ /**
250
+ * VMs is a list of filtered VMs resources.
251
+ *
252
+ * @generated from field: repeated fits.api.pcvm.v1.VM vms = 1;
253
+ */
254
+ vms: VM[];
255
+ };
256
+ /**
257
+ * Describes the message fits.api.pcvm.v1.VMServiceListResponse.
258
+ * Use `create(VMServiceListResponseSchema)` to create a new message.
259
+ */
260
+ export declare const VMServiceListResponseSchema: GenMessage<VMServiceListResponse>;
261
+ /**
262
+ * The request to update a VM.
263
+ *
264
+ * @generated from message fits.api.pcvm.v1.VMServiceUpdateRequest
265
+ */
266
+ export type VMServiceUpdateRequest = Message<"fits.api.pcvm.v1.VMServiceUpdateRequest"> & {
267
+ /**
268
+ * UUID of the VM to update.
269
+ *
270
+ * @generated from field: string uuid = 1;
271
+ */
272
+ uuid: string;
273
+ /**
274
+ * UUID of the project this VM belongs to.
275
+ *
276
+ * @generated from field: string project_uuid = 2;
277
+ */
278
+ projectUuid: string;
279
+ /**
280
+ * UpdateMeta contains the timestamp and strategy to be used in this update request.
281
+ *
282
+ * @generated from field: fits.api.v1.UpdateMeta update_meta = 3;
283
+ */
284
+ updateMeta?: UpdateMeta | undefined;
285
+ /**
286
+ * The labels to update.
287
+ *
288
+ * @generated from field: optional fits.api.v1.UpdateLabels labels = 4;
289
+ */
290
+ labels?: UpdateLabels | undefined;
291
+ /**
292
+ * Name of the VM.
293
+ *
294
+ * @generated from field: optional string name = 5;
295
+ */
296
+ name?: string | undefined;
297
+ /**
298
+ * Size of the VM. The new size must be bigger or equal than before.
299
+ * Downgrades are not possible.
300
+ *
301
+ * @generated from field: optional fits.api.pcvm.v1.Size size = 6;
302
+ */
303
+ size?: Size | undefined;
304
+ };
305
+ /**
306
+ * Describes the message fits.api.pcvm.v1.VMServiceUpdateRequest.
307
+ * Use `create(VMServiceUpdateRequestSchema)` to create a new message.
308
+ */
309
+ export declare const VMServiceUpdateRequestSchema: GenMessage<VMServiceUpdateRequest>;
310
+ /**
311
+ * The response when updating a VM.
312
+ *
313
+ * @generated from message fits.api.pcvm.v1.VMServiceUpdateResponse
314
+ */
315
+ export type VMServiceUpdateResponse = Message<"fits.api.pcvm.v1.VMServiceUpdateResponse"> & {
316
+ /**
317
+ * The updated VM.
318
+ *
319
+ * @generated from field: fits.api.pcvm.v1.VM vm = 1;
320
+ */
321
+ vm?: VM | undefined;
322
+ };
323
+ /**
324
+ * Describes the message fits.api.pcvm.v1.VMServiceUpdateResponse.
325
+ * Use `create(VMServiceUpdateResponseSchema)` to create a new message.
326
+ */
327
+ export declare const VMServiceUpdateResponseSchema: GenMessage<VMServiceUpdateResponse>;
328
+ /**
329
+ * The request to delete a VM.
330
+ *
331
+ * @generated from message fits.api.pcvm.v1.VMServiceDeleteRequest
332
+ */
333
+ export type VMServiceDeleteRequest = Message<"fits.api.pcvm.v1.VMServiceDeleteRequest"> & {
334
+ /**
335
+ * UUID of the VM to delete.
336
+ *
337
+ * @generated from field: string uuid = 1;
338
+ */
339
+ uuid: string;
340
+ /**
341
+ * UUID of the project this VM belongs to.
342
+ *
343
+ * @generated from field: string project_uuid = 2;
344
+ */
345
+ projectUuid: string;
346
+ };
347
+ /**
348
+ * Describes the message fits.api.pcvm.v1.VMServiceDeleteRequest.
349
+ * Use `create(VMServiceDeleteRequestSchema)` to create a new message.
350
+ */
351
+ export declare const VMServiceDeleteRequestSchema: GenMessage<VMServiceDeleteRequest>;
352
+ /**
353
+ * The response after deleting a VM.
354
+ * The VM is deleted immediately will not be able to be requested.
355
+ *
356
+ * @generated from message fits.api.pcvm.v1.VMServiceDeleteResponse
357
+ */
358
+ export type VMServiceDeleteResponse = Message<"fits.api.pcvm.v1.VMServiceDeleteResponse"> & {};
359
+ /**
360
+ * Describes the message fits.api.pcvm.v1.VMServiceDeleteResponse.
361
+ * Use `create(VMServiceDeleteResponseSchema)` to create a new message.
362
+ */
363
+ export declare const VMServiceDeleteResponseSchema: GenMessage<VMServiceDeleteResponse>;
364
+ /**
365
+ * The health state of the VM.
366
+ *
367
+ * @generated from enum fits.api.pcvm.v1.State
368
+ */
369
+ export declare enum State {
370
+ /**
371
+ * STATE_UNSPECIFIED is not specified.
372
+ *
373
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
374
+ */
375
+ UNSPECIFIED = 0,
376
+ /**
377
+ * STATE_HEALTHY: the VM is healthy.
378
+ *
379
+ * @generated from enum value: STATE_HEALTHY = 1;
380
+ */
381
+ HEALTHY = 1,
382
+ /**
383
+ * STATE_HEALTHY: there are some health warnings for this VM.
384
+ *
385
+ * @generated from enum value: STATE_WARNING = 2;
386
+ */
387
+ WARNING = 2,
388
+ /**
389
+ * STATE_ERROR: the VM is unhealthy.
390
+ *
391
+ * @generated from enum value: STATE_ERROR = 3;
392
+ */
393
+ ERROR = 3
394
+ }
395
+ /**
396
+ * Describes the enum fits.api.pcvm.v1.State.
397
+ */
398
+ export declare const StateSchema: GenEnum<State>;
399
+ /**
400
+ * The operation of the VM.
401
+ *
402
+ * @generated from enum fits.api.pcvm.v1.Operation
403
+ */
404
+ export declare enum Operation {
405
+ /**
406
+ * OPERATION_UNSPECIFIED is not specified.
407
+ *
408
+ * @generated from enum value: OPERATION_UNSPECIFIED = 0;
409
+ */
410
+ UNSPECIFIED = 0,
411
+ /**
412
+ * OPERATION_CREATING: the VM hostname is reserved and provisioning has started.
413
+ *
414
+ * @generated from enum value: OPERATION_CREATING = 1;
415
+ */
416
+ CREATING = 1,
417
+ /**
418
+ * OPERATION_ACTIVE: the VM is active.
419
+ *
420
+ * @generated from enum value: OPERATION_ACTIVE = 2;
421
+ */
422
+ ACTIVE = 2,
423
+ /**
424
+ * OPERATION_UPDATING: there is an ongoing operation for the VM.
425
+ *
426
+ * @generated from enum value: OPERATION_UPDATING = 3;
427
+ */
428
+ UPDATING = 3,
429
+ /**
430
+ * OPERATION_DELETED: the VM is deleted.
431
+ *
432
+ * @generated from enum value: OPERATION_DELETED = 4;
433
+ */
434
+ DELETED = 4,
435
+ /**
436
+ * OPERATION_ERROR: the
437
+ *
438
+ * @generated from enum value: OPERATION_ERROR = 5;
439
+ */
440
+ ERROR = 5
441
+ }
442
+ /**
443
+ * Describes the enum fits.api.pcvm.v1.Operation.
444
+ */
445
+ export declare const OperationSchema: GenEnum<Operation>;
446
+ /**
447
+ * Size specifies the size of the VM machine
448
+ *
449
+ * @generated from enum fits.api.pcvm.v1.Size
450
+ */
451
+ export declare enum Size {
452
+ /**
453
+ * SIZE_UNSPECIFIED is not specified.
454
+ *
455
+ * @generated from enum value: SIZE_UNSPECIFIED = 0;
456
+ */
457
+ UNSPECIFIED = 0,
458
+ /**
459
+ * SIZE_SMALL: small machine size.
460
+ *
461
+ * @generated from enum value: SIZE_SMALL = 1;
462
+ */
463
+ SMALL = 1,
464
+ /**
465
+ * SIZE_MEDIUM: medium machine size.
466
+ *
467
+ * @generated from enum value: SIZE_MEDIUM = 2;
468
+ */
469
+ MEDIUM = 2,
470
+ /**
471
+ * SIZE_LARGE: large machine size.
472
+ *
473
+ * @generated from enum value: SIZE_LARGE = 3;
474
+ */
475
+ LARGE = 3
476
+ }
477
+ /**
478
+ * Describes the enum fits.api.pcvm.v1.Size.
479
+ */
480
+ export declare const SizeSchema: GenEnum<Size>;
481
+ /**
482
+ * VMService provides VM operations.
483
+ *
484
+ * @generated from service fits.api.pcvm.v1.VMService
485
+ */
486
+ export declare const VMService: GenService<{
487
+ /**
488
+ * Returns the VM with the specified UUID.
489
+ *
490
+ * @generated from rpc fits.api.pcvm.v1.VMService.Get
491
+ */
492
+ get: {
493
+ methodKind: "unary";
494
+ input: typeof VMServiceGetRequestSchema;
495
+ output: typeof VMServiceGetResponseSchema;
496
+ };
497
+ /**
498
+ * Creates a new VM.
499
+ *
500
+ * @generated from rpc fits.api.pcvm.v1.VMService.Create
501
+ */
502
+ create: {
503
+ methodKind: "unary";
504
+ input: typeof VMServiceCreateRequestSchema;
505
+ output: typeof VMServiceCreateResponseSchema;
506
+ };
507
+ /**
508
+ * Returns the list of all VMs.
509
+ *
510
+ * @generated from rpc fits.api.pcvm.v1.VMService.List
511
+ */
512
+ list: {
513
+ methodKind: "unary";
514
+ input: typeof VMServiceListRequestSchema;
515
+ output: typeof VMServiceListResponseSchema;
516
+ };
517
+ /**
518
+ * Updates a VM.
519
+ *
520
+ * @generated from rpc fits.api.pcvm.v1.VMService.Update
521
+ */
522
+ update: {
523
+ methodKind: "unary";
524
+ input: typeof VMServiceUpdateRequestSchema;
525
+ output: typeof VMServiceUpdateResponseSchema;
526
+ };
527
+ /**
528
+ * Deletes a VM immediately.
529
+ *
530
+ * @generated from rpc fits.api.pcvm.v1.VMService.Delete
531
+ */
532
+ delete: {
533
+ methodKind: "unary";
534
+ input: typeof VMServiceDeleteRequestSchema;
535
+ output: typeof VMServiceDeleteResponseSchema;
536
+ };
537
+ }>;