@pulumi/azuredevops 3.9.0-alpha.1745040263 → 3.9.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/buildFolderPermissions.d.ts +3 -0
- package/buildFolderPermissions.js.map +1 -1
- package/extension.d.ts +136 -0
- package/extension.js +95 -0
- package/extension.js.map +1 -0
- package/feedPermission.d.ts +14 -0
- package/feedPermission.js +14 -0
- package/feedPermission.js.map +1 -1
- package/getGitRepositoryFile.d.ts +114 -0
- package/getGitRepositoryFile.js +76 -0
- package/getGitRepositoryFile.js.map +1 -0
- package/gitRepositoryFile.d.ts +87 -0
- package/gitRepositoryFile.js +47 -0
- package/gitRepositoryFile.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +17 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/serviceEndpointGitHubEnterprise.d.ts +41 -4
- package/serviceEndpointGitHubEnterprise.js +27 -6
- package/serviceEndpointGitHubEnterprise.js.map +1 -1
- package/serviceendpointOpenshift.d.ts +227 -0
- package/serviceendpointOpenshift.js +157 -0
- package/serviceendpointOpenshift.js.map +1 -0
- package/types/input.d.ts +28 -6
- package/types/output.d.ts +28 -6
|
@@ -128,6 +128,7 @@ export declare class BuildFolderPermissions extends pulumi.CustomResource {
|
|
|
128
128
|
* | DeleteBuildDefinition | Delete build pipeline |
|
|
129
129
|
* | OverrideBuildCheckInValidation | Override check-in validation by build |
|
|
130
130
|
* | AdministerBuildPermissions | Administer build permissions |
|
|
131
|
+
* | CreateBuildDefinition | Create build pipeline |
|
|
131
132
|
*/
|
|
132
133
|
readonly permissions: pulumi.Output<{
|
|
133
134
|
[key: string]: string;
|
|
@@ -181,6 +182,7 @@ export interface BuildFolderPermissionsState {
|
|
|
181
182
|
* | DeleteBuildDefinition | Delete build pipeline |
|
|
182
183
|
* | OverrideBuildCheckInValidation | Override check-in validation by build |
|
|
183
184
|
* | AdministerBuildPermissions | Administer build permissions |
|
|
185
|
+
* | CreateBuildDefinition | Create build pipeline |
|
|
184
186
|
*/
|
|
185
187
|
permissions?: pulumi.Input<{
|
|
186
188
|
[key: string]: pulumi.Input<string>;
|
|
@@ -226,6 +228,7 @@ export interface BuildFolderPermissionsArgs {
|
|
|
226
228
|
* | DeleteBuildDefinition | Delete build pipeline |
|
|
227
229
|
* | OverrideBuildCheckInValidation | Override check-in validation by build |
|
|
228
230
|
* | AdministerBuildPermissions | Administer build permissions |
|
|
231
|
+
* | CreateBuildDefinition | Create build pipeline |
|
|
229
232
|
*/
|
|
230
233
|
permissions: pulumi.Input<{
|
|
231
234
|
[key: string]: pulumi.Input<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFolderPermissions.js","sourceRoot":"","sources":["../buildFolderPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;
|
|
1
|
+
{"version":3,"file":"buildFolderPermissions.js","sourceRoot":"","sources":["../buildFolderPermissions.ts"],"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W,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA5GL,wDA6GC;AA/FG,gBAAgB;AACO,mCAAY,GAAG,iEAAiE,CAAC"}
|
package/extension.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages extension within Azure DevOps organization.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ### Install Extension
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
11
|
+
*
|
|
12
|
+
* const example = new azuredevops.Extension("example", {
|
|
13
|
+
* extensionId: "extension ID",
|
|
14
|
+
* publisherId: "publisher ID",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Relevant Links
|
|
19
|
+
*
|
|
20
|
+
* - [Azure DevOps Service REST API 7.1 - Extension Management](https://learn.microsoft.com/en-us/rest/api/azure/devops/extensionmanagement/installed-extensions?view=azure-devops-rest-7.1)
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Azure DevOps Extension can be imported using the publisher ID and extension ID:
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import azuredevops:index/extension:Extension example publisherId/extensionId
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class Extension extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Extension resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ExtensionState, opts?: pulumi.CustomResourceOptions): Extension;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of Extension. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is Extension;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to disable the extension.
|
|
48
|
+
*/
|
|
49
|
+
readonly disabled: pulumi.Output<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* The publisher ID of the extension.
|
|
52
|
+
*/
|
|
53
|
+
readonly extensionId: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the extension.
|
|
56
|
+
*/
|
|
57
|
+
readonly extensionName: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The extension ID of the extension.
|
|
60
|
+
*/
|
|
61
|
+
readonly publisherId: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The name of the publisher.
|
|
64
|
+
*/
|
|
65
|
+
readonly publisherName: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* List of all oauth scopes required by this extension.
|
|
68
|
+
*/
|
|
69
|
+
readonly scopes: pulumi.Output<string[]>;
|
|
70
|
+
/**
|
|
71
|
+
* The version of the extension.
|
|
72
|
+
*/
|
|
73
|
+
readonly version: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a Extension resource with the given unique name, arguments, and options.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resource.
|
|
78
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
79
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
80
|
+
*/
|
|
81
|
+
constructor(name: string, args: ExtensionArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering Extension resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface ExtensionState {
|
|
87
|
+
/**
|
|
88
|
+
* Whether to disable the extension.
|
|
89
|
+
*/
|
|
90
|
+
disabled?: pulumi.Input<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* The publisher ID of the extension.
|
|
93
|
+
*/
|
|
94
|
+
extensionId?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the extension.
|
|
97
|
+
*/
|
|
98
|
+
extensionName?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The extension ID of the extension.
|
|
101
|
+
*/
|
|
102
|
+
publisherId?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The name of the publisher.
|
|
105
|
+
*/
|
|
106
|
+
publisherName?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* List of all oauth scopes required by this extension.
|
|
109
|
+
*/
|
|
110
|
+
scopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
111
|
+
/**
|
|
112
|
+
* The version of the extension.
|
|
113
|
+
*/
|
|
114
|
+
version?: pulumi.Input<string>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The set of arguments for constructing a Extension resource.
|
|
118
|
+
*/
|
|
119
|
+
export interface ExtensionArgs {
|
|
120
|
+
/**
|
|
121
|
+
* Whether to disable the extension.
|
|
122
|
+
*/
|
|
123
|
+
disabled?: pulumi.Input<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* The publisher ID of the extension.
|
|
126
|
+
*/
|
|
127
|
+
extensionId: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The extension ID of the extension.
|
|
130
|
+
*/
|
|
131
|
+
publisherId: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The version of the extension.
|
|
134
|
+
*/
|
|
135
|
+
version?: pulumi.Input<string>;
|
|
136
|
+
}
|
package/extension.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Extension = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages extension within Azure DevOps organization.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Install Extension
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
+
*
|
|
18
|
+
* const example = new azuredevops.Extension("example", {
|
|
19
|
+
* extensionId: "extension ID",
|
|
20
|
+
* publisherId: "publisher ID",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Relevant Links
|
|
25
|
+
*
|
|
26
|
+
* - [Azure DevOps Service REST API 7.1 - Extension Management](https://learn.microsoft.com/en-us/rest/api/azure/devops/extensionmanagement/installed-extensions?view=azure-devops-rest-7.1)
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* Azure DevOps Extension can be imported using the publisher ID and extension ID:
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import azuredevops:index/extension:Extension example publisherId/extensionId
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class Extension extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing Extension resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new Extension(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of Extension. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === Extension.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["disabled"] = state ? state.disabled : undefined;
|
|
65
|
+
resourceInputs["extensionId"] = state ? state.extensionId : undefined;
|
|
66
|
+
resourceInputs["extensionName"] = state ? state.extensionName : undefined;
|
|
67
|
+
resourceInputs["publisherId"] = state ? state.publisherId : undefined;
|
|
68
|
+
resourceInputs["publisherName"] = state ? state.publisherName : undefined;
|
|
69
|
+
resourceInputs["scopes"] = state ? state.scopes : undefined;
|
|
70
|
+
resourceInputs["version"] = state ? state.version : undefined;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const args = argsOrState;
|
|
74
|
+
if ((!args || args.extensionId === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'extensionId'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.publisherId === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'publisherId'");
|
|
79
|
+
}
|
|
80
|
+
resourceInputs["disabled"] = args ? args.disabled : undefined;
|
|
81
|
+
resourceInputs["extensionId"] = args ? args.extensionId : undefined;
|
|
82
|
+
resourceInputs["publisherId"] = args ? args.publisherId : undefined;
|
|
83
|
+
resourceInputs["version"] = args ? args.version : undefined;
|
|
84
|
+
resourceInputs["extensionName"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["publisherName"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["scopes"] = undefined /*out*/;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(Extension.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.Extension = Extension;
|
|
93
|
+
/** @internal */
|
|
94
|
+
Extension.__pulumiType = 'azuredevops:index/extension:Extension';
|
|
95
|
+
//# sourceMappingURL=extension.js.map
|
package/extension.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../extension.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC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ermission.d.ts
CHANGED
|
@@ -26,6 +26,20 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
26
26
|
* ## Relevant Links
|
|
27
27
|
*
|
|
28
28
|
* - [Azure DevOps Service REST API 7.0 - Feed Management](https://learn.microsoft.com/en-us/rest/api/azure/devops/artifacts/feed-management?view=azure-devops-rest-7.0)
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* Azure DevOps Feed Permission can be imported using the `Project ID/Feed ID/Identity Descriptor` or `Feed ID/Identity Descriptor` e.g.:
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import azuredevops:index/feedPermission:FeedPermission permission 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/vssgp.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* or
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import azuredevops:index/feedPermission:FeedPermission permission 00000000-0000-0000-0000-000000000000/vssgp.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
42
|
+
* ```
|
|
29
43
|
*/
|
|
30
44
|
export declare class FeedPermission extends pulumi.CustomResource {
|
|
31
45
|
/**
|
package/feedPermission.js
CHANGED
|
@@ -32,6 +32,20 @@ const utilities = require("./utilities");
|
|
|
32
32
|
* ## Relevant Links
|
|
33
33
|
*
|
|
34
34
|
* - [Azure DevOps Service REST API 7.0 - Feed Management](https://learn.microsoft.com/en-us/rest/api/azure/devops/artifacts/feed-management?view=azure-devops-rest-7.0)
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* Azure DevOps Feed Permission can be imported using the `Project ID/Feed ID/Identity Descriptor` or `Feed ID/Identity Descriptor` e.g.:
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import azuredevops:index/feedPermission:FeedPermission permission 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/vssgp.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* or
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import azuredevops:index/feedPermission:FeedPermission permission 00000000-0000-0000-0000-000000000000/vssgp.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
48
|
+
* ```
|
|
35
49
|
*/
|
|
36
50
|
class FeedPermission extends pulumi.CustomResource {
|
|
37
51
|
/**
|
package/feedPermission.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedPermission.js","sourceRoot":"","sources":["../feedPermission.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"feedPermission.js","sourceRoot":"","sources":["../feedPermission.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAmCD,YAA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D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA5FL,wCA6FC;AA/EG,gBAAgB;AACO,2BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to get an existing Git Repository File.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
10
|
+
*
|
|
11
|
+
* const example = azuredevops.getProject({
|
|
12
|
+
* name: "Example Project",
|
|
13
|
+
* });
|
|
14
|
+
* // Load a specific Git repository by name
|
|
15
|
+
* const exampleGetGitRepository = example.then(example => azuredevops.getGitRepository({
|
|
16
|
+
* projectId: example.id,
|
|
17
|
+
* name: "Example Repository",
|
|
18
|
+
* }));
|
|
19
|
+
* const exampleGetGitRepositoryFile = exampleGetGitRepository.then(exampleGetGitRepository => azuredevops.getGitRepositoryFile({
|
|
20
|
+
* repositoryId: exampleGetGitRepository.id,
|
|
21
|
+
* branch: "refs/heads/main",
|
|
22
|
+
* file: "MyFile.txt",
|
|
23
|
+
* }));
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getGitRepositoryFile(args: GetGitRepositoryFileArgs, opts?: pulumi.InvokeOptions): Promise<GetGitRepositoryFileResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getGitRepositoryFile.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetGitRepositoryFileArgs {
|
|
31
|
+
/**
|
|
32
|
+
* The git branch to use. Conflicts with `tag`; one or the other must be specified.
|
|
33
|
+
*/
|
|
34
|
+
branch?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The path of the file to get.
|
|
37
|
+
*/
|
|
38
|
+
file: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the Git repository.
|
|
41
|
+
*/
|
|
42
|
+
repositoryId: string;
|
|
43
|
+
/**
|
|
44
|
+
* The tag to use.Conflicts with `branch`; one or the other must be specified.
|
|
45
|
+
*/
|
|
46
|
+
tag?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A collection of values returned by getGitRepositoryFile.
|
|
50
|
+
*/
|
|
51
|
+
export interface GetGitRepositoryFileResult {
|
|
52
|
+
readonly branch?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The file content.
|
|
55
|
+
*/
|
|
56
|
+
readonly content: string;
|
|
57
|
+
readonly file: string;
|
|
58
|
+
/**
|
|
59
|
+
* The provider-assigned unique ID for this managed resource.
|
|
60
|
+
*/
|
|
61
|
+
readonly id: string;
|
|
62
|
+
/**
|
|
63
|
+
* The commit message for the file.
|
|
64
|
+
*/
|
|
65
|
+
readonly lastCommitMessage: string;
|
|
66
|
+
readonly repositoryId: string;
|
|
67
|
+
readonly tag?: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Use this data source to get an existing Git Repository File.
|
|
71
|
+
*
|
|
72
|
+
* ## Example Usage
|
|
73
|
+
*
|
|
74
|
+
* ```typescript
|
|
75
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
77
|
+
*
|
|
78
|
+
* const example = azuredevops.getProject({
|
|
79
|
+
* name: "Example Project",
|
|
80
|
+
* });
|
|
81
|
+
* // Load a specific Git repository by name
|
|
82
|
+
* const exampleGetGitRepository = example.then(example => azuredevops.getGitRepository({
|
|
83
|
+
* projectId: example.id,
|
|
84
|
+
* name: "Example Repository",
|
|
85
|
+
* }));
|
|
86
|
+
* const exampleGetGitRepositoryFile = exampleGetGitRepository.then(exampleGetGitRepository => azuredevops.getGitRepositoryFile({
|
|
87
|
+
* repositoryId: exampleGetGitRepository.id,
|
|
88
|
+
* branch: "refs/heads/main",
|
|
89
|
+
* file: "MyFile.txt",
|
|
90
|
+
* }));
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export declare function getGitRepositoryFileOutput(args: GetGitRepositoryFileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGitRepositoryFileResult>;
|
|
94
|
+
/**
|
|
95
|
+
* A collection of arguments for invoking getGitRepositoryFile.
|
|
96
|
+
*/
|
|
97
|
+
export interface GetGitRepositoryFileOutputArgs {
|
|
98
|
+
/**
|
|
99
|
+
* The git branch to use. Conflicts with `tag`; one or the other must be specified.
|
|
100
|
+
*/
|
|
101
|
+
branch?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The path of the file to get.
|
|
104
|
+
*/
|
|
105
|
+
file: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The ID of the Git repository.
|
|
108
|
+
*/
|
|
109
|
+
repositoryId: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The tag to use.Conflicts with `branch`; one or the other must be specified.
|
|
112
|
+
*/
|
|
113
|
+
tag?: pulumi.Input<string>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getGitRepositoryFileOutput = exports.getGitRepositoryFile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to get an existing Git Repository File.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
16
|
+
*
|
|
17
|
+
* const example = azuredevops.getProject({
|
|
18
|
+
* name: "Example Project",
|
|
19
|
+
* });
|
|
20
|
+
* // Load a specific Git repository by name
|
|
21
|
+
* const exampleGetGitRepository = example.then(example => azuredevops.getGitRepository({
|
|
22
|
+
* projectId: example.id,
|
|
23
|
+
* name: "Example Repository",
|
|
24
|
+
* }));
|
|
25
|
+
* const exampleGetGitRepositoryFile = exampleGetGitRepository.then(exampleGetGitRepository => azuredevops.getGitRepositoryFile({
|
|
26
|
+
* repositoryId: exampleGetGitRepository.id,
|
|
27
|
+
* branch: "refs/heads/main",
|
|
28
|
+
* file: "MyFile.txt",
|
|
29
|
+
* }));
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function getGitRepositoryFile(args, opts) {
|
|
33
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
34
|
+
return pulumi.runtime.invoke("azuredevops:index/getGitRepositoryFile:getGitRepositoryFile", {
|
|
35
|
+
"branch": args.branch,
|
|
36
|
+
"file": args.file,
|
|
37
|
+
"repositoryId": args.repositoryId,
|
|
38
|
+
"tag": args.tag,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
exports.getGitRepositoryFile = getGitRepositoryFile;
|
|
42
|
+
/**
|
|
43
|
+
* Use this data source to get an existing Git Repository File.
|
|
44
|
+
*
|
|
45
|
+
* ## Example Usage
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
50
|
+
*
|
|
51
|
+
* const example = azuredevops.getProject({
|
|
52
|
+
* name: "Example Project",
|
|
53
|
+
* });
|
|
54
|
+
* // Load a specific Git repository by name
|
|
55
|
+
* const exampleGetGitRepository = example.then(example => azuredevops.getGitRepository({
|
|
56
|
+
* projectId: example.id,
|
|
57
|
+
* name: "Example Repository",
|
|
58
|
+
* }));
|
|
59
|
+
* const exampleGetGitRepositoryFile = exampleGetGitRepository.then(exampleGetGitRepository => azuredevops.getGitRepositoryFile({
|
|
60
|
+
* repositoryId: exampleGetGitRepository.id,
|
|
61
|
+
* branch: "refs/heads/main",
|
|
62
|
+
* file: "MyFile.txt",
|
|
63
|
+
* }));
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
function getGitRepositoryFileOutput(args, opts) {
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
68
|
+
return pulumi.runtime.invokeOutput("azuredevops:index/getGitRepositoryFile:getGitRepositoryFile", {
|
|
69
|
+
"branch": args.branch,
|
|
70
|
+
"file": args.file,
|
|
71
|
+
"repositoryId": args.repositoryId,
|
|
72
|
+
"tag": args.tag,
|
|
73
|
+
}, opts);
|
|
74
|
+
}
|
|
75
|
+
exports.getGitRepositoryFileOutput = getGitRepositoryFileOutput;
|
|
76
|
+
//# sourceMappingURL=getGitRepositoryFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGitRepositoryFile.js","sourceRoot":"","sources":["../getGitRepositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6DAA6D,EAAE;QAC9F,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gEAQC"}
|
package/gitRepositoryFile.d.ts
CHANGED
|
@@ -31,6 +31,45 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
31
|
* });
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
|
+
* ### Author Email Pattern
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
38
|
+
*
|
|
39
|
+
* const example = new azuredevops.Project("example", {
|
|
40
|
+
* name: "Example Project",
|
|
41
|
+
* visibility: "private",
|
|
42
|
+
* versionControl: "Git",
|
|
43
|
+
* workItemTemplate: "Agile",
|
|
44
|
+
* });
|
|
45
|
+
* const exampleGit = new azuredevops.Git("example", {
|
|
46
|
+
* projectId: example.id,
|
|
47
|
+
* name: "Example Git Repository",
|
|
48
|
+
* initialization: {
|
|
49
|
+
* initType: "Clean",
|
|
50
|
+
* },
|
|
51
|
+
* });
|
|
52
|
+
* const exampleRepositoryPolicyAuthorEmailPattern = new azuredevops.RepositoryPolicyAuthorEmailPattern("example", {
|
|
53
|
+
* projectId: example.id,
|
|
54
|
+
* enabled: true,
|
|
55
|
+
* blocking: true,
|
|
56
|
+
* authorEmailPatterns: ["auhtor@test.com"],
|
|
57
|
+
* repositoryIds: [exampleGit.id],
|
|
58
|
+
* });
|
|
59
|
+
* const exampleGitRepositoryFile = new azuredevops.GitRepositoryFile("example", {
|
|
60
|
+
* repositoryId: exampleGit.id,
|
|
61
|
+
* file: ".gitignore",
|
|
62
|
+
* content: "**/*.tfstate",
|
|
63
|
+
* branch: "refs/heads/master",
|
|
64
|
+
* commitMessage: "First commit",
|
|
65
|
+
* overwriteOnCreate: false,
|
|
66
|
+
* authorName: "authorname",
|
|
67
|
+
* authorEmail: "auhtor@test.com",
|
|
68
|
+
* }, {
|
|
69
|
+
* dependsOn: [exampleRepositoryPolicyAuthorEmailPattern],
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
34
73
|
* ## Relevant Links
|
|
35
74
|
*
|
|
36
75
|
* - [Azure DevOps Service REST API 7.0 - Git API](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/?view=azure-devops-rest-7.0)
|
|
@@ -65,6 +104,14 @@ export declare class GitRepositoryFile extends pulumi.CustomResource {
|
|
|
65
104
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
105
|
*/
|
|
67
106
|
static isInstance(obj: any): obj is GitRepositoryFile;
|
|
107
|
+
/**
|
|
108
|
+
* The email of the author.
|
|
109
|
+
*/
|
|
110
|
+
readonly authorEmail: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The name of the author.
|
|
113
|
+
*/
|
|
114
|
+
readonly authorName: pulumi.Output<string>;
|
|
68
115
|
/**
|
|
69
116
|
* Git branch (defaults to `refs/heads/master`). The branch must already exist, it will not be created if it does not already exist.
|
|
70
117
|
*/
|
|
@@ -73,6 +120,14 @@ export declare class GitRepositoryFile extends pulumi.CustomResource {
|
|
|
73
120
|
* Commit message when adding or updating the managed file.
|
|
74
121
|
*/
|
|
75
122
|
readonly commitMessage: pulumi.Output<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The email of the committer.
|
|
125
|
+
*/
|
|
126
|
+
readonly committerEmail: pulumi.Output<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The name of the committer.
|
|
129
|
+
*/
|
|
130
|
+
readonly committerName: pulumi.Output<string>;
|
|
76
131
|
/**
|
|
77
132
|
* The file content.
|
|
78
133
|
*/
|
|
@@ -102,6 +157,14 @@ export declare class GitRepositoryFile extends pulumi.CustomResource {
|
|
|
102
157
|
* Input properties used for looking up and filtering GitRepositoryFile resources.
|
|
103
158
|
*/
|
|
104
159
|
export interface GitRepositoryFileState {
|
|
160
|
+
/**
|
|
161
|
+
* The email of the author.
|
|
162
|
+
*/
|
|
163
|
+
authorEmail?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The name of the author.
|
|
166
|
+
*/
|
|
167
|
+
authorName?: pulumi.Input<string>;
|
|
105
168
|
/**
|
|
106
169
|
* Git branch (defaults to `refs/heads/master`). The branch must already exist, it will not be created if it does not already exist.
|
|
107
170
|
*/
|
|
@@ -110,6 +173,14 @@ export interface GitRepositoryFileState {
|
|
|
110
173
|
* Commit message when adding or updating the managed file.
|
|
111
174
|
*/
|
|
112
175
|
commitMessage?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The email of the committer.
|
|
178
|
+
*/
|
|
179
|
+
committerEmail?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The name of the committer.
|
|
182
|
+
*/
|
|
183
|
+
committerName?: pulumi.Input<string>;
|
|
113
184
|
/**
|
|
114
185
|
* The file content.
|
|
115
186
|
*/
|
|
@@ -131,6 +202,14 @@ export interface GitRepositoryFileState {
|
|
|
131
202
|
* The set of arguments for constructing a GitRepositoryFile resource.
|
|
132
203
|
*/
|
|
133
204
|
export interface GitRepositoryFileArgs {
|
|
205
|
+
/**
|
|
206
|
+
* The email of the author.
|
|
207
|
+
*/
|
|
208
|
+
authorEmail?: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* The name of the author.
|
|
211
|
+
*/
|
|
212
|
+
authorName?: pulumi.Input<string>;
|
|
134
213
|
/**
|
|
135
214
|
* Git branch (defaults to `refs/heads/master`). The branch must already exist, it will not be created if it does not already exist.
|
|
136
215
|
*/
|
|
@@ -139,6 +218,14 @@ export interface GitRepositoryFileArgs {
|
|
|
139
218
|
* Commit message when adding or updating the managed file.
|
|
140
219
|
*/
|
|
141
220
|
commitMessage?: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* The email of the committer.
|
|
223
|
+
*/
|
|
224
|
+
committerEmail?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* The name of the committer.
|
|
227
|
+
*/
|
|
228
|
+
committerName?: pulumi.Input<string>;
|
|
142
229
|
/**
|
|
143
230
|
* The file content.
|
|
144
231
|
*/
|