Abstract base class representing a configuration object in PAN-OS. Serves as the foundational structure for derived configuration objects such as address objects, service objects, and security policies.

Hierarchy

Constructors

  • Creates a new instance of PanObject.

    Parameters

    • name: string

      The name of this configuration object.

    • Optional apiClient: ApiClient

      Optional. An ApiClient instance for API requests. Inherited from the hierarchy if not provided.

    Returns PanObject

Properties

_apiClient: null | ApiClient
children: PanObject[]
name: string
parent: null | PanObject

Accessors

  • get apiClient(): ApiClient
  • Retrieves the ApiClient from the current instance or its parent hierarchy.

    Returns ApiClient

    The ApiClient associated with this object.

    Throws

    An error if the ApiClient instance is not found in the hierarchy.

Methods

  • Adds a PanObject as a child to this object, establishing a parent-child relationship.

    Parameters

    • child: PanObject

      The PanObject to be added as a child.

    Returns void

  • Locates a child PanObject within the configuration tree by name and, optionally, by type.

    Type Parameters

    Parameters

    • name: string

      The name of the object to search for.

    • Optional classType: (new (...args) => ObjectType)

      Optional. The class constructor to match instances against.

        • new (...args): ObjectType
        • Parameters

          • Rest ...args: unknown[]

          Returns ObjectType

    Returns null | ObjectType

    The matching PanObject instance, or null if not found.

  • Searches for a child PanObject by its name.

    Parameters

    • name: string

      The name of the child object to locate.

    Returns null | PanObject

    The found PanObject, or null if no match is found.

  • Retrieves the child PanObject instances of this object.

    Returns readonly PanObject[]

    An array of PanObject representing the children of this object.

  • Checks if a given PanObject is a child of this object.

    Parameters

    Returns boolean

    true if the specified PanObject is a child of this object, otherwise false.

  • Removes a PanObject from this object's children, severing the parent-child relationship.

    Parameters

    • child: PanObject

      The PanObject to be removed from the children.

    Returns void

Generated using TypeDoc