/
container_cluster.go
52 lines (49 loc) · 2.64 KB
/
container_cluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* NSX-T Manager API
*
* VMware NSX-T Manager REST API
*
* API version: 3.0.0.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package containerinventory
import (
"github.com/vmware/go-vmware-nsxt/common"
)
// Details of container cluster.
type ContainerCluster struct {
// The server will populate this field when returing the resource. Ignored on PUT and POST.
Links []common.ResourceLink `json:"_links,omitempty"`
// Schema for this resource
Schema string `json:"_schema,omitempty"`
// Link to this resource
Self *common.SelfResourceLink `json:"_self,omitempty"`
// Timestamp of last modification
LastSyncTime int64 `json:"_last_sync_time,omitempty"`
// Description of this resource
Description string `json:"description,omitempty"`
// Defaults to ID if not set
DisplayName string `json:"display_name,omitempty"`
// The type of this resource.
ResourceType string `json:"resource_type"`
// Specifies list of scope of discovered resource. e.g. if VHC path is associated with principal identity, who owns the discovered resource, then scope id will be VHC path and scope type will be VHC.
Scope []DiscoveredResourceScope `json:"scope,omitempty"`
// Opaque identifiers meaningful to the API user
Tags []common.Tag `json:"tags,omitempty"`
// Type of the container cluster. In case of creating container cluster first time, it is expected to pass the valid cluster-type. In case of update, if there is no change in cluster-type, then this field can be omitted in the request.
ClusterType string `json:"cluster_type,omitempty"`
// Specifies Container Network Interface type for container cluster.
CniType string `json:"cni_type,omitempty"`
// External identifier of the container cluster.
ExternalId string `json:"external_id,omitempty"`
// Details of underlying infrastructure that hosts the container cluster. In case of creating container cluster first time, it is expected to pass the valid infrastructure. In case of update, if there is no change in cluster-type, then this field can be omitted in the request.
Infrastructure *ContainerInfrastructureInfo `json:"infrastructure,omitempty"`
// List of network errors related to container cluster.
NetworkErrors []common.NetworkError `json:"network_errors,omitempty"`
// Network status of container cluster.
NetworkStatus string `json:"network_status,omitempty"`
// Array of additional specific properties of container cluster in key-value format.
OriginProperties []common.KeyValuePair `json:"origin_properties,omitempty"`
// Specifies supervisor container project identifier for cluster.
SupervisorProjectId string `json:"supervisor_project_id,omitempty"`
}