|
| 1 | +// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +// Core Services API |
| 5 | +// |
| 6 | +// APIs for Networking Service, Compute Service, and Block Volume Service. |
| 7 | +// |
| 8 | + |
| 9 | +package core |
| 10 | + |
| 11 | +import ( |
| 12 | + "github.com/oracle/oci-go-sdk/common" |
| 13 | +) |
| 14 | + |
| 15 | +// BootVolumeBackup A point-in-time copy of a boot volume that can then be used to create |
| 16 | +// a new boot volume or recover a boot volume. For more information, see Overview |
| 17 | +// of Boot Volume Backups (https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumebackups.htm) |
| 18 | +// To use any of the API operations, you must be authorized in an IAM policy. |
| 19 | +// If you're not authorized, talk to an administrator. If you're an administrator |
| 20 | +// who needs to write policies to give users access, see Getting Started with |
| 21 | +// Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm). |
| 22 | +type BootVolumeBackup struct { |
| 23 | + |
| 24 | + // The OCID of the compartment that contains the boot volume backup. |
| 25 | + CompartmentId *string `mandatory:"true" json:"compartmentId"` |
| 26 | + |
| 27 | + // A user-friendly name for the boot volume backup. Does not have to be unique and it's changeable. |
| 28 | + // Avoid entering confidential information. |
| 29 | + DisplayName *string `mandatory:"true" json:"displayName"` |
| 30 | + |
| 31 | + // The OCID of the boot volume backup. |
| 32 | + Id *string `mandatory:"true" json:"id"` |
| 33 | + |
| 34 | + // The current state of a boot volume backup. |
| 35 | + LifecycleState BootVolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` |
| 36 | + |
| 37 | + // The date and time the boot volume backup was created. This is the time the actual point-in-time image |
| 38 | + // of the volume data was taken. Format defined by RFC3339. |
| 39 | + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` |
| 40 | + |
| 41 | + // The OCID of the boot volume. |
| 42 | + BootVolumeId *string `mandatory:"false" json:"bootVolumeId"` |
| 43 | + |
| 44 | + // Defined tags for this resource. Each key is predefined and scoped to a namespace. |
| 45 | + // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). |
| 46 | + // Example: `{"Operations": {"CostCenter": "42"}}` |
| 47 | + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` |
| 48 | + |
| 49 | + // The date and time the volume backup will expire and be automatically deleted. |
| 50 | + // Format defined by RFC3339. This parameter will always be present for backups that |
| 51 | + // were created automatically by a scheduled-backup policy. For manually created backups, |
| 52 | + // it will be absent, signifying that there is no expiration time and the backup will |
| 53 | + // last forever until manually deleted. |
| 54 | + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` |
| 55 | + |
| 56 | + // Free-form tags for this resource. Each tag is a simple key-value pair with no |
| 57 | + // predefined name, type, or namespace. For more information, see |
| 58 | + // Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). |
| 59 | + // Example: `{"Department": "Finance"}` |
| 60 | + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` |
| 61 | + |
| 62 | + // The image OCID used to create the boot volume the backup is taken from. |
| 63 | + ImageId *string `mandatory:"false" json:"imageId"` |
| 64 | + |
| 65 | + // The size of the boot volume, in GBs. |
| 66 | + SizeInGBs *int `mandatory:"false" json:"sizeInGBs"` |
| 67 | + |
| 68 | + // Specifies whether the backup was created manually, or via scheduled backup policy. |
| 69 | + SourceType BootVolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` |
| 70 | + |
| 71 | + // The date and time the request to create the boot volume backup was received. Format defined by RFC3339. |
| 72 | + TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` |
| 73 | + |
| 74 | + // The type of a volume backup. |
| 75 | + Type BootVolumeBackupTypeEnum `mandatory:"false" json:"type,omitempty"` |
| 76 | + |
| 77 | + // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space |
| 78 | + // consumed on the boot volume and whether the backup is full or incremental. |
| 79 | + UniqueSizeInGBs *int `mandatory:"false" json:"uniqueSizeInGBs"` |
| 80 | +} |
| 81 | + |
| 82 | +func (m BootVolumeBackup) String() string { |
| 83 | + return common.PointerString(m) |
| 84 | +} |
| 85 | + |
| 86 | +// BootVolumeBackupLifecycleStateEnum Enum with underlying type: string |
| 87 | +type BootVolumeBackupLifecycleStateEnum string |
| 88 | + |
| 89 | +// Set of constants representing the allowable values for BootVolumeBackupLifecycleState |
| 90 | +const ( |
| 91 | + BootVolumeBackupLifecycleStateCreating BootVolumeBackupLifecycleStateEnum = "CREATING" |
| 92 | + BootVolumeBackupLifecycleStateAvailable BootVolumeBackupLifecycleStateEnum = "AVAILABLE" |
| 93 | + BootVolumeBackupLifecycleStateTerminating BootVolumeBackupLifecycleStateEnum = "TERMINATING" |
| 94 | + BootVolumeBackupLifecycleStateTerminated BootVolumeBackupLifecycleStateEnum = "TERMINATED" |
| 95 | + BootVolumeBackupLifecycleStateFaulty BootVolumeBackupLifecycleStateEnum = "FAULTY" |
| 96 | + BootVolumeBackupLifecycleStateRequestReceived BootVolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" |
| 97 | +) |
| 98 | + |
| 99 | +var mappingBootVolumeBackupLifecycleState = map[string]BootVolumeBackupLifecycleStateEnum{ |
| 100 | + "CREATING": BootVolumeBackupLifecycleStateCreating, |
| 101 | + "AVAILABLE": BootVolumeBackupLifecycleStateAvailable, |
| 102 | + "TERMINATING": BootVolumeBackupLifecycleStateTerminating, |
| 103 | + "TERMINATED": BootVolumeBackupLifecycleStateTerminated, |
| 104 | + "FAULTY": BootVolumeBackupLifecycleStateFaulty, |
| 105 | + "REQUEST_RECEIVED": BootVolumeBackupLifecycleStateRequestReceived, |
| 106 | +} |
| 107 | + |
| 108 | +// GetBootVolumeBackupLifecycleStateEnumValues Enumerates the set of values for BootVolumeBackupLifecycleState |
| 109 | +func GetBootVolumeBackupLifecycleStateEnumValues() []BootVolumeBackupLifecycleStateEnum { |
| 110 | + values := make([]BootVolumeBackupLifecycleStateEnum, 0) |
| 111 | + for _, v := range mappingBootVolumeBackupLifecycleState { |
| 112 | + values = append(values, v) |
| 113 | + } |
| 114 | + return values |
| 115 | +} |
| 116 | + |
| 117 | +// BootVolumeBackupSourceTypeEnum Enum with underlying type: string |
| 118 | +type BootVolumeBackupSourceTypeEnum string |
| 119 | + |
| 120 | +// Set of constants representing the allowable values for BootVolumeBackupSourceType |
| 121 | +const ( |
| 122 | + BootVolumeBackupSourceTypeManual BootVolumeBackupSourceTypeEnum = "MANUAL" |
| 123 | + BootVolumeBackupSourceTypeScheduled BootVolumeBackupSourceTypeEnum = "SCHEDULED" |
| 124 | +) |
| 125 | + |
| 126 | +var mappingBootVolumeBackupSourceType = map[string]BootVolumeBackupSourceTypeEnum{ |
| 127 | + "MANUAL": BootVolumeBackupSourceTypeManual, |
| 128 | + "SCHEDULED": BootVolumeBackupSourceTypeScheduled, |
| 129 | +} |
| 130 | + |
| 131 | +// GetBootVolumeBackupSourceTypeEnumValues Enumerates the set of values for BootVolumeBackupSourceType |
| 132 | +func GetBootVolumeBackupSourceTypeEnumValues() []BootVolumeBackupSourceTypeEnum { |
| 133 | + values := make([]BootVolumeBackupSourceTypeEnum, 0) |
| 134 | + for _, v := range mappingBootVolumeBackupSourceType { |
| 135 | + values = append(values, v) |
| 136 | + } |
| 137 | + return values |
| 138 | +} |
| 139 | + |
| 140 | +// BootVolumeBackupTypeEnum Enum with underlying type: string |
| 141 | +type BootVolumeBackupTypeEnum string |
| 142 | + |
| 143 | +// Set of constants representing the allowable values for BootVolumeBackupType |
| 144 | +const ( |
| 145 | + BootVolumeBackupTypeFull BootVolumeBackupTypeEnum = "FULL" |
| 146 | + BootVolumeBackupTypeIncremental BootVolumeBackupTypeEnum = "INCREMENTAL" |
| 147 | +) |
| 148 | + |
| 149 | +var mappingBootVolumeBackupType = map[string]BootVolumeBackupTypeEnum{ |
| 150 | + "FULL": BootVolumeBackupTypeFull, |
| 151 | + "INCREMENTAL": BootVolumeBackupTypeIncremental, |
| 152 | +} |
| 153 | + |
| 154 | +// GetBootVolumeBackupTypeEnumValues Enumerates the set of values for BootVolumeBackupType |
| 155 | +func GetBootVolumeBackupTypeEnumValues() []BootVolumeBackupTypeEnum { |
| 156 | + values := make([]BootVolumeBackupTypeEnum, 0) |
| 157 | + for _, v := range mappingBootVolumeBackupType { |
| 158 | + values = append(values, v) |
| 159 | + } |
| 160 | + return values |
| 161 | +} |
0 commit comments