pulumi-harness 0.8.0a1755712204__py3-none-any.whl → 0.8.1__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-harness might be problematic. Click here for more details.

Files changed (226) hide show
  1. pulumi_harness/__init__.py +75 -0
  2. pulumi_harness/add_user_to_group.py +4 -0
  3. pulumi_harness/application.py +4 -0
  4. pulumi_harness/application_git_sync.py +4 -0
  5. pulumi_harness/chaos/__init__.py +21 -0
  6. pulumi_harness/chaos/_inputs.py +2702 -0
  7. pulumi_harness/chaos/get_hub.py +324 -0
  8. pulumi_harness/chaos/get_image_registry.py +339 -0
  9. pulumi_harness/chaos/get_infrastructure_v2.py +684 -0
  10. pulumi_harness/chaos/get_security_governance_condition.py +261 -0
  11. pulumi_harness/chaos/get_security_governance_rule.py +261 -0
  12. pulumi_harness/chaos/hub.py +806 -0
  13. pulumi_harness/chaos/hub_sync.py +274 -0
  14. pulumi_harness/chaos/image_registry.py +730 -0
  15. pulumi_harness/chaos/infrastructure_v2.py +1670 -0
  16. pulumi_harness/chaos/outputs.py +2276 -0
  17. pulumi_harness/chaos/security_governance_condition.py +795 -0
  18. pulumi_harness/chaos/security_governance_rule.py +688 -0
  19. pulumi_harness/chaos_infrastructure.py +10 -4
  20. pulumi_harness/cloudprovider/aws.py +4 -0
  21. pulumi_harness/cloudprovider/azure.py +4 -0
  22. pulumi_harness/cloudprovider/datacenter.py +4 -0
  23. pulumi_harness/cloudprovider/kubernetes.py +4 -0
  24. pulumi_harness/cloudprovider/spot.py +4 -0
  25. pulumi_harness/cloudprovider/tanzu.py +4 -0
  26. pulumi_harness/cluster/_inputs.py +540 -0
  27. pulumi_harness/cluster/get_orchestrator_config.py +46 -6
  28. pulumi_harness/cluster/orchestrator.py +0 -16
  29. pulumi_harness/cluster/orchestrator_config.py +253 -5
  30. pulumi_harness/cluster/outputs.py +394 -0
  31. pulumi_harness/delegate_approval.py +4 -0
  32. pulumi_harness/encrypted_text.py +4 -0
  33. pulumi_harness/environment.py +4 -0
  34. pulumi_harness/get_current_account.py +3 -3
  35. pulumi_harness/git_connector.py +4 -0
  36. pulumi_harness/governance/rule.py +4 -0
  37. pulumi_harness/governance/rule_enforcement.py +4 -0
  38. pulumi_harness/infrastructure_definition.py +4 -0
  39. pulumi_harness/platform/__init__.py +2 -0
  40. pulumi_harness/platform/_inputs.py +2780 -416
  41. pulumi_harness/platform/app_dynamics_connector.py +4 -0
  42. pulumi_harness/platform/artifactory_connector.py +4 -0
  43. pulumi_harness/platform/aws_cc_connector.py +4 -0
  44. pulumi_harness/platform/aws_connector.py +11 -7
  45. pulumi_harness/platform/aws_kms_connector.py +70 -20
  46. pulumi_harness/platform/aws_secret_manager_connector.py +13 -9
  47. pulumi_harness/platform/azure_cloud_cost_connector.py +69 -0
  48. pulumi_harness/platform/azure_cloud_provider_connector.py +4 -0
  49. pulumi_harness/platform/azure_key_vault_connector.py +8 -0
  50. pulumi_harness/platform/bitbucket_connector.py +4 -0
  51. pulumi_harness/platform/connector_azure_artifacts.py +4 -2
  52. pulumi_harness/platform/connector_azure_repo.py +11 -16
  53. pulumi_harness/platform/connector_custom_secret_manager.py +51 -156
  54. pulumi_harness/platform/connector_customhealthsource.py +4 -0
  55. pulumi_harness/platform/connector_gcp_kms.py +4 -0
  56. pulumi_harness/platform/connector_jdbc.py +4 -0
  57. pulumi_harness/platform/connector_pdc.py +13 -13
  58. pulumi_harness/platform/connector_rancher.py +4 -0
  59. pulumi_harness/platform/dashboard_folders.py +2 -2
  60. pulumi_harness/platform/dashboards.py +10 -14
  61. pulumi_harness/platform/datadog_connector.py +4 -0
  62. pulumi_harness/platform/db_instance.py +4 -0
  63. pulumi_harness/platform/db_schema.py +25 -21
  64. pulumi_harness/platform/default_notification_template_set.py +495 -0
  65. pulumi_harness/platform/docker_connector.py +4 -4
  66. pulumi_harness/platform/dynatrace_connector.py +4 -0
  67. pulumi_harness/platform/elasticsearch_connector.py +19 -15
  68. pulumi_harness/platform/environment.py +25 -530
  69. pulumi_harness/platform/environment_clusters_mapping.py +8 -0
  70. pulumi_harness/platform/environment_group.py +13 -100
  71. pulumi_harness/platform/environment_service_overrides.py +20 -186
  72. pulumi_harness/platform/feature_flag_target_group.py +8 -8
  73. pulumi_harness/platform/file_store_file.py +11 -7
  74. pulumi_harness/platform/file_store_folder.py +11 -7
  75. pulumi_harness/platform/filters.py +8 -0
  76. pulumi_harness/platform/gcp_cloud_cost_connector.py +4 -0
  77. pulumi_harness/platform/gcp_connector.py +4 -0
  78. pulumi_harness/platform/gcp_secret_manager_connector.py +6 -92
  79. pulumi_harness/platform/get_api_key.py +8 -38
  80. pulumi_harness/platform/get_aws_kms_connector.py +16 -1
  81. pulumi_harness/platform/get_aws_secret_manager_connector.py +7 -3
  82. pulumi_harness/platform/get_azure_cloud_cost_connector.py +15 -1
  83. pulumi_harness/platform/get_connector_azure_repo.py +53 -2
  84. pulumi_harness/platform/get_connector_custom_secret_manager.py +28 -32
  85. pulumi_harness/platform/get_connector_pdc.py +3 -3
  86. pulumi_harness/platform/get_current_account.py +2 -20
  87. pulumi_harness/platform/get_dashboard_folders.py +16 -5
  88. pulumi_harness/platform/get_dashboards.py +15 -7
  89. pulumi_harness/platform/get_db_instance.py +5 -0
  90. pulumi_harness/platform/get_db_schema.py +12 -15
  91. pulumi_harness/platform/get_default_notification_template_set.py +244 -0
  92. pulumi_harness/platform/get_environment.py +5 -0
  93. pulumi_harness/platform/get_environment_list.py +12 -58
  94. pulumi_harness/platform/get_environment_service_overrides.py +6 -6
  95. pulumi_harness/platform/get_filters.py +4 -0
  96. pulumi_harness/platform/get_gcp_secret_manager_connector.py +4 -0
  97. pulumi_harness/platform/get_github_connector.py +3 -0
  98. pulumi_harness/platform/get_gitops_applications.py +8 -0
  99. pulumi_harness/platform/get_gitops_filters.py +25 -10
  100. pulumi_harness/platform/get_gitx_webhook.py +3 -3
  101. pulumi_harness/platform/get_har_registry.py +46 -10
  102. pulumi_harness/platform/get_iacm_default_pipeline.py +24 -0
  103. pulumi_harness/platform/get_infra_variable_set.py +34 -25
  104. pulumi_harness/platform/get_infrastructure.py +5 -0
  105. pulumi_harness/platform/get_manual_freeze.py +0 -24
  106. pulumi_harness/platform/get_monitored_service.py +22 -0
  107. pulumi_harness/platform/get_organization.py +4 -0
  108. pulumi_harness/platform/get_overrides.py +66 -2
  109. pulumi_harness/platform/get_pagerduty_connector.py +4 -0
  110. pulumi_harness/platform/get_pipeline_list.py +18 -63
  111. pulumi_harness/platform/get_project.py +4 -0
  112. pulumi_harness/platform/get_project_list.py +18 -63
  113. pulumi_harness/platform/get_provider.py +11 -2
  114. pulumi_harness/platform/get_resource_group.py +4 -0
  115. pulumi_harness/platform/get_role_assignments.py +6 -2
  116. pulumi_harness/platform/get_roles.py +4 -0
  117. pulumi_harness/platform/get_secret_file.py +4 -0
  118. pulumi_harness/platform/get_secret_sshkey.py +4 -0
  119. pulumi_harness/platform/get_service.py +5 -0
  120. pulumi_harness/platform/get_service_account.py +4 -0
  121. pulumi_harness/platform/get_service_list.py +22 -58
  122. pulumi_harness/platform/get_service_overrides_v2.py +42 -0
  123. pulumi_harness/platform/get_slo.py +22 -0
  124. pulumi_harness/platform/get_token.py +2 -0
  125. pulumi_harness/platform/get_user.py +4 -0
  126. pulumi_harness/platform/get_usergroup.py +4 -0
  127. pulumi_harness/platform/get_variables.py +4 -0
  128. pulumi_harness/platform/get_vault_connector.py +5 -1
  129. pulumi_harness/platform/get_workspace.py +8 -3
  130. pulumi_harness/platform/git_connector.py +4 -0
  131. pulumi_harness/platform/git_ops_agent.py +4 -0
  132. pulumi_harness/platform/git_ops_applications.py +4 -0
  133. pulumi_harness/platform/git_ops_cluster.py +51 -0
  134. pulumi_harness/platform/git_ops_gnupg.py +4 -0
  135. pulumi_harness/platform/git_ops_repo_cert.py +4 -0
  136. pulumi_harness/platform/git_ops_repo_cred.py +4 -0
  137. pulumi_harness/platform/git_ops_repository.py +4 -0
  138. pulumi_harness/platform/github_connector.py +11 -7
  139. pulumi_harness/platform/gitlab_connector.py +4 -0
  140. pulumi_harness/platform/gitops_app_project.py +4 -0
  141. pulumi_harness/platform/gitops_app_project_mapping.py +4 -0
  142. pulumi_harness/platform/gitops_applicationset.py +98 -0
  143. pulumi_harness/platform/gitops_filters.py +51 -179
  144. pulumi_harness/platform/gitx_webhook.py +4 -0
  145. pulumi_harness/platform/har_registry.py +42 -43
  146. pulumi_harness/platform/helm_connector.py +4 -0
  147. pulumi_harness/platform/iacm_default_pipeline.py +28 -0
  148. pulumi_harness/platform/infra_module.py +6 -2
  149. pulumi_harness/platform/infra_variable_set.py +38 -22
  150. pulumi_harness/platform/infrastructure.py +18 -240
  151. pulumi_harness/platform/input_set.py +4 -0
  152. pulumi_harness/platform/jenkins_connector.py +8 -0
  153. pulumi_harness/platform/jira_connector.py +4 -2
  154. pulumi_harness/platform/kubernetes_cloud_cost_connector.py +35 -11
  155. pulumi_harness/platform/kubernetes_connector.py +4 -0
  156. pulumi_harness/platform/manual_freeze.py +6 -154
  157. pulumi_harness/platform/monitored_service.py +16 -12
  158. pulumi_harness/platform/newrelic_connector.py +4 -0
  159. pulumi_harness/platform/nexus_connector.py +4 -4
  160. pulumi_harness/platform/notification_rule.py +4 -0
  161. pulumi_harness/platform/oci_helm_connector.py +4 -0
  162. pulumi_harness/platform/organization.py +8 -0
  163. pulumi_harness/platform/outputs.py +2085 -219
  164. pulumi_harness/platform/overrides.py +48 -2
  165. pulumi_harness/platform/pagerduty_connector.py +8 -0
  166. pulumi_harness/platform/pipeline.py +18 -2
  167. pulumi_harness/platform/pipeline_filters.py +4 -0
  168. pulumi_harness/platform/policy.py +6 -26
  169. pulumi_harness/platform/policy_set.py +4 -0
  170. pulumi_harness/platform/project.py +8 -0
  171. pulumi_harness/platform/prometheus_connector.py +4 -0
  172. pulumi_harness/platform/provider.py +4 -2
  173. pulumi_harness/platform/repo.py +40 -0
  174. pulumi_harness/platform/resource_group.py +15 -7
  175. pulumi_harness/platform/role_assignments.py +20 -16
  176. pulumi_harness/platform/roles.py +8 -0
  177. pulumi_harness/platform/secret_file.py +8 -0
  178. pulumi_harness/platform/secret_sshkey.py +6 -2
  179. pulumi_harness/platform/secret_text.py +78 -0
  180. pulumi_harness/platform/service.py +13 -494
  181. pulumi_harness/platform/service_account.py +8 -0
  182. pulumi_harness/platform/service_now_connector.py +4 -2
  183. pulumi_harness/platform/service_overrides_v2.py +4 -204
  184. pulumi_harness/platform/slo.py +12 -18
  185. pulumi_harness/platform/splunk_connector.py +4 -0
  186. pulumi_harness/platform/spot_connector.py +4 -0
  187. pulumi_harness/platform/sumologic_connector.py +4 -0
  188. pulumi_harness/platform/tas_connector.py +4 -0
  189. pulumi_harness/platform/template.py +25 -21
  190. pulumi_harness/platform/template_filters.py +4 -0
  191. pulumi_harness/platform/terraform_cloud_connector.py +4 -0
  192. pulumi_harness/platform/token.py +6 -2
  193. pulumi_harness/platform/triggers.py +8 -0
  194. pulumi_harness/platform/user.py +13 -9
  195. pulumi_harness/platform/usergroup.py +71 -7
  196. pulumi_harness/platform/variables.py +8 -0
  197. pulumi_harness/platform/vault_connector.py +15 -7
  198. pulumi_harness/platform/workspace.py +19 -7
  199. pulumi_harness/platform_api_key.py +6 -66
  200. pulumi_harness/platform_ccm_filters.py +11 -7
  201. pulumi_harness/pulumi-plugin.json +1 -1
  202. pulumi_harness/service/__init__.py +4 -0
  203. pulumi_harness/service/_inputs.py +1729 -0
  204. pulumi_harness/service/ami.py +4 -0
  205. pulumi_harness/service/codedeploy.py +4 -0
  206. pulumi_harness/service/discovery_agent.py +1211 -0
  207. pulumi_harness/service/discovery_setting.py +384 -0
  208. pulumi_harness/service/ecs.py +4 -0
  209. pulumi_harness/service/get_discovery_agent.py +443 -0
  210. pulumi_harness/service/get_discovery_setting.py +199 -0
  211. pulumi_harness/service/helm.py +4 -0
  212. pulumi_harness/service/kubernetes.py +4 -0
  213. pulumi_harness/service/lambda_.py +4 -0
  214. pulumi_harness/service/outputs.py +2367 -117
  215. pulumi_harness/service/ssh.py +4 -0
  216. pulumi_harness/service/tanzu.py +4 -0
  217. pulumi_harness/service/winrm.py +4 -0
  218. pulumi_harness/ssh_credential.py +4 -0
  219. pulumi_harness/user.py +4 -0
  220. pulumi_harness/user_group.py +4 -0
  221. pulumi_harness/yaml_config.py +4 -0
  222. {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/METADATA +1 -1
  223. pulumi_harness-0.8.1.dist-info/RECORD +357 -0
  224. pulumi_harness-0.8.0a1755712204.dist-info/RECORD +0 -337
  225. {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/WHEEL +0 -0
  226. {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/top_level.txt +0 -0
@@ -338,10 +338,12 @@ class SecretSshkey(pulumi.CustomResource):
338
338
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
339
339
  __props__=None):
340
340
  """
341
- ## Example Usage
341
+ Resource for creating an ssh key type secret.
342
342
 
343
343
  ## Import
344
344
 
345
+ The `pulumi import` command can be used, for example:
346
+
345
347
  Import account level secret sshkey
346
348
 
347
349
  ```sh
@@ -379,10 +381,12 @@ class SecretSshkey(pulumi.CustomResource):
379
381
  args: SecretSshkeyArgs,
380
382
  opts: Optional[pulumi.ResourceOptions] = None):
381
383
  """
382
- ## Example Usage
384
+ Resource for creating an ssh key type secret.
383
385
 
384
386
  ## Import
385
387
 
388
+ The `pulumi import` command can be used, for example:
389
+
386
390
  Import account level secret sshkey
387
391
 
388
392
  ```sh
@@ -371,8 +371,47 @@ class SecretText(pulumi.CustomResource):
371
371
  """
372
372
  Resource for creating secret of type secret text
373
373
 
374
+ ## Example Usage
375
+
376
+ ```python
377
+ import pulumi
378
+ import pulumi_harness as harness
379
+
380
+ inline = harness.platform.SecretText("inline",
381
+ identifier="identifier",
382
+ name="name",
383
+ description="example",
384
+ tags=["foo:bar"],
385
+ secret_manager_identifier="harnessSecretManager",
386
+ value_type="Inline",
387
+ value="secret")
388
+ reference = harness.platform.SecretText("reference",
389
+ identifier="identifier",
390
+ name="name",
391
+ description="example",
392
+ tags=["foo:bar"],
393
+ secret_manager_identifier="azureSecretManager",
394
+ value_type="Reference",
395
+ value="secret")
396
+ gcp_secret_manager_reference = harness.platform.SecretText("gcp_secret_manager_reference",
397
+ identifier="identifier",
398
+ name="name",
399
+ description="example",
400
+ tags=["foo:bar"],
401
+ secret_manager_identifier="gcpSecretManager",
402
+ value_type="Reference",
403
+ value="secret",
404
+ additional_metadatas=[{
405
+ "values": [{
406
+ "version": "1",
407
+ }],
408
+ }])
409
+ ```
410
+
374
411
  ## Import
375
412
 
413
+ The `pulumi import` command can be used, for example:
414
+
376
415
  Import account level secret text
377
416
 
378
417
  ```sh
@@ -413,8 +452,47 @@ class SecretText(pulumi.CustomResource):
413
452
  """
414
453
  Resource for creating secret of type secret text
415
454
 
455
+ ## Example Usage
456
+
457
+ ```python
458
+ import pulumi
459
+ import pulumi_harness as harness
460
+
461
+ inline = harness.platform.SecretText("inline",
462
+ identifier="identifier",
463
+ name="name",
464
+ description="example",
465
+ tags=["foo:bar"],
466
+ secret_manager_identifier="harnessSecretManager",
467
+ value_type="Inline",
468
+ value="secret")
469
+ reference = harness.platform.SecretText("reference",
470
+ identifier="identifier",
471
+ name="name",
472
+ description="example",
473
+ tags=["foo:bar"],
474
+ secret_manager_identifier="azureSecretManager",
475
+ value_type="Reference",
476
+ value="secret")
477
+ gcp_secret_manager_reference = harness.platform.SecretText("gcp_secret_manager_reference",
478
+ identifier="identifier",
479
+ name="name",
480
+ description="example",
481
+ tags=["foo:bar"],
482
+ secret_manager_identifier="gcpSecretManager",
483
+ value_type="Reference",
484
+ value="secret",
485
+ additional_metadatas=[{
486
+ "values": [{
487
+ "version": "1",
488
+ }],
489
+ }])
490
+ ```
491
+
416
492
  ## Import
417
493
 
494
+ The `pulumi import` command can be used, for example:
495
+
418
496
  Import account level secret text
419
497
 
420
498
  ```sh
@@ -46,10 +46,7 @@ class ServiceArgs:
46
46
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
47
47
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
48
48
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
49
- :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
50
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
51
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
52
- connectorRef: org.connectorId.
49
+ :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
53
50
  """
54
51
  pulumi.set(__self__, "identifier", identifier)
55
52
  if description is not None:
@@ -211,10 +208,7 @@ class ServiceArgs:
211
208
  @pulumi.getter
212
209
  def yaml(self) -> Optional[pulumi.Input[_builtins.str]]:
213
210
  """
214
- Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
215
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
216
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
217
- connectorRef: org.connectorId.
211
+ Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
218
212
  """
219
213
  return pulumi.get(self, "yaml")
220
214
 
@@ -251,10 +245,7 @@ class _ServiceState:
251
245
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
252
246
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
253
247
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
254
- :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
255
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
256
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
257
- connectorRef: org.connectorId.
248
+ :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
258
249
  """
259
250
  if description is not None:
260
251
  pulumi.set(__self__, "description", description)
@@ -417,10 +408,7 @@ class _ServiceState:
417
408
  @pulumi.getter
418
409
  def yaml(self) -> Optional[pulumi.Input[_builtins.str]]:
419
410
  """
420
- Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
421
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
422
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
423
- connectorRef: org.connectorId.
411
+ Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
424
412
  """
425
413
  return pulumi.get(self, "yaml")
426
414
 
@@ -449,242 +437,12 @@ class Service(pulumi.CustomResource):
449
437
  yaml: Optional[pulumi.Input[_builtins.str]] = None,
450
438
  __props__=None):
451
439
  """
452
- Resource for creating a Harness service.
453
-
454
- ## Example to create Service at different levels (Org, Project, Account)
455
-
456
- ### Account Level
457
- ```python
458
- import pulumi
459
- import pulumi_harness as harness
460
-
461
- example = harness.platform.Service("example",
462
- identifier="identifier",
463
- name="name",
464
- description="test",
465
- yaml=\"\"\"service:
466
- name: name
467
- identifier: identifier
468
- serviceDefinition:
469
- spec:
470
- manifests:
471
- - manifest:
472
- identifier: manifest1
473
- type: K8sManifest
474
- spec:
475
- store:
476
- type: Github
477
- spec:
478
- connectorRef: <+input>
479
- gitFetchType: Branch
480
- paths:
481
- - files1
482
- repoName: <+input>
483
- branch: master
484
- skipResourceVersioning: false
485
- configFiles:
486
- - configFile:
487
- identifier: configFile1
488
- spec:
489
- store:
490
- type: Harness
491
- spec:
492
- files:
493
- - <+org.description>
494
- variables:
495
- - name: var1
496
- type: String
497
- value: val1
498
- - name: var2
499
- type: String
500
- value: val2
501
- type: Kubernetes
502
- gitOpsEnabled: false
503
- \"\"\")
504
- ```
505
-
506
- ### Org Level
507
- ```python
508
- import pulumi
509
- import pulumi_harness as harness
510
-
511
- example = harness.platform.Service("example",
512
- identifier="identifier",
513
- name="name",
514
- description="test",
515
- org_id="org_id",
516
- yaml=\"\"\"service:
517
- name: name
518
- identifier: identifier
519
- serviceDefinition:
520
- spec:
521
- manifests:
522
- - manifest:
523
- identifier: manifest1
524
- type: K8sManifest
525
- spec:
526
- store:
527
- type: Github
528
- spec:
529
- connectorRef: <+input>
530
- gitFetchType: Branch
531
- paths:
532
- - files1
533
- repoName: <+input>
534
- branch: master
535
- skipResourceVersioning: false
536
- configFiles:
537
- - configFile:
538
- identifier: configFile1
539
- spec:
540
- store:
541
- type: Harness
542
- spec:
543
- files:
544
- - <+org.description>
545
- variables:
546
- - name: var1
547
- type: String
548
- value: val1
549
- - name: var2
550
- type: String
551
- value: val2
552
- type: Kubernetes
553
- gitOpsEnabled: false
554
- \"\"\")
555
- ```
556
-
557
- ### Project Level
558
- ```python
559
- import pulumi
560
- import pulumi_harness as harness
561
-
562
- example = harness.platform.Service("example",
563
- identifier="identifier",
564
- name="name",
565
- description="test",
566
- org_id="org_id",
567
- project_id="project_id",
568
- yaml=\"\"\"service:
569
- name: name
570
- identifier: identifier
571
- serviceDefinition:
572
- spec:
573
- manifests:
574
- - manifest:
575
- identifier: manifest1
576
- type: K8sManifest
577
- spec:
578
- store:
579
- type: Github
580
- spec:
581
- connectorRef: <+input>
582
- gitFetchType: Branch
583
- paths:
584
- - files1
585
- repoName: <+input>
586
- branch: master
587
- skipResourceVersioning: false
588
- configFiles:
589
- - configFile:
590
- identifier: configFile1
591
- spec:
592
- store:
593
- type: Harness
594
- spec:
595
- files:
596
- - <+org.description>
597
- variables:
598
- - name: var1
599
- type: String
600
- value: val1
601
- - name: var2
602
- type: String
603
- value: val2
604
- type: Kubernetes
605
- gitOpsEnabled: false
606
- \"\"\")
607
- ```
608
-
609
- ### Creating Remote Service
610
- ```python
611
- import pulumi
612
- import pulumi_harness as harness
613
-
614
- example = harness.platform.Service("example",
615
- identifier="identifier",
616
- name="name",
617
- description="test",
618
- org_id="org_id",
619
- project_id="project_id",
620
- git_details={
621
- "store_type": "REMOTE",
622
- "connector_ref": "connector_ref",
623
- "repo_name": "repo_name",
624
- "file_path": "file_path",
625
- "branch": "branch",
626
- },
627
- yaml=\"\"\"service:
628
- name: name
629
- identifier: identifier
630
- serviceDefinition:
631
- spec:
632
- manifests:
633
- - manifest:
634
- identifier: manifest1
635
- type: K8sManifest
636
- spec:
637
- store:
638
- type: Github
639
- spec:
640
- connectorRef: <+input>
641
- gitFetchType: Branch
642
- paths:
643
- - files1
644
- repoName: <+input>
645
- branch: master
646
- skipResourceVersioning: false
647
- configFiles:
648
- - configFile:
649
- identifier: configFile1
650
- spec:
651
- store:
652
- type: Harness
653
- spec:
654
- files:
655
- - <+org.description>
656
- variables:
657
- - name: var1
658
- type: String
659
- value: val1
660
- - name: var2
661
- type: String
662
- value: val2
663
- type: Kubernetes
664
- gitOpsEnabled: false
665
- \"\"\")
666
- ```
667
-
668
- ### Importing Service From Git
669
- ```python
670
- import pulumi
671
- import pulumi_harness as harness
672
-
673
- example = harness.platform.Service("example",
674
- identifier="identifier",
675
- name="name",
676
- import_from_git=True,
677
- git_details={
678
- "store_type": "REMOTE",
679
- "connector_ref": "connector_ref",
680
- "repo_name": "repo_name",
681
- "file_path": "file_path",
682
- "branch": "branch",
683
- })
684
- ```
440
+ Resource for creating a Harness project.
685
441
 
686
442
  ## Import
687
443
 
444
+ The `pulumi import` command can be used, for example:
445
+
688
446
  Import account level service
689
447
 
690
448
  ```sh
@@ -716,10 +474,7 @@ class Service(pulumi.CustomResource):
716
474
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
717
475
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
718
476
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
719
- :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
720
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
721
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
722
- connectorRef: org.connectorId.
477
+ :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
723
478
  """
724
479
  ...
725
480
  @overload
@@ -728,242 +483,12 @@ class Service(pulumi.CustomResource):
728
483
  args: ServiceArgs,
729
484
  opts: Optional[pulumi.ResourceOptions] = None):
730
485
  """
731
- Resource for creating a Harness service.
732
-
733
- ## Example to create Service at different levels (Org, Project, Account)
734
-
735
- ### Account Level
736
- ```python
737
- import pulumi
738
- import pulumi_harness as harness
739
-
740
- example = harness.platform.Service("example",
741
- identifier="identifier",
742
- name="name",
743
- description="test",
744
- yaml=\"\"\"service:
745
- name: name
746
- identifier: identifier
747
- serviceDefinition:
748
- spec:
749
- manifests:
750
- - manifest:
751
- identifier: manifest1
752
- type: K8sManifest
753
- spec:
754
- store:
755
- type: Github
756
- spec:
757
- connectorRef: <+input>
758
- gitFetchType: Branch
759
- paths:
760
- - files1
761
- repoName: <+input>
762
- branch: master
763
- skipResourceVersioning: false
764
- configFiles:
765
- - configFile:
766
- identifier: configFile1
767
- spec:
768
- store:
769
- type: Harness
770
- spec:
771
- files:
772
- - <+org.description>
773
- variables:
774
- - name: var1
775
- type: String
776
- value: val1
777
- - name: var2
778
- type: String
779
- value: val2
780
- type: Kubernetes
781
- gitOpsEnabled: false
782
- \"\"\")
783
- ```
784
-
785
- ### Org Level
786
- ```python
787
- import pulumi
788
- import pulumi_harness as harness
789
-
790
- example = harness.platform.Service("example",
791
- identifier="identifier",
792
- name="name",
793
- description="test",
794
- org_id="org_id",
795
- yaml=\"\"\"service:
796
- name: name
797
- identifier: identifier
798
- serviceDefinition:
799
- spec:
800
- manifests:
801
- - manifest:
802
- identifier: manifest1
803
- type: K8sManifest
804
- spec:
805
- store:
806
- type: Github
807
- spec:
808
- connectorRef: <+input>
809
- gitFetchType: Branch
810
- paths:
811
- - files1
812
- repoName: <+input>
813
- branch: master
814
- skipResourceVersioning: false
815
- configFiles:
816
- - configFile:
817
- identifier: configFile1
818
- spec:
819
- store:
820
- type: Harness
821
- spec:
822
- files:
823
- - <+org.description>
824
- variables:
825
- - name: var1
826
- type: String
827
- value: val1
828
- - name: var2
829
- type: String
830
- value: val2
831
- type: Kubernetes
832
- gitOpsEnabled: false
833
- \"\"\")
834
- ```
835
-
836
- ### Project Level
837
- ```python
838
- import pulumi
839
- import pulumi_harness as harness
840
-
841
- example = harness.platform.Service("example",
842
- identifier="identifier",
843
- name="name",
844
- description="test",
845
- org_id="org_id",
846
- project_id="project_id",
847
- yaml=\"\"\"service:
848
- name: name
849
- identifier: identifier
850
- serviceDefinition:
851
- spec:
852
- manifests:
853
- - manifest:
854
- identifier: manifest1
855
- type: K8sManifest
856
- spec:
857
- store:
858
- type: Github
859
- spec:
860
- connectorRef: <+input>
861
- gitFetchType: Branch
862
- paths:
863
- - files1
864
- repoName: <+input>
865
- branch: master
866
- skipResourceVersioning: false
867
- configFiles:
868
- - configFile:
869
- identifier: configFile1
870
- spec:
871
- store:
872
- type: Harness
873
- spec:
874
- files:
875
- - <+org.description>
876
- variables:
877
- - name: var1
878
- type: String
879
- value: val1
880
- - name: var2
881
- type: String
882
- value: val2
883
- type: Kubernetes
884
- gitOpsEnabled: false
885
- \"\"\")
886
- ```
887
-
888
- ### Creating Remote Service
889
- ```python
890
- import pulumi
891
- import pulumi_harness as harness
892
-
893
- example = harness.platform.Service("example",
894
- identifier="identifier",
895
- name="name",
896
- description="test",
897
- org_id="org_id",
898
- project_id="project_id",
899
- git_details={
900
- "store_type": "REMOTE",
901
- "connector_ref": "connector_ref",
902
- "repo_name": "repo_name",
903
- "file_path": "file_path",
904
- "branch": "branch",
905
- },
906
- yaml=\"\"\"service:
907
- name: name
908
- identifier: identifier
909
- serviceDefinition:
910
- spec:
911
- manifests:
912
- - manifest:
913
- identifier: manifest1
914
- type: K8sManifest
915
- spec:
916
- store:
917
- type: Github
918
- spec:
919
- connectorRef: <+input>
920
- gitFetchType: Branch
921
- paths:
922
- - files1
923
- repoName: <+input>
924
- branch: master
925
- skipResourceVersioning: false
926
- configFiles:
927
- - configFile:
928
- identifier: configFile1
929
- spec:
930
- store:
931
- type: Harness
932
- spec:
933
- files:
934
- - <+org.description>
935
- variables:
936
- - name: var1
937
- type: String
938
- value: val1
939
- - name: var2
940
- type: String
941
- value: val2
942
- type: Kubernetes
943
- gitOpsEnabled: false
944
- \"\"\")
945
- ```
946
-
947
- ### Importing Service From Git
948
- ```python
949
- import pulumi
950
- import pulumi_harness as harness
951
-
952
- example = harness.platform.Service("example",
953
- identifier="identifier",
954
- name="name",
955
- import_from_git=True,
956
- git_details={
957
- "store_type": "REMOTE",
958
- "connector_ref": "connector_ref",
959
- "repo_name": "repo_name",
960
- "file_path": "file_path",
961
- "branch": "branch",
962
- })
963
- ```
486
+ Resource for creating a Harness project.
964
487
 
965
488
  ## Import
966
489
 
490
+ The `pulumi import` command can be used, for example:
491
+
967
492
  Import account level service
968
493
 
969
494
  ```sh
@@ -1072,10 +597,7 @@ class Service(pulumi.CustomResource):
1072
597
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
1073
598
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
1074
599
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
1075
- :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
1076
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
1077
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
1078
- connectorRef: org.connectorId.
600
+ :param pulumi.Input[_builtins.str] yaml: Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
1079
601
  """
1080
602
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1081
603
 
@@ -1187,10 +709,7 @@ class Service(pulumi.CustomResource):
1187
709
  @pulumi.getter
1188
710
  def yaml(self) -> pulumi.Output[_builtins.str]:
1189
711
  """
1190
- Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression:
1191
- org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}.
1192
- For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as
1193
- connectorRef: org.connectorId.
712
+ Service YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
1194
713
  """
1195
714
  return pulumi.get(self, "yaml")
1196
715