This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
ISaveProfile.ts
70 lines (64 loc) · 1.92 KB
/
ISaveProfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
import { IProfile } from "../definition/IProfile";
/**
* Parameters to the "save()" profile API.
*
* Note: This profile could contain the following additional arguments,
* which will only be kept in memory (for a short period of time) and NOT saved to a file.
* @type {string} username - The username to be securely saved to this profile.
* @type {string} password - The password for the username to be securely saved to this profile.
*
* @export
* @interface ISaveProfile
*/
export interface ISaveProfile {
/**
* The profile contents - must extend the IProfile interface to function properly with Imperative. The contents
* are always validated against the schema documents (and basic validation occurs)
*
* @type {IProfile}
* @memberof ISaveProfile
*/
profile: IProfile;
/**
* The name of the profile to save
*
* @type {string}
* @memberof ISaveProfile
*/
name: string;
/**
* The type of profile to save
* @type {string}
* @memberof ISaveProfile
*/
type: string;
/**
* Set to true to update the default profile for the profile type.
* @type {boolean}
* @memberof ISaveProfile
*/
updateDefault?: boolean;
/**
* Set to true to overwrite an existing profile of the same name. If false, an error is thrown if the profile
* already exists.
* @type {boolean}
* @memberof ISaveProfile
*/
overwrite?: boolean;
/**
* The argument to disable populating defaults
* @type {boolean}
* @memberof ISaveProfileFromCliArgs
*/
disableDefaults?: boolean;
}