Closed sauterp closed 1 year ago
We regenerate egoscale v2 for public-api on 2023-08-31.
Minor manual changes in the generated code were necessary to make it compile. If you run make oapigen on this PR you will get this diff:
make oapigen
diff --git a/v2/oapi/oapi.gen.go b/v2/oapi/oapi.gen.go index f8c85ea..7d7a7a9 100644 --- a/v2/oapi/oapi.gen.go +++ b/v2/oapi/oapi.gen.go @@ -23118,7 +23118,46 @@ type ListInstancesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Instances *[]Instance `json:"instances,omitempty"` + Instances *[]struct { + // Instance creation date + CreatedAt *time.Time `json:"created-at,omitempty"` + + // Instance ID + Id *string `json:"id,omitempty"` + + // Compute instance type + InstanceType *InstanceType `json:"instance-type,omitempty"` + + // Instance IPv6 address + Ipv6Address *string `json:"ipv6-address,omitempty"` + Labels *Labels `json:"labels,omitempty"` + + // Resource manager + Manager *Manager `json:"manager,omitempty"` + + // Instance name + Name *string `json:"name,omitempty"` + + // Instance Private Networks + PrivateNetworks *[]PrivateNetwork `json:"private-networks,omitempty"` + + // Instance public IPv4 address + PublicIp *string `json:"public-ip,omitempty"` + PublicIpAssignment *PublicIpAssignment `json:"public-ip-assignment,omitempty"` + + // Instance Security Groups + SecurityGroups *[]SecurityGroup `json:"security-groups,omitempty"` + + // SSH key + SshKey *SshKey `json:"ssh-key,omitempty"` + + // Instance SSH Keys + SshKeys *[]SshKey `json:"ssh-keys,omitempty"` + State *InstanceState `json:"state,omitempty"` + + // Instance template + Template *Template `json:"template,omitempty"` + } `json:"instances,omitempty"` } } @@ -31720,7 +31759,46 @@ func ParseListInstancesResponse(rsp *http.Response) (*ListInstancesResponse, err switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Instances *[]Instance `json:"instances,omitempty"` + Instances *[]struct { + // Instance creation date + CreatedAt *time.Time `json:"created-at,omitempty"` + + // Instance ID + Id *string `json:"id,omitempty"` + + // Compute instance type + InstanceType *InstanceType `json:"instance-type,omitempty"` + + // Instance IPv6 address + Ipv6Address *string `json:"ipv6-address,omitempty"` + Labels *Labels `json:"labels,omitempty"` + + // Resource manager + Manager *Manager `json:"manager,omitempty"` + + // Instance name + Name *string `json:"name,omitempty"` + + // Instance Private Networks + PrivateNetworks *[]PrivateNetwork `json:"private-networks,omitempty"` + + // Instance public IPv4 address + PublicIp *string `json:"public-ip,omitempty"` + PublicIpAssignment *PublicIpAssignment `json:"public-ip-assignment,omitempty"` + + // Instance Security Groups + SecurityGroups *[]SecurityGroup `json:"security-groups,omitempty"` + + // SSH key + SshKey *SshKey `json:"ssh-key,omitempty"` + + // Instance SSH Keys + SshKeys *[]SshKey `json:"ssh-keys,omitempty"` + State *InstanceState `json:"state,omitempty"` + + // Instance template + Template *Template `json:"template,omitempty"` + } `json:"instances,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err
This pull request has been linked to Shortcut Story #75097 CLI: implement reset-password.
Description
We regenerate egoscale v2 for public-api on 2023-08-31.
Minor manual changes in the generated code were necessary to make it compile. If you run
make oapigen
on this PR you will get this diff:Checklist