-
Notifications
You must be signed in to change notification settings - Fork 80
/
oda_instance.go
161 lines (130 loc) · 7.3 KB
/
oda_instance.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Digital Assistant Service Instance API
//
// API to create and maintain Oracle Digital Assistant service instances.
//
package oda
import (
"github.com/oracle/oci-go-sdk/v43/common"
)
// OdaInstance Description of `OdaServiceInstance` object.
type OdaInstance struct {
// Unique immutable identifier that was assigned when the instance was created.
Id *string `mandatory:"true" json:"id"`
// Identifier of the compartment that the instance belongs to.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Shape or size of the instance.
ShapeName OdaInstanceShapeNameEnum `mandatory:"true" json:"shapeName"`
// User-defined name for the Digital Assistant instance. Avoid entering confidential information.
// You can change this value.
DisplayName *string `mandatory:"false" json:"displayName"`
// Description of the Digital Assistant instance.
Description *string `mandatory:"false" json:"description"`
// URL for the Digital Assistant web application that's associated with the instance.
WebAppUrl *string `mandatory:"false" json:"webAppUrl"`
// URL for the connector's endpoint.
ConnectorUrl *string `mandatory:"false" json:"connectorUrl"`
// When the Digital Assistant instance was created. A date-time string as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// When the Digital Assistance instance was last updated. A date-time string as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
// The current state of the Digital Assistant instance.
LifecycleState OdaInstanceLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
// The current sub-state of the Digital Assistant instance.
LifecycleSubState OdaInstanceLifecycleSubStateEnum `mandatory:"false" json:"lifecycleSubState,omitempty"`
// A message that describes the current state in more detail.
// For example, actionable information about an instance that's in the `FAILED` state.
StateMessage *string `mandatory:"false" json:"stateMessage"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to namespaces.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}
func (m OdaInstance) String() string {
return common.PointerString(m)
}
// OdaInstanceShapeNameEnum Enum with underlying type: string
type OdaInstanceShapeNameEnum string
// Set of constants representing the allowable values for OdaInstanceShapeNameEnum
const (
OdaInstanceShapeNameDevelopment OdaInstanceShapeNameEnum = "DEVELOPMENT"
OdaInstanceShapeNameProduction OdaInstanceShapeNameEnum = "PRODUCTION"
)
var mappingOdaInstanceShapeName = map[string]OdaInstanceShapeNameEnum{
"DEVELOPMENT": OdaInstanceShapeNameDevelopment,
"PRODUCTION": OdaInstanceShapeNameProduction,
}
// GetOdaInstanceShapeNameEnumValues Enumerates the set of values for OdaInstanceShapeNameEnum
func GetOdaInstanceShapeNameEnumValues() []OdaInstanceShapeNameEnum {
values := make([]OdaInstanceShapeNameEnum, 0)
for _, v := range mappingOdaInstanceShapeName {
values = append(values, v)
}
return values
}
// OdaInstanceLifecycleStateEnum Enum with underlying type: string
type OdaInstanceLifecycleStateEnum string
// Set of constants representing the allowable values for OdaInstanceLifecycleStateEnum
const (
OdaInstanceLifecycleStateCreating OdaInstanceLifecycleStateEnum = "CREATING"
OdaInstanceLifecycleStateUpdating OdaInstanceLifecycleStateEnum = "UPDATING"
OdaInstanceLifecycleStateActive OdaInstanceLifecycleStateEnum = "ACTIVE"
OdaInstanceLifecycleStateInactive OdaInstanceLifecycleStateEnum = "INACTIVE"
OdaInstanceLifecycleStateDeleting OdaInstanceLifecycleStateEnum = "DELETING"
OdaInstanceLifecycleStateDeleted OdaInstanceLifecycleStateEnum = "DELETED"
OdaInstanceLifecycleStateFailed OdaInstanceLifecycleStateEnum = "FAILED"
)
var mappingOdaInstanceLifecycleState = map[string]OdaInstanceLifecycleStateEnum{
"CREATING": OdaInstanceLifecycleStateCreating,
"UPDATING": OdaInstanceLifecycleStateUpdating,
"ACTIVE": OdaInstanceLifecycleStateActive,
"INACTIVE": OdaInstanceLifecycleStateInactive,
"DELETING": OdaInstanceLifecycleStateDeleting,
"DELETED": OdaInstanceLifecycleStateDeleted,
"FAILED": OdaInstanceLifecycleStateFailed,
}
// GetOdaInstanceLifecycleStateEnumValues Enumerates the set of values for OdaInstanceLifecycleStateEnum
func GetOdaInstanceLifecycleStateEnumValues() []OdaInstanceLifecycleStateEnum {
values := make([]OdaInstanceLifecycleStateEnum, 0)
for _, v := range mappingOdaInstanceLifecycleState {
values = append(values, v)
}
return values
}
// OdaInstanceLifecycleSubStateEnum Enum with underlying type: string
type OdaInstanceLifecycleSubStateEnum string
// Set of constants representing the allowable values for OdaInstanceLifecycleSubStateEnum
const (
OdaInstanceLifecycleSubStateCreating OdaInstanceLifecycleSubStateEnum = "CREATING"
OdaInstanceLifecycleSubStateStarting OdaInstanceLifecycleSubStateEnum = "STARTING"
OdaInstanceLifecycleSubStateStopping OdaInstanceLifecycleSubStateEnum = "STOPPING"
OdaInstanceLifecycleSubStateChangingCompartment OdaInstanceLifecycleSubStateEnum = "CHANGING_COMPARTMENT"
OdaInstanceLifecycleSubStateDeleting OdaInstanceLifecycleSubStateEnum = "DELETING"
OdaInstanceLifecycleSubStateDeletePending OdaInstanceLifecycleSubStateEnum = "DELETE_PENDING"
OdaInstanceLifecycleSubStateRecovering OdaInstanceLifecycleSubStateEnum = "RECOVERING"
OdaInstanceLifecycleSubStatePurging OdaInstanceLifecycleSubStateEnum = "PURGING"
OdaInstanceLifecycleSubStateQueued OdaInstanceLifecycleSubStateEnum = "QUEUED"
)
var mappingOdaInstanceLifecycleSubState = map[string]OdaInstanceLifecycleSubStateEnum{
"CREATING": OdaInstanceLifecycleSubStateCreating,
"STARTING": OdaInstanceLifecycleSubStateStarting,
"STOPPING": OdaInstanceLifecycleSubStateStopping,
"CHANGING_COMPARTMENT": OdaInstanceLifecycleSubStateChangingCompartment,
"DELETING": OdaInstanceLifecycleSubStateDeleting,
"DELETE_PENDING": OdaInstanceLifecycleSubStateDeletePending,
"RECOVERING": OdaInstanceLifecycleSubStateRecovering,
"PURGING": OdaInstanceLifecycleSubStatePurging,
"QUEUED": OdaInstanceLifecycleSubStateQueued,
}
// GetOdaInstanceLifecycleSubStateEnumValues Enumerates the set of values for OdaInstanceLifecycleSubStateEnum
func GetOdaInstanceLifecycleSubStateEnumValues() []OdaInstanceLifecycleSubStateEnum {
values := make([]OdaInstanceLifecycleSubStateEnum, 0)
for _, v := range mappingOdaInstanceLifecycleSubState {
values = append(values, v)
}
return values
}