azure-devops-extension-api 4.253.0 → 4.255.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdvancedSecurity.Reporting/Reporting.d.ts +25 -3
- package/AdvancedSecurity.Reporting/ReportingClient.d.ts +3 -0
- package/AdvancedSecurity.Reporting/ReportingClient.js +15 -0
- package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
- package/Alert/Alert.d.ts +55 -18
- package/Alert/Alert.js +50 -18
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +2 -2
- package/Contributions/Contributions.d.ts +4 -0
- package/ExtensionManagement/ExtensionManagement.d.ts +4 -0
- package/Git/Git.d.ts +21 -0
- package/Git/Git.js +14 -0
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.js +6 -6
- package/Git/GitClient.min.js +1 -1
- package/Locations/LocationsClient.d.ts +6 -0
- package/Locations/LocationsClient.js +24 -0
- package/Locations/LocationsClient.min.js +1 -1
- package/Management/Management.d.ts +77 -87
- package/Management/Management.js +19 -0
- package/Management/Management.min.js +1 -1
- package/Management/ManagementClient.d.ts +24 -35
- package/Management/ManagementClient.js +59 -82
- package/Management/ManagementClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +1 -0
- package/Pipelines/Pipelines.js +1 -0
- package/Pipelines/Pipelines.min.js +1 -1
- package/Release/ReleaseClient.d.ts +2 -1
- package/Release/ReleaseClient.js +7 -1
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +7 -0
- package/ServiceEndpoint/ServiceEndpointClient.js +22 -0
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +13 -0
- package/TaskAgent/TaskAgentClient.js +4 -4
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +31 -4
- package/Tfvc/Tfvc.d.ts +4 -0
- package/WebApi/WebApi.d.ts +0 -13
- package/WebApi/WebApi.js +0 -15
- package/WebApi/WebApi.min.js +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0703003127834.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -0
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +9799 -0
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
- package/package.json +1 -1
|
@@ -143,11 +143,23 @@ export interface BilledCommittersList {
|
|
|
143
143
|
*/
|
|
144
144
|
uniqueCommitterCount: number;
|
|
145
145
|
}
|
|
146
|
-
export interface
|
|
146
|
+
export interface CodeSecurityFeatures {
|
|
147
147
|
/**
|
|
148
148
|
* CodeQL enablement status set to False when disabled and True when enabled; Null is never explicitly set.
|
|
149
149
|
*/
|
|
150
150
|
codeQLEnabled: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* The VSID of the last user who modified the enablement status of Code Security.
|
|
153
|
+
*/
|
|
154
|
+
codeSecurityChangedBy: string;
|
|
155
|
+
/**
|
|
156
|
+
* Code Security enablement status set to False when disabled and True when enabled; Null is never explicitly set.
|
|
157
|
+
*/
|
|
158
|
+
codeSecurityEnabled: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The last time the status of Code Security for this repository was updated
|
|
161
|
+
*/
|
|
162
|
+
codeSecurityEnablementLastChangedDate: Date;
|
|
151
163
|
/**
|
|
152
164
|
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>Setting Dependabot enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
153
165
|
*/
|
|
@@ -157,18 +169,15 @@ export interface CodeScanningFeatures {
|
|
|
157
169
|
*/
|
|
158
170
|
dependencyScanningInjectionEnabled: boolean;
|
|
159
171
|
}
|
|
160
|
-
|
|
161
|
-
* Information related to Code Scanning meter usage
|
|
162
|
-
*/
|
|
163
|
-
export interface CodeScanningMeterUsage {
|
|
172
|
+
export interface EnablementOnCreateSettings {
|
|
164
173
|
/**
|
|
165
|
-
*
|
|
174
|
+
* Automatically enable Code Security on newly created repositories.
|
|
166
175
|
*/
|
|
167
|
-
|
|
176
|
+
enableCodeSecurityOnCreate: boolean;
|
|
168
177
|
/**
|
|
169
|
-
*
|
|
178
|
+
* Automatically enable Secret Protection on newly created repositories.
|
|
170
179
|
*/
|
|
171
|
-
|
|
180
|
+
enableSecretProtectionOnCreate: boolean;
|
|
172
181
|
}
|
|
173
182
|
/**
|
|
174
183
|
* Information related to billing for Advanced Security services
|
|
@@ -191,6 +200,10 @@ export interface MeterUsage {
|
|
|
191
200
|
* The date this billing information pertains to
|
|
192
201
|
*/
|
|
193
202
|
billingDate: Date;
|
|
203
|
+
/**
|
|
204
|
+
* A list of BilledCommitter objects that contain the identityRef of committers that have Code Security Plan enabled. This list is populated only for organizations that can enable or disable the Code Security Plan.
|
|
205
|
+
*/
|
|
206
|
+
codeSecurityBilledUsers: BilledCommitter[];
|
|
194
207
|
/**
|
|
195
208
|
* True when a bill is generated for Advanced Security feature usage in this organziation
|
|
196
209
|
*/
|
|
@@ -199,6 +212,10 @@ export interface MeterUsage {
|
|
|
199
212
|
* True when Advanced Security features are enabled in this organization
|
|
200
213
|
*/
|
|
201
214
|
isAdvSecEnabled: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* A list of BilledCommitter objects that contain the identityRef of committers that have Secret Protection Plan enabled. This list is populated only for organizations that can enable or disable the Secret Protection Plan.
|
|
217
|
+
*/
|
|
218
|
+
secretProtectionBilledUsers: BilledCommitter[];
|
|
202
219
|
/**
|
|
203
220
|
* The Azure subscription
|
|
204
221
|
*/
|
|
@@ -209,39 +226,39 @@ export interface MeterUsage {
|
|
|
209
226
|
uniqueCommitterCount: number;
|
|
210
227
|
}
|
|
211
228
|
/**
|
|
212
|
-
* Information related to meter usage estimate for Code
|
|
229
|
+
* Information related to meter usage estimate for Code Security plan and/or Secret Protection plan
|
|
213
230
|
*/
|
|
214
231
|
export interface MeterUsageEstimate {
|
|
215
232
|
/**
|
|
216
|
-
* Meter usage estimate when enabling Code
|
|
233
|
+
* Meter usage estimate when enabling Code Security plan
|
|
217
234
|
*/
|
|
218
|
-
|
|
235
|
+
codeSecurityMeterUsageEstimate: BilledCommittersList;
|
|
219
236
|
/**
|
|
220
|
-
* Meter usage estimate when enabling Secret
|
|
237
|
+
* Meter usage estimate when enabling Secret Protection plan
|
|
221
238
|
*/
|
|
222
|
-
|
|
239
|
+
secretProtectionMeterUsageEstimate: BilledCommittersList;
|
|
223
240
|
}
|
|
224
241
|
/**
|
|
225
|
-
* Information related to
|
|
242
|
+
* Information related to meter usage for a Scanning plan
|
|
226
243
|
*/
|
|
227
|
-
export interface
|
|
244
|
+
export interface MeterUsageForPlan {
|
|
228
245
|
/**
|
|
229
246
|
* The Azure DevOps account
|
|
230
247
|
*/
|
|
231
248
|
accountId: string;
|
|
232
249
|
azureSubscriptionId: string;
|
|
233
250
|
/**
|
|
234
|
-
* The
|
|
251
|
+
* The identityRef of committers that contributed to repositories with Scanning plan enabled
|
|
235
252
|
*/
|
|
236
|
-
|
|
253
|
+
billedUsers: BilledCommittersList;
|
|
237
254
|
/**
|
|
238
|
-
*
|
|
255
|
+
* The date this billing information pertains to
|
|
239
256
|
*/
|
|
240
|
-
|
|
257
|
+
billingDate: Date;
|
|
241
258
|
/**
|
|
242
|
-
*
|
|
259
|
+
* True when the Scanning plan is enabled in this organization
|
|
243
260
|
*/
|
|
244
|
-
|
|
261
|
+
isPlanEnabled: boolean;
|
|
245
262
|
/**
|
|
246
263
|
* The Azure subscription
|
|
247
264
|
*/
|
|
@@ -249,77 +266,63 @@ export interface MeterUsageSummary {
|
|
|
249
266
|
}
|
|
250
267
|
export interface OrgEnablementSettings {
|
|
251
268
|
/**
|
|
252
|
-
*
|
|
253
|
-
*/
|
|
254
|
-
codeScanningEnabled: boolean;
|
|
255
|
-
/**
|
|
256
|
-
* Includes code scanning features that can be enabled.
|
|
257
|
-
*/
|
|
258
|
-
codeScanningFeatures: CodeScanningFeatures;
|
|
259
|
-
/**
|
|
260
|
-
* Automatically enable Code Scanning on newly created repositories.
|
|
269
|
+
* Includes code security features that can be enabled.
|
|
261
270
|
*/
|
|
262
|
-
|
|
271
|
+
codeSecurityFeatures: CodeSecurityFeatures;
|
|
263
272
|
/**
|
|
264
|
-
*
|
|
273
|
+
* Auto enablement setting for newly created repositories.
|
|
265
274
|
*/
|
|
266
|
-
|
|
275
|
+
enablementOnCreateSettings: EnablementOnCreateSettings;
|
|
267
276
|
/**
|
|
268
|
-
* A list of enablement statuses for repositories within the specified organization.
|
|
277
|
+
* A list of enablement statuses for repositories within the specified organization or project.
|
|
269
278
|
*/
|
|
270
279
|
reposEnablementStatus: RepoEnablementSettings[];
|
|
271
280
|
/**
|
|
272
|
-
*
|
|
281
|
+
* Includes secret protection features that can be enabled.
|
|
273
282
|
*/
|
|
274
|
-
|
|
283
|
+
secretProtectionFeatures: SecretProtectionFeatures;
|
|
284
|
+
}
|
|
285
|
+
export declare enum Plan {
|
|
275
286
|
/**
|
|
276
|
-
*
|
|
287
|
+
* No plan is indicated
|
|
277
288
|
*/
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
export interface ProjectEnablementSettings {
|
|
289
|
+
None = 0,
|
|
281
290
|
/**
|
|
282
|
-
* Code
|
|
291
|
+
* The Code Security plan
|
|
283
292
|
*/
|
|
284
|
-
|
|
293
|
+
CodeSecurity = 1,
|
|
285
294
|
/**
|
|
286
|
-
*
|
|
295
|
+
* The Secret Protection plan
|
|
287
296
|
*/
|
|
288
|
-
|
|
297
|
+
SecretProtection = 2,
|
|
289
298
|
/**
|
|
290
|
-
*
|
|
299
|
+
* Include all plans
|
|
291
300
|
*/
|
|
292
|
-
|
|
301
|
+
All = 3
|
|
302
|
+
}
|
|
303
|
+
export interface ProjectEnablementSettings {
|
|
293
304
|
/**
|
|
294
|
-
*
|
|
305
|
+
* Includes code security features that can be enabled.
|
|
295
306
|
*/
|
|
296
|
-
|
|
307
|
+
codeSecurityFeatures: CodeSecurityFeatures;
|
|
297
308
|
/**
|
|
298
|
-
*
|
|
309
|
+
* Auto enablement setting for newly created repositories.
|
|
299
310
|
*/
|
|
300
|
-
|
|
311
|
+
enablementOnCreateSettings: EnablementOnCreateSettings;
|
|
301
312
|
/**
|
|
302
|
-
*
|
|
313
|
+
* A list of enablement statuses for repositories within the specified organization or project.
|
|
303
314
|
*/
|
|
304
|
-
|
|
315
|
+
reposEnablementStatus: RepoEnablementSettings[];
|
|
305
316
|
/**
|
|
306
|
-
* Includes secret
|
|
317
|
+
* Includes secret protection features that can be enabled.
|
|
307
318
|
*/
|
|
308
|
-
|
|
319
|
+
secretProtectionFeatures: SecretProtectionFeatures;
|
|
309
320
|
}
|
|
310
321
|
export interface RepoEnablementSettings {
|
|
311
322
|
/**
|
|
312
|
-
* Code
|
|
313
|
-
*/
|
|
314
|
-
codeScanningEnabled: boolean;
|
|
315
|
-
/**
|
|
316
|
-
* The last time the status of Code Scanning for this repository was updated
|
|
317
|
-
*/
|
|
318
|
-
codeScanningEnablementLastChangedDate: Date;
|
|
319
|
-
/**
|
|
320
|
-
* Includes code scanning features that can be enabled.
|
|
323
|
+
* Includes Code Security features that can be enabled.
|
|
321
324
|
*/
|
|
322
|
-
|
|
325
|
+
codeSecurityFeatures: CodeSecurityFeatures;
|
|
323
326
|
/**
|
|
324
327
|
* Indicates whether the repository is part of the bundled SKU (old billing plan) or unbundled SKUs (new billing plan).
|
|
325
328
|
*/
|
|
@@ -333,38 +336,25 @@ export interface RepoEnablementSettings {
|
|
|
333
336
|
*/
|
|
334
337
|
repositoryId: string;
|
|
335
338
|
/**
|
|
336
|
-
* Secret
|
|
337
|
-
*/
|
|
338
|
-
secretScanningEnabled: boolean;
|
|
339
|
-
/**
|
|
340
|
-
* The last time the status of Secret Scanning for this repository was updated
|
|
341
|
-
*/
|
|
342
|
-
secretScanningEnablementLastChangedDate: Date;
|
|
343
|
-
/**
|
|
344
|
-
* Includes secret scanning features that can be enabled.
|
|
339
|
+
* Includes Secret Protection features that can be enabled.
|
|
345
340
|
*/
|
|
346
|
-
|
|
341
|
+
secretProtectionFeatures: SecretProtectionFeatures;
|
|
347
342
|
}
|
|
348
|
-
export interface
|
|
343
|
+
export interface SecretProtectionFeatures {
|
|
349
344
|
/**
|
|
350
345
|
* When true, pushes containing secrets will be blocked. \<br /\>When false, pushes are scanned for secrets and are not blocked. \<br /\>If includeAllProperties in the request is false, this value will be null.
|
|
351
346
|
*/
|
|
352
347
|
blockPushes: boolean;
|
|
353
348
|
/**
|
|
354
|
-
*
|
|
349
|
+
* The VSID of the last user who modified the enablement status of Secret Protection.
|
|
355
350
|
*/
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Information related to Secret Scanning meter usage
|
|
360
|
-
*/
|
|
361
|
-
export interface SecretScanningMeterUsage {
|
|
351
|
+
secretProtectionChangedBy: string;
|
|
362
352
|
/**
|
|
363
|
-
*
|
|
353
|
+
* Secret Protection enablement status set to False when disabled and True when enabled; Null is never explicitly set.
|
|
364
354
|
*/
|
|
365
|
-
|
|
355
|
+
secretProtectionEnabled: boolean;
|
|
366
356
|
/**
|
|
367
|
-
* The
|
|
357
|
+
* The last time the status of Secret Protection for this repository was updated
|
|
368
358
|
*/
|
|
369
|
-
|
|
359
|
+
secretProtectionEnablementLastChangedDate: Date;
|
|
370
360
|
}
|
package/Management/Management.js
CHANGED
|
@@ -6,4 +6,23 @@
|
|
|
6
6
|
define(["require", "exports"], function (require, exports) {
|
|
7
7
|
"use strict";
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
var Plan;
|
|
10
|
+
(function (Plan) {
|
|
11
|
+
/**
|
|
12
|
+
* No plan is indicated
|
|
13
|
+
*/
|
|
14
|
+
Plan[Plan["None"] = 0] = "None";
|
|
15
|
+
/**
|
|
16
|
+
* The Code Security plan
|
|
17
|
+
*/
|
|
18
|
+
Plan[Plan["CodeSecurity"] = 1] = "CodeSecurity";
|
|
19
|
+
/**
|
|
20
|
+
* The Secret Protection plan
|
|
21
|
+
*/
|
|
22
|
+
Plan[Plan["SecretProtection"] = 2] = "SecretProtection";
|
|
23
|
+
/**
|
|
24
|
+
* Include all plans
|
|
25
|
+
*/
|
|
26
|
+
Plan[Plan["All"] = 3] = "All";
|
|
27
|
+
})(Plan = exports.Plan || (exports.Plan = {}));
|
|
9
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,
|
|
1
|
+
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.CodeSecurity=1]="CodeSecurity",e[e.SecretProtection=2]="SecretProtection",e[e.All=3]="All"}(t.Plan||(t.Plan={}))});
|
|
@@ -4,7 +4,7 @@ import * as Management from "../Management/Management";
|
|
|
4
4
|
export declare class ManagementRestClient extends RestClientBase {
|
|
5
5
|
constructor(options: IVssRestClientOptions);
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Determines if Code Security, Secret Protection, and their features are enabled for the repository.
|
|
8
8
|
*
|
|
9
9
|
* @param project - Project ID or project name
|
|
10
10
|
* @param repository - The name or ID of the repository
|
|
@@ -12,7 +12,7 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
12
12
|
*/
|
|
13
13
|
getRepoEnablementStatus2(project: string, repository: string, includeAllProperties?: boolean): Promise<Management.RepoEnablementSettings>;
|
|
14
14
|
/**
|
|
15
|
-
* Update the enablement of
|
|
15
|
+
* Update the enablement status of Code Security and Secret Protection, along with their respective features, for a given repository.
|
|
16
16
|
*
|
|
17
17
|
* @param savedAdvSecEnablementStatus - new status
|
|
18
18
|
* @param project - Project ID or project name
|
|
@@ -44,23 +44,27 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
44
44
|
* During multi-org billing computation in primary scale unit(EUS21), this API is used to create billing snapshot for a specific org. Primary scale unit will call this API for each org in different scsle units to create billing snapshot. Data will be stored in the org specific partition DB -\> billing snapshot table. This is needed as customers will fetch billing data from their org specific partition DB.
|
|
45
45
|
*
|
|
46
46
|
* @param meterUsage -
|
|
47
|
+
* @param plan -
|
|
47
48
|
*/
|
|
48
|
-
createBillingSnapshot2(meterUsage: Management.
|
|
49
|
+
createBillingSnapshot2(meterUsage: Management.MeterUsageForPlan, plan: Management.Plan): Promise<void>;
|
|
49
50
|
/**
|
|
50
51
|
* Get all billable committers details, including those not matched with a VSID.
|
|
51
52
|
*
|
|
53
|
+
* @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
|
|
52
54
|
* @param billingDate - The date to query, or if not provided, today
|
|
53
55
|
*/
|
|
54
|
-
getBillableCommitterDetails2(billingDate?: Date): Promise<Management.BillableCommitterDetails[]>;
|
|
56
|
+
getBillableCommitterDetails2(plan: Management.Plan, billingDate?: Date): Promise<Management.BillableCommitterDetails[]>;
|
|
55
57
|
/**
|
|
58
|
+
* @param plan -
|
|
56
59
|
*/
|
|
57
|
-
getLastMeterUsage2(): Promise<Management.
|
|
60
|
+
getLastMeterUsage2(plan: Management.Plan): Promise<Management.MeterUsageForPlan>;
|
|
58
61
|
/**
|
|
59
62
|
* Get commiters used when calculating billing information.
|
|
60
63
|
*
|
|
64
|
+
* @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
|
|
61
65
|
* @param billingDate - The date to query, or if not provided, today
|
|
62
66
|
*/
|
|
63
|
-
getMeterUsage2(billingDate?: Date): Promise<Management.
|
|
67
|
+
getMeterUsage2(plan: Management.Plan, billingDate?: Date): Promise<Management.MeterUsageForPlan>;
|
|
64
68
|
/**
|
|
65
69
|
* Get the current status of Advanced Security for the organization
|
|
66
70
|
*
|
|
@@ -82,9 +86,9 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
82
86
|
/**
|
|
83
87
|
* Update the status of Advanced Security for the organization
|
|
84
88
|
*
|
|
85
|
-
* @param
|
|
89
|
+
* @param orgEnablementSettings - The new status
|
|
86
90
|
*/
|
|
87
|
-
updateOrgEnablementStatus2(
|
|
91
|
+
updateOrgEnablementStatus2(orgEnablementSettings: Management.OrgEnablementSettings): Promise<void>;
|
|
88
92
|
/**
|
|
89
93
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
90
94
|
*
|
|
@@ -98,13 +102,9 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
98
102
|
/**
|
|
99
103
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
100
104
|
*
|
|
105
|
+
* @param plan - The plan to query.
|
|
101
106
|
*/
|
|
102
|
-
getEstimatedBillablePushersDetailsForOrg2(): Promise<Management.MeterUsageEstimate>;
|
|
103
|
-
/**
|
|
104
|
-
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
getEstimatedOrgBillablePushers2(): Promise<string[]>;
|
|
107
|
+
getEstimatedBillablePushersDetailsForOrg2(plan: Management.Plan): Promise<Management.MeterUsageEstimate>;
|
|
108
108
|
/**
|
|
109
109
|
* Get the current status of Advanced Security for a project
|
|
110
110
|
*
|
|
@@ -129,10 +129,10 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
129
129
|
/**
|
|
130
130
|
* Update the status of Advanced Security for the project
|
|
131
131
|
*
|
|
132
|
-
* @param
|
|
132
|
+
* @param projectEnablementSettings - The new status
|
|
133
133
|
* @param project - Project ID or project name
|
|
134
134
|
*/
|
|
135
|
-
updateProjectEnablementStatus2(
|
|
135
|
+
updateProjectEnablementStatus2(projectEnablementSettings: Management.ProjectEnablementSettings, project: string): Promise<void>;
|
|
136
136
|
/**
|
|
137
137
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
138
138
|
*
|
|
@@ -144,19 +144,14 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
144
144
|
*
|
|
145
145
|
* @param project - Project ID or project name
|
|
146
146
|
*/
|
|
147
|
-
|
|
147
|
+
getEstimatedBillablePushersForProject(project: string): Promise<string[]>;
|
|
148
148
|
/**
|
|
149
149
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
150
150
|
*
|
|
151
151
|
* @param project - Project ID or project name
|
|
152
|
+
* @param plan -
|
|
152
153
|
*/
|
|
153
|
-
getEstimatedBillablePushersDetailsForProject2(project: string): Promise<Management.MeterUsageEstimate>;
|
|
154
|
-
/**
|
|
155
|
-
* Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
|
|
156
|
-
*
|
|
157
|
-
* @param project - Project ID or project name
|
|
158
|
-
*/
|
|
159
|
-
getEstimatedProjectBillablePushers2(project: string): Promise<string[]>;
|
|
154
|
+
getEstimatedBillablePushersDetailsForProject2(project: string, plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
|
|
160
155
|
/**
|
|
161
156
|
* Determine if Advanced Security is enabled for a repository
|
|
162
157
|
*
|
|
@@ -177,28 +172,22 @@ export declare class ManagementRestClient extends RestClientBase {
|
|
|
177
172
|
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
178
173
|
*
|
|
179
174
|
* @param project - Project ID or project name
|
|
180
|
-
* @param repository - The name or ID of the repository
|
|
181
|
-
*/
|
|
182
|
-
getEstimatedRepoBillableCommitters(project: string, repository: string): Promise<string[]>;
|
|
183
|
-
/**
|
|
184
|
-
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
185
|
-
*
|
|
186
|
-
* @param project - Project ID or project name
|
|
187
175
|
* @param repository -
|
|
188
176
|
*/
|
|
189
|
-
|
|
177
|
+
getEstimatedBillableCommitersDetailsForRepo(project: string, repository: string): Promise<Management.BilledCommitter[]>;
|
|
190
178
|
/**
|
|
191
179
|
* Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
192
180
|
*
|
|
193
181
|
* @param project - Project ID or project name
|
|
194
182
|
* @param repository - The name or ID of the repository
|
|
195
183
|
*/
|
|
196
|
-
|
|
184
|
+
getEstimatedBillableCommittersForRepo(project: string, repository: string): Promise<string[]>;
|
|
197
185
|
/**
|
|
198
186
|
* Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
|
|
199
187
|
*
|
|
200
188
|
* @param project - Project ID or project name
|
|
201
|
-
* @param repository -
|
|
189
|
+
* @param repository - The name or ID of the repository
|
|
190
|
+
* @param plan - The plan to query.
|
|
202
191
|
*/
|
|
203
|
-
getEstimatedRepoBillableCommittersDetails2(project: string, repository: string): Promise<Management.MeterUsageEstimate>;
|
|
192
|
+
getEstimatedRepoBillableCommittersDetails2(project: string, repository: string, plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
|
|
204
193
|
}
|