azure-devops-extension-api 4.240.0 → 4.241.0
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/Git/Git.d.ts +10 -0
- package/ManagementInternal/ManagementInternal.d.ts +32 -0
- package/ManagementInternal/ManagementInternal.js +24 -0
- package/ManagementInternal/ManagementInternal.min.js +1 -0
- package/ManagementInternal/ManagementInternalClient.d.ts +31 -0
- package/ManagementInternal/ManagementInternalClient.js +143 -0
- package/ManagementInternal/ManagementInternalClient.min.js +1 -0
- package/Release/Release.d.ts +4 -0
- package/ServiceEndpoint/ServiceEndpoint.d.ts +12 -0
- package/TaskAgent/TaskAgent.d.ts +12 -0
- package/package.json +1 -1
package/Git/Git.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as TfsCore from "../Core/Core";
|
|
2
2
|
import * as Policy from "../Policy/Policy";
|
|
3
3
|
import * as WebApi from "../WebApi/WebApi";
|
|
4
|
+
export interface AdvSecEnablementOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Enforces secret scanning job for a repo where AdvSec is already enabled.
|
|
7
|
+
*/
|
|
8
|
+
forceRepoSecretScanning: boolean;
|
|
9
|
+
}
|
|
4
10
|
export interface AdvSecEnablementStatus {
|
|
5
11
|
/**
|
|
6
12
|
* Enabled by VSID
|
|
@@ -36,6 +42,10 @@ export interface AdvSecEnablementUpdate {
|
|
|
36
42
|
* New status
|
|
37
43
|
*/
|
|
38
44
|
newStatus: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Options that can be added during enablement (i.e. force secret scanning job to run)
|
|
47
|
+
*/
|
|
48
|
+
options: AdvSecEnablementOptions;
|
|
39
49
|
/**
|
|
40
50
|
* ProjectId
|
|
41
51
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BillingInfo contains an organization, its enablement status and the Azure Subscription for it.
|
|
3
|
+
*/
|
|
4
|
+
export interface BillingInfo {
|
|
5
|
+
advSecEnabled: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The most recent time the enablement state was modified.
|
|
8
|
+
*/
|
|
9
|
+
advSecEnabledChangedOnDate: Date;
|
|
10
|
+
/**
|
|
11
|
+
* The first time the enablement state was modified.
|
|
12
|
+
*/
|
|
13
|
+
advSecEnabledFirstChangedOnDate: Date;
|
|
14
|
+
azureSubscriptionId: string;
|
|
15
|
+
billingMode: BillingMode;
|
|
16
|
+
organizationId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare enum BillingMode {
|
|
20
|
+
/**
|
|
21
|
+
* None implies the organization is not billable because no Azure Subscription has been set.
|
|
22
|
+
*/
|
|
23
|
+
None = 0,
|
|
24
|
+
/**
|
|
25
|
+
* When an organization is the only organization mapped to an Azure Subscription.
|
|
26
|
+
*/
|
|
27
|
+
SingleOrg = 1,
|
|
28
|
+
/**
|
|
29
|
+
* When an organization is mapped to an Azure Subscription to which at least one other org is mapped.
|
|
30
|
+
*/
|
|
31
|
+
MultiOrg = 2
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ---------------------------------------------------------
|
|
3
|
+
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* ---------------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
define(["require", "exports"], function (require, exports) {
|
|
7
|
+
"use strict";
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
var BillingMode;
|
|
10
|
+
(function (BillingMode) {
|
|
11
|
+
/**
|
|
12
|
+
* None implies the organization is not billable because no Azure Subscription has been set.
|
|
13
|
+
*/
|
|
14
|
+
BillingMode[BillingMode["None"] = 0] = "None";
|
|
15
|
+
/**
|
|
16
|
+
* When an organization is the only organization mapped to an Azure Subscription.
|
|
17
|
+
*/
|
|
18
|
+
BillingMode[BillingMode["SingleOrg"] = 1] = "SingleOrg";
|
|
19
|
+
/**
|
|
20
|
+
* When an organization is mapped to an Azure Subscription to which at least one other org is mapped.
|
|
21
|
+
*/
|
|
22
|
+
BillingMode[BillingMode["MultiOrg"] = 2] = "MultiOrg";
|
|
23
|
+
})(BillingMode = exports.BillingMode || (exports.BillingMode = {}));
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.SingleOrg=1]="SingleOrg",e[e.MultiOrg=2]="MultiOrg"}(i.BillingMode||(i.BillingMode={}))});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IVssRestClientOptions } from "../Common/Context";
|
|
2
|
+
import { RestClientBase } from "../Common/RestClientBase";
|
|
3
|
+
import * as ManagementInternal from "../ManagementInternal/ManagementInternal";
|
|
4
|
+
export declare class ManagementInternalRestClient extends RestClientBase {
|
|
5
|
+
constructor(options: IVssRestClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* Delete the billing info for an organization.
|
|
8
|
+
*
|
|
9
|
+
* @param organizationId -
|
|
10
|
+
*/
|
|
11
|
+
deleteBillingInfo(organizationId: string): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Delete the meter usage history from Primary SU for an organization.
|
|
14
|
+
*
|
|
15
|
+
* @param organizationId -
|
|
16
|
+
*/
|
|
17
|
+
deleteMeterUsageHistory(organizationId: string): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Get the billing info for an organization.
|
|
20
|
+
*
|
|
21
|
+
* @param organizationId - Organization ID to get billing info for.
|
|
22
|
+
*/
|
|
23
|
+
getBillingInfo(organizationId: string): Promise<ManagementInternal.BillingInfo>;
|
|
24
|
+
/**
|
|
25
|
+
* Save the billing info for an organization.
|
|
26
|
+
*
|
|
27
|
+
* @param billingInfo -
|
|
28
|
+
* @param organizationId -
|
|
29
|
+
*/
|
|
30
|
+
saveBillingInfo(billingInfo: ManagementInternal.BillingInfo, organizationId: string): Promise<void>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ---------------------------------------------------------
|
|
3
|
+
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* ---------------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
var __extends = (this && this.__extends) || (function () {
|
|
7
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
10
|
+
return function (d, b) {
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
26
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
27
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
|
+
function step(op) {
|
|
29
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
+
while (_) try {
|
|
31
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
|
+
switch (op[0]) {
|
|
34
|
+
case 0: case 1: t = op; break;
|
|
35
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
36
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
37
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
38
|
+
default:
|
|
39
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
40
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
41
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
42
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
43
|
+
if (t[2]) _.ops.pop();
|
|
44
|
+
_.trys.pop(); continue;
|
|
45
|
+
}
|
|
46
|
+
op = body.call(thisArg, _);
|
|
47
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
48
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
|
|
52
|
+
"use strict";
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
var ManagementInternalRestClient = /** @class */ (function (_super) {
|
|
55
|
+
__extends(ManagementInternalRestClient, _super);
|
|
56
|
+
function ManagementInternalRestClient(options) {
|
|
57
|
+
return _super.call(this, options) || this;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Delete the billing info for an organization.
|
|
61
|
+
*
|
|
62
|
+
* @param organizationId -
|
|
63
|
+
*/
|
|
64
|
+
ManagementInternalRestClient.prototype.deleteBillingInfo = function (organizationId) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
+
return __generator(this, function (_a) {
|
|
67
|
+
return [2 /*return*/, this.beginRequest({
|
|
68
|
+
apiVersion: "7.2-preview.1",
|
|
69
|
+
method: "DELETE",
|
|
70
|
+
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
71
|
+
routeValues: {
|
|
72
|
+
organizationId: organizationId,
|
|
73
|
+
action: "Default"
|
|
74
|
+
}
|
|
75
|
+
})];
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Delete the meter usage history from Primary SU for an organization.
|
|
81
|
+
*
|
|
82
|
+
* @param organizationId -
|
|
83
|
+
*/
|
|
84
|
+
ManagementInternalRestClient.prototype.deleteMeterUsageHistory = function (organizationId) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
+
return __generator(this, function (_a) {
|
|
87
|
+
return [2 /*return*/, this.beginRequest({
|
|
88
|
+
apiVersion: "7.2-preview.1",
|
|
89
|
+
method: "DELETE",
|
|
90
|
+
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
91
|
+
routeValues: {
|
|
92
|
+
organizationId: organizationId,
|
|
93
|
+
action: "MeterUsageHistory"
|
|
94
|
+
}
|
|
95
|
+
})];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Get the billing info for an organization.
|
|
101
|
+
*
|
|
102
|
+
* @param organizationId - Organization ID to get billing info for.
|
|
103
|
+
*/
|
|
104
|
+
ManagementInternalRestClient.prototype.getBillingInfo = function (organizationId) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
return [2 /*return*/, this.beginRequest({
|
|
108
|
+
apiVersion: "7.2-preview.1",
|
|
109
|
+
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
110
|
+
routeValues: {
|
|
111
|
+
organizationId: organizationId,
|
|
112
|
+
action: "Default"
|
|
113
|
+
}
|
|
114
|
+
})];
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Save the billing info for an organization.
|
|
120
|
+
*
|
|
121
|
+
* @param billingInfo -
|
|
122
|
+
* @param organizationId -
|
|
123
|
+
*/
|
|
124
|
+
ManagementInternalRestClient.prototype.saveBillingInfo = function (billingInfo, organizationId) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
return [2 /*return*/, this.beginRequest({
|
|
128
|
+
apiVersion: "7.2-preview.1",
|
|
129
|
+
method: "POST",
|
|
130
|
+
routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
|
|
131
|
+
routeValues: {
|
|
132
|
+
organizationId: organizationId,
|
|
133
|
+
action: "Default"
|
|
134
|
+
},
|
|
135
|
+
body: billingInfo
|
|
136
|
+
})];
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
return ManagementInternalRestClient;
|
|
141
|
+
}(RestClientBase_1.RestClientBase));
|
|
142
|
+
exports.ManagementInternalRestClient = ManagementInternalRestClient;
|
|
143
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function u(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,u)}l((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.deleteBillingInfo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"Default"}})]})})},e.prototype.deleteMeterUsageHistory=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"MeterUsageHistory"}})]})})},e.prototype.getBillingInfo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"Default"}})]})})},e.prototype.saveBillingInfo=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:e,action:"Default"},body:t})]})})},e}(n.RestClientBase);e.ManagementInternalRestClient=r});
|
package/Release/Release.d.ts
CHANGED
|
@@ -2011,6 +2011,10 @@ export interface ProofOfPresenceTenant {
|
|
|
2011
2011
|
* Gets name of protected tenant.
|
|
2012
2012
|
*/
|
|
2013
2013
|
tenantName: string;
|
|
2014
|
+
/**
|
|
2015
|
+
* Gets timeout of protected tenant PoP check.
|
|
2016
|
+
*/
|
|
2017
|
+
timeout: number;
|
|
2014
2018
|
}
|
|
2015
2019
|
export interface PropertySelector {
|
|
2016
2020
|
/**
|
|
@@ -497,6 +497,10 @@ export interface ServiceEndpoint {
|
|
|
497
497
|
* Gets or sets the identity reference for the user who created the Service endpoint.
|
|
498
498
|
*/
|
|
499
499
|
createdBy: WebApi.IdentityRef;
|
|
500
|
+
/**
|
|
501
|
+
* Gets or sets the date, when the Service endpoint has been created.
|
|
502
|
+
*/
|
|
503
|
+
creationDate: Date;
|
|
500
504
|
data: {
|
|
501
505
|
[key: string]: string;
|
|
502
506
|
};
|
|
@@ -528,6 +532,14 @@ export interface ServiceEndpoint {
|
|
|
528
532
|
* Indicates whether service endpoint is shared with other projects or not.
|
|
529
533
|
*/
|
|
530
534
|
isShared: boolean;
|
|
535
|
+
/**
|
|
536
|
+
* Gets or sets the date, when the Service endpoint has been modified.
|
|
537
|
+
*/
|
|
538
|
+
modificationDate: Date;
|
|
539
|
+
/**
|
|
540
|
+
* Gets or sets the identity reference for the user who did the latest modification of the Service endpoint.
|
|
541
|
+
*/
|
|
542
|
+
modifiedBy: WebApi.IdentityRef;
|
|
531
543
|
/**
|
|
532
544
|
* Gets or sets the friendly name of the endpoint.
|
|
533
545
|
*/
|
package/TaskAgent/TaskAgent.d.ts
CHANGED
|
@@ -1656,6 +1656,10 @@ export interface ServiceEndpoint {
|
|
|
1656
1656
|
* Gets or sets the identity reference for the user who created the Service endpoint.
|
|
1657
1657
|
*/
|
|
1658
1658
|
createdBy: WebApi.IdentityRef;
|
|
1659
|
+
/**
|
|
1660
|
+
* Gets or sets the date, when the Service endpoint has been created.
|
|
1661
|
+
*/
|
|
1662
|
+
creationDate: Date;
|
|
1659
1663
|
data: {
|
|
1660
1664
|
[key: string]: string;
|
|
1661
1665
|
};
|
|
@@ -1680,6 +1684,14 @@ export interface ServiceEndpoint {
|
|
|
1680
1684
|
* Indicates whether service endpoint is shared with other projects or not.
|
|
1681
1685
|
*/
|
|
1682
1686
|
isShared: boolean;
|
|
1687
|
+
/**
|
|
1688
|
+
* Gets or sets the date, when the Service endpoint has been modified.
|
|
1689
|
+
*/
|
|
1690
|
+
modificationDate: Date;
|
|
1691
|
+
/**
|
|
1692
|
+
* Gets or sets the identity reference for the user who did the latest modification of the Service endpoint.
|
|
1693
|
+
*/
|
|
1694
|
+
modifiedBy: WebApi.IdentityRef;
|
|
1683
1695
|
/**
|
|
1684
1696
|
* Gets or sets the friendly name of the endpoint.
|
|
1685
1697
|
*/
|