// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // Container Engine for Kubernetes API // // Container Engine for Kubernetes API // package containerengine import ( "github.com/oracle/oci-go-sdk/common" ) // ClusterSummary The properties that define a cluster summary. type ClusterSummary struct { // The OCID of the cluster. Id *string `mandatory:"false" json:"id"` // The name of the cluster. Name *string `mandatory:"false" json:"name"` // The OCID of the compartment in which the cluster exists. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The OCID of the virtual cloud network (VCN) in which the cluster exists VcnId *string `mandatory:"false" json:"vcnId"` // The version of Kubernetes running on the cluster masters. KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` // Optional attributes for the cluster. Options *ClusterCreateOptions `mandatory:"false" json:"options"` // Metadata about the cluster. Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` // The state of the cluster masters. LifecycleState ClusterSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Details about the state of the cluster masters. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` // Endpoints served up by the cluster masters. Endpoints *ClusterEndpoints `mandatory:"false" json:"endpoints"` // Available Kubernetes versions to which the clusters masters may be upgraded. AvailableKubernetesUpgrades []string `mandatory:"false" json:"availableKubernetesUpgrades"` } func (m ClusterSummary) String() string { return common.PointerString(m) } // ClusterSummaryLifecycleStateEnum Enum with underlying type: string type ClusterSummaryLifecycleStateEnum string // Set of constants representing the allowable values for ClusterSummaryLifecycleState const ( ClusterSummaryLifecycleStateCreating ClusterSummaryLifecycleStateEnum = "CREATING" ClusterSummaryLifecycleStateActive ClusterSummaryLifecycleStateEnum = "ACTIVE" ClusterSummaryLifecycleStateFailed ClusterSummaryLifecycleStateEnum = "FAILED" ClusterSummaryLifecycleStateDeleting ClusterSummaryLifecycleStateEnum = "DELETING" ClusterSummaryLifecycleStateDeleted ClusterSummaryLifecycleStateEnum = "DELETED" ClusterSummaryLifecycleStateUpdating ClusterSummaryLifecycleStateEnum = "UPDATING" ) var mappingClusterSummaryLifecycleState = map[string]ClusterSummaryLifecycleStateEnum{ "CREATING": ClusterSummaryLifecycleStateCreating, "ACTIVE": ClusterSummaryLifecycleStateActive, "FAILED": ClusterSummaryLifecycleStateFailed, "DELETING": ClusterSummaryLifecycleStateDeleting, "DELETED": ClusterSummaryLifecycleStateDeleted, "UPDATING": ClusterSummaryLifecycleStateUpdating, } // GetClusterSummaryLifecycleStateEnumValues Enumerates the set of values for ClusterSummaryLifecycleState func GetClusterSummaryLifecycleStateEnumValues() []ClusterSummaryLifecycleStateEnum { values := make([]ClusterSummaryLifecycleStateEnum, 0) for _, v := range mappingClusterSummaryLifecycleState { values = append(values, v) } return values }