Skip to content

Commit 1a8fd62

Browse files
feat: update generated apis (#218)
- fix: placement group - feat: ANY security group rule - doc: default message doc
1 parent 281dd22 commit 1a8fd62

File tree

6 files changed

+286
-322
lines changed

6 files changed

+286
-322
lines changed

api/account/v2alpha1/account_sdk.go

+2
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@ func (enum *ListSSHKeysRequestOrderBy) UnmarshalJSON(data []byte) error {
8888
return nil
8989
}
9090

91+
// ListSSHKeysResponse list ssh keys response
9192
type ListSSHKeysResponse struct {
9293
SSHKeys []*SSHKey `json:"ssh_keys"`
9394

9495
TotalCount uint32 `json:"total_count"`
9596
}
9697

98+
// SSHKey ssh key
9799
type SSHKey struct {
98100
ID string `json:"id"`
99101

api/baremetal/v1alpha1/baremetal_sdk.go

+7
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ func (enum *ServerStatus) UnmarshalJSON(data []byte) error {
328328
return nil
329329
}
330330

331+
// IP ip
331332
type IP struct {
332333
// ID iD of the IP
333334
ID string `json:"id"`
@@ -347,20 +348,23 @@ type IP struct {
347348
ReverseStatusMessage *string `json:"reverse_status_message"`
348349
}
349350

351+
// ListServerEventsResponse list server events response
350352
type ListServerEventsResponse struct {
351353
// TotalCount total count of matching events
352354
TotalCount uint32 `json:"total_count"`
353355
// Event server events that match filters
354356
Event []*ServerEvent `json:"event"`
355357
}
356358

359+
// ListServersResponse list servers response
357360
type ListServersResponse struct {
358361
// TotalCount total count of matching servers
359362
TotalCount uint32 `json:"total_count"`
360363
// Servers servers that match filters
361364
Servers []*Server `json:"servers"`
362365
}
363366

367+
// RemoteServerAccess remote server access
364368
type RemoteServerAccess struct {
365369
// URL uRL to access to the server console
366370
URL string `json:"url"`
@@ -372,6 +376,7 @@ type RemoteServerAccess struct {
372376
ExpiresAt time.Time `json:"expires_at"`
373377
}
374378

379+
// Server server
375380
type Server struct {
376381
// ID iD of the server
377382
ID string `json:"id"`
@@ -405,6 +410,7 @@ type Server struct {
405410
BootType ServerBootType `json:"boot_type"`
406411
}
407412

413+
// ServerEvent server event
408414
type ServerEvent struct {
409415
// ID iD of the server for whom the action will be applied
410416
ID string `json:"id"`
@@ -416,6 +422,7 @@ type ServerEvent struct {
416422
CreatedAt time.Time `json:"created_at"`
417423
}
418424

425+
// ServerInstall server install
419426
type ServerInstall struct {
420427
// OsID iD of the OS
421428
OsID string `json:"os_id"`

0 commit comments

Comments
 (0)