github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/cbr/v3/vaults/results.go (about)

     1  package vaults
     2  
     3  import (
     4  	"github.com/opentelekomcloud/gophertelekomcloud/openstack/common/tags"
     5  )
     6  
     7  type Billing struct {
     8  	Allocated       int    `json:"allocated"`
     9  	ChargingMode    string `json:"charging_mode"`
    10  	CloudType       string `json:"cloud_type"`
    11  	ConsistentLevel string `json:"consistent_level"`
    12  	ObjectType      string `json:"object_type"`
    13  	OrderID         string `json:"order_id"`
    14  	ProductID       string `json:"product_id"`
    15  	ProtectType     string `json:"protect_type"`
    16  	Size            int    `json:"size"`
    17  	SpecCode        string `json:"spec_code"`
    18  	Status          string `json:"status"`
    19  	StorageUnit     string `json:"storage_unit"`
    20  	Used            int    `json:"used"`
    21  	FrozenScene     string `json:"frozen_scene"`
    22  }
    23  
    24  type ResourceResp struct {
    25  	ExtraInfo     ResourceExtraInfo `json:"extra_info"`
    26  	ID            string            `json:"id"`
    27  	Name          string            `json:"name"`
    28  	ProtectStatus string            `json:"protect_status"`
    29  	Size          int               `json:"size"`
    30  	Type          string            `json:"type"`
    31  	BackupSize    int               `json:"backup_size"`
    32  	BackupCount   int               `json:"backup_count"`
    33  }
    34  
    35  type Vault struct {
    36  	ID          string             `json:"id"`
    37  	Name        string             `json:"name"`
    38  	Billing     Billing            `json:"billing"`
    39  	Description string             `json:"description"`
    40  	ProjectID   string             `json:"project_id"`
    41  	ProviderID  string             `json:"provider_id"`
    42  	Resources   []ResourceResp     `json:"resources"`
    43  	Tags        []tags.ResourceTag `json:"tags"`
    44  
    45  	EnterpriseProjectID string `json:"enterprise_project_id"`
    46  
    47  	AutoBind   bool           `json:"auto_bind"`
    48  	BindRules  VaultBindRules `json:"bind_rules"`
    49  	UserID     string         `json:"user_id"`
    50  	CreatedAt  string         `json:"created_at"`
    51  	AutoExpand bool           `json:"auto_expand"`
    52  }