github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/waf_hw/v1/premium_instances/results.go (about)

     1  /*
     2   Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
     3  */
     4  
     5  package premium_instances
     6  
     7  // CreationgRst the struct of returned by creating.
     8  type CreationgRst struct {
     9  	Instances []IdNameEntry `json:"instances"`
    10  }
    11  
    12  type IdNameEntry struct {
    13  	Id   string
    14  	Name string
    15  }
    16  
    17  // DedicatedInstance the dedicated waf instance detail.
    18  type DedicatedInstance struct {
    19  	Id                 string            `json:"id"`
    20  	InstanceName       string            `json:"instancename"`
    21  	ServerId           string            `json:"serverId"`
    22  	Region             string            `json:"region"`
    23  	Zone               string            `json:"zone"`
    24  	Arch               string            `json:"arch"`
    25  	CupFlavor          string            `json:"cpu_flavor"`
    26  	VpcId              string            `json:"vpc_id"`
    27  	SubnetId           string            `json:"subnet_id"`
    28  	ServiceIp          string            `json:"service_ip"`
    29  	ServiceIpv6        string            `json:"service_ipv6"`
    30  	FloatIp            string            `json:"floatIp"`
    31  	SecurityGroupIds   []string          `json:"security_group_ids"`
    32  	MgrSecurityGroupId string            `json:"mgrSecurityGroupId"`
    33  	Status             int               `json:"status"`
    34  	RunStatus          int               `json:"run_status"`
    35  	AccessStatus       int               `json:"access_status"`
    36  	Upgradable         int               `json:"upgradable"`
    37  	CloudServiceType   string            `json:"cloudServiceType"`
    38  	ResourceType       string            `json:"resourceType"`
    39  	ResourceSpecCode   string            `json:"resourceSpecCode"`
    40  	Specification      string            `json:"specification"`
    41  	Hosts              []IdHostnameEntry `json:"hosts"`
    42  	VolumeType         string            `json:"volume_type"`
    43  	ClusterId          string            `json:"cluster_id"`
    44  	PoolId             string            `json:"pool_id"`
    45  }
    46  
    47  type IdHostnameEntry struct {
    48  	Id       string `json:"id"`
    49  	HostName string `json:"hostname"`
    50  }
    51  
    52  // DedicatedInstanceList the struct of returned by querying list.
    53  type DedicatedInstanceList struct {
    54  	Total     int                 `json:"total"`
    55  	Purchased bool                `json:"purchased"`
    56  	Items     []DedicatedInstance `json:"items"`
    57  }