Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
mchavez committed Apr 24, 2024
1 parent 896cb6b commit 15ca954
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions pkg/client/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ type Environment struct {
Region string `json:"region"`
}

type OrganizationUser struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Email string `json:"email"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

type Vault struct {
Id string `json:"id"`
Name string `json:"name"`
Environment string `json:"env_identifier"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

type organizationsAPIData struct {
Data []organizationAPI `json:"data,omitempty"`
}
Expand Down Expand Up @@ -71,7 +88,7 @@ type organizationInviteAPI struct {

type organizationAPI struct {
Id string `json:"id,omitempty"`
OrgType string `json:"type,omitempty"`
Type string `json:"type,omitempty"`
Attributes organizationAPIAttributes `json:"attributes,omitempty"`
}

Expand Down Expand Up @@ -135,6 +152,7 @@ type organizationInviteAPIAttributes struct {
Role string `json:"role"`
Vaults []vaultAPIAttributes `json:"vaults"`
}

type vaultAPIAttributes struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Expand All @@ -146,20 +164,3 @@ type vaultAPIAttributes struct {
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}

type OrganizationUser struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Email string `json:"email"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

type Vault struct {
Id string `json:"id"`
Name string `json:"name"`
Environment string `json:"env_identifier"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

0 comments on commit 15ca954

Please sign in to comment.