Options
All
  • Public
  • Public/Protected
  • All
Menu

Class contains helper methods for console response commands response processing

export

Hierarchy

  • ConsoleResponseService

Index

Methods

Static getEmptyConsoleResponse

Static isLastZosmfResponseEmpty

Static populate

  • Populate the console response with the details returned from the z/OSMF console API. Method takes two parameters: response from z/OSMF command and response to be populated. Method adds response to a collection of z/OSMF responses, mark response as "succeeded" (response.success = true) and populate other fields of response with values from z/OSMF sresponse.

    static
    memberof

    ConsoleResponse

    Parameters

    • zosmfResponse: IZosmfIssueResponse

      zosmf console response, @see {IZosmfIssueResponse}

    • response: IConsoleResponse

      console response to be populated, @see {IConsoleResponse}

    • Optional processResponses: boolean

      is set to true, append command response string to the console API response

    Returns IConsoleResponse

    populated console response, @see {IConsoleResponse}

Static populateError

  • Populate the console response with the Imperative error message. Method takes two parameters: Imperative error and response to be populated. Method save error message info failureResponse field and mark console response as "failed" (response.success = false)

    tatic
    memberof

    ConsoleResponse

    Parameters

    Returns IConsoleResponse

    populated console response, @see {IConsoleResponse}

Generated using TypeDoc