/**
 * Web Application Firewall (WAF) API
 * API for the Web Application Firewall service.
Use this API to manage regional Web App Firewalls and corresponding policies for protecting HTTP services.

 * OpenAPI spec version: 20210930
 *
 *
 * 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" ) ; /**
 * IP addresses that can be used between different WebAppFirewallPolicies.
 */ export interface NetworkAddressList { /**
     * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the NetworkAddressList.
     */ "id" : string ; /**
     * NetworkAddressList display name, can be renamed.
     */ "displayName" : string ; /**
     * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
     */ "compartmentId" : string ; /**
     * The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
     */ "timeCreated" : Date ; /**
     * The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
     */ "timeUpdated" ? : Date ; /**
     * The current state of the NetworkAddressList.
     */ "lifecycleState" : NetworkAddressList . LifecycleState ; /**
     * A message describing the current state in more detail.
     * For example, can be used to provide actionable information for a resource in FAILED state.
     *
     */ "lifecycleDetails" ? : string ; /**
     * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
     * Example: `{\"bar-key\": \"value\"}`
     *
     */ "freeformTags" : { [ key ] : string ; } ; /**
     * Defined tags for this resource. Each key is predefined and scoped to a namespace.
     * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
     *
     */ "definedTags" : { [ key ] : { [ key ] : any ; } ; } ; /**
     * Usage of system tag keys. These predefined keys are scoped to namespaces.
     * Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
     *
     */ "systemTags" : { [ key ] : { [ key ] : any ; } ; } ; "type" : string ; } export namespace NetworkAddressList { export enum LifecycleState { Creating = "CREATING" , Updating = "UPDATING" , Active = "ACTIVE" , Deleting = "DELETING" , Deleted = "DELETED" , Failed = "FAILED" , /**
         * 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 , ... { } } ; if ( "type" in obj && obj . type ) { switch ( obj . type ) { case "ADDRESSES" : return model . NetworkAddressListAddresses . getJsonObj ( < model . NetworkAddressListAddresses > ( < object > jsonObj ) , true ) ; case "VCN_ADDRESSES" : return model . NetworkAddressListVcnAddresses . getJsonObj ( < model . NetworkAddressListVcnAddresses > ( < object > jsonObj ) , true ) ; default : throw Error ( "Unknown value for: " + obj . type ) ; } } return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; if ( "type" in obj && obj . type ) { switch ( obj . type ) { case "ADDRESSES" : return model . NetworkAddressListAddresses . getDeserializedJsonObj ( < model . NetworkAddressListAddresses > ( < object > jsonObj ) , true ) ; case "VCN_ADDRESSES" : return model . NetworkAddressListVcnAddresses . getDeserializedJsonObj ( < model . NetworkAddressListVcnAddresses > ( < object > jsonObj ) , true ) ; default : throw Error ( "Unknown value for: " + obj . type ) ; } } return jsonObj ; } }