Skip to content

Commit

Permalink
feat(api): api update (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 23, 2025
1 parent b8afef7 commit 14f64e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nirvana-labs%2Fnirvana-070edd8ddaa5d517d634932ed6ee7a2b31ed0b1c8a3bf9b493861b704ba28bd9.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nirvana-labs%2Fnirvana-901357ab068797fff926718b5f7f307dc332f52a1d494ee340352e50bc09b641.yml
8 changes: 3 additions & 5 deletions vms/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/nirvana-labs/nirvana-go/option"
"github.com/nirvana-labs/nirvana-go/shared"
"github.com/nirvana-labs/nirvana-go/volumes"
"github.com/nirvana-labs/nirvana-go/vpcs"
)

// VMService contains methods and other services that help with interacting with
Expand Down Expand Up @@ -202,9 +201,8 @@ type VM struct {
Region shared.RegionName `json:"region,required"`
Status shared.ResourceStatus `json:"status,required"`
UpdatedAt string `json:"updated_at,required"`
// VPC details.
VPC vpcs.VPC `json:"vpc,required"`
JSON vmJSON `json:"-"`
VPCID string `json:"vpc_id,required"`
JSON vmJSON `json:"-"`
}

// vmJSON contains the JSON metadata for the struct [VM]
Expand All @@ -220,7 +218,7 @@ type vmJSON struct {
Region apijson.Field
Status apijson.Field
UpdatedAt apijson.Field
VPC apijson.Field
VPCID apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit 14f64e8

Please sign in to comment.