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
/
IUpdateProfile.ts
46 lines (44 loc) · 1.56 KB
/
IUpdateProfile.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
/*
* 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 update a profile - The basic implementation simply overwrites the existing profile with the new
* contents specified, unless merge is true, and the contents of the old profile are merged with the contents from
* the update profile.
*
* Note: This profile could contains 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 IUpdateProfile
*/
export interface IUpdateProfile {
/**
* The name of the profile to update.
* @type {string}
* @memberof IUpdateProfile
*/
name?: string;
/**
* Should the contents of the new profile be merged with the contents of the old one?
* @type {boolean}
*/
merge?: boolean;
/**
* The contents of the profile for the update - if merge is NOT specified, simply overwrites the existing
* profile with the contents specified here.
* @type {IProfile}
* @memberof IUpdateProfile
*/
profile?: IProfile;
}