/**
 * Management Agent API
 * API for Management Agent Cloud Service
 * OpenAPI spec version: 20200202
 *
 *
 * 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 the Management Agent inventory including the associated plugins.
 */ export interface ManagementAgent { /**
     * agent identifier
     */ "id" : string ; /**
     * agent install key identifier
     */ "installKeyId" ? : string ; /**
     * Management Agent Name
     */ "displayName" ? : string ; /**
     * Platform Type
     */ "platformType" ? : model . PlatformTypes ; /**
     * Platform Name
     */ "platformName" ? : string ; /**
     * Platform Version
     */ "platformVersion" ? : string ; /**
     * Management Agent Version
     */ "version" : string ; /**
     * Version of the deployment artifact instantiated by this Management Agent.
     * The format for Standalone resourceMode is YYMMDD.HHMM, and the format for other modes
     * (whose artifacts are based upon Standalone but can advance independently)
     * is YYMMDD.HHMM.VVVVVVVVVVVV.
     * VVVVVVVVVVVV is always a numeric value between 000000000000 and 999999999999
     *
     */ "resourceArtifactVersion" ? : string ; /**
     * Management Agent host machine name
     */ "host" ? : string ; /**
     * Host resource ocid
     */ "hostId" ? : string ; /**
     * Path where Management Agent is installed
     */ "installPath" ? : string ; /**
     * list of managementAgentPlugins associated with the agent
     */ "pluginList" ? : Array < model . ManagementAgentPluginDetails > ; /**
     * Compartment Identifier
     */ "compartmentId" : string ; /**
     * true if the agent can be upgraded automatically; false if it must be upgraded manually. This flag is derived from the tenancy level auto upgrade preference.
     */ "isAgentAutoUpgradable" ? : boolean ; /**
     * The time the Management Agent was created. An RFC3339 formatted datetime string
     */ "timeCreated" ? : Date ; /**
     * The time the Management Agent was updated. An RFC3339 formatted datetime string
     */ "timeUpdated" ? : Date ; /**
     * The time the Management Agent has last recorded its health status in telemetry. This value will be null if the agent has not recorded its health status in last 7 days. An RFC3339 formatted datetime string
     */ "timeLastHeartbeat" ? : Date ; /**
     * The current availability status of managementAgent
     */ "availabilityStatus" ? : model . AvailabilityStatus ; /**
     * The current state of managementAgent
     */ "lifecycleState" ? : model . LifecycleStates ; /**
     * 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 ; /**
     * true, if the agent image is manually downloaded and installed. false, if the agent is deployed as a plugin in Oracle Cloud Agent.
     */ "isCustomerDeployed" ? : boolean ; /**
     * The install type, either AGENT or GATEWAY
     */ "installType" ? : model . InstallTypes ; /**
     * 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 ; } ; } ; } export namespace ManagementAgent { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "pluginList" : obj . pluginList ? obj . pluginList . map ( item => { return model . ManagementAgentPluginDetails . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "pluginList" : obj . pluginList ? obj . pluginList . map ( item => { return model . ManagementAgentPluginDetails . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }