packer-cn/vendor/github.com/oracle/oci-go-sdk/filestorage/snapshot.go

69 lines
2.2 KiB
Go
Raw Normal View History

2018-07-16 11:49:08 -04:00
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// File Storage Service API
//
// The API for the File Storage Service.
//
package filestorage
import (
"github.com/oracle/oci-go-sdk/common"
)
// Snapshot A point-in-time snapshot of a specified file system.
type Snapshot struct {
// The OCID of the file system from which the snapshot
// was created.
FileSystemId *string `mandatory:"true" json:"fileSystemId"`
// The OCID of the snapshot.
Id *string `mandatory:"true" json:"id"`
// The current state of the snapshot.
LifecycleState SnapshotLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// Name of the snapshot. This value is immutable.
// Avoid entering confidential information.
// Example: `Sunday`
Name *string `mandatory:"true" json:"name"`
// The date and time the snapshot was created, expressed
// in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format.
// Example: `2016-08-25T21:10:29.600Z`
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
}
func (m Snapshot) String() string {
return common.PointerString(m)
}
// SnapshotLifecycleStateEnum Enum with underlying type: string
type SnapshotLifecycleStateEnum string
// Set of constants representing the allowable values for SnapshotLifecycleState
const (
SnapshotLifecycleStateCreating SnapshotLifecycleStateEnum = "CREATING"
SnapshotLifecycleStateActive SnapshotLifecycleStateEnum = "ACTIVE"
SnapshotLifecycleStateDeleting SnapshotLifecycleStateEnum = "DELETING"
SnapshotLifecycleStateDeleted SnapshotLifecycleStateEnum = "DELETED"
)
var mappingSnapshotLifecycleState = map[string]SnapshotLifecycleStateEnum{
"CREATING": SnapshotLifecycleStateCreating,
"ACTIVE": SnapshotLifecycleStateActive,
"DELETING": SnapshotLifecycleStateDeleting,
"DELETED": SnapshotLifecycleStateDeleted,
}
// GetSnapshotLifecycleStateEnumValues Enumerates the set of values for SnapshotLifecycleState
func GetSnapshotLifecycleStateEnumValues() []SnapshotLifecycleStateEnum {
values := make([]SnapshotLifecycleStateEnum, 0)
for _, v := range mappingSnapshotLifecycleState {
values = append(values, v)
}
return values
}