|
| 1 | +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +// Container Engine for Kubernetes API |
| 5 | +// |
| 6 | +// Container Engine for Kubernetes API |
| 7 | +// |
| 8 | + |
| 9 | +package containerengine |
| 10 | + |
| 11 | +import ( |
| 12 | + "github.com/oracle/oci-go-sdk/common" |
| 13 | +) |
| 14 | + |
| 15 | +// Cluster A Kubernetes cluster. |
| 16 | +type Cluster struct { |
| 17 | + |
| 18 | + // The OCID of the cluster. |
| 19 | + Id *string `mandatory:"false" json:"id"` |
| 20 | + |
| 21 | + // The name of the cluster. |
| 22 | + Name *string `mandatory:"false" json:"name"` |
| 23 | + |
| 24 | + // The OCID of the compartment in which the cluster exists. |
| 25 | + CompartmentId *string `mandatory:"false" json:"compartmentId"` |
| 26 | + |
| 27 | + // The OCID of the virtual cloud network (VCN) in which the cluster exists. |
| 28 | + VcnId *string `mandatory:"false" json:"vcnId"` |
| 29 | + |
| 30 | + // The version of Kubernetes running on the cluster masters. |
| 31 | + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` |
| 32 | + |
| 33 | + // Optional attributes for the cluster. |
| 34 | + Options *ClusterCreateOptions `mandatory:"false" json:"options"` |
| 35 | + |
| 36 | + // Metadata about the cluster. |
| 37 | + Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` |
| 38 | + |
| 39 | + // The state of the cluster masters. |
| 40 | + LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` |
| 41 | + |
| 42 | + // Details about the state of the cluster masters. |
| 43 | + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` |
| 44 | + |
| 45 | + // Endpoints served up by the cluster masters. |
| 46 | + Endpoints *ClusterEndpoints `mandatory:"false" json:"endpoints"` |
| 47 | + |
| 48 | + // Available Kubernetes versions to which the clusters masters may be upgraded. |
| 49 | + AvailableKubernetesUpgrades []string `mandatory:"false" json:"availableKubernetesUpgrades"` |
| 50 | +} |
| 51 | + |
| 52 | +func (m Cluster) String() string { |
| 53 | + return common.PointerString(m) |
| 54 | +} |
| 55 | + |
| 56 | +// ClusterLifecycleStateEnum Enum with underlying type: string |
| 57 | +type ClusterLifecycleStateEnum string |
| 58 | + |
| 59 | +// Set of constants representing the allowable values for ClusterLifecycleState |
| 60 | +const ( |
| 61 | + ClusterLifecycleStateCreating ClusterLifecycleStateEnum = "CREATING" |
| 62 | + ClusterLifecycleStateActive ClusterLifecycleStateEnum = "ACTIVE" |
| 63 | + ClusterLifecycleStateFailed ClusterLifecycleStateEnum = "FAILED" |
| 64 | + ClusterLifecycleStateDeleting ClusterLifecycleStateEnum = "DELETING" |
| 65 | + ClusterLifecycleStateDeleted ClusterLifecycleStateEnum = "DELETED" |
| 66 | + ClusterLifecycleStateUpdating ClusterLifecycleStateEnum = "UPDATING" |
| 67 | +) |
| 68 | + |
| 69 | +var mappingClusterLifecycleState = map[string]ClusterLifecycleStateEnum{ |
| 70 | + "CREATING": ClusterLifecycleStateCreating, |
| 71 | + "ACTIVE": ClusterLifecycleStateActive, |
| 72 | + "FAILED": ClusterLifecycleStateFailed, |
| 73 | + "DELETING": ClusterLifecycleStateDeleting, |
| 74 | + "DELETED": ClusterLifecycleStateDeleted, |
| 75 | + "UPDATING": ClusterLifecycleStateUpdating, |
| 76 | +} |
| 77 | + |
| 78 | +// GetClusterLifecycleStateEnumValues Enumerates the set of values for ClusterLifecycleState |
| 79 | +func GetClusterLifecycleStateEnumValues() []ClusterLifecycleStateEnum { |
| 80 | + values := make([]ClusterLifecycleStateEnum, 0) |
| 81 | + for _, v := range mappingClusterLifecycleState { |
| 82 | + values = append(values, v) |
| 83 | + } |
| 84 | + return values |
| 85 | +} |
0 commit comments