@pulumi/harness 0.8.2 → 0.8.3
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/addUserToGroup.js +7 -7
- package/addUserToGroup.js.map +1 -1
- package/application.js +11 -11
- package/application.js.map +1 -1
- package/applicationGitSync.js +14 -14
- package/applicationGitSync.js.map +1 -1
- package/autostopping/awsAlb.js +27 -27
- package/autostopping/awsAlb.js.map +1 -1
- package/autostopping/awsProxy.js +35 -35
- package/autostopping/awsProxy.js.map +1 -1
- package/autostopping/azureGateway.js +35 -35
- package/autostopping/azureGateway.js.map +1 -1
- package/autostopping/azureProxy.js +42 -42
- package/autostopping/azureProxy.js.map +1 -1
- package/autostopping/gcpProxy.js +37 -37
- package/autostopping/gcpProxy.js.map +1 -1
- package/autostopping/ruleEcs.js +19 -19
- package/autostopping/ruleEcs.js.map +1 -1
- package/autostopping/ruleRds.js +18 -18
- package/autostopping/ruleRds.js.map +1 -1
- package/autostopping/ruleVm.js +24 -24
- package/autostopping/ruleVm.js.map +1 -1
- package/autostopping/schedule.js +19 -19
- package/autostopping/schedule.js.map +1 -1
- package/chaos/hub.js +29 -29
- package/chaos/hub.js.map +1 -1
- package/chaos/hubSync.js +11 -11
- package/chaos/hubSync.js.map +1 -1
- package/chaos/imageRegistry.js +28 -28
- package/chaos/imageRegistry.js.map +1 -1
- package/chaos/infrastructureV2.js +69 -69
- package/chaos/infrastructureV2.js.map +1 -1
- package/chaos/securityGovernanceCondition.js +23 -23
- package/chaos/securityGovernanceCondition.js.map +1 -1
- package/chaos/securityGovernanceRule.js +23 -23
- package/chaos/securityGovernanceRule.js.map +1 -1
- package/chaosInfrastructure.js +23 -23
- package/chaosInfrastructure.js.map +1 -1
- package/cloudprovider/aws.js +19 -19
- package/cloudprovider/aws.js.map +1 -1
- package/cloudprovider/azure.js +14 -14
- package/cloudprovider/azure.js.map +1 -1
- package/cloudprovider/datacenter.js +5 -5
- package/cloudprovider/datacenter.js.map +1 -1
- package/cloudprovider/gcp.js +11 -11
- package/cloudprovider/gcp.js.map +1 -1
- package/cloudprovider/kubernetes.js +10 -10
- package/cloudprovider/kubernetes.js.map +1 -1
- package/cloudprovider/spot.js +9 -9
- package/cloudprovider/spot.js.map +1 -1
- package/cloudprovider/tanzu.js +15 -15
- package/cloudprovider/tanzu.js.map +1 -1
- package/cluster/orchestrator.js +9 -9
- package/cluster/orchestrator.js.map +1 -1
- package/cluster/orchestratorConfig.js +15 -15
- package/cluster/orchestratorConfig.js.map +1 -1
- package/config/vars.d.ts +3 -7
- package/config/vars.js +4 -8
- package/config/vars.js.map +1 -1
- package/delegateApproval.js +8 -8
- package/delegateApproval.js.map +1 -1
- package/encryptedText.js +16 -16
- package/encryptedText.js.map +1 -1
- package/environment.js +13 -13
- package/environment.js.map +1 -1
- package/gitConnector.js +27 -27
- package/gitConnector.js.map +1 -1
- package/governance/rule.js +12 -12
- package/governance/rule.js.map +1 -1
- package/governance/ruleEnforcement.js +28 -28
- package/governance/ruleEnforcement.js.map +1 -1
- package/governance/ruleSet.js +12 -12
- package/governance/ruleSet.js.map +1 -1
- package/infrastructureDefinition.js +47 -47
- package/infrastructureDefinition.js.map +1 -1
- package/package.json +2 -2
- package/platform/appDynamicsConnector.js +26 -26
- package/platform/appDynamicsConnector.js.map +1 -1
- package/platform/artifactoryConnector.d.ts +12 -0
- package/platform/artifactoryConnector.js +23 -21
- package/platform/artifactoryConnector.js.map +1 -1
- package/platform/awsCCConnector.js +27 -27
- package/platform/awsCCConnector.js.map +1 -1
- package/platform/awsConnector.js +34 -34
- package/platform/awsConnector.js.map +1 -1
- package/platform/awsKmsConnector.js +30 -30
- package/platform/awsKmsConnector.js.map +1 -1
- package/platform/awsSecretManagerConnector.js +34 -34
- package/platform/awsSecretManagerConnector.js.map +1 -1
- package/platform/azureCloudCostConnector.js +27 -27
- package/platform/azureCloudCostConnector.js.map +1 -1
- package/platform/azureCloudProviderConnector.js +25 -25
- package/platform/azureCloudProviderConnector.js.map +1 -1
- package/platform/azureKeyVaultConnector.js +35 -35
- package/platform/azureKeyVaultConnector.js.map +1 -1
- package/platform/bitbucketConnector.js +29 -29
- package/platform/bitbucketConnector.js.map +1 -1
- package/platform/centralNotificationChannel.js +21 -21
- package/platform/centralNotificationChannel.js.map +1 -1
- package/platform/centralNotificationRule.js +24 -24
- package/platform/centralNotificationRule.js.map +1 -1
- package/platform/connectorAzureArtifacts.js +22 -22
- package/platform/connectorAzureArtifacts.js.map +1 -1
- package/platform/connectorAzureRepo.js +31 -31
- package/platform/connectorAzureRepo.js.map +1 -1
- package/platform/connectorCustomSecretManager.js +36 -36
- package/platform/connectorCustomSecretManager.js.map +1 -1
- package/platform/connectorCustomhealthsource.js +30 -30
- package/platform/connectorCustomhealthsource.js.map +1 -1
- package/platform/connectorGcpKms.js +34 -34
- package/platform/connectorGcpKms.js.map +1 -1
- package/platform/connectorJdbc.js +22 -22
- package/platform/connectorJdbc.js.map +1 -1
- package/platform/connectorPdc.js +19 -19
- package/platform/connectorPdc.js.map +1 -1
- package/platform/connectorRancher.js +23 -23
- package/platform/connectorRancher.js.map +1 -1
- package/platform/dashboardFolders.js +4 -4
- package/platform/dashboardFolders.js.map +1 -1
- package/platform/dashboards.js +27 -27
- package/platform/dashboards.js.map +1 -1
- package/platform/datadogConnector.js +25 -25
- package/platform/datadogConnector.js.map +1 -1
- package/platform/dbInstance.js +28 -28
- package/platform/dbInstance.js.map +1 -1
- package/platform/dbSchema.js +24 -24
- package/platform/dbSchema.js.map +1 -1
- package/platform/defaultNotificationTemplateSet.js +21 -21
- package/platform/defaultNotificationTemplateSet.js.map +1 -1
- package/platform/delegatetoken.d.ts +3 -0
- package/platform/delegatetoken.js +23 -20
- package/platform/delegatetoken.js.map +1 -1
- package/platform/dockerConnector.js +26 -26
- package/platform/dockerConnector.js.map +1 -1
- package/platform/dynatraceConnector.js +22 -22
- package/platform/dynatraceConnector.js.map +1 -1
- package/platform/elasticsearchConnector.js +25 -25
- package/platform/elasticsearchConnector.js.map +1 -1
- package/platform/environment.js +25 -25
- package/platform/environment.js.map +1 -1
- package/platform/environmentClustersMapping.js +14 -14
- package/platform/environmentClustersMapping.js.map +1 -1
- package/platform/environmentGroup.js +15 -15
- package/platform/environmentGroup.js.map +1 -1
- package/platform/environmentServiceOverrides.js +16 -16
- package/platform/environmentServiceOverrides.js.map +1 -1
- package/platform/featureFlag.js +37 -37
- package/platform/featureFlag.js.map +1 -1
- package/platform/featureFlagApiKey.js +23 -23
- package/platform/featureFlagApiKey.js.map +1 -1
- package/platform/featureFlagTarget.js +20 -20
- package/platform/featureFlagTarget.js.map +1 -1
- package/platform/featureFlagTargetGroup.js +24 -24
- package/platform/featureFlagTargetGroup.js.map +1 -1
- package/platform/fileStoreFile.js +29 -29
- package/platform/fileStoreFile.js.map +1 -1
- package/platform/fileStoreFolder.js +21 -21
- package/platform/fileStoreFolder.js.map +1 -1
- package/platform/filters.js +18 -18
- package/platform/filters.js.map +1 -1
- package/platform/gcpCloudCostConnector.js +25 -25
- package/platform/gcpCloudCostConnector.js.map +1 -1
- package/platform/gcpConnector.js +24 -24
- package/platform/gcpConnector.js.map +1 -1
- package/platform/gcpSecretManagerConnector.js +26 -26
- package/platform/gcpSecretManagerConnector.js.map +1 -1
- package/platform/getPolicySet.d.ts +10 -1
- package/platform/getPolicySet.js +2 -0
- package/platform/getPolicySet.js.map +1 -1
- package/platform/gitConnector.js +29 -29
- package/platform/gitConnector.js.map +1 -1
- package/platform/gitOpsAgent.js +25 -25
- package/platform/gitOpsAgent.js.map +1 -1
- package/platform/gitOpsApplications.js +42 -42
- package/platform/gitOpsApplications.js.map +1 -1
- package/platform/gitOpsCluster.js +19 -19
- package/platform/gitOpsCluster.js.map +1 -1
- package/platform/gitOpsGnupg.js +14 -14
- package/platform/gitOpsGnupg.js.map +1 -1
- package/platform/gitOpsRepoCert.js +13 -13
- package/platform/gitOpsRepoCert.js.map +1 -1
- package/platform/gitOpsRepoCred.js +17 -17
- package/platform/gitOpsRepoCred.js.map +1 -1
- package/platform/gitOpsRepository.js +32 -32
- package/platform/gitOpsRepository.js.map +1 -1
- package/platform/githubConnector.js +33 -33
- package/platform/githubConnector.js.map +1 -1
- package/platform/gitlabConnector.js +31 -31
- package/platform/gitlabConnector.js.map +1 -1
- package/platform/gitopsAppProject.js +17 -17
- package/platform/gitopsAppProject.js.map +1 -1
- package/platform/gitopsAppProjectMapping.js +16 -16
- package/platform/gitopsAppProjectMapping.js.map +1 -1
- package/platform/gitopsApplicationset.js +16 -16
- package/platform/gitopsApplicationset.js.map +1 -1
- package/platform/gitopsFilters.js +20 -20
- package/platform/gitopsFilters.js.map +1 -1
- package/platform/gitxWebhook.js +24 -24
- package/platform/gitxWebhook.js.map +1 -1
- package/platform/harRegistry.js +21 -21
- package/platform/harRegistry.js.map +1 -1
- package/platform/helmConnector.js +23 -23
- package/platform/helmConnector.js.map +1 -1
- package/platform/iacmDefaultPipeline.js +16 -16
- package/platform/iacmDefaultPipeline.js.map +1 -1
- package/platform/infraModule.js +28 -28
- package/platform/infraModule.js.map +1 -1
- package/platform/infraVariableSet.js +22 -22
- package/platform/infraVariableSet.js.map +1 -1
- package/platform/infrastructure.js +27 -27
- package/platform/infrastructure.js.map +1 -1
- package/platform/inputSet.js +29 -29
- package/platform/inputSet.js.map +1 -1
- package/platform/jenkinsConnector.js +21 -21
- package/platform/jenkinsConnector.js.map +1 -1
- package/platform/jiraConnector.js +28 -28
- package/platform/jiraConnector.js.map +1 -1
- package/platform/kubernetesCloudCostConnector.js +20 -20
- package/platform/kubernetesCloudCostConnector.js.map +1 -1
- package/platform/kubernetesConnector.js +28 -28
- package/platform/kubernetesConnector.js.map +1 -1
- package/platform/manualFreeze.js +22 -22
- package/platform/manualFreeze.js.map +1 -1
- package/platform/monitoredService.js +12 -12
- package/platform/monitoredService.js.map +1 -1
- package/platform/newrelicConnector.js +25 -25
- package/platform/newrelicConnector.js.map +1 -1
- package/platform/nexusConnector.js +24 -24
- package/platform/nexusConnector.js.map +1 -1
- package/platform/notificationRule.js +12 -12
- package/platform/notificationRule.js.map +1 -1
- package/platform/ociHelmConnector.js +23 -23
- package/platform/ociHelmConnector.js.map +1 -1
- package/platform/organization.js +10 -10
- package/platform/organization.js.map +1 -1
- package/platform/overrides.js +27 -27
- package/platform/overrides.js.map +1 -1
- package/platform/pagerdutyConnector.js +19 -19
- package/platform/pagerdutyConnector.js.map +1 -1
- package/platform/pipeline.js +30 -30
- package/platform/pipeline.js.map +1 -1
- package/platform/pipelineFilters.js +18 -18
- package/platform/pipelineFilters.js.map +1 -1
- package/platform/policy.js +37 -37
- package/platform/policy.js.map +1 -1
- package/platform/policySet.d.ts +12 -0
- package/platform/policySet.js +26 -24
- package/platform/policySet.js.map +1 -1
- package/platform/project.js +16 -16
- package/platform/project.js.map +1 -1
- package/platform/prometheusConnector.js +25 -25
- package/platform/prometheusConnector.js.map +1 -1
- package/platform/provider.js +13 -13
- package/platform/provider.js.map +1 -1
- package/platform/repo.js +26 -26
- package/platform/repo.js.map +1 -1
- package/platform/repoRuleBranch.js +28 -28
- package/platform/repoRuleBranch.js.map +1 -1
- package/platform/repoWebhook.js +29 -29
- package/platform/repoWebhook.js.map +1 -1
- package/platform/resourceGroup.js +25 -25
- package/platform/resourceGroup.js.map +1 -1
- package/platform/roleAssignments.js +20 -20
- package/platform/roleAssignments.js.map +1 -1
- package/platform/roles.js +18 -18
- package/platform/roles.js.map +1 -1
- package/platform/secretFile.js +20 -20
- package/platform/secretFile.js.map +1 -1
- package/platform/secretSshkey.js +20 -20
- package/platform/secretSshkey.js.map +1 -1
- package/platform/secretText.js +24 -24
- package/platform/secretText.js.map +1 -1
- package/platform/service.js +26 -26
- package/platform/service.js.map +1 -1
- package/platform/serviceAccount.js +20 -20
- package/platform/serviceAccount.js.map +1 -1
- package/platform/serviceNowConnector.js +28 -28
- package/platform/serviceNowConnector.js.map +1 -1
- package/platform/serviceOverridesV2.js +27 -27
- package/platform/serviceOverridesV2.js.map +1 -1
- package/platform/slo.js +12 -12
- package/platform/slo.js.map +1 -1
- package/platform/splunkConnector.js +28 -28
- package/platform/splunkConnector.js.map +1 -1
- package/platform/spotConnector.js +17 -17
- package/platform/spotConnector.js.map +1 -1
- package/platform/sumologicConnector.js +25 -25
- package/platform/sumologicConnector.js.map +1 -1
- package/platform/tasConnector.js +21 -21
- package/platform/tasConnector.js.map +1 -1
- package/platform/template.js +33 -33
- package/platform/template.js.map +1 -1
- package/platform/templateFilters.js +18 -18
- package/platform/templateFilters.js.map +1 -1
- package/platform/terraformCloudConnector.js +24 -24
- package/platform/terraformCloudConnector.js.map +1 -1
- package/platform/token.js +41 -41
- package/platform/token.js.map +1 -1
- package/platform/triggers.js +26 -26
- package/platform/triggers.js.map +1 -1
- package/platform/user.js +18 -18
- package/platform/user.js.map +1 -1
- package/platform/usergroup.js +34 -34
- package/platform/usergroup.js.map +1 -1
- package/platform/variables.js +18 -18
- package/platform/variables.js.map +1 -1
- package/platform/vaultConnector.js +78 -78
- package/platform/vaultConnector.js.map +1 -1
- package/platform/workspace.js +54 -54
- package/platform/workspace.js.map +1 -1
- package/platformApiKey.js +25 -25
- package/platformApiKey.js.map +1 -1
- package/platformCcmFilters.js +18 -18
- package/platformCcmFilters.js.map +1 -1
- package/provider.d.ts +6 -14
- package/provider.js +4 -5
- package/provider.js.map +1 -1
- package/service/ami.js +10 -10
- package/service/ami.js.map +1 -1
- package/service/codedeploy.js +10 -10
- package/service/codedeploy.js.map +1 -1
- package/service/discoveryAgent.js +36 -36
- package/service/discoveryAgent.js.map +1 -1
- package/service/discoverySetting.js +11 -11
- package/service/discoverySetting.js.map +1 -1
- package/service/ecs.js +10 -10
- package/service/ecs.js.map +1 -1
- package/service/helm.js +10 -10
- package/service/helm.js.map +1 -1
- package/service/kubernetes.js +12 -12
- package/service/kubernetes.js.map +1 -1
- package/service/lambda.js +10 -10
- package/service/lambda.js.map +1 -1
- package/service/ssh.js +13 -13
- package/service/ssh.js.map +1 -1
- package/service/tanzu.js +10 -10
- package/service/tanzu.js.map +1 -1
- package/service/winrm.js +13 -13
- package/service/winrm.js.map +1 -1
- package/sshCredential.js +9 -9
- package/sshCredential.js.map +1 -1
- package/types/input.d.ts +30 -0
- package/types/output.d.ts +20 -0
- package/user.js +13 -13
- package/user.js.map +1 -1
- package/userGroup.js +15 -15
- package/userGroup.js.map +1 -1
- package/userGroupPermissions.js +8 -8
- package/userGroupPermissions.js.map +1 -1
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/yamlConfig.js +10 -10
- package/yamlConfig.js.map +1 -1
package/cluster/orchestrator.js
CHANGED
|
@@ -32,7 +32,7 @@ class Orchestrator extends pulumi.CustomResource {
|
|
|
32
32
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
33
|
*/
|
|
34
34
|
static get(name, id, state, opts) {
|
|
35
|
-
return new Orchestrator(name, state,
|
|
35
|
+
return new Orchestrator(name, state, { ...opts, id: id });
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Returns true if the given object is an instance of Orchestrator. This is designed to work even
|
|
@@ -49,21 +49,21 @@ class Orchestrator extends pulumi.CustomResource {
|
|
|
49
49
|
opts = opts || {};
|
|
50
50
|
if (opts.id) {
|
|
51
51
|
const state = argsOrState;
|
|
52
|
-
resourceInputs["clusterEndpoint"] = state
|
|
53
|
-
resourceInputs["k8sConnectorId"] = state
|
|
54
|
-
resourceInputs["name"] = state
|
|
52
|
+
resourceInputs["clusterEndpoint"] = state?.clusterEndpoint;
|
|
53
|
+
resourceInputs["k8sConnectorId"] = state?.k8sConnectorId;
|
|
54
|
+
resourceInputs["name"] = state?.name;
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
57
|
const args = argsOrState;
|
|
58
|
-
if (
|
|
58
|
+
if (args?.clusterEndpoint === undefined && !opts.urn) {
|
|
59
59
|
throw new Error("Missing required property 'clusterEndpoint'");
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
61
|
+
if (args?.k8sConnectorId === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'k8sConnectorId'");
|
|
63
63
|
}
|
|
64
|
-
resourceInputs["clusterEndpoint"] = args
|
|
65
|
-
resourceInputs["k8sConnectorId"] = args
|
|
66
|
-
resourceInputs["name"] = args
|
|
64
|
+
resourceInputs["clusterEndpoint"] = args?.clusterEndpoint;
|
|
65
|
+
resourceInputs["k8sConnectorId"] = args?.k8sConnectorId;
|
|
66
|
+
resourceInputs["name"] = args?.name;
|
|
67
67
|
}
|
|
68
68
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
69
|
super(Orchestrator.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../cluster/orchestrator.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../cluster/orchestrator.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAKD;;;O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Y,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAvEL,oCAwEC;AA1DG,gBAAgB;AACO,yBAAY,GAAG,2CAA2C,CAAC"}
|
|
@@ -96,7 +96,7 @@ class OrchestratorConfig extends pulumi.CustomResource {
|
|
|
96
96
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
97
|
*/
|
|
98
98
|
static get(name, id, state, opts) {
|
|
99
|
-
return new OrchestratorConfig(name, state,
|
|
99
|
+
return new OrchestratorConfig(name, state, { ...opts, id: id });
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Returns true if the given object is an instance of OrchestratorConfig. This is designed to work even
|
|
@@ -113,27 +113,27 @@ class OrchestratorConfig extends pulumi.CustomResource {
|
|
|
113
113
|
opts = opts || {};
|
|
114
114
|
if (opts.id) {
|
|
115
115
|
const state = argsOrState;
|
|
116
|
-
resourceInputs["binpacking"] = state
|
|
117
|
-
resourceInputs["commitmentIntegration"] = state
|
|
118
|
-
resourceInputs["distribution"] = state
|
|
119
|
-
resourceInputs["nodePreferences"] = state
|
|
120
|
-
resourceInputs["orchestratorId"] = state
|
|
121
|
-
resourceInputs["replacementSchedule"] = state
|
|
116
|
+
resourceInputs["binpacking"] = state?.binpacking;
|
|
117
|
+
resourceInputs["commitmentIntegration"] = state?.commitmentIntegration;
|
|
118
|
+
resourceInputs["distribution"] = state?.distribution;
|
|
119
|
+
resourceInputs["nodePreferences"] = state?.nodePreferences;
|
|
120
|
+
resourceInputs["orchestratorId"] = state?.orchestratorId;
|
|
121
|
+
resourceInputs["replacementSchedule"] = state?.replacementSchedule;
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
124
|
const args = argsOrState;
|
|
125
|
-
if (
|
|
125
|
+
if (args?.distribution === undefined && !opts.urn) {
|
|
126
126
|
throw new Error("Missing required property 'distribution'");
|
|
127
127
|
}
|
|
128
|
-
if (
|
|
128
|
+
if (args?.orchestratorId === undefined && !opts.urn) {
|
|
129
129
|
throw new Error("Missing required property 'orchestratorId'");
|
|
130
130
|
}
|
|
131
|
-
resourceInputs["binpacking"] = args
|
|
132
|
-
resourceInputs["commitmentIntegration"] = args
|
|
133
|
-
resourceInputs["distribution"] = args
|
|
134
|
-
resourceInputs["nodePreferences"] = args
|
|
135
|
-
resourceInputs["orchestratorId"] = args
|
|
136
|
-
resourceInputs["replacementSchedule"] = args
|
|
131
|
+
resourceInputs["binpacking"] = args?.binpacking;
|
|
132
|
+
resourceInputs["commitmentIntegration"] = args?.commitmentIntegration;
|
|
133
|
+
resourceInputs["distribution"] = args?.distribution;
|
|
134
|
+
resourceInputs["nodePreferences"] = args?.nodePreferences;
|
|
135
|
+
resourceInputs["orchestratorId"] = args?.orchestratorId;
|
|
136
|
+
resourceInputs["replacementSchedule"] = args?.replacementSchedule;
|
|
137
137
|
}
|
|
138
138
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
139
139
|
super(OrchestratorConfig.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestratorConfig.js","sourceRoot":"","sources":["../../cluster/orchestratorConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"orchestratorConfig.js","sourceRoot":"","sources":["../../cluster/orchestratorConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAE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AG,WAAiD,CAAC;YAC/D,IAAI,IAAI,EAAE,YAAY,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/C,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,IAAI,IAAI,EAAE,cAAc,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAzFL,gDA0FC;AA5EG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const accountId: string | undefined;
|
|
5
5
|
/**
|
|
6
|
-
* The Harness API key. This can also be set using the `HARNESS_API_KEY` environment variable. For more information to
|
|
7
|
-
* create an API key in FirstGen, see https://docs.harness.io/article/smloyragsm-api-keys#create_an_api_key.
|
|
6
|
+
* The Harness API key. This can also be set using the `HARNESS_API_KEY` environment variable. For more information to create an API key in FirstGen, see https://docs.harness.io/article/smloyragsm-api-keys#create_an_api_key.
|
|
8
7
|
*/
|
|
9
8
|
export declare const apiKey: string | undefined;
|
|
10
9
|
/**
|
|
11
|
-
* The URL of the Harness API endpoint. The default is `https://app.harness.io/gateway`. This can also be set using the
|
|
12
|
-
* `HARNESS_ENDPOINT` environment variable.
|
|
10
|
+
* The URL of the Harness API endpoint. The default is `https://app.harness.io/gateway`. This can also be set using the `HARNESS_ENDPOINT` environment variable.
|
|
13
11
|
*/
|
|
14
12
|
export declare const endpoint: string | undefined;
|
|
15
13
|
/**
|
|
16
|
-
* The API key for the Harness next gen platform. This can also be set using the `HARNESS_PLATFORM_API_KEY` environment
|
|
17
|
-
* variable. For more information to create an API key in NextGen, see
|
|
18
|
-
* https://docs.harness.io/article/tdoad7xrh9-add-and-manage-api-keys.
|
|
14
|
+
* The API key for the Harness next gen platform. This can also be set using the `HARNESS_PLATFORM_API_KEY` environment variable. For more information to create an API key in NextGen, see https://docs.harness.io/article/tdoad7xrh9-add-and-manage-api-keys.
|
|
19
15
|
*/
|
|
20
16
|
export declare const platformApiKey: string | undefined;
|
package/config/vars.js
CHANGED
|
@@ -7,29 +7,25 @@ const utilities = require("../utilities");
|
|
|
7
7
|
const __config = new pulumi.Config("harness");
|
|
8
8
|
Object.defineProperty(exports, "accountId", {
|
|
9
9
|
get() {
|
|
10
|
-
|
|
11
|
-
return (_a = __config.get("accountId")) !== null && _a !== void 0 ? _a : utilities.getEnv("HARNESS_ACCOUNT_ID");
|
|
10
|
+
return __config.get("accountId") ?? utilities.getEnv("HARNESS_ACCOUNT_ID");
|
|
12
11
|
},
|
|
13
12
|
enumerable: true,
|
|
14
13
|
});
|
|
15
14
|
Object.defineProperty(exports, "apiKey", {
|
|
16
15
|
get() {
|
|
17
|
-
|
|
18
|
-
return (_a = __config.get("apiKey")) !== null && _a !== void 0 ? _a : utilities.getEnv("HARNESS_API_KEY");
|
|
16
|
+
return __config.get("apiKey") ?? utilities.getEnv("HARNESS_API_KEY");
|
|
19
17
|
},
|
|
20
18
|
enumerable: true,
|
|
21
19
|
});
|
|
22
20
|
Object.defineProperty(exports, "endpoint", {
|
|
23
21
|
get() {
|
|
24
|
-
|
|
25
|
-
return (_a = __config.get("endpoint")) !== null && _a !== void 0 ? _a : utilities.getEnv("HARNESS_ENDPOINT");
|
|
22
|
+
return __config.get("endpoint") ?? utilities.getEnv("HARNESS_ENDPOINT");
|
|
26
23
|
},
|
|
27
24
|
enumerable: true,
|
|
28
25
|
});
|
|
29
26
|
Object.defineProperty(exports, "platformApiKey", {
|
|
30
27
|
get() {
|
|
31
|
-
|
|
32
|
-
return (_a = __config.get("platformApiKey")) !== null && _a !== void 0 ? _a : utilities.getEnv("HARNESS_PLATFORM_API_KEY");
|
|
28
|
+
return __config.get("platformApiKey") ?? utilities.getEnv("HARNESS_PLATFORM_API_KEY");
|
|
33
29
|
},
|
|
34
30
|
enumerable: true,
|
|
35
31
|
});
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAM9C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAM9C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC/E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACzE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC5E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE;IAC7C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC1F,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/delegateApproval.js
CHANGED
|
@@ -44,7 +44,7 @@ class DelegateApproval extends pulumi.CustomResource {
|
|
|
44
44
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
45
|
*/
|
|
46
46
|
static get(name, id, state, opts) {
|
|
47
|
-
return new DelegateApproval(name, state,
|
|
47
|
+
return new DelegateApproval(name, state, { ...opts, id: id });
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Returns true if the given object is an instance of DelegateApproval. This is designed to work even
|
|
@@ -61,20 +61,20 @@ class DelegateApproval extends pulumi.CustomResource {
|
|
|
61
61
|
opts = opts || {};
|
|
62
62
|
if (opts.id) {
|
|
63
63
|
const state = argsOrState;
|
|
64
|
-
resourceInputs["approve"] = state
|
|
65
|
-
resourceInputs["delegateId"] = state
|
|
66
|
-
resourceInputs["status"] = state
|
|
64
|
+
resourceInputs["approve"] = state?.approve;
|
|
65
|
+
resourceInputs["delegateId"] = state?.delegateId;
|
|
66
|
+
resourceInputs["status"] = state?.status;
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
69
|
const args = argsOrState;
|
|
70
|
-
if (
|
|
70
|
+
if (args?.approve === undefined && !opts.urn) {
|
|
71
71
|
throw new Error("Missing required property 'approve'");
|
|
72
72
|
}
|
|
73
|
-
if (
|
|
73
|
+
if (args?.delegateId === undefined && !opts.urn) {
|
|
74
74
|
throw new Error("Missing required property 'delegateId'");
|
|
75
75
|
}
|
|
76
|
-
resourceInputs["approve"] = args
|
|
77
|
-
resourceInputs["delegateId"] = args
|
|
76
|
+
resourceInputs["approve"] = args?.approve;
|
|
77
|
+
resourceInputs["delegateId"] = args?.delegateId;
|
|
78
78
|
resourceInputs["status"] = undefined /*out*/;
|
|
79
79
|
}
|
|
80
80
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/delegateApproval.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegateApproval.js","sourceRoot":"","sources":["../delegateApproval.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"delegateApproval.js","sourceRoot":"","sources":["../delegateApproval.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;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;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAvEL,4CAwEC;AA1DG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,CAAC"}
|
package/encryptedText.js
CHANGED
|
@@ -55,7 +55,7 @@ class EncryptedText extends pulumi.CustomResource {
|
|
|
55
55
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
56
|
*/
|
|
57
57
|
static get(name, id, state, opts) {
|
|
58
|
-
return new EncryptedText(name, state,
|
|
58
|
+
return new EncryptedText(name, state, { ...opts, id: id });
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Returns true if the given object is an instance of EncryptedText. This is designed to work even
|
|
@@ -72,26 +72,26 @@ class EncryptedText extends pulumi.CustomResource {
|
|
|
72
72
|
opts = opts || {};
|
|
73
73
|
if (opts.id) {
|
|
74
74
|
const state = argsOrState;
|
|
75
|
-
resourceInputs["inheritScopesFromSecretManager"] = state
|
|
76
|
-
resourceInputs["name"] = state
|
|
77
|
-
resourceInputs["scopedToAccount"] = state
|
|
78
|
-
resourceInputs["secretManagerId"] = state
|
|
79
|
-
resourceInputs["secretReference"] = state
|
|
80
|
-
resourceInputs["usageScopes"] = state
|
|
81
|
-
resourceInputs["value"] = state
|
|
75
|
+
resourceInputs["inheritScopesFromSecretManager"] = state?.inheritScopesFromSecretManager;
|
|
76
|
+
resourceInputs["name"] = state?.name;
|
|
77
|
+
resourceInputs["scopedToAccount"] = state?.scopedToAccount;
|
|
78
|
+
resourceInputs["secretManagerId"] = state?.secretManagerId;
|
|
79
|
+
resourceInputs["secretReference"] = state?.secretReference;
|
|
80
|
+
resourceInputs["usageScopes"] = state?.usageScopes;
|
|
81
|
+
resourceInputs["value"] = state?.value;
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
84
|
const args = argsOrState;
|
|
85
|
-
if (
|
|
85
|
+
if (args?.secretManagerId === undefined && !opts.urn) {
|
|
86
86
|
throw new Error("Missing required property 'secretManagerId'");
|
|
87
87
|
}
|
|
88
|
-
resourceInputs["inheritScopesFromSecretManager"] = args
|
|
89
|
-
resourceInputs["name"] = args
|
|
90
|
-
resourceInputs["scopedToAccount"] = args
|
|
91
|
-
resourceInputs["secretManagerId"] = args
|
|
92
|
-
resourceInputs["secretReference"] = args
|
|
93
|
-
resourceInputs["usageScopes"] = args
|
|
94
|
-
resourceInputs["value"] =
|
|
88
|
+
resourceInputs["inheritScopesFromSecretManager"] = args?.inheritScopesFromSecretManager;
|
|
89
|
+
resourceInputs["name"] = args?.name;
|
|
90
|
+
resourceInputs["scopedToAccount"] = args?.scopedToAccount;
|
|
91
|
+
resourceInputs["secretManagerId"] = args?.secretManagerId;
|
|
92
|
+
resourceInputs["secretReference"] = args?.secretReference;
|
|
93
|
+
resourceInputs["usageScopes"] = args?.usageScopes;
|
|
94
|
+
resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : undefined;
|
|
95
95
|
}
|
|
96
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
97
|
const secretOpts = { additionalSecretOutputs: ["value"] };
|
package/encryptedText.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryptedText.js","sourceRoot":"","sources":["../encryptedText.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA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C;QAC7C,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA9FL,sCA+FC;AAjFG,gBAAgB;AACO,0BAAY,GAAG,2CAA2C,CAAC"}
|
package/environment.js
CHANGED
|
@@ -75,7 +75,7 @@ class Environment extends pulumi.CustomResource {
|
|
|
75
75
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
76
76
|
*/
|
|
77
77
|
static get(name, id, state, opts) {
|
|
78
|
-
return new Environment(name, state,
|
|
78
|
+
return new Environment(name, state, { ...opts, id: id });
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Returns true if the given object is an instance of Environment. This is designed to work even
|
|
@@ -92,25 +92,25 @@ class Environment extends pulumi.CustomResource {
|
|
|
92
92
|
opts = opts || {};
|
|
93
93
|
if (opts.id) {
|
|
94
94
|
const state = argsOrState;
|
|
95
|
-
resourceInputs["appId"] = state
|
|
96
|
-
resourceInputs["description"] = state
|
|
97
|
-
resourceInputs["name"] = state
|
|
98
|
-
resourceInputs["type"] = state
|
|
99
|
-
resourceInputs["variableOverrides"] = state
|
|
95
|
+
resourceInputs["appId"] = state?.appId;
|
|
96
|
+
resourceInputs["description"] = state?.description;
|
|
97
|
+
resourceInputs["name"] = state?.name;
|
|
98
|
+
resourceInputs["type"] = state?.type;
|
|
99
|
+
resourceInputs["variableOverrides"] = state?.variableOverrides;
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
const args = argsOrState;
|
|
103
|
-
if (
|
|
103
|
+
if (args?.appId === undefined && !opts.urn) {
|
|
104
104
|
throw new Error("Missing required property 'appId'");
|
|
105
105
|
}
|
|
106
|
-
if (
|
|
106
|
+
if (args?.type === undefined && !opts.urn) {
|
|
107
107
|
throw new Error("Missing required property 'type'");
|
|
108
108
|
}
|
|
109
|
-
resourceInputs["appId"] = args
|
|
110
|
-
resourceInputs["description"] = args
|
|
111
|
-
resourceInputs["name"] = args
|
|
112
|
-
resourceInputs["type"] = args
|
|
113
|
-
resourceInputs["variableOverrides"] = args
|
|
109
|
+
resourceInputs["appId"] = args?.appId;
|
|
110
|
+
resourceInputs["description"] = args?.description;
|
|
111
|
+
resourceInputs["name"] = args?.name;
|
|
112
|
+
resourceInputs["type"] = args?.type;
|
|
113
|
+
resourceInputs["variableOverrides"] = args?.variableOverrides;
|
|
114
114
|
}
|
|
115
115
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
116
116
|
super(Environment.__pulumiType, name, resourceInputs, opts);
|
package/environment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,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AG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAnFL,kCAoFC;AAtEG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
package/gitConnector.js
CHANGED
|
@@ -54,7 +54,7 @@ class GitConnector extends pulumi.CustomResource {
|
|
|
54
54
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
55
|
*/
|
|
56
56
|
static get(name, id, state, opts) {
|
|
57
|
-
return new GitConnector(name, state,
|
|
57
|
+
return new GitConnector(name, state, { ...opts, id: id });
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Returns true if the given object is an instance of GitConnector. This is designed to work even
|
|
@@ -71,39 +71,39 @@ class GitConnector extends pulumi.CustomResource {
|
|
|
71
71
|
opts = opts || {};
|
|
72
72
|
if (opts.id) {
|
|
73
73
|
const state = argsOrState;
|
|
74
|
-
resourceInputs["branch"] = state
|
|
75
|
-
resourceInputs["commitDetails"] = state
|
|
76
|
-
resourceInputs["createdAt"] = state
|
|
77
|
-
resourceInputs["delegateSelectors"] = state
|
|
78
|
-
resourceInputs["generateWebhookUrl"] = state
|
|
79
|
-
resourceInputs["name"] = state
|
|
80
|
-
resourceInputs["passwordSecretId"] = state
|
|
81
|
-
resourceInputs["sshSettingId"] = state
|
|
82
|
-
resourceInputs["url"] = state
|
|
83
|
-
resourceInputs["urlType"] = state
|
|
84
|
-
resourceInputs["usageScopes"] = state
|
|
85
|
-
resourceInputs["username"] = state
|
|
86
|
-
resourceInputs["webhookUrl"] = state
|
|
74
|
+
resourceInputs["branch"] = state?.branch;
|
|
75
|
+
resourceInputs["commitDetails"] = state?.commitDetails;
|
|
76
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
77
|
+
resourceInputs["delegateSelectors"] = state?.delegateSelectors;
|
|
78
|
+
resourceInputs["generateWebhookUrl"] = state?.generateWebhookUrl;
|
|
79
|
+
resourceInputs["name"] = state?.name;
|
|
80
|
+
resourceInputs["passwordSecretId"] = state?.passwordSecretId;
|
|
81
|
+
resourceInputs["sshSettingId"] = state?.sshSettingId;
|
|
82
|
+
resourceInputs["url"] = state?.url;
|
|
83
|
+
resourceInputs["urlType"] = state?.urlType;
|
|
84
|
+
resourceInputs["usageScopes"] = state?.usageScopes;
|
|
85
|
+
resourceInputs["username"] = state?.username;
|
|
86
|
+
resourceInputs["webhookUrl"] = state?.webhookUrl;
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
89
|
const args = argsOrState;
|
|
90
|
-
if (
|
|
90
|
+
if (args?.url === undefined && !opts.urn) {
|
|
91
91
|
throw new Error("Missing required property 'url'");
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
93
|
+
if (args?.urlType === undefined && !opts.urn) {
|
|
94
94
|
throw new Error("Missing required property 'urlType'");
|
|
95
95
|
}
|
|
96
|
-
resourceInputs["branch"] = args
|
|
97
|
-
resourceInputs["commitDetails"] = args
|
|
98
|
-
resourceInputs["delegateSelectors"] = args
|
|
99
|
-
resourceInputs["generateWebhookUrl"] = args
|
|
100
|
-
resourceInputs["name"] = args
|
|
101
|
-
resourceInputs["passwordSecretId"] = args
|
|
102
|
-
resourceInputs["sshSettingId"] = args
|
|
103
|
-
resourceInputs["url"] = args
|
|
104
|
-
resourceInputs["urlType"] = args
|
|
105
|
-
resourceInputs["usageScopes"] = args
|
|
106
|
-
resourceInputs["username"] = args
|
|
96
|
+
resourceInputs["branch"] = args?.branch;
|
|
97
|
+
resourceInputs["commitDetails"] = args?.commitDetails;
|
|
98
|
+
resourceInputs["delegateSelectors"] = args?.delegateSelectors;
|
|
99
|
+
resourceInputs["generateWebhookUrl"] = args?.generateWebhookUrl;
|
|
100
|
+
resourceInputs["name"] = args?.name;
|
|
101
|
+
resourceInputs["passwordSecretId"] = args?.passwordSecretId;
|
|
102
|
+
resourceInputs["sshSettingId"] = args?.sshSettingId;
|
|
103
|
+
resourceInputs["url"] = args?.url;
|
|
104
|
+
resourceInputs["urlType"] = args?.urlType;
|
|
105
|
+
resourceInputs["usageScopes"] = args?.usageScopes;
|
|
106
|
+
resourceInputs["username"] = args?.username;
|
|
107
107
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
108
108
|
resourceInputs["webhookUrl"] = undefined /*out*/;
|
|
109
109
|
}
|
package/gitConnector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitConnector.js","sourceRoot":"","sources":["../gitConnector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"gitConnector.js","sourceRoot":"","sources":["../gitConnector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAA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;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAnIL,oCAoIC;AAtHG,gBAAgB;AACO,yBAAY,GAAG,yCAAyC,CAAC"}
|
package/governance/rule.js
CHANGED
|
@@ -29,7 +29,7 @@ class Rule extends pulumi.CustomResource {
|
|
|
29
29
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
30
30
|
*/
|
|
31
31
|
static get(name, id, state, opts) {
|
|
32
|
-
return new Rule(name, state,
|
|
32
|
+
return new Rule(name, state, { ...opts, id: id });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Returns true if the given object is an instance of Rule. This is designed to work even
|
|
@@ -46,24 +46,24 @@ class Rule extends pulumi.CustomResource {
|
|
|
46
46
|
opts = opts || {};
|
|
47
47
|
if (opts.id) {
|
|
48
48
|
const state = argsOrState;
|
|
49
|
-
resourceInputs["cloudProvider"] = state
|
|
50
|
-
resourceInputs["description"] = state
|
|
51
|
-
resourceInputs["name"] = state
|
|
52
|
-
resourceInputs["ruleId"] = state
|
|
53
|
-
resourceInputs["rulesYaml"] = state
|
|
49
|
+
resourceInputs["cloudProvider"] = state?.cloudProvider;
|
|
50
|
+
resourceInputs["description"] = state?.description;
|
|
51
|
+
resourceInputs["name"] = state?.name;
|
|
52
|
+
resourceInputs["ruleId"] = state?.ruleId;
|
|
53
|
+
resourceInputs["rulesYaml"] = state?.rulesYaml;
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
const args = argsOrState;
|
|
57
|
-
if (
|
|
57
|
+
if (args?.cloudProvider === undefined && !opts.urn) {
|
|
58
58
|
throw new Error("Missing required property 'cloudProvider'");
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (args?.rulesYaml === undefined && !opts.urn) {
|
|
61
61
|
throw new Error("Missing required property 'rulesYaml'");
|
|
62
62
|
}
|
|
63
|
-
resourceInputs["cloudProvider"] = args
|
|
64
|
-
resourceInputs["description"] = args
|
|
65
|
-
resourceInputs["name"] = args
|
|
66
|
-
resourceInputs["rulesYaml"] = args
|
|
63
|
+
resourceInputs["cloudProvider"] = args?.cloudProvider;
|
|
64
|
+
resourceInputs["description"] = args?.description;
|
|
65
|
+
resourceInputs["name"] = args?.name;
|
|
66
|
+
resourceInputs["rulesYaml"] = args?.rulesYaml;
|
|
67
67
|
resourceInputs["ruleId"] = undefined /*out*/;
|
|
68
68
|
}
|
|
69
69
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/governance/rule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../governance/rule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../governance/rule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,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