You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.7 KiB
102 lines
3.7 KiB
/*
|
|
Copyright (c) 2019-2022 Digital Energy Cloud Solutions LLC. All Rights Reserved.
|
|
Authors:
|
|
Petr Krutov, <petr.krutov@digitalenergy.online>
|
|
Stanislav Solovev, <spsolovev@digitalenergy.online>
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
/*
|
|
Terraform DECORT provider - manage resources provided by DECORT (Digital Energy Cloud
|
|
Orchestration Technology) with Terraform by Hashicorp.
|
|
|
|
Source code: https://repository.basistech.ru/BASIS/terraform-provider-decort
|
|
|
|
Please see README.md to learn where to place source code so that it
|
|
builds seamlessly.
|
|
|
|
Documentation: https://repository.basistech.ru/BASIS/terraform-provider-decort/wiki
|
|
*/
|
|
|
|
package image
|
|
|
|
type History struct {
|
|
Guid string `json:"guid"`
|
|
Id int `json:"id"`
|
|
Timestamp int64 `json:"timestamp"`
|
|
}
|
|
|
|
type Image struct {
|
|
ImageId int `json:"id"`
|
|
Name string `json:"name"`
|
|
Url string `json:"url"`
|
|
Gid int `json:"gid"`
|
|
Guid int `json:"guid"`
|
|
Boottype string `json:"bootType"`
|
|
Imagetype string `json:"type"`
|
|
Drivers []string `json:"drivers"`
|
|
Hotresize bool `json:"hotResize"`
|
|
Bootable bool `json:"bootable"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
AccountId int `json:"accountId"`
|
|
UsernameDL string `json:"usernameDL"`
|
|
PasswordDL string `json:"passwordDL"`
|
|
SepId int `json:"sepId"`
|
|
PoolName string `json:"pool"`
|
|
Architecture string `json:"architecture"`
|
|
UNCPath string `json:"UNCPath"`
|
|
LinkTo int `json:"linkTo"`
|
|
Status string `json:"status"`
|
|
TechStatus string `json:"techStatus"`
|
|
Size int `json:"size"`
|
|
Version string `json:"version"`
|
|
Enabled bool `json:"enabled"`
|
|
ComputeciId int `json:"computeciId"`
|
|
Milestones int `json:"milestones"`
|
|
ProviderName string `json:"provider_name"`
|
|
PurgeAttempts int `json:"purgeAttempts"`
|
|
ReferenceId string `json:"referenceId"`
|
|
ResId string `json:"resId"`
|
|
ResName string `json:"resName"`
|
|
Rescuecd bool `json:"rescuecd"`
|
|
Meta []interface{} `json:"_meta"`
|
|
History []History `json:"history"`
|
|
LastModified int64 `json:"lastModified"`
|
|
Desc string `json:"desc"`
|
|
SharedWith []int `json:"sharedWith"`
|
|
}
|
|
|
|
type ImageList []Image
|
|
|
|
type ImageStack struct {
|
|
ApiURL string `json:"apiUrl"`
|
|
ApiKey string `json:"apikey"`
|
|
AppId string `json:"appId"`
|
|
Desc string `json:"desc"`
|
|
Drivers []string `json:"drivers"`
|
|
Error int `json:"error"`
|
|
Guid int `json:"guid"`
|
|
Id int `json:"id"`
|
|
Images []int `json:"images"`
|
|
Login string `json:"login"`
|
|
Name string `json:"name"`
|
|
Passwd string `json:"passwd"`
|
|
ReferenceId string `json:"referenceId"`
|
|
Status string `json:"status"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type ImageListStacks []ImageStack
|