diff --git a/.stats.yml b/.stats.yml index 4172e8f..630a66c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 22 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nirvana-labs%2Fnirvana-23f217d88ac8a0bc32ddfe5b5b14085afee8a9ba2e9a09f9bf6c8b544673756c.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nirvana-labs%2Fnirvana-fd4009b8ae32cedd4b3c01020851fe7216717cbdd2a11f003758dc4a0caef76c.yml diff --git a/compute/vm.go b/compute/vm.go index 6a508d6..f1d54cc 100644 --- a/compute/vm.go +++ b/compute/vm.go @@ -186,13 +186,12 @@ func (r SSHKeyParam) MarshalJSON() (data []byte, err error) { // VM details. type VM struct { - ID string `json:"id,required"` - // Volume details. - BootVolume Volume `json:"boot_volume,required"` + ID string `json:"id,required"` + BootVolumeID string `json:"boot_volume_id,required"` // CPU details. - CPUConfig CPU `json:"cpu_config,required"` - CreatedAt string `json:"created_at,required"` - DataVolumes []Volume `json:"data_volumes,required"` + CPUConfig CPU `json:"cpu_config,required"` + CreatedAt string `json:"created_at,required"` + DataVolumeIDs []string `json:"data_volume_ids,required"` // RAM details. MemConfig Ram `json:"mem_config,required"` Name string `json:"name,required"` @@ -206,20 +205,20 @@ type VM struct { // vmJSON contains the JSON metadata for the struct [VM] type vmJSON struct { - ID apijson.Field - BootVolume apijson.Field - CPUConfig apijson.Field - CreatedAt apijson.Field - DataVolumes apijson.Field - MemConfig apijson.Field - Name apijson.Field - PublicIP apijson.Field - Region apijson.Field - Status apijson.Field - UpdatedAt apijson.Field - VPCID apijson.Field - raw string - ExtraFields map[string]apijson.Field + ID apijson.Field + BootVolumeID apijson.Field + CPUConfig apijson.Field + CreatedAt apijson.Field + DataVolumeIDs apijson.Field + MemConfig apijson.Field + Name apijson.Field + PublicIP apijson.Field + Region apijson.Field + Status apijson.Field + UpdatedAt apijson.Field + VPCID apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *VM) UnmarshalJSON(data []byte) (err error) { diff --git a/networking/vpc.go b/networking/vpc.go index 228cc4c..678b5c3 100644 --- a/networking/vpc.go +++ b/networking/vpc.go @@ -106,12 +106,12 @@ func (r subnetJSON) RawJSON() string { // VPC details. type VPC struct { - ID string `json:"id,required"` - CreatedAt string `json:"created_at,required"` - FirewallRules []FirewallRule `json:"firewall_rules,required"` - Name string `json:"name,required"` - Region shared.RegionName `json:"region,required"` - Status shared.ResourceStatus `json:"status,required"` + ID string `json:"id,required"` + CreatedAt string `json:"created_at,required"` + FirewallRuleIDs []string `json:"firewall_rule_ids,required"` + Name string `json:"name,required"` + Region shared.RegionName `json:"region,required"` + Status shared.ResourceStatus `json:"status,required"` // Subnet details. Subnet Subnet `json:"subnet,required"` UpdatedAt string `json:"updated_at,required"` @@ -120,16 +120,16 @@ type VPC struct { // vpcJSON contains the JSON metadata for the struct [VPC] type vpcJSON struct { - ID apijson.Field - CreatedAt apijson.Field - FirewallRules apijson.Field - Name apijson.Field - Region apijson.Field - Status apijson.Field - Subnet apijson.Field - UpdatedAt apijson.Field - raw string - ExtraFields map[string]apijson.Field + ID apijson.Field + CreatedAt apijson.Field + FirewallRuleIDs apijson.Field + Name apijson.Field + Region apijson.Field + Status apijson.Field + Subnet apijson.Field + UpdatedAt apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *VPC) UnmarshalJSON(data []byte) (err error) {