Skip to content

feat(instance): update metadata struct #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions api/instance/v1/instance_metadata_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type Metadata struct {
Name string `json:"name,omitempty"`
Hostname string `json:"hostname,omitempty"`
Organization string `json:"organization,omitempty"`
Project string `json:"project,omitempty"`
CommercialType string `json:"commercial_type,omitempty"`
PublicIP struct {
Dynamic bool `json:"dynamic,omitempty"`
Expand All @@ -74,18 +75,10 @@ type Metadata struct {
Description string `json:"description,omitempty"`
ModificationDate string `json:"modification_date,omitempty"`
IP string `json:"ip,omitempty"`
Email string `json:"email,omitempty"`
UserAgent struct {
Platform string `json:"platform,omitempty"`
Version string `json:"version,omitempty"`
String string `json:"string,omitempty"`
Browser string `json:"browser,omitempty"`
} `json:"user_agent,omitempty"`
Key string `json:"key,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
ID string `json:"id,omitempty"`
CreationDate string `json:"creation_date,omitempty"`
Port int `json:"port,omitempty"`
Key string `json:"key,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
ID string `json:"id,omitempty"`
CreationDate string `json:"creation_date,omitempty"`
} `json:"ssh_public_keys,omitempty"`
Timezone string `json:"timezone,omitempty"`
Bootscript struct {
Expand All @@ -98,6 +91,7 @@ type Metadata struct {
Bootcmdargs string `json:"bootcmdargs,omitempty"`
Architecture string `json:"architecture,omitempty"`
Organization string `json:"organization,omitempty"`
Project string `json:"project,omitempty"`
ID string `json:"id,omitempty"`
} `json:"bootscript,omitempty"`
Volumes map[string]struct {
Expand All @@ -108,6 +102,7 @@ type Metadata struct {
CreationDate string `json:"creation_date,omitempty"`
State string `json:"state,omitempty"`
Organization string `json:"organization,omitempty"`
Project string `json:"project,omitempty"`
Server struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Expand Down