|
| 1 | +// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +// Core Services API |
| 5 | +// |
| 6 | +// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), |
| 7 | +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and |
| 8 | +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API |
| 9 | +// to manage resources such as virtual cloud networks (VCNs), compute instances, and |
| 10 | +// block storage volumes. |
| 11 | +// |
| 12 | + |
| 13 | +package core |
| 14 | + |
| 15 | +import ( |
| 16 | + "github.com/oracle/oci-go-sdk/common" |
| 17 | +) |
| 18 | + |
| 19 | +// ClusterNetwork Cluster Network |
| 20 | +type ClusterNetwork struct { |
| 21 | + |
| 22 | + // The OCID of the cluster network. |
| 23 | + Id *string `mandatory:"true" json:"id"` |
| 24 | + |
| 25 | + // The OCID of the compartment containing the cluster netowrk. |
| 26 | + CompartmentId *string `mandatory:"true" json:"compartmentId"` |
| 27 | + |
| 28 | + // The current state of the cluster network. |
| 29 | + LifecycleState ClusterNetworkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` |
| 30 | + |
| 31 | + // The date and time the resource was created, in the format defined by RFC3339. |
| 32 | + // Example: `2016-08-25T21:10:29.600Z` |
| 33 | + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` |
| 34 | + |
| 35 | + // The date and time the resource was updated, in the format defined by RFC3339. |
| 36 | + // Example: `2016-08-25T21:10:29.600Z` |
| 37 | + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` |
| 38 | + |
| 39 | + // Defined tags for this resource. Each key is predefined and scoped to a |
| 40 | + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). |
| 41 | + // Example: `{"Operations": {"CostCenter": "42"}}` |
| 42 | + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` |
| 43 | + |
| 44 | + // The user-friendly name. Does not have to be unique. |
| 45 | + DisplayName *string `mandatory:"false" json:"displayName"` |
| 46 | + |
| 47 | + // Free-form tags for this resource. Each tag is a simple key-value pair with no |
| 48 | + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). |
| 49 | + // Example: `{"Department": "Finance"}` |
| 50 | + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` |
| 51 | + |
| 52 | + // the instance pools in the cluster network. |
| 53 | + InstancePools []InstancePool `mandatory:"false" json:"instancePools"` |
| 54 | + |
| 55 | + // the placement data for the intance pools in the cluster network |
| 56 | + PlacementConfiguration *ClusterNetworkPlacementConfigurationDetails `mandatory:"false" json:"placementConfiguration"` |
| 57 | +} |
| 58 | + |
| 59 | +func (m ClusterNetwork) String() string { |
| 60 | + return common.PointerString(m) |
| 61 | +} |
| 62 | + |
| 63 | +// ClusterNetworkLifecycleStateEnum Enum with underlying type: string |
| 64 | +type ClusterNetworkLifecycleStateEnum string |
| 65 | + |
| 66 | +// Set of constants representing the allowable values for ClusterNetworkLifecycleStateEnum |
| 67 | +const ( |
| 68 | + ClusterNetworkLifecycleStateProvisioning ClusterNetworkLifecycleStateEnum = "PROVISIONING" |
| 69 | + ClusterNetworkLifecycleStateScaling ClusterNetworkLifecycleStateEnum = "SCALING" |
| 70 | + ClusterNetworkLifecycleStateStarting ClusterNetworkLifecycleStateEnum = "STARTING" |
| 71 | + ClusterNetworkLifecycleStateStopping ClusterNetworkLifecycleStateEnum = "STOPPING" |
| 72 | + ClusterNetworkLifecycleStateTerminating ClusterNetworkLifecycleStateEnum = "TERMINATING" |
| 73 | + ClusterNetworkLifecycleStateStopped ClusterNetworkLifecycleStateEnum = "STOPPED" |
| 74 | + ClusterNetworkLifecycleStateTerminated ClusterNetworkLifecycleStateEnum = "TERMINATED" |
| 75 | + ClusterNetworkLifecycleStateRunning ClusterNetworkLifecycleStateEnum = "RUNNING" |
| 76 | +) |
| 77 | + |
| 78 | +var mappingClusterNetworkLifecycleState = map[string]ClusterNetworkLifecycleStateEnum{ |
| 79 | + "PROVISIONING": ClusterNetworkLifecycleStateProvisioning, |
| 80 | + "SCALING": ClusterNetworkLifecycleStateScaling, |
| 81 | + "STARTING": ClusterNetworkLifecycleStateStarting, |
| 82 | + "STOPPING": ClusterNetworkLifecycleStateStopping, |
| 83 | + "TERMINATING": ClusterNetworkLifecycleStateTerminating, |
| 84 | + "STOPPED": ClusterNetworkLifecycleStateStopped, |
| 85 | + "TERMINATED": ClusterNetworkLifecycleStateTerminated, |
| 86 | + "RUNNING": ClusterNetworkLifecycleStateRunning, |
| 87 | +} |
| 88 | + |
| 89 | +// GetClusterNetworkLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkLifecycleStateEnum |
| 90 | +func GetClusterNetworkLifecycleStateEnumValues() []ClusterNetworkLifecycleStateEnum { |
| 91 | + values := make([]ClusterNetworkLifecycleStateEnum, 0) |
| 92 | + for _, v := range mappingClusterNetworkLifecycleState { |
| 93 | + values = append(values, v) |
| 94 | + } |
| 95 | + return values |
| 96 | +} |
0 commit comments