-
Notifications
You must be signed in to change notification settings - Fork 80
/
archiver.go
75 lines (58 loc) · 2.52 KB
/
archiver.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
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// Streaming Service API
//
// The API for the Streaming Service.
//
package streaming
import (
"github.com/oracle/oci-go-sdk/common"
)
// Archiver Represents the current state of the stream archiver.
type Archiver struct {
// Time when the resource was created.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The state of the stream archiver.
LifecycleState ArchiverLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The name of the bucket.
BucketName *string `mandatory:"true" json:"bucketName"`
// The flag to create a new bucket or use existing one.
UseExistingBucket *bool `mandatory:"false" json:"useExistingBucket"`
// The start message.
StartPosition ArchiverStartPositionEnum `mandatory:"false" json:"startPosition,omitempty"`
// The batch rollover size in megabytes.
BatchRolloverSizeInMBs *int `mandatory:"false" json:"batchRolloverSizeInMBs"`
// The rollover time in seconds.
BatchRolloverTimeInSeconds *int `mandatory:"false" json:"batchRolloverTimeInSeconds"`
Error *ArchiverError `mandatory:"false" json:"error"`
}
func (m Archiver) String() string {
return common.PointerString(m)
}
// ArchiverLifecycleStateEnum Enum with underlying type: string
type ArchiverLifecycleStateEnum string
// Set of constants representing the allowable values for ArchiverLifecycleStateEnum
const (
ArchiverLifecycleStateCreating ArchiverLifecycleStateEnum = "CREATING"
ArchiverLifecycleStateStopped ArchiverLifecycleStateEnum = "STOPPED"
ArchiverLifecycleStateStarting ArchiverLifecycleStateEnum = "STARTING"
ArchiverLifecycleStateRunning ArchiverLifecycleStateEnum = "RUNNING"
ArchiverLifecycleStateStopping ArchiverLifecycleStateEnum = "STOPPING"
ArchiverLifecycleStateUpdating ArchiverLifecycleStateEnum = "UPDATING"
)
var mappingArchiverLifecycleState = map[string]ArchiverLifecycleStateEnum{
"CREATING": ArchiverLifecycleStateCreating,
"STOPPED": ArchiverLifecycleStateStopped,
"STARTING": ArchiverLifecycleStateStarting,
"RUNNING": ArchiverLifecycleStateRunning,
"STOPPING": ArchiverLifecycleStateStopping,
"UPDATING": ArchiverLifecycleStateUpdating,
}
// GetArchiverLifecycleStateEnumValues Enumerates the set of values for ArchiverLifecycleStateEnum
func GetArchiverLifecycleStateEnumValues() []ArchiverLifecycleStateEnum {
values := make([]ArchiverLifecycleStateEnum, 0)
for _, v := range mappingArchiverLifecycleState {
values = append(values, v)
}
return values
}