Import config

### Hierarchy

- ImportHandler

### Implements

- ICommandHandler

## Index

### Properties

- params

### Methods

- buildSession
- downloadSchema
- fetchConfig
- process

## Properties

### Private params

params: IHandlerParameters

- Defined in @zowe/imperative/src/imperative/src/config/cmd/import/import.handler.ts:26

## Methods

### Private buildSession

- buildSession(url: URL): Session

- - Defined in @zowe/imperative/src/imperative/src/config/cmd/import/import.handler.ts:83

  Build a session from a URL and command line arguments.

  #### Parameters

  - ##### url: URL

    Web URL of the config JSON file

  #### Returns Session

  Populated session object

### Private downloadSchema

- downloadSchema(url: URL, filePath: string): Promise<void>

- - Defined in @zowe/imperative/src/imperative/src/config/cmd/import/import.handler.ts:123

  Download the config schema from a URL to disk

  #### Parameters

  - ##### url: URL

    Web URL of the schema JSON file

  - ##### filePath: string

    Local path to download to

  #### Returns Promise<void>

### Private fetchConfig

- fetchConfig(url: URL): Promise<IConfig>

- - Defined in @zowe/imperative/src/imperative/src/config/cmd/import/import.handler.ts:105

  Download the config from a URL

  #### Parameters

  - ##### url: URL

    Web URL of the config JSON file

  #### Returns Promise<IConfig>

  Parsed config object

### process

- process(params: IHandlerParameters): Promise<void>

- Implementation of ICommandHandler.process

  - Defined in @zowe/imperative/src/imperative/src/config/cmd/import/import.handler.ts:35

  Process the command and input.

  throws

    {ImperativeError}

  #### Parameters

  - ##### params: IHandlerParameters

    Parameters supplied by yargs

  #### Returns Promise<void>

Generated using TypeDoc