/**
 * Object Storage Service API
 * Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources.
For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
[Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).

 * OpenAPI spec version: 20160918
 * Contact: opc_casper_users_us_grp@oracle.com
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, 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.
 */ import * as model from "../model" ; import common = require ( "oci-common" ) ; /**
 * The details of a replication policy.
 */ export interface ReplicationPolicy { /**
     * The id of the replication policy.
     */ "id" : string ; /**
     * The name of the policy.
     */ "name" : string ; /**
     * The destination region to replicate to, for example \"us-ashburn-1\".
     */ "destinationRegionName" : string ; /**
     * The bucket to replicate to in the destination region. Replication policy creation does not automatically
     * create a destination bucket. Create the destination bucket before creating the policy.
     *
     */ "destinationBucketName" : string ; /**
     * The date when the replication policy was created as per [RFC 3339](https://tools.ietf.org/html/rfc3339).
     *
     */ "timeCreated" : Date ; /**
     * Changes made to the source bucket before this time has been replicated.
     *
     */ "timeLastSync" : Date ; /**
     * The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue
     * described in the status message, the status will become ACTIVE.
     *
     */ "status" : ReplicationPolicy . Status ; /**
     * A human-readable description of the status.
     */ "statusMessage" : string ; } export namespace ReplicationPolicy { export enum Status { Active = "ACTIVE" , ClientError = "CLIENT_ERROR" , /**
         * This value is used if a service returns a value for this enum that is not recognized by this
         * version of the SDK.
         */ UnknownValue = "UNKNOWN_VALUE" } export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; return jsonObj ; } }