Skip to content

Commit

Permalink
feat: update generated apis (#218)
Browse files Browse the repository at this point in the history
- fix: placement group
- feat: ANY security group rule
- doc: default message doc
  • Loading branch information
kindermoumoute authored Oct 21, 2019
1 parent 281dd22 commit 1a8fd62
Show file tree
Hide file tree
Showing 6 changed files with 286 additions and 322 deletions.
2 changes: 2 additions & 0 deletions api/account/v2alpha1/account_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ func (enum *ListSSHKeysRequestOrderBy) UnmarshalJSON(data []byte) error {
return nil
}

// ListSSHKeysResponse list ssh keys response
type ListSSHKeysResponse struct {
SSHKeys []*SSHKey `json:"ssh_keys"`

TotalCount uint32 `json:"total_count"`
}

// SSHKey ssh key
type SSHKey struct {
ID string `json:"id"`

Expand Down
7 changes: 7 additions & 0 deletions api/baremetal/v1alpha1/baremetal_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ func (enum *ServerStatus) UnmarshalJSON(data []byte) error {
return nil
}

// IP ip
type IP struct {
// ID iD of the IP
ID string `json:"id"`
Expand All @@ -347,20 +348,23 @@ type IP struct {
ReverseStatusMessage *string `json:"reverse_status_message"`
}

// ListServerEventsResponse list server events response
type ListServerEventsResponse struct {
// TotalCount total count of matching events
TotalCount uint32 `json:"total_count"`
// Event server events that match filters
Event []*ServerEvent `json:"event"`
}

// ListServersResponse list servers response
type ListServersResponse struct {
// TotalCount total count of matching servers
TotalCount uint32 `json:"total_count"`
// Servers servers that match filters
Servers []*Server `json:"servers"`
}

// RemoteServerAccess remote server access
type RemoteServerAccess struct {
// URL uRL to access to the server console
URL string `json:"url"`
Expand All @@ -372,6 +376,7 @@ type RemoteServerAccess struct {
ExpiresAt time.Time `json:"expires_at"`
}

// Server server
type Server struct {
// ID iD of the server
ID string `json:"id"`
Expand Down Expand Up @@ -405,6 +410,7 @@ type Server struct {
BootType ServerBootType `json:"boot_type"`
}

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

// ServerInstall server install
type ServerInstall struct {
// OsID iD of the OS
OsID string `json:"os_id"`
Expand Down
Loading

0 comments on commit 1a8fd62

Please sign in to comment.