-
Notifications
You must be signed in to change notification settings - Fork 82
/
work_request_summary.go
112 lines (90 loc) · 4.6 KB
/
work_request_summary.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
// Copyright (c) 2016, 2018, 2020, 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.
// ndcs-control-plane API
//
// The control plane API for NoSQL Database Cloud Service HTTPS
// provides endpoints to perform NDCS operations, including creation
// and deletion of tables and indexes; population and access of data
// in tables; and access of table usage metrics.
//
package nosql
import (
"github.com/oracle/oci-go-sdk/common"
)
// WorkRequestSummary A description of workrequest status.
type WorkRequestSummary struct {
// Type of the work request.
OperationType WorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"`
// Status of current work request.
Status WorkRequestSummaryStatusEnum `mandatory:"true" json:"status"`
// The id of the work request.
Id *string `mandatory:"true" json:"id"`
// The ocid of the compartment that contains the work request.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The resources affected by this work request.
Resources []WorkRequestResource `mandatory:"true" json:"resources"`
// Percentage of the request completed.
PercentComplete *float32 `mandatory:"true" json:"percentComplete"`
// The date and time the request was created, as described in
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`
// The date and time the request was started, as described in
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section
// 14.29.
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// The date and time the object was finished, as described in
// RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}
func (m WorkRequestSummary) String() string {
return common.PointerString(m)
}
// WorkRequestSummaryOperationTypeEnum Enum with underlying type: string
type WorkRequestSummaryOperationTypeEnum string
// Set of constants representing the allowable values for WorkRequestSummaryOperationTypeEnum
const (
WorkRequestSummaryOperationTypeCreateTable WorkRequestSummaryOperationTypeEnum = "CREATE_TABLE"
WorkRequestSummaryOperationTypeUpdateTable WorkRequestSummaryOperationTypeEnum = "UPDATE_TABLE"
WorkRequestSummaryOperationTypeDeleteTable WorkRequestSummaryOperationTypeEnum = "DELETE_TABLE"
)
var mappingWorkRequestSummaryOperationType = map[string]WorkRequestSummaryOperationTypeEnum{
"CREATE_TABLE": WorkRequestSummaryOperationTypeCreateTable,
"UPDATE_TABLE": WorkRequestSummaryOperationTypeUpdateTable,
"DELETE_TABLE": WorkRequestSummaryOperationTypeDeleteTable,
}
// GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestSummaryOperationTypeEnum
func GetWorkRequestSummaryOperationTypeEnumValues() []WorkRequestSummaryOperationTypeEnum {
values := make([]WorkRequestSummaryOperationTypeEnum, 0)
for _, v := range mappingWorkRequestSummaryOperationType {
values = append(values, v)
}
return values
}
// WorkRequestSummaryStatusEnum Enum with underlying type: string
type WorkRequestSummaryStatusEnum string
// Set of constants representing the allowable values for WorkRequestSummaryStatusEnum
const (
WorkRequestSummaryStatusAccepted WorkRequestSummaryStatusEnum = "ACCEPTED"
WorkRequestSummaryStatusInProgress WorkRequestSummaryStatusEnum = "IN_PROGRESS"
WorkRequestSummaryStatusFailed WorkRequestSummaryStatusEnum = "FAILED"
WorkRequestSummaryStatusSucceeded WorkRequestSummaryStatusEnum = "SUCCEEDED"
WorkRequestSummaryStatusCanceling WorkRequestSummaryStatusEnum = "CANCELING"
WorkRequestSummaryStatusCanceled WorkRequestSummaryStatusEnum = "CANCELED"
)
var mappingWorkRequestSummaryStatus = map[string]WorkRequestSummaryStatusEnum{
"ACCEPTED": WorkRequestSummaryStatusAccepted,
"IN_PROGRESS": WorkRequestSummaryStatusInProgress,
"FAILED": WorkRequestSummaryStatusFailed,
"SUCCEEDED": WorkRequestSummaryStatusSucceeded,
"CANCELING": WorkRequestSummaryStatusCanceling,
"CANCELED": WorkRequestSummaryStatusCanceled,
}
// GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestSummaryStatusEnum
func GetWorkRequestSummaryStatusEnumValues() []WorkRequestSummaryStatusEnum {
values := make([]WorkRequestSummaryStatusEnum, 0)
for _, v := range mappingWorkRequestSummaryStatus {
values = append(values, v)
}
return values
}