@pulumi/azuredevops 2.16.0-alpha.1710156155 → 3.0.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/README.md +2 -2
- package/branchPolicyMinReviewers.js +0 -2
- package/branchPolicyMinReviewers.js.map +1 -1
- package/buildDefinition.js +0 -2
- package/buildDefinition.js.map +1 -1
- package/checkApproval.d.ts +8 -0
- package/checkApproval.js +2 -0
- package/checkApproval.js.map +1 -1
- package/checkBranchControl.d.ts +8 -0
- package/checkBranchControl.js +2 -0
- package/checkBranchControl.js.map +1 -1
- package/checkBusinessHours.d.ts +8 -0
- package/checkBusinessHours.js +2 -0
- package/checkBusinessHours.js.map +1 -1
- package/checkExclusiveLock.d.ts +8 -0
- package/checkExclusiveLock.js +2 -0
- package/checkExclusiveLock.js.map +1 -1
- package/checkRequiredTemplate.d.ts +8 -0
- package/checkRequiredTemplate.js +2 -0
- package/checkRequiredTemplate.js.map +1 -1
- package/config/vars.d.ts +63 -0
- package/config/vars.js +114 -0
- package/config/vars.js.map +1 -1
- package/elasticPool.d.ts +12 -0
- package/elasticPool.js +2 -0
- package/elasticPool.js.map +1 -1
- package/environmentResourceKubernetes.d.ts +57 -0
- package/environmentResourceKubernetes.js +73 -0
- package/environmentResourceKubernetes.js.map +1 -0
- package/getGroup.d.ts +10 -0
- package/getGroup.js +10 -0
- package/getGroup.js.map +1 -1
- package/git.js +0 -2
- package/git.js.map +1 -1
- package/group.js +0 -2
- package/group.js.map +1 -1
- package/groupMembership.js +0 -2
- package/groupMembership.js.map +1 -1
- package/index.d.ts +10 -11
- package/index.js +18 -23
- package/index.js.map +1 -1
- package/libraryPermissions.d.ts +172 -0
- package/libraryPermissions.js +119 -0
- package/libraryPermissions.js.map +1 -0
- package/package.json +1 -1
- package/pipelineAuthorization.d.ts +15 -0
- package/pipelineAuthorization.js.map +1 -1
- package/pool.js +0 -2
- package/pool.js.map +1 -1
- package/project.js +0 -2
- package/project.js.map +1 -1
- package/projectFeatures.js +0 -2
- package/projectFeatures.js.map +1 -1
- package/provider.d.ts +148 -0
- package/provider.js +20 -1
- package/provider.js.map +1 -1
- package/queue.js +0 -2
- package/queue.js.map +1 -1
- package/serviceEndpointAzureRM.js +0 -2
- package/serviceEndpointAzureRM.js.map +1 -1
- package/serviceEndpointBitBucket.js +0 -2
- package/serviceEndpointBitBucket.js.map +1 -1
- package/serviceEndpointDockerRegistry.js +0 -2
- package/serviceEndpointDockerRegistry.js.map +1 -1
- package/serviceEndpointGitHub.js +0 -2
- package/serviceEndpointGitHub.js.map +1 -1
- package/serviceEndpointKubernetes.js +0 -2
- package/serviceEndpointKubernetes.js.map +1 -1
- package/types/input.d.ts +1 -620
- package/types/output.d.ts +5 -719
- package/user.js +0 -2
- package/user.js.map +1 -1
- package/variableGroup.js +0 -2
- package/variableGroup.js.map +1 -1
- package/variableGroupPermissions.d.ts +193 -0
- package/variableGroupPermissions.js +133 -0
- package/variableGroupPermissions.js.map +1 -0
- package/agent/getPool.d.ts +0 -84
- package/agent/getPool.js +0 -70
- package/agent/getPool.js.map +0 -1
- package/agent/getPools.d.ts +0 -63
- package/agent/getPools.js +0 -64
- package/agent/getPools.js.map +0 -1
- package/agent/index.d.ts +0 -12
- package/agent/index.js +0 -33
- package/agent/index.js.map +0 -1
- package/agent/pool.d.ts +0 -116
- package/agent/pool.js +0 -89
- package/agent/pool.js.map +0 -1
- package/agent/queue.d.ts +0 -147
- package/agent/queue.js +0 -121
- package/agent/queue.js.map +0 -1
- package/build/buildDefinition.d.ts +0 -344
- package/build/buildDefinition.js +0 -244
- package/build/buildDefinition.js.map +0 -1
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -22
- package/build/index.js.map +0 -1
- package/core/getClientConfig.d.ts +0 -45
- package/core/getClientConfig.js +0 -50
- package/core/getClientConfig.js.map +0 -1
- package/core/getProject.d.ts +0 -92
- package/core/getProject.js +0 -66
- package/core/getProject.js.map +0 -1
- package/core/getProjects.d.ts +0 -107
- package/core/getProjects.js +0 -74
- package/core/getProjects.js.map +0 -1
- package/core/index.d.ts +0 -15
- package/core/index.js +0 -36
- package/core/index.js.map +0 -1
- package/core/project.d.ts +0 -188
- package/core/project.js +0 -111
- package/core/project.js.map +0 -1
- package/core/projectFeatures.d.ts +0 -120
- package/core/projectFeatures.js +0 -104
- package/core/projectFeatures.js.map +0 -1
- package/entitlement/index.d.ts +0 -3
- package/entitlement/index.js +0 -22
- package/entitlement/index.js.map +0 -1
- package/entitlement/user.d.ts +0 -140
- package/entitlement/user.js +0 -91
- package/entitlement/user.js.map +0 -1
- package/identities/getGroup.d.ts +0 -116
- package/identities/getGroup.js +0 -85
- package/identities/getGroup.js.map +0 -1
- package/identities/getUsers.d.ts +0 -196
- package/identities/getUsers.js +0 -103
- package/identities/getUsers.js.map +0 -1
- package/identities/group.d.ts +0 -206
- package/identities/group.js +0 -123
- package/identities/group.js.map +0 -1
- package/identities/groupMembership.d.ts +0 -122
- package/identities/groupMembership.js +0 -99
- package/identities/groupMembership.js.map +0 -1
- package/identities/index.d.ts +0 -12
- package/identities/index.js +0 -33
- package/identities/index.js.map +0 -1
- package/pipeline/index.d.ts +0 -3
- package/pipeline/index.js +0 -22
- package/pipeline/index.js.map +0 -1
- package/pipeline/variableGroup.d.ts +0 -223
- package/pipeline/variableGroup.js +0 -180
- package/pipeline/variableGroup.js.map +0 -1
- package/policy/branchPolicyBuildValidation.d.ts +0 -159
- package/policy/branchPolicyBuildValidation.js +0 -136
- package/policy/branchPolicyBuildValidation.js.map +0 -1
- package/policy/branchPolicyMinReviewers.d.ts +0 -149
- package/policy/branchPolicyMinReviewers.js +0 -126
- package/policy/branchPolicyMinReviewers.js.map +0 -1
- package/policy/index.d.ts +0 -6
- package/policy/index.js +0 -27
- package/policy/index.js.map +0 -1
- package/repository/getRepositories.d.ts +0 -120
- package/repository/getRepositories.js +0 -83
- package/repository/getRepositories.js.map +0 -1
- package/repository/git.d.ts +0 -210
- package/repository/git.js +0 -141
- package/repository/git.js.map +0 -1
- package/repository/index.d.ts +0 -6
- package/repository/index.js +0 -25
- package/repository/index.js.map +0 -1
- package/security/index.d.ts +0 -3
- package/security/index.js +0 -22
- package/security/index.js.map +0 -1
- package/security/resourceAuthorization.d.ts +0 -136
- package/security/resourceAuthorization.js +0 -108
- package/security/resourceAuthorization.js.map +0 -1
- package/serviceendpoint/azureRM.d.ts +0 -392
- package/serviceendpoint/azureRM.js +0 -245
- package/serviceendpoint/azureRM.js.map +0 -1
- package/serviceendpoint/bitBucket.d.ts +0 -137
- package/serviceendpoint/bitBucket.js +0 -116
- package/serviceendpoint/bitBucket.js.map +0 -1
- package/serviceendpoint/dockerRegistry.d.ts +0 -185
- package/serviceendpoint/dockerRegistry.js +0 -134
- package/serviceendpoint/dockerRegistry.js.map +0 -1
- package/serviceendpoint/gitHub.d.ts +0 -170
- package/serviceendpoint/gitHub.js +0 -148
- package/serviceendpoint/gitHub.js.map +0 -1
- package/serviceendpoint/index.d.ts +0 -15
- package/serviceendpoint/index.js +0 -42
- package/serviceendpoint/index.js.map +0 -1
- package/serviceendpoint/kubernetes.d.ts +0 -148
- package/serviceendpoint/kubernetes.js +0 -93
- package/serviceendpoint/kubernetes.js.map +0 -1
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Manages a Docker Registry service endpoint within Azure DevOps.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* <!--Start PulumiCodeChooser -->
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
11
|
-
*
|
|
12
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
13
|
-
* visibility: "private",
|
|
14
|
-
* versionControl: "Git",
|
|
15
|
-
* workItemTemplate: "Agile",
|
|
16
|
-
* description: "Managed by Terraform",
|
|
17
|
-
* });
|
|
18
|
-
* // dockerhub registry service connection
|
|
19
|
-
* const exampleServiceEndpointDockerRegistry = new azuredevops.ServiceEndpointDockerRegistry("exampleServiceEndpointDockerRegistry", {
|
|
20
|
-
* projectId: exampleProject.id,
|
|
21
|
-
* serviceEndpointName: "Example Docker Hub",
|
|
22
|
-
* dockerUsername: "example",
|
|
23
|
-
* dockerEmail: "email@example.com",
|
|
24
|
-
* dockerPassword: "12345",
|
|
25
|
-
* registryType: "DockerHub",
|
|
26
|
-
* });
|
|
27
|
-
* // other docker registry service connection
|
|
28
|
-
* const example_other = new azuredevops.ServiceEndpointDockerRegistry("example-other", {
|
|
29
|
-
* projectId: exampleProject.id,
|
|
30
|
-
* serviceEndpointName: "Example Docker Registry",
|
|
31
|
-
* dockerRegistry: "https://sample.azurecr.io/v1",
|
|
32
|
-
* dockerUsername: "sample",
|
|
33
|
-
* dockerPassword: "12345",
|
|
34
|
-
* registryType: "Others",
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
* <!--End PulumiCodeChooser -->
|
|
38
|
-
*
|
|
39
|
-
* ## Relevant Links
|
|
40
|
-
*
|
|
41
|
-
* - [Azure DevOps Service REST API 7.0 - Service Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0)
|
|
42
|
-
* - [Docker Registry Service Connection](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#sep-docreg)
|
|
43
|
-
*
|
|
44
|
-
* ## Import
|
|
45
|
-
*
|
|
46
|
-
* Azure DevOps Service Endpoint Docker Registry can be imported using **projectID/serviceEndpointID** or **projectName/serviceEndpointID**
|
|
47
|
-
*
|
|
48
|
-
* ```sh
|
|
49
|
-
* $ pulumi import azuredevops:ServiceEndpoint/dockerRegistry:DockerRegistry example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @deprecated azuredevops.serviceendpoint.DockerRegistry has been deprecated in favor of azuredevops.ServiceEndpointDockerRegistry
|
|
53
|
-
*/
|
|
54
|
-
export declare class DockerRegistry extends pulumi.CustomResource {
|
|
55
|
-
/**
|
|
56
|
-
* Get an existing DockerRegistry resource's state with the given name, ID, and optional extra
|
|
57
|
-
* properties used to qualify the lookup.
|
|
58
|
-
*
|
|
59
|
-
* @param name The _unique_ name of the resulting resource.
|
|
60
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
-
* @param state Any extra arguments used during the lookup.
|
|
62
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
-
*/
|
|
64
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DockerRegistryState, opts?: pulumi.CustomResourceOptions): DockerRegistry;
|
|
65
|
-
/**
|
|
66
|
-
* Returns true if the given object is an instance of DockerRegistry. This is designed to work even
|
|
67
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
-
*/
|
|
69
|
-
static isInstance(obj: any): obj is DockerRegistry;
|
|
70
|
-
readonly authorization: pulumi.Output<{
|
|
71
|
-
[key: string]: string;
|
|
72
|
-
}>;
|
|
73
|
-
readonly description: pulumi.Output<string | undefined>;
|
|
74
|
-
/**
|
|
75
|
-
* The email for Docker account user.
|
|
76
|
-
*/
|
|
77
|
-
readonly dockerEmail: pulumi.Output<string | undefined>;
|
|
78
|
-
/**
|
|
79
|
-
* The password for the account user identified above.
|
|
80
|
-
*/
|
|
81
|
-
readonly dockerPassword: pulumi.Output<string | undefined>;
|
|
82
|
-
/**
|
|
83
|
-
* The URL of the Docker registry. (Default: "https://index.docker.io/v1/")
|
|
84
|
-
*/
|
|
85
|
-
readonly dockerRegistry: pulumi.Output<string>;
|
|
86
|
-
/**
|
|
87
|
-
* The identifier of the Docker account user.
|
|
88
|
-
*/
|
|
89
|
-
readonly dockerUsername: pulumi.Output<string | undefined>;
|
|
90
|
-
/**
|
|
91
|
-
* The ID of the project.
|
|
92
|
-
*/
|
|
93
|
-
readonly projectId: pulumi.Output<string>;
|
|
94
|
-
/**
|
|
95
|
-
* Can be "DockerHub" or "Others" (Default "DockerHub")
|
|
96
|
-
*/
|
|
97
|
-
readonly registryType: pulumi.Output<string>;
|
|
98
|
-
/**
|
|
99
|
-
* The name you will use to refer to this service connection in task inputs.
|
|
100
|
-
*/
|
|
101
|
-
readonly serviceEndpointName: pulumi.Output<string>;
|
|
102
|
-
/**
|
|
103
|
-
* Create a DockerRegistry resource with the given unique name, arguments, and options.
|
|
104
|
-
*
|
|
105
|
-
* @param name The _unique_ name of the resource.
|
|
106
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
107
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
108
|
-
*/
|
|
109
|
-
/** @deprecated azuredevops.serviceendpoint.DockerRegistry has been deprecated in favor of azuredevops.ServiceEndpointDockerRegistry */
|
|
110
|
-
constructor(name: string, args: DockerRegistryArgs, opts?: pulumi.CustomResourceOptions);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Input properties used for looking up and filtering DockerRegistry resources.
|
|
114
|
-
*/
|
|
115
|
-
export interface DockerRegistryState {
|
|
116
|
-
authorization?: pulumi.Input<{
|
|
117
|
-
[key: string]: pulumi.Input<string>;
|
|
118
|
-
}>;
|
|
119
|
-
description?: pulumi.Input<string>;
|
|
120
|
-
/**
|
|
121
|
-
* The email for Docker account user.
|
|
122
|
-
*/
|
|
123
|
-
dockerEmail?: pulumi.Input<string>;
|
|
124
|
-
/**
|
|
125
|
-
* The password for the account user identified above.
|
|
126
|
-
*/
|
|
127
|
-
dockerPassword?: pulumi.Input<string>;
|
|
128
|
-
/**
|
|
129
|
-
* The URL of the Docker registry. (Default: "https://index.docker.io/v1/")
|
|
130
|
-
*/
|
|
131
|
-
dockerRegistry?: pulumi.Input<string>;
|
|
132
|
-
/**
|
|
133
|
-
* The identifier of the Docker account user.
|
|
134
|
-
*/
|
|
135
|
-
dockerUsername?: pulumi.Input<string>;
|
|
136
|
-
/**
|
|
137
|
-
* The ID of the project.
|
|
138
|
-
*/
|
|
139
|
-
projectId?: pulumi.Input<string>;
|
|
140
|
-
/**
|
|
141
|
-
* Can be "DockerHub" or "Others" (Default "DockerHub")
|
|
142
|
-
*/
|
|
143
|
-
registryType?: pulumi.Input<string>;
|
|
144
|
-
/**
|
|
145
|
-
* The name you will use to refer to this service connection in task inputs.
|
|
146
|
-
*/
|
|
147
|
-
serviceEndpointName?: pulumi.Input<string>;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* The set of arguments for constructing a DockerRegistry resource.
|
|
151
|
-
*/
|
|
152
|
-
export interface DockerRegistryArgs {
|
|
153
|
-
authorization?: pulumi.Input<{
|
|
154
|
-
[key: string]: pulumi.Input<string>;
|
|
155
|
-
}>;
|
|
156
|
-
description?: pulumi.Input<string>;
|
|
157
|
-
/**
|
|
158
|
-
* The email for Docker account user.
|
|
159
|
-
*/
|
|
160
|
-
dockerEmail?: pulumi.Input<string>;
|
|
161
|
-
/**
|
|
162
|
-
* The password for the account user identified above.
|
|
163
|
-
*/
|
|
164
|
-
dockerPassword?: pulumi.Input<string>;
|
|
165
|
-
/**
|
|
166
|
-
* The URL of the Docker registry. (Default: "https://index.docker.io/v1/")
|
|
167
|
-
*/
|
|
168
|
-
dockerRegistry: pulumi.Input<string>;
|
|
169
|
-
/**
|
|
170
|
-
* The identifier of the Docker account user.
|
|
171
|
-
*/
|
|
172
|
-
dockerUsername?: pulumi.Input<string>;
|
|
173
|
-
/**
|
|
174
|
-
* The ID of the project.
|
|
175
|
-
*/
|
|
176
|
-
projectId: pulumi.Input<string>;
|
|
177
|
-
/**
|
|
178
|
-
* Can be "DockerHub" or "Others" (Default "DockerHub")
|
|
179
|
-
*/
|
|
180
|
-
registryType: pulumi.Input<string>;
|
|
181
|
-
/**
|
|
182
|
-
* The name you will use to refer to this service connection in task inputs.
|
|
183
|
-
*/
|
|
184
|
-
serviceEndpointName: pulumi.Input<string>;
|
|
185
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
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.DockerRegistry = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("../utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Manages a Docker Registry service endpoint within Azure DevOps.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* <!--Start PulumiCodeChooser -->
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
19
|
-
* visibility: "private",
|
|
20
|
-
* versionControl: "Git",
|
|
21
|
-
* workItemTemplate: "Agile",
|
|
22
|
-
* description: "Managed by Terraform",
|
|
23
|
-
* });
|
|
24
|
-
* // dockerhub registry service connection
|
|
25
|
-
* const exampleServiceEndpointDockerRegistry = new azuredevops.ServiceEndpointDockerRegistry("exampleServiceEndpointDockerRegistry", {
|
|
26
|
-
* projectId: exampleProject.id,
|
|
27
|
-
* serviceEndpointName: "Example Docker Hub",
|
|
28
|
-
* dockerUsername: "example",
|
|
29
|
-
* dockerEmail: "email@example.com",
|
|
30
|
-
* dockerPassword: "12345",
|
|
31
|
-
* registryType: "DockerHub",
|
|
32
|
-
* });
|
|
33
|
-
* // other docker registry service connection
|
|
34
|
-
* const example_other = new azuredevops.ServiceEndpointDockerRegistry("example-other", {
|
|
35
|
-
* projectId: exampleProject.id,
|
|
36
|
-
* serviceEndpointName: "Example Docker Registry",
|
|
37
|
-
* dockerRegistry: "https://sample.azurecr.io/v1",
|
|
38
|
-
* dockerUsername: "sample",
|
|
39
|
-
* dockerPassword: "12345",
|
|
40
|
-
* registryType: "Others",
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
* <!--End PulumiCodeChooser -->
|
|
44
|
-
*
|
|
45
|
-
* ## Relevant Links
|
|
46
|
-
*
|
|
47
|
-
* - [Azure DevOps Service REST API 7.0 - Service Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0)
|
|
48
|
-
* - [Docker Registry Service Connection](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#sep-docreg)
|
|
49
|
-
*
|
|
50
|
-
* ## Import
|
|
51
|
-
*
|
|
52
|
-
* Azure DevOps Service Endpoint Docker Registry can be imported using **projectID/serviceEndpointID** or **projectName/serviceEndpointID**
|
|
53
|
-
*
|
|
54
|
-
* ```sh
|
|
55
|
-
* $ pulumi import azuredevops:ServiceEndpoint/dockerRegistry:DockerRegistry example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @deprecated azuredevops.serviceendpoint.DockerRegistry has been deprecated in favor of azuredevops.ServiceEndpointDockerRegistry
|
|
59
|
-
*/
|
|
60
|
-
class DockerRegistry extends pulumi.CustomResource {
|
|
61
|
-
/**
|
|
62
|
-
* Get an existing DockerRegistry resource's state with the given name, ID, and optional extra
|
|
63
|
-
* properties used to qualify the lookup.
|
|
64
|
-
*
|
|
65
|
-
* @param name The _unique_ name of the resulting resource.
|
|
66
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
-
* @param state Any extra arguments used during the lookup.
|
|
68
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
-
*/
|
|
70
|
-
static get(name, id, state, opts) {
|
|
71
|
-
pulumi.log.warn("DockerRegistry is deprecated: azuredevops.serviceendpoint.DockerRegistry has been deprecated in favor of azuredevops.ServiceEndpointDockerRegistry");
|
|
72
|
-
return new DockerRegistry(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Returns true if the given object is an instance of DockerRegistry. This is designed to work even
|
|
76
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
-
*/
|
|
78
|
-
static isInstance(obj) {
|
|
79
|
-
if (obj === undefined || obj === null) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
return obj['__pulumiType'] === DockerRegistry.__pulumiType;
|
|
83
|
-
}
|
|
84
|
-
/** @deprecated azuredevops.serviceendpoint.DockerRegistry has been deprecated in favor of azuredevops.ServiceEndpointDockerRegistry */
|
|
85
|
-
constructor(name, argsOrState, opts) {
|
|
86
|
-
pulumi.log.warn("DockerRegistry is deprecated: azuredevops.serviceendpoint.DockerRegistry has been deprecated in favor of azuredevops.ServiceEndpointDockerRegistry");
|
|
87
|
-
let resourceInputs = {};
|
|
88
|
-
opts = opts || {};
|
|
89
|
-
if (opts.id) {
|
|
90
|
-
const state = argsOrState;
|
|
91
|
-
resourceInputs["authorization"] = state ? state.authorization : undefined;
|
|
92
|
-
resourceInputs["description"] = state ? state.description : undefined;
|
|
93
|
-
resourceInputs["dockerEmail"] = state ? state.dockerEmail : undefined;
|
|
94
|
-
resourceInputs["dockerPassword"] = state ? state.dockerPassword : undefined;
|
|
95
|
-
resourceInputs["dockerRegistry"] = state ? state.dockerRegistry : undefined;
|
|
96
|
-
resourceInputs["dockerUsername"] = state ? state.dockerUsername : undefined;
|
|
97
|
-
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
98
|
-
resourceInputs["registryType"] = state ? state.registryType : undefined;
|
|
99
|
-
resourceInputs["serviceEndpointName"] = state ? state.serviceEndpointName : undefined;
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
const args = argsOrState;
|
|
103
|
-
if ((!args || args.dockerRegistry === undefined) && !opts.urn) {
|
|
104
|
-
throw new Error("Missing required property 'dockerRegistry'");
|
|
105
|
-
}
|
|
106
|
-
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
107
|
-
throw new Error("Missing required property 'projectId'");
|
|
108
|
-
}
|
|
109
|
-
if ((!args || args.registryType === undefined) && !opts.urn) {
|
|
110
|
-
throw new Error("Missing required property 'registryType'");
|
|
111
|
-
}
|
|
112
|
-
if ((!args || args.serviceEndpointName === undefined) && !opts.urn) {
|
|
113
|
-
throw new Error("Missing required property 'serviceEndpointName'");
|
|
114
|
-
}
|
|
115
|
-
resourceInputs["authorization"] = args ? args.authorization : undefined;
|
|
116
|
-
resourceInputs["description"] = args ? args.description : undefined;
|
|
117
|
-
resourceInputs["dockerEmail"] = args ? args.dockerEmail : undefined;
|
|
118
|
-
resourceInputs["dockerPassword"] = (args === null || args === void 0 ? void 0 : args.dockerPassword) ? pulumi.secret(args.dockerPassword) : undefined;
|
|
119
|
-
resourceInputs["dockerRegistry"] = args ? args.dockerRegistry : undefined;
|
|
120
|
-
resourceInputs["dockerUsername"] = args ? args.dockerUsername : undefined;
|
|
121
|
-
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
122
|
-
resourceInputs["registryType"] = args ? args.registryType : undefined;
|
|
123
|
-
resourceInputs["serviceEndpointName"] = args ? args.serviceEndpointName : undefined;
|
|
124
|
-
}
|
|
125
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
|
-
const secretOpts = { additionalSecretOutputs: ["dockerPassword"] };
|
|
127
|
-
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
128
|
-
super(DockerRegistry.__pulumiType, name, resourceInputs, opts);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
exports.DockerRegistry = DockerRegistry;
|
|
132
|
-
/** @internal */
|
|
133
|
-
DockerRegistry.__pulumiType = 'azuredevops:ServiceEndpoint/dockerRegistry:DockerRegistry';
|
|
134
|
-
//# sourceMappingURL=dockerReg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AAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;SACvF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACnE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAjHL,wCAkHC;AAnGG,gBAAgB;AACO,2BAAY,GAAG,2DAA2D,CAAC"}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "../types/input";
|
|
3
|
-
import * as outputs from "../types/output";
|
|
4
|
-
/**
|
|
5
|
-
* Manages a GitHub service endpoint within Azure DevOps.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* <!--Start PulumiCodeChooser -->
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
13
|
-
*
|
|
14
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
15
|
-
* visibility: "private",
|
|
16
|
-
* versionControl: "Git",
|
|
17
|
-
* workItemTemplate: "Agile",
|
|
18
|
-
* description: "Managed by Terraform",
|
|
19
|
-
* });
|
|
20
|
-
* const exampleServiceEndpointGitHub = new azuredevops.ServiceEndpointGitHub("exampleServiceEndpointGitHub", {
|
|
21
|
-
* projectId: exampleProject.id,
|
|
22
|
-
* serviceEndpointName: "Example GitHub Personal Access Token",
|
|
23
|
-
* authPersonal: {
|
|
24
|
-
* personalAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
25
|
-
* },
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
* <!--End PulumiCodeChooser -->
|
|
29
|
-
*
|
|
30
|
-
* <!--Start PulumiCodeChooser -->
|
|
31
|
-
* ```typescript
|
|
32
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
34
|
-
*
|
|
35
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
36
|
-
* visibility: "private",
|
|
37
|
-
* versionControl: "Git",
|
|
38
|
-
* workItemTemplate: "Agile",
|
|
39
|
-
* description: "Managed by Terraform",
|
|
40
|
-
* });
|
|
41
|
-
* const exampleServiceEndpointGitHub = new azuredevops.ServiceEndpointGitHub("exampleServiceEndpointGitHub", {
|
|
42
|
-
* projectId: exampleProject.id,
|
|
43
|
-
* serviceEndpointName: "Example GitHub",
|
|
44
|
-
* authOauth: {
|
|
45
|
-
* oauthConfigurationId: "00000000-0000-0000-0000-000000000000",
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
* <!--End PulumiCodeChooser -->
|
|
50
|
-
*
|
|
51
|
-
* <!--Start PulumiCodeChooser -->
|
|
52
|
-
* ```typescript
|
|
53
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
54
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
55
|
-
*
|
|
56
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
57
|
-
* visibility: "private",
|
|
58
|
-
* versionControl: "Git",
|
|
59
|
-
* workItemTemplate: "Agile",
|
|
60
|
-
* description: "Managed by Terraform",
|
|
61
|
-
* });
|
|
62
|
-
* const exampleServiceEndpointGitHub = new azuredevops.ServiceEndpointGitHub("exampleServiceEndpointGitHub", {
|
|
63
|
-
* projectId: exampleProject.id,
|
|
64
|
-
* serviceEndpointName: "Example GitHub Apps: Azure Pipelines",
|
|
65
|
-
* description: "Managed by Terraform",
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
* <!--End PulumiCodeChooser -->
|
|
69
|
-
*
|
|
70
|
-
* ## Relevant Links
|
|
71
|
-
*
|
|
72
|
-
* - [Azure DevOps Service REST API 7.0 - Service Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0)
|
|
73
|
-
*
|
|
74
|
-
* ## Import
|
|
75
|
-
*
|
|
76
|
-
* Azure DevOps Service Endpoint GitHub can be imported using **projectID/serviceEndpointID** or **projectName/serviceEndpointID**
|
|
77
|
-
*
|
|
78
|
-
* ```sh
|
|
79
|
-
* $ pulumi import azuredevops:ServiceEndpoint/gitHub:GitHub example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @deprecated azuredevops.serviceendpoint.GitHub has been deprecated in favor of azuredevops.ServiceEndpointGitHub
|
|
83
|
-
*/
|
|
84
|
-
export declare class GitHub extends pulumi.CustomResource {
|
|
85
|
-
/**
|
|
86
|
-
* Get an existing GitHub resource's state with the given name, ID, and optional extra
|
|
87
|
-
* properties used to qualify the lookup.
|
|
88
|
-
*
|
|
89
|
-
* @param name The _unique_ name of the resulting resource.
|
|
90
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
91
|
-
* @param state Any extra arguments used during the lookup.
|
|
92
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
93
|
-
*/
|
|
94
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GitHubState, opts?: pulumi.CustomResourceOptions): GitHub;
|
|
95
|
-
/**
|
|
96
|
-
* Returns true if the given object is an instance of GitHub. This is designed to work even
|
|
97
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
98
|
-
*/
|
|
99
|
-
static isInstance(obj: any): obj is GitHub;
|
|
100
|
-
readonly authOauth: pulumi.Output<outputs.ServiceEndpoint.GitHubAuthOauth | undefined>;
|
|
101
|
-
/**
|
|
102
|
-
* An `authPersonal` block as documented below. Allows connecting using a personal access token.
|
|
103
|
-
*/
|
|
104
|
-
readonly authPersonal: pulumi.Output<outputs.ServiceEndpoint.GitHubAuthPersonal | undefined>;
|
|
105
|
-
readonly authorization: pulumi.Output<{
|
|
106
|
-
[key: string]: string;
|
|
107
|
-
}>;
|
|
108
|
-
readonly description: pulumi.Output<string | undefined>;
|
|
109
|
-
/**
|
|
110
|
-
* The ID of the project.
|
|
111
|
-
*/
|
|
112
|
-
readonly projectId: pulumi.Output<string>;
|
|
113
|
-
/**
|
|
114
|
-
* The Service Endpoint name.
|
|
115
|
-
*/
|
|
116
|
-
readonly serviceEndpointName: pulumi.Output<string>;
|
|
117
|
-
/**
|
|
118
|
-
* Create a GitHub resource with the given unique name, arguments, and options.
|
|
119
|
-
*
|
|
120
|
-
* @param name The _unique_ name of the resource.
|
|
121
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
122
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
123
|
-
*/
|
|
124
|
-
/** @deprecated azuredevops.serviceendpoint.GitHub has been deprecated in favor of azuredevops.ServiceEndpointGitHub */
|
|
125
|
-
constructor(name: string, args: GitHubArgs, opts?: pulumi.CustomResourceOptions);
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Input properties used for looking up and filtering GitHub resources.
|
|
129
|
-
*/
|
|
130
|
-
export interface GitHubState {
|
|
131
|
-
authOauth?: pulumi.Input<inputs.ServiceEndpoint.GitHubAuthOauth>;
|
|
132
|
-
/**
|
|
133
|
-
* An `authPersonal` block as documented below. Allows connecting using a personal access token.
|
|
134
|
-
*/
|
|
135
|
-
authPersonal?: pulumi.Input<inputs.ServiceEndpoint.GitHubAuthPersonal>;
|
|
136
|
-
authorization?: pulumi.Input<{
|
|
137
|
-
[key: string]: pulumi.Input<string>;
|
|
138
|
-
}>;
|
|
139
|
-
description?: pulumi.Input<string>;
|
|
140
|
-
/**
|
|
141
|
-
* The ID of the project.
|
|
142
|
-
*/
|
|
143
|
-
projectId?: pulumi.Input<string>;
|
|
144
|
-
/**
|
|
145
|
-
* The Service Endpoint name.
|
|
146
|
-
*/
|
|
147
|
-
serviceEndpointName?: pulumi.Input<string>;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* The set of arguments for constructing a GitHub resource.
|
|
151
|
-
*/
|
|
152
|
-
export interface GitHubArgs {
|
|
153
|
-
authOauth?: pulumi.Input<inputs.ServiceEndpoint.GitHubAuthOauth>;
|
|
154
|
-
/**
|
|
155
|
-
* An `authPersonal` block as documented below. Allows connecting using a personal access token.
|
|
156
|
-
*/
|
|
157
|
-
authPersonal?: pulumi.Input<inputs.ServiceEndpoint.GitHubAuthPersonal>;
|
|
158
|
-
authorization?: pulumi.Input<{
|
|
159
|
-
[key: string]: pulumi.Input<string>;
|
|
160
|
-
}>;
|
|
161
|
-
description?: pulumi.Input<string>;
|
|
162
|
-
/**
|
|
163
|
-
* The ID of the project.
|
|
164
|
-
*/
|
|
165
|
-
projectId: pulumi.Input<string>;
|
|
166
|
-
/**
|
|
167
|
-
* The Service Endpoint name.
|
|
168
|
-
*/
|
|
169
|
-
serviceEndpointName: pulumi.Input<string>;
|
|
170
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
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.GitHub = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("../utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Manages a GitHub service endpoint within Azure DevOps.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* <!--Start PulumiCodeChooser -->
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
19
|
-
* visibility: "private",
|
|
20
|
-
* versionControl: "Git",
|
|
21
|
-
* workItemTemplate: "Agile",
|
|
22
|
-
* description: "Managed by Terraform",
|
|
23
|
-
* });
|
|
24
|
-
* const exampleServiceEndpointGitHub = new azuredevops.ServiceEndpointGitHub("exampleServiceEndpointGitHub", {
|
|
25
|
-
* projectId: exampleProject.id,
|
|
26
|
-
* serviceEndpointName: "Example GitHub Personal Access Token",
|
|
27
|
-
* authPersonal: {
|
|
28
|
-
* personalAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
29
|
-
* },
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
* <!--End PulumiCodeChooser -->
|
|
33
|
-
*
|
|
34
|
-
* <!--Start PulumiCodeChooser -->
|
|
35
|
-
* ```typescript
|
|
36
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
38
|
-
*
|
|
39
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
40
|
-
* visibility: "private",
|
|
41
|
-
* versionControl: "Git",
|
|
42
|
-
* workItemTemplate: "Agile",
|
|
43
|
-
* description: "Managed by Terraform",
|
|
44
|
-
* });
|
|
45
|
-
* const exampleServiceEndpointGitHub = new azuredevops.ServiceEndpointGitHub("exampleServiceEndpointGitHub", {
|
|
46
|
-
* projectId: exampleProject.id,
|
|
47
|
-
* serviceEndpointName: "Example GitHub",
|
|
48
|
-
* authOauth: {
|
|
49
|
-
* oauthConfigurationId: "00000000-0000-0000-0000-000000000000",
|
|
50
|
-
* },
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
|
-
* <!--End PulumiCodeChooser -->
|
|
54
|
-
*
|
|
55
|
-
* <!--Start PulumiCodeChooser -->
|
|
56
|
-
* ```typescript
|
|
57
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
59
|
-
*
|
|
60
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
61
|
-
* visibility: "private",
|
|
62
|
-
* versionControl: "Git",
|
|
63
|
-
* workItemTemplate: "Agile",
|
|
64
|
-
* description: "Managed by Terraform",
|
|
65
|
-
* });
|
|
66
|
-
* const exampleServiceEndpointGitHub = new azuredevops.ServiceEndpointGitHub("exampleServiceEndpointGitHub", {
|
|
67
|
-
* projectId: exampleProject.id,
|
|
68
|
-
* serviceEndpointName: "Example GitHub Apps: Azure Pipelines",
|
|
69
|
-
* description: "Managed by Terraform",
|
|
70
|
-
* });
|
|
71
|
-
* ```
|
|
72
|
-
* <!--End PulumiCodeChooser -->
|
|
73
|
-
*
|
|
74
|
-
* ## Relevant Links
|
|
75
|
-
*
|
|
76
|
-
* - [Azure DevOps Service REST API 7.0 - Service Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0)
|
|
77
|
-
*
|
|
78
|
-
* ## Import
|
|
79
|
-
*
|
|
80
|
-
* Azure DevOps Service Endpoint GitHub can be imported using **projectID/serviceEndpointID** or **projectName/serviceEndpointID**
|
|
81
|
-
*
|
|
82
|
-
* ```sh
|
|
83
|
-
* $ pulumi import azuredevops:ServiceEndpoint/gitHub:GitHub example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @deprecated azuredevops.serviceendpoint.GitHub has been deprecated in favor of azuredevops.ServiceEndpointGitHub
|
|
87
|
-
*/
|
|
88
|
-
class GitHub extends pulumi.CustomResource {
|
|
89
|
-
/**
|
|
90
|
-
* Get an existing GitHub resource's state with the given name, ID, and optional extra
|
|
91
|
-
* properties used to qualify the lookup.
|
|
92
|
-
*
|
|
93
|
-
* @param name The _unique_ name of the resulting resource.
|
|
94
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
95
|
-
* @param state Any extra arguments used during the lookup.
|
|
96
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
|
-
*/
|
|
98
|
-
static get(name, id, state, opts) {
|
|
99
|
-
pulumi.log.warn("GitHub is deprecated: azuredevops.serviceendpoint.GitHub has been deprecated in favor of azuredevops.ServiceEndpointGitHub");
|
|
100
|
-
return new GitHub(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Returns true if the given object is an instance of GitHub. This is designed to work even
|
|
104
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
105
|
-
*/
|
|
106
|
-
static isInstance(obj) {
|
|
107
|
-
if (obj === undefined || obj === null) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
return obj['__pulumiType'] === GitHub.__pulumiType;
|
|
111
|
-
}
|
|
112
|
-
/** @deprecated azuredevops.serviceendpoint.GitHub has been deprecated in favor of azuredevops.ServiceEndpointGitHub */
|
|
113
|
-
constructor(name, argsOrState, opts) {
|
|
114
|
-
pulumi.log.warn("GitHub is deprecated: azuredevops.serviceendpoint.GitHub has been deprecated in favor of azuredevops.ServiceEndpointGitHub");
|
|
115
|
-
let resourceInputs = {};
|
|
116
|
-
opts = opts || {};
|
|
117
|
-
if (opts.id) {
|
|
118
|
-
const state = argsOrState;
|
|
119
|
-
resourceInputs["authOauth"] = state ? state.authOauth : undefined;
|
|
120
|
-
resourceInputs["authPersonal"] = state ? state.authPersonal : undefined;
|
|
121
|
-
resourceInputs["authorization"] = state ? state.authorization : undefined;
|
|
122
|
-
resourceInputs["description"] = state ? state.description : undefined;
|
|
123
|
-
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
124
|
-
resourceInputs["serviceEndpointName"] = state ? state.serviceEndpointName : undefined;
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
const args = argsOrState;
|
|
128
|
-
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
129
|
-
throw new Error("Missing required property 'projectId'");
|
|
130
|
-
}
|
|
131
|
-
if ((!args || args.serviceEndpointName === undefined) && !opts.urn) {
|
|
132
|
-
throw new Error("Missing required property 'serviceEndpointName'");
|
|
133
|
-
}
|
|
134
|
-
resourceInputs["authOauth"] = args ? args.authOauth : undefined;
|
|
135
|
-
resourceInputs["authPersonal"] = args ? args.authPersonal : undefined;
|
|
136
|
-
resourceInputs["authorization"] = args ? args.authorization : undefined;
|
|
137
|
-
resourceInputs["description"] = args ? args.description : undefined;
|
|
138
|
-
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
139
|
-
resourceInputs["serviceEndpointName"] = args ? args.serviceEndpointName : undefined;
|
|
140
|
-
}
|
|
141
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
142
|
-
super(GitHub.__pulumiType, name, resourceInputs, opts);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
exports.GitHub = GitHub;
|
|
146
|
-
/** @internal */
|
|
147
|
-
GitHub.__pulumiType = 'azuredevops:ServiceEndpoint/gitHub:GitHub';
|
|
148
|
-
//# sourceMappingURL=gitHub.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gitHub.js","sourceRoot":"","sources":["../../serviceendpoint/gitHub.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI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C,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AApFL,wBAqFC;AAtEG,gBAAgB;AACO,mBAAY,GAAG,2CAA2C,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { AzureRMArgs, AzureRMState } from "./azureRM";
|
|
2
|
-
export type AzureRM = import("./azureRM").AzureRM;
|
|
3
|
-
export declare const AzureRM: typeof import("./azureRM").AzureRM;
|
|
4
|
-
export { BitBucketArgs, BitBucketState } from "./bitBucket";
|
|
5
|
-
export type BitBucket = import("./bitBucket").BitBucket;
|
|
6
|
-
export declare const BitBucket: typeof import("./bitBucket").BitBucket;
|
|
7
|
-
export { DockerRegistryArgs, DockerRegistryState } from "./dockerRegistry";
|
|
8
|
-
export type DockerRegistry = import("./dockerRegistry").DockerRegistry;
|
|
9
|
-
export declare const DockerRegistry: typeof import("./dockerRegistry").DockerRegistry;
|
|
10
|
-
export { GitHubArgs, GitHubState } from "./gitHub";
|
|
11
|
-
export type GitHub = import("./gitHub").GitHub;
|
|
12
|
-
export declare const GitHub: typeof import("./gitHub").GitHub;
|
|
13
|
-
export { KubernetesArgs, KubernetesState } from "./kubernetes";
|
|
14
|
-
export type Kubernetes = import("./kubernetes").Kubernetes;
|
|
15
|
-
export declare const Kubernetes: typeof import("./kubernetes").Kubernetes;
|