Update Lego
This commit is contained in:
parent
36966da701
commit
253060b4f3
185 changed files with 16653 additions and 3210 deletions
108
vendor/github.com/exoscale/egoscale/vm_groups.go
generated
vendored
108
vendor/github.com/exoscale/egoscale/vm_groups.go
generated
vendored
|
@ -2,101 +2,59 @@ package egoscale
|
|||
|
||||
// InstanceGroup represents a group of VM
|
||||
type InstanceGroup struct {
|
||||
ID string `json:"id"`
|
||||
Account string `json:"account,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
Domain string `json:"domain,omitempty"`
|
||||
DomainID string `json:"domainid,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Project string `json:"project,omitempty"`
|
||||
ProjectID string `json:"projectid,omitempty"`
|
||||
}
|
||||
|
||||
// InstanceGroupResponse represents a VM group
|
||||
type InstanceGroupResponse struct {
|
||||
InstanceGroup InstanceGroup `json:"instancegroup"`
|
||||
Account string `json:"account,omitempty" doc:"the account owning the instance group"`
|
||||
Created string `json:"created,omitempty" doc:"time and date the instance group was created"`
|
||||
Domain string `json:"domain,omitempty" doc:"the domain name of the instance group"`
|
||||
DomainID *UUID `json:"domainid,omitempty" doc:"the domain ID of the instance group"`
|
||||
ID *UUID `json:"id,omitempty" doc:"the id of the instance group"`
|
||||
Name string `json:"name,omitempty" doc:"the name of the instance group"`
|
||||
}
|
||||
|
||||
// CreateInstanceGroup creates a VM group
|
||||
//
|
||||
// CloudStack API: http://cloudstack.apache.org/api/apidocs-4.10/apis/createInstanceGroup.html
|
||||
type CreateInstanceGroup struct {
|
||||
Name string `json:"name"`
|
||||
Account string `json:"account,omitempty"`
|
||||
DomainID string `json:"domainid,omitempty"`
|
||||
ProjectID string `json:"projectid,omitempty"`
|
||||
Name string `json:"name" doc:"the name of the instance group"`
|
||||
Account string `json:"account,omitempty" doc:"the account of the instance group. The account parameter must be used with the domainId parameter."`
|
||||
DomainID *UUID `json:"domainid,omitempty" doc:"the domain ID of account owning the instance group"`
|
||||
_ bool `name:"createInstanceGroup" description:"Creates a vm group"`
|
||||
}
|
||||
|
||||
func (*CreateInstanceGroup) name() string {
|
||||
return "createInstanceGroup"
|
||||
func (CreateInstanceGroup) response() interface{} {
|
||||
return new(InstanceGroup)
|
||||
}
|
||||
|
||||
func (*CreateInstanceGroup) response() interface{} {
|
||||
return new(CreateInstanceGroupResponse)
|
||||
}
|
||||
|
||||
// CreateInstanceGroupResponse represents a freshly created VM group
|
||||
type CreateInstanceGroupResponse InstanceGroupResponse
|
||||
|
||||
// UpdateInstanceGroup creates a VM group
|
||||
//
|
||||
// CloudStack API: http://cloudstack.apache.org/api/apidocs-4.10/apis/updateInstanceGroup.html
|
||||
// UpdateInstanceGroup updates a VM group
|
||||
type UpdateInstanceGroup struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ID *UUID `json:"id" doc:"Instance group ID"`
|
||||
Name string `json:"name,omitempty" doc:"new instance group name"`
|
||||
_ bool `name:"updateInstanceGroup" description:"Updates a vm group"`
|
||||
}
|
||||
|
||||
func (*UpdateInstanceGroup) name() string {
|
||||
return "updateInstanceGroup"
|
||||
func (UpdateInstanceGroup) response() interface{} {
|
||||
return new(InstanceGroup)
|
||||
}
|
||||
|
||||
func (*UpdateInstanceGroup) response() interface{} {
|
||||
return new(UpdateInstanceGroupResponse)
|
||||
}
|
||||
|
||||
// UpdateInstanceGroupResponse represents an updated VM group
|
||||
type UpdateInstanceGroupResponse InstanceGroupResponse
|
||||
|
||||
// DeleteInstanceGroup creates a VM group
|
||||
//
|
||||
// CloudStack API: http://cloudstack.apache.org/api/apidocs-4.10/apis/deleteInstanceGroup.html
|
||||
// DeleteInstanceGroup deletes a VM group
|
||||
type DeleteInstanceGroup struct {
|
||||
Name string `json:"name"`
|
||||
Account string `json:"account,omitempty"`
|
||||
DomainID string `json:"domainid,omitempty"`
|
||||
ProjectID string `json:"projectid,omitempty"`
|
||||
ID *UUID `json:"id" doc:"the ID of the instance group"`
|
||||
_ bool `name:"deleteInstanceGroup" description:"Deletes a vm group"`
|
||||
}
|
||||
|
||||
func (*DeleteInstanceGroup) name() string {
|
||||
return "deleteInstanceGroup"
|
||||
}
|
||||
|
||||
func (*DeleteInstanceGroup) response() interface{} {
|
||||
return new(booleanSyncResponse)
|
||||
func (DeleteInstanceGroup) response() interface{} {
|
||||
return new(booleanResponse)
|
||||
}
|
||||
|
||||
// ListInstanceGroups lists VM groups
|
||||
//
|
||||
// CloudStack API: http://cloudstack.apache.org/api/apidocs-4.10/apis/listInstanceGroups.html
|
||||
type ListInstanceGroups struct {
|
||||
Account string `json:"account,omitempty"`
|
||||
DomainID string `json:"domainid,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
IsRecursive bool `json:"isrecursive,omitempty"`
|
||||
Keyword string `json:"keyword,omitempty"`
|
||||
ListAll bool `json:"listall,omitempty"`
|
||||
Account string `json:"account,omitempty" doc:"list resources by account. Must be used with the domainId parameter."`
|
||||
DomainID *UUID `json:"domainid,omitempty" doc:"list only resources belonging to the domain specified"`
|
||||
ID *UUID `json:"id,omitempty" doc:"list instance groups by ID"`
|
||||
IsRecursive *bool `json:"isrecursive,omitempty" doc:"defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves."`
|
||||
Keyword string `json:"keyword,omitempty" doc:"List by keyword"`
|
||||
ListAll *bool `json:"listall,omitempty" doc:"If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false"`
|
||||
Name string `json:"name,omitempty" doc:"list instance groups by name"`
|
||||
Page int `json:"page,omitempty"`
|
||||
PageSize int `json:"pagesize,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
ProjectID string `json:"projectid,omitempty"`
|
||||
}
|
||||
|
||||
func (*ListInstanceGroups) name() string {
|
||||
return "listInstanceGroups"
|
||||
}
|
||||
|
||||
func (*ListInstanceGroups) response() interface{} {
|
||||
return new(ListInstanceGroupsResponse)
|
||||
_ bool `name:"listInstanceGroups" description:"Lists vm groups"`
|
||||
}
|
||||
|
||||
// ListInstanceGroupsResponse represents a list of instance groups
|
||||
|
@ -104,3 +62,7 @@ type ListInstanceGroupsResponse struct {
|
|||
Count int `json:"count"`
|
||||
InstanceGroup []InstanceGroup `json:"instancegroup"`
|
||||
}
|
||||
|
||||
func (ListInstanceGroups) response() interface{} {
|
||||
return new(ListInstanceGroupsResponse)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue