1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2// Code generated. DO NOT EDIT.
3
4// OceInstance API
5//
6// Oracle Content and Experience is a cloud-based content hub to drive omni-channel content management and accelerate experience delivery
7//
8
9package oce
10
11import (
12	"github.com/oracle/oci-go-sdk/common"
13)
14
15// OceInstance Details of OceInstance.
16type OceInstance struct {
17
18	// Unique identifier that is immutable on creation
19	Id *string `mandatory:"true" json:"id"`
20
21	// Unique GUID identifier that is immutable on creation
22	Guid *string `mandatory:"true" json:"guid"`
23
24	// Compartment Identifier
25	CompartmentId *string `mandatory:"true" json:"compartmentId"`
26
27	// OceInstance Name
28	Name *string `mandatory:"true" json:"name"`
29
30	// Tenancy Identifier
31	TenancyId *string `mandatory:"true" json:"tenancyId"`
32
33	// IDCS Tenancy Identifier
34	IdcsTenancy *string `mandatory:"true" json:"idcsTenancy"`
35
36	// Tenancy Name
37	TenancyName *string `mandatory:"true" json:"tenancyName"`
38
39	// Object Storage Namespace of tenancy
40	ObjectStorageNamespace *string `mandatory:"true" json:"objectStorageNamespace"`
41
42	// Admin Email for Notification
43	AdminEmail *string `mandatory:"true" json:"adminEmail"`
44
45	// OceInstance description, can be updated
46	Description *string `mandatory:"false" json:"description"`
47
48	// The time the the OceInstance was created. An RFC3339 formatted datetime string
49	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
50
51	// The time the OceInstance was updated. An RFC3339 formatted datetime string
52	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
53
54	// The current state of the file system.
55	LifecycleState OceInstanceLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
56
57	// An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
58	StateMessage *string `mandatory:"false" json:"stateMessage"`
59
60	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
61	// Example: `{"bar-key": "value"}`
62	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
63
64	// Usage of predefined tag keys. These predefined keys are scoped to namespaces.
65	// Example: `{"foo-namespace": {"bar-key": "value"}}`
66	DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
67
68	// SERVICE data.
69	// Example: `{"service": {"IDCS": "value"}}`
70	Service map[string]interface{} `mandatory:"false" json:"service"`
71}
72
73func (m OceInstance) String() string {
74	return common.PointerString(m)
75}
76
77// OceInstanceLifecycleStateEnum Enum with underlying type: string
78type OceInstanceLifecycleStateEnum string
79
80// Set of constants representing the allowable values for OceInstanceLifecycleStateEnum
81const (
82	OceInstanceLifecycleStateCreating OceInstanceLifecycleStateEnum = "CREATING"
83	OceInstanceLifecycleStateUpdating OceInstanceLifecycleStateEnum = "UPDATING"
84	OceInstanceLifecycleStateActive   OceInstanceLifecycleStateEnum = "ACTIVE"
85	OceInstanceLifecycleStateDeleting OceInstanceLifecycleStateEnum = "DELETING"
86	OceInstanceLifecycleStateDeleted  OceInstanceLifecycleStateEnum = "DELETED"
87	OceInstanceLifecycleStateFailed   OceInstanceLifecycleStateEnum = "FAILED"
88)
89
90var mappingOceInstanceLifecycleState = map[string]OceInstanceLifecycleStateEnum{
91	"CREATING": OceInstanceLifecycleStateCreating,
92	"UPDATING": OceInstanceLifecycleStateUpdating,
93	"ACTIVE":   OceInstanceLifecycleStateActive,
94	"DELETING": OceInstanceLifecycleStateDeleting,
95	"DELETED":  OceInstanceLifecycleStateDeleted,
96	"FAILED":   OceInstanceLifecycleStateFailed,
97}
98
99// GetOceInstanceLifecycleStateEnumValues Enumerates the set of values for OceInstanceLifecycleStateEnum
100func GetOceInstanceLifecycleStateEnumValues() []OceInstanceLifecycleStateEnum {
101	values := make([]OceInstanceLifecycleStateEnum, 0)
102	for _, v := range mappingOceInstanceLifecycleState {
103		values = append(values, v)
104	}
105	return values
106}
107