|
| 1 | +// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +// Database Service API |
| 5 | +// |
| 6 | +// The API for the Database Service. |
| 7 | +// |
| 8 | + |
| 9 | +package database |
| 10 | + |
| 11 | +import ( |
| 12 | + "github.com/oracle/oci-go-sdk/common" |
| 13 | +) |
| 14 | + |
| 15 | +// BackupDestination Backup destination details. |
| 16 | +type BackupDestination struct { |
| 17 | + |
| 18 | + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup destination. |
| 19 | + Id *string `mandatory:"false" json:"id"` |
| 20 | + |
| 21 | + // The user-provided name of the backup destination. |
| 22 | + DisplayName *string `mandatory:"false" json:"displayName"` |
| 23 | + |
| 24 | + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. |
| 25 | + CompartmentId *string `mandatory:"false" json:"compartmentId"` |
| 26 | + |
| 27 | + // Type of the backup destination. |
| 28 | + Type BackupDestinationTypeEnum `mandatory:"false" json:"type,omitempty"` |
| 29 | + |
| 30 | + // List of databases associated with the backup destination. |
| 31 | + AssociatedDatabases []AssociatedDatabaseDetails `mandatory:"false" json:"associatedDatabases"` |
| 32 | + |
| 33 | + // For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance. |
| 34 | + ConnectionString *string `mandatory:"false" json:"connectionString"` |
| 35 | + |
| 36 | + // For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance. |
| 37 | + VpcUsers []string `mandatory:"false" json:"vpcUsers"` |
| 38 | + |
| 39 | + // The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes. |
| 40 | + LocalMountPointPath *string `mandatory:"false" json:"localMountPointPath"` |
| 41 | + |
| 42 | + // The current lifecycle state of the backup destination. |
| 43 | + LifecycleState BackupDestinationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` |
| 44 | + |
| 45 | + // The date and time the backup destination was created. |
| 46 | + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` |
| 47 | + |
| 48 | + // A descriptive text associated with the lifecycleState. |
| 49 | + // Typically contains additional displayable text |
| 50 | + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` |
| 51 | + |
| 52 | + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. |
| 53 | + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). |
| 54 | + // Example: `{"Department": "Finance"}` |
| 55 | + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` |
| 56 | + |
| 57 | + // Defined tags for this resource. Each key is predefined and scoped to a namespace. |
| 58 | + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). |
| 59 | + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` |
| 60 | +} |
| 61 | + |
| 62 | +func (m BackupDestination) String() string { |
| 63 | + return common.PointerString(m) |
| 64 | +} |
| 65 | + |
| 66 | +// BackupDestinationTypeEnum Enum with underlying type: string |
| 67 | +type BackupDestinationTypeEnum string |
| 68 | + |
| 69 | +// Set of constants representing the allowable values for BackupDestinationTypeEnum |
| 70 | +const ( |
| 71 | + BackupDestinationTypeNfs BackupDestinationTypeEnum = "NFS" |
| 72 | + BackupDestinationTypeRecoveryAppliance BackupDestinationTypeEnum = "RECOVERY_APPLIANCE" |
| 73 | +) |
| 74 | + |
| 75 | +var mappingBackupDestinationType = map[string]BackupDestinationTypeEnum{ |
| 76 | + "NFS": BackupDestinationTypeNfs, |
| 77 | + "RECOVERY_APPLIANCE": BackupDestinationTypeRecoveryAppliance, |
| 78 | +} |
| 79 | + |
| 80 | +// GetBackupDestinationTypeEnumValues Enumerates the set of values for BackupDestinationTypeEnum |
| 81 | +func GetBackupDestinationTypeEnumValues() []BackupDestinationTypeEnum { |
| 82 | + values := make([]BackupDestinationTypeEnum, 0) |
| 83 | + for _, v := range mappingBackupDestinationType { |
| 84 | + values = append(values, v) |
| 85 | + } |
| 86 | + return values |
| 87 | +} |
| 88 | + |
| 89 | +// BackupDestinationLifecycleStateEnum Enum with underlying type: string |
| 90 | +type BackupDestinationLifecycleStateEnum string |
| 91 | + |
| 92 | +// Set of constants representing the allowable values for BackupDestinationLifecycleStateEnum |
| 93 | +const ( |
| 94 | + BackupDestinationLifecycleStateActive BackupDestinationLifecycleStateEnum = "ACTIVE" |
| 95 | + BackupDestinationLifecycleStateFailed BackupDestinationLifecycleStateEnum = "FAILED" |
| 96 | + BackupDestinationLifecycleStateDeleted BackupDestinationLifecycleStateEnum = "DELETED" |
| 97 | +) |
| 98 | + |
| 99 | +var mappingBackupDestinationLifecycleState = map[string]BackupDestinationLifecycleStateEnum{ |
| 100 | + "ACTIVE": BackupDestinationLifecycleStateActive, |
| 101 | + "FAILED": BackupDestinationLifecycleStateFailed, |
| 102 | + "DELETED": BackupDestinationLifecycleStateDeleted, |
| 103 | +} |
| 104 | + |
| 105 | +// GetBackupDestinationLifecycleStateEnumValues Enumerates the set of values for BackupDestinationLifecycleStateEnum |
| 106 | +func GetBackupDestinationLifecycleStateEnumValues() []BackupDestinationLifecycleStateEnum { |
| 107 | + values := make([]BackupDestinationLifecycleStateEnum, 0) |
| 108 | + for _, v := range mappingBackupDestinationLifecycleState { |
| 109 | + values = append(values, v) |
| 110 | + } |
| 111 | + return values |
| 112 | +} |
0 commit comments