@pulumi/azuredevops 2.14.0 → 2.14.2
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/package.json +1 -1
- package/policy/branchPolicyBuildValidation.d.ts +2 -2
- package/policy/branchPolicyBuildValidation.js +4 -4
- package/policy/branchPolicyBuildValidation.js.map +1 -1
- package/security/resourceAuthorization.d.ts +2 -2
- package/security/resourceAuthorization.js +4 -4
- package/security/resourceAuthorization.js.map +1 -1
- package/serviceEndpointServiceFabric.d.ts +1 -1
- package/serviceEndpointServiceFabric.js +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ import * as outputs from "../types/output";
|
|
|
68
68
|
* $ pulumi import azuredevops:Policy/branchPolicyBuildValidation:BranchPolicyBuildValidation example 00000000-0000-0000-0000-000000000000/0
|
|
69
69
|
* ```
|
|
70
70
|
*
|
|
71
|
-
* @deprecated azuredevops.policy.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.BranchPolicyBuildValidation
|
|
71
|
+
* @deprecated azuredevops.policy/branchpolicybuildvalidation.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.index/branchpolicybuildvalidation.BranchPolicyBuildValidation
|
|
72
72
|
*/
|
|
73
73
|
export declare class BranchPolicyBuildValidation extends pulumi.CustomResource {
|
|
74
74
|
/**
|
|
@@ -109,7 +109,7 @@ export declare class BranchPolicyBuildValidation extends pulumi.CustomResource {
|
|
|
109
109
|
* @param args The arguments to use to populate this resource's properties.
|
|
110
110
|
* @param opts A bag of options that control this resource's behavior.
|
|
111
111
|
*/
|
|
112
|
-
/** @deprecated azuredevops.policy.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.BranchPolicyBuildValidation */
|
|
112
|
+
/** @deprecated azuredevops.policy/branchpolicybuildvalidation.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.index/branchpolicybuildvalidation.BranchPolicyBuildValidation */
|
|
113
113
|
constructor(name: string, args: BranchPolicyBuildValidationArgs, opts?: pulumi.CustomResourceOptions);
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
@@ -72,7 +72,7 @@ const utilities = require("../utilities");
|
|
|
72
72
|
* $ pulumi import azuredevops:Policy/branchPolicyBuildValidation:BranchPolicyBuildValidation example 00000000-0000-0000-0000-000000000000/0
|
|
73
73
|
* ```
|
|
74
74
|
*
|
|
75
|
-
* @deprecated azuredevops.policy.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.BranchPolicyBuildValidation
|
|
75
|
+
* @deprecated azuredevops.policy/branchpolicybuildvalidation.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.index/branchpolicybuildvalidation.BranchPolicyBuildValidation
|
|
76
76
|
*/
|
|
77
77
|
class BranchPolicyBuildValidation extends pulumi.CustomResource {
|
|
78
78
|
/**
|
|
@@ -85,7 +85,7 @@ class BranchPolicyBuildValidation extends pulumi.CustomResource {
|
|
|
85
85
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
86
|
*/
|
|
87
87
|
static get(name, id, state, opts) {
|
|
88
|
-
pulumi.log.warn("BranchPolicyBuildValidation is deprecated: azuredevops.policy.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.BranchPolicyBuildValidation");
|
|
88
|
+
pulumi.log.warn("BranchPolicyBuildValidation is deprecated: azuredevops.policy/branchpolicybuildvalidation.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.index/branchpolicybuildvalidation.BranchPolicyBuildValidation");
|
|
89
89
|
return new BranchPolicyBuildValidation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
@@ -98,9 +98,9 @@ class BranchPolicyBuildValidation extends pulumi.CustomResource {
|
|
|
98
98
|
}
|
|
99
99
|
return obj['__pulumiType'] === BranchPolicyBuildValidation.__pulumiType;
|
|
100
100
|
}
|
|
101
|
-
/** @deprecated azuredevops.policy.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.BranchPolicyBuildValidation */
|
|
101
|
+
/** @deprecated azuredevops.policy/branchpolicybuildvalidation.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.index/branchpolicybuildvalidation.BranchPolicyBuildValidation */
|
|
102
102
|
constructor(name, argsOrState, opts) {
|
|
103
|
-
pulumi.log.warn("BranchPolicyBuildValidation is deprecated: azuredevops.policy.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.BranchPolicyBuildValidation");
|
|
103
|
+
pulumi.log.warn("BranchPolicyBuildValidation is deprecated: azuredevops.policy/branchpolicybuildvalidation.BranchPolicyBuildValidation has been deprecated in favor of azuredevops.index/branchpolicybuildvalidation.BranchPolicyBuildValidation");
|
|
104
104
|
let resourceInputs = {};
|
|
105
105
|
opts = opts || {};
|
|
106
106
|
if (opts.id) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchPolicyBuildValidation.js","sourceRoot":"","sources":["../../policy/branchPolicyBuildValidation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"branchPolicyBuildValidation.js","sourceRoot":"","sources":["../../policy/branchPolicyBuildValidation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AAC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us/rest/api/azure/devops/build/resources/authorize%20definition%20resources?view=azure-devops-rest-7.0)
|
|
35
35
|
*
|
|
36
|
-
* @deprecated azuredevops.security.ResourceAuthorization has been deprecated in favor of azuredevops.ResourceAuthorization
|
|
36
|
+
* @deprecated azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization
|
|
37
37
|
*/
|
|
38
38
|
export declare class ResourceAuthorization extends pulumi.CustomResource {
|
|
39
39
|
/**
|
|
@@ -78,7 +78,7 @@ export declare class ResourceAuthorization extends pulumi.CustomResource {
|
|
|
78
78
|
* @param args The arguments to use to populate this resource's properties.
|
|
79
79
|
* @param opts A bag of options that control this resource's behavior.
|
|
80
80
|
*/
|
|
81
|
-
/** @deprecated azuredevops.security.ResourceAuthorization has been deprecated in favor of azuredevops.ResourceAuthorization */
|
|
81
|
+
/** @deprecated azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization */
|
|
82
82
|
constructor(name: string, args: ResourceAuthorizationArgs, opts?: pulumi.CustomResourceOptions);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
@@ -39,7 +39,7 @@ const utilities = require("../utilities");
|
|
|
39
39
|
*
|
|
40
40
|
* - [Azure DevOps Service REST API 7.0 - Authorize Definition Resource](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/resources/authorize%20definition%20resources?view=azure-devops-rest-7.0)
|
|
41
41
|
*
|
|
42
|
-
* @deprecated azuredevops.security.ResourceAuthorization has been deprecated in favor of azuredevops.ResourceAuthorization
|
|
42
|
+
* @deprecated azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization
|
|
43
43
|
*/
|
|
44
44
|
class ResourceAuthorization extends pulumi.CustomResource {
|
|
45
45
|
/**
|
|
@@ -52,7 +52,7 @@ class ResourceAuthorization extends pulumi.CustomResource {
|
|
|
52
52
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
53
|
*/
|
|
54
54
|
static get(name, id, state, opts) {
|
|
55
|
-
pulumi.log.warn("ResourceAuthorization is deprecated: azuredevops.security.ResourceAuthorization has been deprecated in favor of azuredevops.ResourceAuthorization");
|
|
55
|
+
pulumi.log.warn("ResourceAuthorization is deprecated: azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization");
|
|
56
56
|
return new ResourceAuthorization(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -65,9 +65,9 @@ class ResourceAuthorization extends pulumi.CustomResource {
|
|
|
65
65
|
}
|
|
66
66
|
return obj['__pulumiType'] === ResourceAuthorization.__pulumiType;
|
|
67
67
|
}
|
|
68
|
-
/** @deprecated azuredevops.security.ResourceAuthorization has been deprecated in favor of azuredevops.ResourceAuthorization */
|
|
68
|
+
/** @deprecated azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization */
|
|
69
69
|
constructor(name, argsOrState, opts) {
|
|
70
|
-
pulumi.log.warn("ResourceAuthorization is deprecated: azuredevops.security.ResourceAuthorization has been deprecated in favor of azuredevops.ResourceAuthorization");
|
|
70
|
+
pulumi.log.warn("ResourceAuthorization is deprecated: azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization");
|
|
71
71
|
let resourceInputs = {};
|
|
72
72
|
opts = opts || {};
|
|
73
73
|
if (opts.id) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceAuthorization.js","sourceRoot":"","sources":["../../security/resourceAuthorization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,qBAAsB,SAAQ,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AC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA1FL,sDA2FC;AA5EG,gBAAgB;AACO,kCAAY,GAAG,kEAAkE,CAAC"}
|
|
@@ -26,7 +26,7 @@ import * as outputs from "./types/output";
|
|
|
26
26
|
* certificate: {
|
|
27
27
|
* serverCertificateLookup: "Thumbprint",
|
|
28
28
|
* serverCertificateThumbprint: "0000000000000000000000000000000000000000",
|
|
29
|
-
* clientCertificate: Buffer.from(fs.readFileSync("certificate.pfx"
|
|
29
|
+
* clientCertificate: Buffer.from(fs.readFileSync("certificate.pfx", 'binary')).toString('base64'),
|
|
30
30
|
* clientCertificatePassword: "password",
|
|
31
31
|
* },
|
|
32
32
|
* });
|
|
@@ -30,7 +30,7 @@ const utilities = require("./utilities");
|
|
|
30
30
|
* certificate: {
|
|
31
31
|
* serverCertificateLookup: "Thumbprint",
|
|
32
32
|
* serverCertificateThumbprint: "0000000000000000000000000000000000000000",
|
|
33
|
-
* clientCertificate: Buffer.from(fs.readFileSync("certificate.pfx"
|
|
33
|
+
* clientCertificate: Buffer.from(fs.readFileSync("certificate.pfx", 'binary')).toString('base64'),
|
|
34
34
|
* clientCertificatePassword: "password",
|
|
35
35
|
* },
|
|
36
36
|
* });
|
package/utilities.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
1
2
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
3
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
4
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
5
|
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
6
16
|
function getEnv(...vars) {
|
|
7
17
|
for (const v of vars) {
|
|
8
18
|
const value = process.env[v];
|
|
@@ -66,4 +76,26 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
69
101
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM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