github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/containerinventory/container_cluster.go (about)

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