@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.
Files changed (353) hide show
  1. package/addUserToGroup.js +7 -7
  2. package/addUserToGroup.js.map +1 -1
  3. package/application.js +11 -11
  4. package/application.js.map +1 -1
  5. package/applicationGitSync.js +14 -14
  6. package/applicationGitSync.js.map +1 -1
  7. package/autostopping/awsAlb.js +27 -27
  8. package/autostopping/awsAlb.js.map +1 -1
  9. package/autostopping/awsProxy.js +35 -35
  10. package/autostopping/awsProxy.js.map +1 -1
  11. package/autostopping/azureGateway.js +35 -35
  12. package/autostopping/azureGateway.js.map +1 -1
  13. package/autostopping/azureProxy.js +42 -42
  14. package/autostopping/azureProxy.js.map +1 -1
  15. package/autostopping/gcpProxy.js +37 -37
  16. package/autostopping/gcpProxy.js.map +1 -1
  17. package/autostopping/ruleEcs.js +19 -19
  18. package/autostopping/ruleEcs.js.map +1 -1
  19. package/autostopping/ruleRds.js +18 -18
  20. package/autostopping/ruleRds.js.map +1 -1
  21. package/autostopping/ruleVm.js +24 -24
  22. package/autostopping/ruleVm.js.map +1 -1
  23. package/autostopping/schedule.js +19 -19
  24. package/autostopping/schedule.js.map +1 -1
  25. package/chaos/hub.js +29 -29
  26. package/chaos/hub.js.map +1 -1
  27. package/chaos/hubSync.js +11 -11
  28. package/chaos/hubSync.js.map +1 -1
  29. package/chaos/imageRegistry.js +28 -28
  30. package/chaos/imageRegistry.js.map +1 -1
  31. package/chaos/infrastructureV2.js +69 -69
  32. package/chaos/infrastructureV2.js.map +1 -1
  33. package/chaos/securityGovernanceCondition.js +23 -23
  34. package/chaos/securityGovernanceCondition.js.map +1 -1
  35. package/chaos/securityGovernanceRule.js +23 -23
  36. package/chaos/securityGovernanceRule.js.map +1 -1
  37. package/chaosInfrastructure.js +23 -23
  38. package/chaosInfrastructure.js.map +1 -1
  39. package/cloudprovider/aws.js +19 -19
  40. package/cloudprovider/aws.js.map +1 -1
  41. package/cloudprovider/azure.js +14 -14
  42. package/cloudprovider/azure.js.map +1 -1
  43. package/cloudprovider/datacenter.js +5 -5
  44. package/cloudprovider/datacenter.js.map +1 -1
  45. package/cloudprovider/gcp.js +11 -11
  46. package/cloudprovider/gcp.js.map +1 -1
  47. package/cloudprovider/kubernetes.js +10 -10
  48. package/cloudprovider/kubernetes.js.map +1 -1
  49. package/cloudprovider/spot.js +9 -9
  50. package/cloudprovider/spot.js.map +1 -1
  51. package/cloudprovider/tanzu.js +15 -15
  52. package/cloudprovider/tanzu.js.map +1 -1
  53. package/cluster/orchestrator.js +9 -9
  54. package/cluster/orchestrator.js.map +1 -1
  55. package/cluster/orchestratorConfig.js +15 -15
  56. package/cluster/orchestratorConfig.js.map +1 -1
  57. package/config/vars.d.ts +3 -7
  58. package/config/vars.js +4 -8
  59. package/config/vars.js.map +1 -1
  60. package/delegateApproval.js +8 -8
  61. package/delegateApproval.js.map +1 -1
  62. package/encryptedText.js +16 -16
  63. package/encryptedText.js.map +1 -1
  64. package/environment.js +13 -13
  65. package/environment.js.map +1 -1
  66. package/gitConnector.js +27 -27
  67. package/gitConnector.js.map +1 -1
  68. package/governance/rule.js +12 -12
  69. package/governance/rule.js.map +1 -1
  70. package/governance/ruleEnforcement.js +28 -28
  71. package/governance/ruleEnforcement.js.map +1 -1
  72. package/governance/ruleSet.js +12 -12
  73. package/governance/ruleSet.js.map +1 -1
  74. package/infrastructureDefinition.js +47 -47
  75. package/infrastructureDefinition.js.map +1 -1
  76. package/package.json +2 -2
  77. package/platform/appDynamicsConnector.js +26 -26
  78. package/platform/appDynamicsConnector.js.map +1 -1
  79. package/platform/artifactoryConnector.d.ts +12 -0
  80. package/platform/artifactoryConnector.js +23 -21
  81. package/platform/artifactoryConnector.js.map +1 -1
  82. package/platform/awsCCConnector.js +27 -27
  83. package/platform/awsCCConnector.js.map +1 -1
  84. package/platform/awsConnector.js +34 -34
  85. package/platform/awsConnector.js.map +1 -1
  86. package/platform/awsKmsConnector.js +30 -30
  87. package/platform/awsKmsConnector.js.map +1 -1
  88. package/platform/awsSecretManagerConnector.js +34 -34
  89. package/platform/awsSecretManagerConnector.js.map +1 -1
  90. package/platform/azureCloudCostConnector.js +27 -27
  91. package/platform/azureCloudCostConnector.js.map +1 -1
  92. package/platform/azureCloudProviderConnector.js +25 -25
  93. package/platform/azureCloudProviderConnector.js.map +1 -1
  94. package/platform/azureKeyVaultConnector.js +35 -35
  95. package/platform/azureKeyVaultConnector.js.map +1 -1
  96. package/platform/bitbucketConnector.js +29 -29
  97. package/platform/bitbucketConnector.js.map +1 -1
  98. package/platform/centralNotificationChannel.js +21 -21
  99. package/platform/centralNotificationChannel.js.map +1 -1
  100. package/platform/centralNotificationRule.js +24 -24
  101. package/platform/centralNotificationRule.js.map +1 -1
  102. package/platform/connectorAzureArtifacts.js +22 -22
  103. package/platform/connectorAzureArtifacts.js.map +1 -1
  104. package/platform/connectorAzureRepo.js +31 -31
  105. package/platform/connectorAzureRepo.js.map +1 -1
  106. package/platform/connectorCustomSecretManager.js +36 -36
  107. package/platform/connectorCustomSecretManager.js.map +1 -1
  108. package/platform/connectorCustomhealthsource.js +30 -30
  109. package/platform/connectorCustomhealthsource.js.map +1 -1
  110. package/platform/connectorGcpKms.js +34 -34
  111. package/platform/connectorGcpKms.js.map +1 -1
  112. package/platform/connectorJdbc.js +22 -22
  113. package/platform/connectorJdbc.js.map +1 -1
  114. package/platform/connectorPdc.js +19 -19
  115. package/platform/connectorPdc.js.map +1 -1
  116. package/platform/connectorRancher.js +23 -23
  117. package/platform/connectorRancher.js.map +1 -1
  118. package/platform/dashboardFolders.js +4 -4
  119. package/platform/dashboardFolders.js.map +1 -1
  120. package/platform/dashboards.js +27 -27
  121. package/platform/dashboards.js.map +1 -1
  122. package/platform/datadogConnector.js +25 -25
  123. package/platform/datadogConnector.js.map +1 -1
  124. package/platform/dbInstance.js +28 -28
  125. package/platform/dbInstance.js.map +1 -1
  126. package/platform/dbSchema.js +24 -24
  127. package/platform/dbSchema.js.map +1 -1
  128. package/platform/defaultNotificationTemplateSet.js +21 -21
  129. package/platform/defaultNotificationTemplateSet.js.map +1 -1
  130. package/platform/delegatetoken.d.ts +3 -0
  131. package/platform/delegatetoken.js +23 -20
  132. package/platform/delegatetoken.js.map +1 -1
  133. package/platform/dockerConnector.js +26 -26
  134. package/platform/dockerConnector.js.map +1 -1
  135. package/platform/dynatraceConnector.js +22 -22
  136. package/platform/dynatraceConnector.js.map +1 -1
  137. package/platform/elasticsearchConnector.js +25 -25
  138. package/platform/elasticsearchConnector.js.map +1 -1
  139. package/platform/environment.js +25 -25
  140. package/platform/environment.js.map +1 -1
  141. package/platform/environmentClustersMapping.js +14 -14
  142. package/platform/environmentClustersMapping.js.map +1 -1
  143. package/platform/environmentGroup.js +15 -15
  144. package/platform/environmentGroup.js.map +1 -1
  145. package/platform/environmentServiceOverrides.js +16 -16
  146. package/platform/environmentServiceOverrides.js.map +1 -1
  147. package/platform/featureFlag.js +37 -37
  148. package/platform/featureFlag.js.map +1 -1
  149. package/platform/featureFlagApiKey.js +23 -23
  150. package/platform/featureFlagApiKey.js.map +1 -1
  151. package/platform/featureFlagTarget.js +20 -20
  152. package/platform/featureFlagTarget.js.map +1 -1
  153. package/platform/featureFlagTargetGroup.js +24 -24
  154. package/platform/featureFlagTargetGroup.js.map +1 -1
  155. package/platform/fileStoreFile.js +29 -29
  156. package/platform/fileStoreFile.js.map +1 -1
  157. package/platform/fileStoreFolder.js +21 -21
  158. package/platform/fileStoreFolder.js.map +1 -1
  159. package/platform/filters.js +18 -18
  160. package/platform/filters.js.map +1 -1
  161. package/platform/gcpCloudCostConnector.js +25 -25
  162. package/platform/gcpCloudCostConnector.js.map +1 -1
  163. package/platform/gcpConnector.js +24 -24
  164. package/platform/gcpConnector.js.map +1 -1
  165. package/platform/gcpSecretManagerConnector.js +26 -26
  166. package/platform/gcpSecretManagerConnector.js.map +1 -1
  167. package/platform/getPolicySet.d.ts +10 -1
  168. package/platform/getPolicySet.js +2 -0
  169. package/platform/getPolicySet.js.map +1 -1
  170. package/platform/gitConnector.js +29 -29
  171. package/platform/gitConnector.js.map +1 -1
  172. package/platform/gitOpsAgent.js +25 -25
  173. package/platform/gitOpsAgent.js.map +1 -1
  174. package/platform/gitOpsApplications.js +42 -42
  175. package/platform/gitOpsApplications.js.map +1 -1
  176. package/platform/gitOpsCluster.js +19 -19
  177. package/platform/gitOpsCluster.js.map +1 -1
  178. package/platform/gitOpsGnupg.js +14 -14
  179. package/platform/gitOpsGnupg.js.map +1 -1
  180. package/platform/gitOpsRepoCert.js +13 -13
  181. package/platform/gitOpsRepoCert.js.map +1 -1
  182. package/platform/gitOpsRepoCred.js +17 -17
  183. package/platform/gitOpsRepoCred.js.map +1 -1
  184. package/platform/gitOpsRepository.js +32 -32
  185. package/platform/gitOpsRepository.js.map +1 -1
  186. package/platform/githubConnector.js +33 -33
  187. package/platform/githubConnector.js.map +1 -1
  188. package/platform/gitlabConnector.js +31 -31
  189. package/platform/gitlabConnector.js.map +1 -1
  190. package/platform/gitopsAppProject.js +17 -17
  191. package/platform/gitopsAppProject.js.map +1 -1
  192. package/platform/gitopsAppProjectMapping.js +16 -16
  193. package/platform/gitopsAppProjectMapping.js.map +1 -1
  194. package/platform/gitopsApplicationset.js +16 -16
  195. package/platform/gitopsApplicationset.js.map +1 -1
  196. package/platform/gitopsFilters.js +20 -20
  197. package/platform/gitopsFilters.js.map +1 -1
  198. package/platform/gitxWebhook.js +24 -24
  199. package/platform/gitxWebhook.js.map +1 -1
  200. package/platform/harRegistry.js +21 -21
  201. package/platform/harRegistry.js.map +1 -1
  202. package/platform/helmConnector.js +23 -23
  203. package/platform/helmConnector.js.map +1 -1
  204. package/platform/iacmDefaultPipeline.js +16 -16
  205. package/platform/iacmDefaultPipeline.js.map +1 -1
  206. package/platform/infraModule.js +28 -28
  207. package/platform/infraModule.js.map +1 -1
  208. package/platform/infraVariableSet.js +22 -22
  209. package/platform/infraVariableSet.js.map +1 -1
  210. package/platform/infrastructure.js +27 -27
  211. package/platform/infrastructure.js.map +1 -1
  212. package/platform/inputSet.js +29 -29
  213. package/platform/inputSet.js.map +1 -1
  214. package/platform/jenkinsConnector.js +21 -21
  215. package/platform/jenkinsConnector.js.map +1 -1
  216. package/platform/jiraConnector.js +28 -28
  217. package/platform/jiraConnector.js.map +1 -1
  218. package/platform/kubernetesCloudCostConnector.js +20 -20
  219. package/platform/kubernetesCloudCostConnector.js.map +1 -1
  220. package/platform/kubernetesConnector.js +28 -28
  221. package/platform/kubernetesConnector.js.map +1 -1
  222. package/platform/manualFreeze.js +22 -22
  223. package/platform/manualFreeze.js.map +1 -1
  224. package/platform/monitoredService.js +12 -12
  225. package/platform/monitoredService.js.map +1 -1
  226. package/platform/newrelicConnector.js +25 -25
  227. package/platform/newrelicConnector.js.map +1 -1
  228. package/platform/nexusConnector.js +24 -24
  229. package/platform/nexusConnector.js.map +1 -1
  230. package/platform/notificationRule.js +12 -12
  231. package/platform/notificationRule.js.map +1 -1
  232. package/platform/ociHelmConnector.js +23 -23
  233. package/platform/ociHelmConnector.js.map +1 -1
  234. package/platform/organization.js +10 -10
  235. package/platform/organization.js.map +1 -1
  236. package/platform/overrides.js +27 -27
  237. package/platform/overrides.js.map +1 -1
  238. package/platform/pagerdutyConnector.js +19 -19
  239. package/platform/pagerdutyConnector.js.map +1 -1
  240. package/platform/pipeline.js +30 -30
  241. package/platform/pipeline.js.map +1 -1
  242. package/platform/pipelineFilters.js +18 -18
  243. package/platform/pipelineFilters.js.map +1 -1
  244. package/platform/policy.js +37 -37
  245. package/platform/policy.js.map +1 -1
  246. package/platform/policySet.d.ts +12 -0
  247. package/platform/policySet.js +26 -24
  248. package/platform/policySet.js.map +1 -1
  249. package/platform/project.js +16 -16
  250. package/platform/project.js.map +1 -1
  251. package/platform/prometheusConnector.js +25 -25
  252. package/platform/prometheusConnector.js.map +1 -1
  253. package/platform/provider.js +13 -13
  254. package/platform/provider.js.map +1 -1
  255. package/platform/repo.js +26 -26
  256. package/platform/repo.js.map +1 -1
  257. package/platform/repoRuleBranch.js +28 -28
  258. package/platform/repoRuleBranch.js.map +1 -1
  259. package/platform/repoWebhook.js +29 -29
  260. package/platform/repoWebhook.js.map +1 -1
  261. package/platform/resourceGroup.js +25 -25
  262. package/platform/resourceGroup.js.map +1 -1
  263. package/platform/roleAssignments.js +20 -20
  264. package/platform/roleAssignments.js.map +1 -1
  265. package/platform/roles.js +18 -18
  266. package/platform/roles.js.map +1 -1
  267. package/platform/secretFile.js +20 -20
  268. package/platform/secretFile.js.map +1 -1
  269. package/platform/secretSshkey.js +20 -20
  270. package/platform/secretSshkey.js.map +1 -1
  271. package/platform/secretText.js +24 -24
  272. package/platform/secretText.js.map +1 -1
  273. package/platform/service.js +26 -26
  274. package/platform/service.js.map +1 -1
  275. package/platform/serviceAccount.js +20 -20
  276. package/platform/serviceAccount.js.map +1 -1
  277. package/platform/serviceNowConnector.js +28 -28
  278. package/platform/serviceNowConnector.js.map +1 -1
  279. package/platform/serviceOverridesV2.js +27 -27
  280. package/platform/serviceOverridesV2.js.map +1 -1
  281. package/platform/slo.js +12 -12
  282. package/platform/slo.js.map +1 -1
  283. package/platform/splunkConnector.js +28 -28
  284. package/platform/splunkConnector.js.map +1 -1
  285. package/platform/spotConnector.js +17 -17
  286. package/platform/spotConnector.js.map +1 -1
  287. package/platform/sumologicConnector.js +25 -25
  288. package/platform/sumologicConnector.js.map +1 -1
  289. package/platform/tasConnector.js +21 -21
  290. package/platform/tasConnector.js.map +1 -1
  291. package/platform/template.js +33 -33
  292. package/platform/template.js.map +1 -1
  293. package/platform/templateFilters.js +18 -18
  294. package/platform/templateFilters.js.map +1 -1
  295. package/platform/terraformCloudConnector.js +24 -24
  296. package/platform/terraformCloudConnector.js.map +1 -1
  297. package/platform/token.js +41 -41
  298. package/platform/token.js.map +1 -1
  299. package/platform/triggers.js +26 -26
  300. package/platform/triggers.js.map +1 -1
  301. package/platform/user.js +18 -18
  302. package/platform/user.js.map +1 -1
  303. package/platform/usergroup.js +34 -34
  304. package/platform/usergroup.js.map +1 -1
  305. package/platform/variables.js +18 -18
  306. package/platform/variables.js.map +1 -1
  307. package/platform/vaultConnector.js +78 -78
  308. package/platform/vaultConnector.js.map +1 -1
  309. package/platform/workspace.js +54 -54
  310. package/platform/workspace.js.map +1 -1
  311. package/platformApiKey.js +25 -25
  312. package/platformApiKey.js.map +1 -1
  313. package/platformCcmFilters.js +18 -18
  314. package/platformCcmFilters.js.map +1 -1
  315. package/provider.d.ts +6 -14
  316. package/provider.js +4 -5
  317. package/provider.js.map +1 -1
  318. package/service/ami.js +10 -10
  319. package/service/ami.js.map +1 -1
  320. package/service/codedeploy.js +10 -10
  321. package/service/codedeploy.js.map +1 -1
  322. package/service/discoveryAgent.js +36 -36
  323. package/service/discoveryAgent.js.map +1 -1
  324. package/service/discoverySetting.js +11 -11
  325. package/service/discoverySetting.js.map +1 -1
  326. package/service/ecs.js +10 -10
  327. package/service/ecs.js.map +1 -1
  328. package/service/helm.js +10 -10
  329. package/service/helm.js.map +1 -1
  330. package/service/kubernetes.js +12 -12
  331. package/service/kubernetes.js.map +1 -1
  332. package/service/lambda.js +10 -10
  333. package/service/lambda.js.map +1 -1
  334. package/service/ssh.js +13 -13
  335. package/service/ssh.js.map +1 -1
  336. package/service/tanzu.js +10 -10
  337. package/service/tanzu.js.map +1 -1
  338. package/service/winrm.js +13 -13
  339. package/service/winrm.js.map +1 -1
  340. package/sshCredential.js +9 -9
  341. package/sshCredential.js.map +1 -1
  342. package/types/input.d.ts +30 -0
  343. package/types/output.d.ts +20 -0
  344. package/user.js +13 -13
  345. package/user.js.map +1 -1
  346. package/userGroup.js +15 -15
  347. package/userGroup.js.map +1 -1
  348. package/userGroupPermissions.js +8 -8
  349. package/userGroupPermissions.js.map +1 -1
  350. package/utilities.js +18 -29
  351. package/utilities.js.map +1 -1
  352. package/yamlConfig.js +10 -10
  353. package/yamlConfig.js.map +1 -1
@@ -19,7 +19,7 @@ class RepoWebhook extends pulumi.CustomResource {
19
19
  * @param opts Optional settings to control the behavior of the CustomResource.
20
20
  */
21
21
  static get(name, id, state, opts) {
22
- return new RepoWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
22
+ return new RepoWebhook(name, state, { ...opts, id: id });
23
23
  }
24
24
  /**
25
25
  * Returns true if the given object is an instance of RepoWebhook. This is designed to work even
@@ -36,47 +36,47 @@ class RepoWebhook extends pulumi.CustomResource {
36
36
  opts = opts || {};
37
37
  if (opts.id) {
38
38
  const state = argsOrState;
39
- resourceInputs["created"] = state ? state.created : undefined;
40
- resourceInputs["createdBy"] = state ? state.createdBy : undefined;
41
- resourceInputs["description"] = state ? state.description : undefined;
42
- resourceInputs["enabled"] = state ? state.enabled : undefined;
43
- resourceInputs["hasSecret"] = state ? state.hasSecret : undefined;
44
- resourceInputs["identifier"] = state ? state.identifier : undefined;
45
- resourceInputs["insecure"] = state ? state.insecure : undefined;
46
- resourceInputs["orgId"] = state ? state.orgId : undefined;
47
- resourceInputs["projectId"] = state ? state.projectId : undefined;
48
- resourceInputs["repoIdentifier"] = state ? state.repoIdentifier : undefined;
49
- resourceInputs["secret"] = state ? state.secret : undefined;
50
- resourceInputs["triggers"] = state ? state.triggers : undefined;
51
- resourceInputs["url"] = state ? state.url : undefined;
39
+ resourceInputs["created"] = state?.created;
40
+ resourceInputs["createdBy"] = state?.createdBy;
41
+ resourceInputs["description"] = state?.description;
42
+ resourceInputs["enabled"] = state?.enabled;
43
+ resourceInputs["hasSecret"] = state?.hasSecret;
44
+ resourceInputs["identifier"] = state?.identifier;
45
+ resourceInputs["insecure"] = state?.insecure;
46
+ resourceInputs["orgId"] = state?.orgId;
47
+ resourceInputs["projectId"] = state?.projectId;
48
+ resourceInputs["repoIdentifier"] = state?.repoIdentifier;
49
+ resourceInputs["secret"] = state?.secret;
50
+ resourceInputs["triggers"] = state?.triggers;
51
+ resourceInputs["url"] = state?.url;
52
52
  }
53
53
  else {
54
54
  const args = argsOrState;
55
- if ((!args || args.enabled === undefined) && !opts.urn) {
55
+ if (args?.enabled === undefined && !opts.urn) {
56
56
  throw new Error("Missing required property 'enabled'");
57
57
  }
58
- if ((!args || args.identifier === undefined) && !opts.urn) {
58
+ if (args?.identifier === undefined && !opts.urn) {
59
59
  throw new Error("Missing required property 'identifier'");
60
60
  }
61
- if ((!args || args.insecure === undefined) && !opts.urn) {
61
+ if (args?.insecure === undefined && !opts.urn) {
62
62
  throw new Error("Missing required property 'insecure'");
63
63
  }
64
- if ((!args || args.repoIdentifier === undefined) && !opts.urn) {
64
+ if (args?.repoIdentifier === undefined && !opts.urn) {
65
65
  throw new Error("Missing required property 'repoIdentifier'");
66
66
  }
67
- if ((!args || args.url === undefined) && !opts.urn) {
67
+ if (args?.url === undefined && !opts.urn) {
68
68
  throw new Error("Missing required property 'url'");
69
69
  }
70
- resourceInputs["description"] = args ? args.description : undefined;
71
- resourceInputs["enabled"] = args ? args.enabled : undefined;
72
- resourceInputs["identifier"] = args ? args.identifier : undefined;
73
- resourceInputs["insecure"] = args ? args.insecure : undefined;
74
- resourceInputs["orgId"] = args ? args.orgId : undefined;
75
- resourceInputs["projectId"] = args ? args.projectId : undefined;
76
- resourceInputs["repoIdentifier"] = args ? args.repoIdentifier : undefined;
77
- resourceInputs["secret"] = (args === null || args === void 0 ? void 0 : args.secret) ? pulumi.secret(args.secret) : undefined;
78
- resourceInputs["triggers"] = args ? args.triggers : undefined;
79
- resourceInputs["url"] = args ? args.url : undefined;
70
+ resourceInputs["description"] = args?.description;
71
+ resourceInputs["enabled"] = args?.enabled;
72
+ resourceInputs["identifier"] = args?.identifier;
73
+ resourceInputs["insecure"] = args?.insecure;
74
+ resourceInputs["orgId"] = args?.orgId;
75
+ resourceInputs["projectId"] = args?.projectId;
76
+ resourceInputs["repoIdentifier"] = args?.repoIdentifier;
77
+ resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
78
+ resourceInputs["triggers"] = args?.triggers;
79
+ resourceInputs["url"] = args?.url;
80
80
  resourceInputs["created"] = undefined /*out*/;
81
81
  resourceInputs["createdBy"] = undefined /*out*/;
82
82
  resourceInputs["hasSecret"] = undefined /*out*/;
@@ -1 +1 @@
1
- {"version":3,"file":"repoWebhook.js","sourceRoot":"","sources":["../../platform/repoWebhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAA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O,wBAAY,GAAG,0CAA0C,CAAC"}
@@ -71,7 +71,7 @@ class ResourceGroup extends pulumi.CustomResource {
71
71
  * @param opts Optional settings to control the behavior of the CustomResource.
72
72
  */
73
73
  static get(name, id, state, opts) {
74
- return new ResourceGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
74
+ return new ResourceGroup(name, state, { ...opts, id: id });
75
75
  }
76
76
  /**
77
77
  * Returns true if the given object is an instance of ResourceGroup. This is designed to work even
@@ -88,37 +88,37 @@ class ResourceGroup extends pulumi.CustomResource {
88
88
  opts = opts || {};
89
89
  if (opts.id) {
90
90
  const state = argsOrState;
91
- resourceInputs["accountId"] = state ? state.accountId : undefined;
92
- resourceInputs["allowedScopeLevels"] = state ? state.allowedScopeLevels : undefined;
93
- resourceInputs["color"] = state ? state.color : undefined;
94
- resourceInputs["description"] = state ? state.description : undefined;
95
- resourceInputs["identifier"] = state ? state.identifier : undefined;
96
- resourceInputs["includedScopes"] = state ? state.includedScopes : undefined;
97
- resourceInputs["name"] = state ? state.name : undefined;
98
- resourceInputs["orgId"] = state ? state.orgId : undefined;
99
- resourceInputs["projectId"] = state ? state.projectId : undefined;
100
- resourceInputs["resourceFilters"] = state ? state.resourceFilters : undefined;
101
- resourceInputs["tags"] = state ? state.tags : undefined;
91
+ resourceInputs["accountId"] = state?.accountId;
92
+ resourceInputs["allowedScopeLevels"] = state?.allowedScopeLevels;
93
+ resourceInputs["color"] = state?.color;
94
+ resourceInputs["description"] = state?.description;
95
+ resourceInputs["identifier"] = state?.identifier;
96
+ resourceInputs["includedScopes"] = state?.includedScopes;
97
+ resourceInputs["name"] = state?.name;
98
+ resourceInputs["orgId"] = state?.orgId;
99
+ resourceInputs["projectId"] = state?.projectId;
100
+ resourceInputs["resourceFilters"] = state?.resourceFilters;
101
+ resourceInputs["tags"] = state?.tags;
102
102
  }
103
103
  else {
104
104
  const args = argsOrState;
105
- if ((!args || args.accountId === undefined) && !opts.urn) {
105
+ if (args?.accountId === undefined && !opts.urn) {
106
106
  throw new Error("Missing required property 'accountId'");
107
107
  }
108
- if ((!args || args.identifier === undefined) && !opts.urn) {
108
+ if (args?.identifier === undefined && !opts.urn) {
109
109
  throw new Error("Missing required property 'identifier'");
110
110
  }
111
- resourceInputs["accountId"] = args ? args.accountId : undefined;
112
- resourceInputs["allowedScopeLevels"] = args ? args.allowedScopeLevels : undefined;
113
- resourceInputs["color"] = args ? args.color : undefined;
114
- resourceInputs["description"] = args ? args.description : undefined;
115
- resourceInputs["identifier"] = args ? args.identifier : undefined;
116
- resourceInputs["includedScopes"] = args ? args.includedScopes : undefined;
117
- resourceInputs["name"] = args ? args.name : undefined;
118
- resourceInputs["orgId"] = args ? args.orgId : undefined;
119
- resourceInputs["projectId"] = args ? args.projectId : undefined;
120
- resourceInputs["resourceFilters"] = args ? args.resourceFilters : undefined;
121
- resourceInputs["tags"] = args ? args.tags : undefined;
111
+ resourceInputs["accountId"] = args?.accountId;
112
+ resourceInputs["allowedScopeLevels"] = args?.allowedScopeLevels;
113
+ resourceInputs["color"] = args?.color;
114
+ resourceInputs["description"] = args?.description;
115
+ resourceInputs["identifier"] = args?.identifier;
116
+ resourceInputs["includedScopes"] = args?.includedScopes;
117
+ resourceInputs["name"] = args?.name;
118
+ resourceInputs["orgId"] = args?.orgId;
119
+ resourceInputs["projectId"] = args?.projectId;
120
+ resourceInputs["resourceFilters"] = args?.resourceFilters;
121
+ resourceInputs["tags"] = args?.tags;
122
122
  }
123
123
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
124
124
  super(ResourceGroup.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"resourceGroup.js","sourceRoot":"","sources":["../../platform/resourceGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,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9C,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAvHL,sCAwHC;AA1GG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
@@ -41,7 +41,7 @@ class RoleAssignments extends pulumi.CustomResource {
41
41
  * @param opts Optional settings to control the behavior of the CustomResource.
42
42
  */
43
43
  static get(name, id, state, opts) {
44
- return new RoleAssignments(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ return new RoleAssignments(name, state, { ...opts, id: id });
45
45
  }
46
46
  /**
47
47
  * Returns true if the given object is an instance of RoleAssignments. This is designed to work even
@@ -58,34 +58,34 @@ class RoleAssignments extends pulumi.CustomResource {
58
58
  opts = opts || {};
59
59
  if (opts.id) {
60
60
  const state = argsOrState;
61
- resourceInputs["disabled"] = state ? state.disabled : undefined;
62
- resourceInputs["identifier"] = state ? state.identifier : undefined;
63
- resourceInputs["managed"] = state ? state.managed : undefined;
64
- resourceInputs["orgId"] = state ? state.orgId : undefined;
65
- resourceInputs["principals"] = state ? state.principals : undefined;
66
- resourceInputs["projectId"] = state ? state.projectId : undefined;
67
- resourceInputs["resourceGroupIdentifier"] = state ? state.resourceGroupIdentifier : undefined;
68
- resourceInputs["roleIdentifier"] = state ? state.roleIdentifier : undefined;
61
+ resourceInputs["disabled"] = state?.disabled;
62
+ resourceInputs["identifier"] = state?.identifier;
63
+ resourceInputs["managed"] = state?.managed;
64
+ resourceInputs["orgId"] = state?.orgId;
65
+ resourceInputs["principals"] = state?.principals;
66
+ resourceInputs["projectId"] = state?.projectId;
67
+ resourceInputs["resourceGroupIdentifier"] = state?.resourceGroupIdentifier;
68
+ resourceInputs["roleIdentifier"] = state?.roleIdentifier;
69
69
  }
70
70
  else {
71
71
  const args = argsOrState;
72
- if ((!args || args.principals === undefined) && !opts.urn) {
72
+ if (args?.principals === undefined && !opts.urn) {
73
73
  throw new Error("Missing required property 'principals'");
74
74
  }
75
- if ((!args || args.resourceGroupIdentifier === undefined) && !opts.urn) {
75
+ if (args?.resourceGroupIdentifier === undefined && !opts.urn) {
76
76
  throw new Error("Missing required property 'resourceGroupIdentifier'");
77
77
  }
78
- if ((!args || args.roleIdentifier === undefined) && !opts.urn) {
78
+ if (args?.roleIdentifier === undefined && !opts.urn) {
79
79
  throw new Error("Missing required property 'roleIdentifier'");
80
80
  }
81
- resourceInputs["disabled"] = args ? args.disabled : undefined;
82
- resourceInputs["identifier"] = args ? args.identifier : undefined;
83
- resourceInputs["managed"] = args ? args.managed : undefined;
84
- resourceInputs["orgId"] = args ? args.orgId : undefined;
85
- resourceInputs["principals"] = args ? args.principals : undefined;
86
- resourceInputs["projectId"] = args ? args.projectId : undefined;
87
- resourceInputs["resourceGroupIdentifier"] = args ? args.resourceGroupIdentifier : undefined;
88
- resourceInputs["roleIdentifier"] = args ? args.roleIdentifier : undefined;
81
+ resourceInputs["disabled"] = args?.disabled;
82
+ resourceInputs["identifier"] = args?.identifier;
83
+ resourceInputs["managed"] = args?.managed;
84
+ resourceInputs["orgId"] = args?.orgId;
85
+ resourceInputs["principals"] = args?.principals;
86
+ resourceInputs["projectId"] = args?.projectId;
87
+ resourceInputs["resourceGroupIdentifier"] = args?.resourceGroupIdentifier;
88
+ resourceInputs["roleIdentifier"] = args?.roleIdentifier;
89
89
  }
90
90
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
91
  super(RoleAssignments.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"roleAssignments.js","sourceRoot":"","sources":["../../platform/roleAssignments.ts"],"names":[],"mappings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SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1D,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;aAC1E;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,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,yBAAyB,CAAC,GAAG,IAAI,EAAE,uBAAuB,CAAC;YAC1E,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAxGL,0CAyGC;AA3FG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
package/platform/roles.js CHANGED
@@ -57,7 +57,7 @@ class Roles extends pulumi.CustomResource {
57
57
  * @param opts Optional settings to control the behavior of the CustomResource.
58
58
  */
59
59
  static get(name, id, state, opts) {
60
- return new Roles(name, state, Object.assign(Object.assign({}, opts), { id: id }));
60
+ return new Roles(name, state, { ...opts, id: id });
61
61
  }
62
62
  /**
63
63
  * Returns true if the given object is an instance of Roles. This is designed to work even
@@ -74,28 +74,28 @@ class Roles extends pulumi.CustomResource {
74
74
  opts = opts || {};
75
75
  if (opts.id) {
76
76
  const state = argsOrState;
77
- resourceInputs["allowedScopeLevels"] = state ? state.allowedScopeLevels : undefined;
78
- resourceInputs["description"] = state ? state.description : undefined;
79
- resourceInputs["identifier"] = state ? state.identifier : undefined;
80
- resourceInputs["name"] = state ? state.name : undefined;
81
- resourceInputs["orgId"] = state ? state.orgId : undefined;
82
- resourceInputs["permissions"] = state ? state.permissions : undefined;
83
- resourceInputs["projectId"] = state ? state.projectId : undefined;
84
- resourceInputs["tags"] = state ? state.tags : undefined;
77
+ resourceInputs["allowedScopeLevels"] = state?.allowedScopeLevels;
78
+ resourceInputs["description"] = state?.description;
79
+ resourceInputs["identifier"] = state?.identifier;
80
+ resourceInputs["name"] = state?.name;
81
+ resourceInputs["orgId"] = state?.orgId;
82
+ resourceInputs["permissions"] = state?.permissions;
83
+ resourceInputs["projectId"] = state?.projectId;
84
+ resourceInputs["tags"] = state?.tags;
85
85
  }
86
86
  else {
87
87
  const args = argsOrState;
88
- if ((!args || args.identifier === undefined) && !opts.urn) {
88
+ if (args?.identifier === undefined && !opts.urn) {
89
89
  throw new Error("Missing required property 'identifier'");
90
90
  }
91
- resourceInputs["allowedScopeLevels"] = args ? args.allowedScopeLevels : undefined;
92
- resourceInputs["description"] = args ? args.description : undefined;
93
- resourceInputs["identifier"] = args ? args.identifier : undefined;
94
- resourceInputs["name"] = args ? args.name : undefined;
95
- resourceInputs["orgId"] = args ? args.orgId : undefined;
96
- resourceInputs["permissions"] = args ? args.permissions : undefined;
97
- resourceInputs["projectId"] = args ? args.projectId : undefined;
98
- resourceInputs["tags"] = args ? args.tags : undefined;
91
+ resourceInputs["allowedScopeLevels"] = args?.allowedScopeLevels;
92
+ resourceInputs["description"] = args?.description;
93
+ resourceInputs["identifier"] = args?.identifier;
94
+ resourceInputs["name"] = args?.name;
95
+ resourceInputs["orgId"] = args?.orgId;
96
+ resourceInputs["permissions"] = args?.permissions;
97
+ resourceInputs["projectId"] = args?.projectId;
98
+ resourceInputs["tags"] = args?.tags;
99
99
  }
100
100
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
101
101
  super(Roles.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../platform/roles.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC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AW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAlGL,sBAmGC;AArFG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
@@ -57,7 +57,7 @@ class SecretFile extends pulumi.CustomResource {
57
57
  * @param opts Optional settings to control the behavior of the CustomResource.
58
58
  */
59
59
  static get(name, id, state, opts) {
60
- return new SecretFile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
60
+ return new SecretFile(name, state, { ...opts, id: id });
61
61
  }
62
62
  /**
63
63
  * Returns true if the given object is an instance of SecretFile. This is designed to work even
@@ -74,34 +74,34 @@ class SecretFile extends pulumi.CustomResource {
74
74
  opts = opts || {};
75
75
  if (opts.id) {
76
76
  const state = argsOrState;
77
- resourceInputs["description"] = state ? state.description : undefined;
78
- resourceInputs["filePath"] = state ? state.filePath : undefined;
79
- resourceInputs["identifier"] = state ? state.identifier : undefined;
80
- resourceInputs["name"] = state ? state.name : undefined;
81
- resourceInputs["orgId"] = state ? state.orgId : undefined;
82
- resourceInputs["projectId"] = state ? state.projectId : undefined;
83
- resourceInputs["secretManagerIdentifier"] = state ? state.secretManagerIdentifier : undefined;
84
- resourceInputs["tags"] = state ? state.tags : undefined;
77
+ resourceInputs["description"] = state?.description;
78
+ resourceInputs["filePath"] = state?.filePath;
79
+ resourceInputs["identifier"] = state?.identifier;
80
+ resourceInputs["name"] = state?.name;
81
+ resourceInputs["orgId"] = state?.orgId;
82
+ resourceInputs["projectId"] = state?.projectId;
83
+ resourceInputs["secretManagerIdentifier"] = state?.secretManagerIdentifier;
84
+ resourceInputs["tags"] = state?.tags;
85
85
  }
86
86
  else {
87
87
  const args = argsOrState;
88
- if ((!args || args.filePath === undefined) && !opts.urn) {
88
+ if (args?.filePath === undefined && !opts.urn) {
89
89
  throw new Error("Missing required property 'filePath'");
90
90
  }
91
- if ((!args || args.identifier === undefined) && !opts.urn) {
91
+ if (args?.identifier === undefined && !opts.urn) {
92
92
  throw new Error("Missing required property 'identifier'");
93
93
  }
94
- if ((!args || args.secretManagerIdentifier === undefined) && !opts.urn) {
94
+ if (args?.secretManagerIdentifier === undefined && !opts.urn) {
95
95
  throw new Error("Missing required property 'secretManagerIdentifier'");
96
96
  }
97
- resourceInputs["description"] = args ? args.description : undefined;
98
- resourceInputs["filePath"] = args ? args.filePath : undefined;
99
- resourceInputs["identifier"] = args ? args.identifier : undefined;
100
- resourceInputs["name"] = args ? args.name : undefined;
101
- resourceInputs["orgId"] = args ? args.orgId : undefined;
102
- resourceInputs["projectId"] = args ? args.projectId : undefined;
103
- resourceInputs["secretManagerIdentifier"] = args ? args.secretManagerIdentifier : undefined;
104
- resourceInputs["tags"] = args ? args.tags : undefined;
97
+ resourceInputs["description"] = args?.description;
98
+ resourceInputs["filePath"] = args?.filePath;
99
+ resourceInputs["identifier"] = args?.identifier;
100
+ resourceInputs["name"] = args?.name;
101
+ resourceInputs["orgId"] = args?.orgId;
102
+ resourceInputs["projectId"] = args?.projectId;
103
+ resourceInputs["secretManagerIdentifier"] = args?.secretManagerIdentifier;
104
+ resourceInputs["tags"] = args?.tags;
105
105
  }
106
106
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
107
  super(SecretFile.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"secretFile.js","sourceRoot":"","sources":["../../platform/secretFile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,C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  */
43
43
  static get(name, id, state, opts) {
44
- return new SecretSshkey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ return new SecretSshkey(name, state, { ...opts, id: id });
45
45
  }
46
46
  /**
47
47
  * Returns true if the given object is an instance of SecretSshkey. This is designed to work even
@@ -58,30 +58,30 @@ class SecretSshkey extends pulumi.CustomResource {
58
58
  opts = opts || {};
59
59
  if (opts.id) {
60
60
  const state = argsOrState;
61
- resourceInputs["description"] = state ? state.description : undefined;
62
- resourceInputs["identifier"] = state ? state.identifier : undefined;
63
- resourceInputs["kerberos"] = state ? state.kerberos : undefined;
64
- resourceInputs["name"] = state ? state.name : undefined;
65
- resourceInputs["orgId"] = state ? state.orgId : undefined;
66
- resourceInputs["port"] = state ? state.port : undefined;
67
- resourceInputs["projectId"] = state ? state.projectId : undefined;
68
- resourceInputs["ssh"] = state ? state.ssh : undefined;
69
- resourceInputs["tags"] = state ? state.tags : undefined;
61
+ resourceInputs["description"] = state?.description;
62
+ resourceInputs["identifier"] = state?.identifier;
63
+ resourceInputs["kerberos"] = state?.kerberos;
64
+ resourceInputs["name"] = state?.name;
65
+ resourceInputs["orgId"] = state?.orgId;
66
+ resourceInputs["port"] = state?.port;
67
+ resourceInputs["projectId"] = state?.projectId;
68
+ resourceInputs["ssh"] = state?.ssh;
69
+ resourceInputs["tags"] = state?.tags;
70
70
  }
71
71
  else {
72
72
  const args = argsOrState;
73
- if ((!args || args.identifier === undefined) && !opts.urn) {
73
+ if (args?.identifier === undefined && !opts.urn) {
74
74
  throw new Error("Missing required property 'identifier'");
75
75
  }
76
- resourceInputs["description"] = args ? args.description : undefined;
77
- resourceInputs["identifier"] = args ? args.identifier : undefined;
78
- resourceInputs["kerberos"] = args ? args.kerberos : undefined;
79
- resourceInputs["name"] = args ? args.name : undefined;
80
- resourceInputs["orgId"] = args ? args.orgId : undefined;
81
- resourceInputs["port"] = args ? args.port : undefined;
82
- resourceInputs["projectId"] = args ? args.projectId : undefined;
83
- resourceInputs["ssh"] = args ? args.ssh : undefined;
84
- resourceInputs["tags"] = args ? args.tags : undefined;
76
+ resourceInputs["description"] = args?.description;
77
+ resourceInputs["identifier"] = args?.identifier;
78
+ resourceInputs["kerberos"] = args?.kerberos;
79
+ resourceInputs["name"] = args?.name;
80
+ resourceInputs["orgId"] = args?.orgId;
81
+ resourceInputs["port"] = args?.port;
82
+ resourceInputs["projectId"] = args?.projectId;
83
+ resourceInputs["ssh"] = args?.ssh;
84
+ resourceInputs["tags"] = args?.tags;
85
85
  }
86
86
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
87
87
  super(SecretSshkey.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"secretSshkey.js","sourceRoot":"","sources":["../../platform/secretSshkey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;Y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control the behavior of the CustomResource.
82
82
  */
83
83
  static get(name, id, state, opts) {
84
- return new SecretText(name, state, Object.assign(Object.assign({}, opts), { id: id }));
84
+ return new SecretText(name, state, { ...opts, id: id });
85
85
  }
86
86
  /**
87
87
  * Returns true if the given object is an instance of SecretText. This is designed to work even
@@ -98,38 +98,38 @@ class SecretText extends pulumi.CustomResource {
98
98
  opts = opts || {};
99
99
  if (opts.id) {
100
100
  const state = argsOrState;
101
- resourceInputs["additionalMetadatas"] = state ? state.additionalMetadatas : undefined;
102
- resourceInputs["description"] = state ? state.description : undefined;
103
- resourceInputs["identifier"] = state ? state.identifier : undefined;
104
- resourceInputs["name"] = state ? state.name : undefined;
105
- resourceInputs["orgId"] = state ? state.orgId : undefined;
106
- resourceInputs["projectId"] = state ? state.projectId : undefined;
107
- resourceInputs["secretManagerIdentifier"] = state ? state.secretManagerIdentifier : undefined;
108
- resourceInputs["tags"] = state ? state.tags : undefined;
109
- resourceInputs["value"] = state ? state.value : undefined;
110
- resourceInputs["valueType"] = state ? state.valueType : undefined;
101
+ resourceInputs["additionalMetadatas"] = state?.additionalMetadatas;
102
+ resourceInputs["description"] = state?.description;
103
+ resourceInputs["identifier"] = state?.identifier;
104
+ resourceInputs["name"] = state?.name;
105
+ resourceInputs["orgId"] = state?.orgId;
106
+ resourceInputs["projectId"] = state?.projectId;
107
+ resourceInputs["secretManagerIdentifier"] = state?.secretManagerIdentifier;
108
+ resourceInputs["tags"] = state?.tags;
109
+ resourceInputs["value"] = state?.value;
110
+ resourceInputs["valueType"] = state?.valueType;
111
111
  }
112
112
  else {
113
113
  const args = argsOrState;
114
- if ((!args || args.identifier === undefined) && !opts.urn) {
114
+ if (args?.identifier === undefined && !opts.urn) {
115
115
  throw new Error("Missing required property 'identifier'");
116
116
  }
117
- if ((!args || args.secretManagerIdentifier === undefined) && !opts.urn) {
117
+ if (args?.secretManagerIdentifier === undefined && !opts.urn) {
118
118
  throw new Error("Missing required property 'secretManagerIdentifier'");
119
119
  }
120
- if ((!args || args.valueType === undefined) && !opts.urn) {
120
+ if (args?.valueType === undefined && !opts.urn) {
121
121
  throw new Error("Missing required property 'valueType'");
122
122
  }
123
- resourceInputs["additionalMetadatas"] = args ? args.additionalMetadatas : undefined;
124
- resourceInputs["description"] = args ? args.description : undefined;
125
- resourceInputs["identifier"] = args ? args.identifier : undefined;
126
- resourceInputs["name"] = args ? args.name : undefined;
127
- resourceInputs["orgId"] = args ? args.orgId : undefined;
128
- resourceInputs["projectId"] = args ? args.projectId : undefined;
129
- resourceInputs["secretManagerIdentifier"] = args ? args.secretManagerIdentifier : undefined;
130
- resourceInputs["tags"] = args ? args.tags : undefined;
131
- resourceInputs["value"] = (args === null || args === void 0 ? void 0 : args.value) ? pulumi.secret(args.value) : undefined;
132
- resourceInputs["valueType"] = args ? args.valueType : undefined;
123
+ resourceInputs["additionalMetadatas"] = args?.additionalMetadatas;
124
+ resourceInputs["description"] = args?.description;
125
+ resourceInputs["identifier"] = args?.identifier;
126
+ resourceInputs["name"] = args?.name;
127
+ resourceInputs["orgId"] = args?.orgId;
128
+ resourceInputs["projectId"] = args?.projectId;
129
+ resourceInputs["secretManagerIdentifier"] = args?.secretManagerIdentifier;
130
+ resourceInputs["tags"] = args?.tags;
131
+ resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : undefined;
132
+ resourceInputs["valueType"] = args?.valueType;
133
133
  }
134
134
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
135
135
  const secretOpts = { additionalSecretOutputs: ["value"] };