packer-cn/vendor/github.com/hyperonecom/h1-client-go/model_vm_create.go

29 lines
1.2 KiB
Go
Raw Normal View History

2019-02-08 05:15:45 -05:00
/*
* HyperOne API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 0.0.2
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
// VmCreate struct for VmCreate
2019-02-08 05:15:45 -05:00
type VmCreate struct {
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
Iso string `json:"iso,omitempty"`
Service string `json:"service"`
Username string `json:"username,omitempty"`
2019-02-08 05:15:45 -05:00
Password VmCreatePassword `json:"password,omitempty"`
// - user credential (by id or name) - project credential (by id or name) - raw openssh public key (starting with `ssh-rsa/ssh-ed25519`) - defaults to user keys
SshKeys []string `json:"sshKeys,omitempty"`
UserMetadata string `json:"userMetadata,omitempty"`
Disk []VmCreateDisk `json:"disk,omitempty"`
Netadp []VmCreateNetadp `json:"netadp,omitempty"`
Boot bool `json:"boot,omitempty"`
Cloud string `json:"cloud,omitempty"`
Tag map[string]string `json:"tag,omitempty"`
2019-02-08 05:15:45 -05:00
}