/**
 * Core Services API
 * Use the Core Services API to manage resources such as virtual cloud networks (VCNs),
compute instances, and block storage volumes. For more information, see the console
documentation for the [Networking](/iaas/Content/Network/Concepts/overview.htm),
[Compute](/iaas/Content/Compute/Concepts/computeoverview.htm), and
[Block Volume](/iaas/Content/Block/Concepts/overview.htm) services.

 * OpenAPI spec version: 20160918
 *
 *
 * 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" ) ; export interface UpdateVirtualCircuitDetails { /**
     * The provisioned data rate of the connection. To get a list of the
     * available bandwidth levels (that is, shapes), see
     *  {@link #listFastConnectProviderVirtualCircuitBandwidthShapes(ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) listFastConnectProviderVirtualCircuitBandwidthShapes} .
     * To be updated only by the customer who owns the virtual circuit.
     *
      "bandwidthShapeName" ? : string ; /**
      * An array of mappings, each containing properties for a cross-connect or
  * cross-connect group associated with this virtual circuit.
  * <p>
  The customer and provider can update different properties in the mapping
  * depending on the situation. See the description of the
  *  CrossConnectMapping .
  *
       "crossConnectMappings" ? : Array < model . CrossConnectMapping > ; /**
     * The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit.
     * Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`.
     * See [Route Filtering](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details.
     * By default, routing information is shared for all routes in the same market.
     *
     */ "routingPolicy" ? : Array < UpdateVirtualCircuitDetails . RoutingPolicy > ; /**
     * Deprecated. Instead use `customerAsn`.
     * If you specify values for both, the request will be rejected.
     *  Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
     */ "customerBgpAsn" ? : number ; /**
      * The BGP ASN of the network at the other end of the BGP
  * session from Oracle.
  * <p>
  If the BGP session is from the customer's edge router to Oracle, the
  * required value is the customer's ASN, and it can be updated only
  * by the customer.
  * <p>
  If the BGP session is from the provider's edge router to Oracle, the
  * required value is the provider's ASN, and it can be updated only
  * by the provider.
  * <p>
  Can be a 2-byte or 4-byte ASN. Uses \"asplain\" format.
  *  Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
      */ "customerAsn" ? : number ; /**
      * Defined tags for this resource. Each key is predefined and scoped to a
  * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
  * <p>
  Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
  *
      */ "definedTags" ? : { [ key ] : { [ key ] : any ; } ; } ; /**
     * A user-friendly name. Does not have to be unique, and it's changeable.
     * Avoid entering confidential information.
     *
     */ "displayName" ? : string ; /**
      * Free-form tags for this resource. Each tag is a simple key-value pair with no
  * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
  * <p>
  Example: `{\"Department\": \"Finance\"}`
  *
      */ "freeformTags" ? : { [ key ] : string ; } ; /**
      * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the  Drg * that this private virtual circuit uses.
  * <p>
  To be updated only by the customer who owns the virtual circuit.
  *
       "gatewayId" ? : string ; /**
      * The provider's state in relation to this virtual circuit. Relevant only
  * if the customer is using FastConnect via a provider. ACTIVE
  * means the provider has provisioned the virtual circuit from their
  * end. INACTIVE means the provider has not yet provisioned the virtual
  * circuit, or has de-provisioned it.
  * <p>
  To be updated only by the provider.
  *
      */ "providerState" ? : UpdateVirtualCircuitDetails . ProviderState ; /**
     * The service key name offered by the provider (if the customer is connecting via a provider).
     *
     */ "providerServiceKeyName" ? : string ; /**
      * Provider-supplied reference information about this virtual circuit.
  * Relevant only if the customer is using FastConnect via a provider.
  * <p>
  To be updated only by the provider.
  *
      */ "referenceComment" ? : string ; /**
     * The layer 3 IP MTU to use on this virtual circuit.
     */ "ipMtu" ? : model . VirtualCircuitIpMtu ; } export namespace UpdateVirtualCircuitDetails { export enum RoutingPolicy { OracleServiceNetwork = "ORACLE_SERVICE_NETWORK" , Regional = "REGIONAL" , MarketLevel = "MARKET_LEVEL" , Global = "GLOBAL" } export enum ProviderState { Active = "ACTIVE" , Inactive = "INACTIVE" } export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "crossConnectMappings" : obj . crossConnectMappings ? obj . crossConnectMappings . map ( item => { return model . CrossConnectMapping . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "crossConnectMappings" : obj . crossConnectMappings ? obj . crossConnectMappings . map ( item => { return model . CrossConnectMapping . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }