pulumi-harness 0.5.0a1736833425__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.
- pulumi_harness/__init__.py +1257 -0
- pulumi_harness/_inputs.py +4025 -0
- pulumi_harness/_utilities.py +327 -0
- pulumi_harness/add_user_to_group.py +241 -0
- pulumi_harness/application.py +393 -0
- pulumi_harness/application_git_sync.py +411 -0
- pulumi_harness/autostopping/__init__.py +27 -0
- pulumi_harness/autostopping/_inputs.py +2688 -0
- pulumi_harness/autostopping/aws_alb.py +640 -0
- pulumi_harness/autostopping/aws_proxy.py +760 -0
- pulumi_harness/autostopping/azure_gateway.py +798 -0
- pulumi_harness/autostopping/azure_proxy.py +855 -0
- pulumi_harness/autostopping/gcp_proxy.py +779 -0
- pulumi_harness/autostopping/get_aws_alb.py +278 -0
- pulumi_harness/autostopping/get_aws_proxy.py +335 -0
- pulumi_harness/autostopping/get_azure_gateway.py +343 -0
- pulumi_harness/autostopping/get_azure_proxy.py +375 -0
- pulumi_harness/autostopping/get_gcp_proxy.py +340 -0
- pulumi_harness/autostopping/get_rule_ecs.py +225 -0
- pulumi_harness/autostopping/get_rule_rds.py +205 -0
- pulumi_harness/autostopping/get_rule_vm.py +265 -0
- pulumi_harness/autostopping/get_schedule.py +193 -0
- pulumi_harness/autostopping/outputs.py +1971 -0
- pulumi_harness/autostopping/rule_ecs.py +450 -0
- pulumi_harness/autostopping/rule_rds.py +448 -0
- pulumi_harness/autostopping/rule_vm.py +663 -0
- pulumi_harness/autostopping/schedule.py +465 -0
- pulumi_harness/cloudprovider/__init__.py +17 -0
- pulumi_harness/cloudprovider/_inputs.py +777 -0
- pulumi_harness/cloudprovider/aws.py +586 -0
- pulumi_harness/cloudprovider/azure.py +393 -0
- pulumi_harness/cloudprovider/datacenter.py +233 -0
- pulumi_harness/cloudprovider/gcp.py +340 -0
- pulumi_harness/cloudprovider/get_delegate_ids.py +148 -0
- pulumi_harness/cloudprovider/kubernetes.py +310 -0
- pulumi_harness/cloudprovider/outputs.py +657 -0
- pulumi_harness/cloudprovider/spot.py +296 -0
- pulumi_harness/cloudprovider/tanzu.py +441 -0
- pulumi_harness/cluster/__init__.py +9 -0
- pulumi_harness/cluster/get_orchestrator.py +134 -0
- pulumi_harness/cluster/orchestrator.py +286 -0
- pulumi_harness/config/__init__.py +8 -0
- pulumi_harness/config/__init__.pyi +40 -0
- pulumi_harness/config/vars.py +54 -0
- pulumi_harness/delegate_approval.py +267 -0
- pulumi_harness/encrypted_text.py +499 -0
- pulumi_harness/environment.py +446 -0
- pulumi_harness/get_application.py +180 -0
- pulumi_harness/get_current_account.py +108 -0
- pulumi_harness/get_delegate.py +280 -0
- pulumi_harness/get_encrypted_text.py +136 -0
- pulumi_harness/get_environment.py +184 -0
- pulumi_harness/get_git_connector.py +255 -0
- pulumi_harness/get_secret_manager.py +142 -0
- pulumi_harness/get_service.py +198 -0
- pulumi_harness/get_ssh_credential.py +122 -0
- pulumi_harness/get_sso_provider.py +114 -0
- pulumi_harness/get_trigger.py +177 -0
- pulumi_harness/get_user.py +184 -0
- pulumi_harness/get_user_group.py +100 -0
- pulumi_harness/get_yaml_config.py +142 -0
- pulumi_harness/git_connector.py +738 -0
- pulumi_harness/governance/__init__.py +13 -0
- pulumi_harness/governance/get_rule.py +168 -0
- pulumi_harness/governance/get_rule_enforcement.py +266 -0
- pulumi_harness/governance/get_rule_set.py +150 -0
- pulumi_harness/governance/rule.py +337 -0
- pulumi_harness/governance/rule_enforcement.py +668 -0
- pulumi_harness/governance/rule_set.py +321 -0
- pulumi_harness/infrastructure_definition.py +1246 -0
- pulumi_harness/outputs.py +3306 -0
- pulumi_harness/platform/__init__.py +220 -0
- pulumi_harness/platform/_inputs.py +22314 -0
- pulumi_harness/platform/app_dynamics_connector.py +733 -0
- pulumi_harness/platform/artifactory_connector.py +748 -0
- pulumi_harness/platform/aws_cc_connector.py +716 -0
- pulumi_harness/platform/aws_connector.py +851 -0
- pulumi_harness/platform/aws_kms_connector.py +619 -0
- pulumi_harness/platform/aws_secret_manager_connector.py +712 -0
- pulumi_harness/platform/azure_cloud_cost_connector.py +675 -0
- pulumi_harness/platform/azure_cloud_provider_connector.py +826 -0
- pulumi_harness/platform/azure_key_vault_connector.py +843 -0
- pulumi_harness/platform/bitbucket_connector.py +713 -0
- pulumi_harness/platform/connector_azure_artifacts.py +529 -0
- pulumi_harness/platform/connector_custom_secret_manager.py +887 -0
- pulumi_harness/platform/connector_customhealthsource.py +807 -0
- pulumi_harness/platform/connector_jdbc.py +609 -0
- pulumi_harness/platform/connector_pdc.py +527 -0
- pulumi_harness/platform/connector_rancher.py +617 -0
- pulumi_harness/platform/datadog_connector.py +651 -0
- pulumi_harness/platform/db_instance.py +636 -0
- pulumi_harness/platform/db_schema.py +547 -0
- pulumi_harness/platform/delegatetoken.py +520 -0
- pulumi_harness/platform/docker_connector.py +669 -0
- pulumi_harness/platform/dynatrace_connector.py +601 -0
- pulumi_harness/platform/elasticsearch_connector.py +744 -0
- pulumi_harness/platform/environment.py +1173 -0
- pulumi_harness/platform/environment_clusters_mapping.py +454 -0
- pulumi_harness/platform/environment_group.py +560 -0
- pulumi_harness/platform/environment_service_overrides.py +688 -0
- pulumi_harness/platform/feature_flag.py +724 -0
- pulumi_harness/platform/feature_flag_api_key.py +550 -0
- pulumi_harness/platform/feature_flag_target.py +473 -0
- pulumi_harness/platform/feature_flag_target_group.py +577 -0
- pulumi_harness/platform/file_store_file.py +822 -0
- pulumi_harness/platform/file_store_folder.py +628 -0
- pulumi_harness/platform/filters.py +511 -0
- pulumi_harness/platform/gcp_cloud_cost_connector.py +669 -0
- pulumi_harness/platform/gcp_connector.py +663 -0
- pulumi_harness/platform/gcp_secret_manager_connector.py +594 -0
- pulumi_harness/platform/get_api_key.py +292 -0
- pulumi_harness/platform/get_app_dynamics_connector.py +271 -0
- pulumi_harness/platform/get_artifactory_connector.py +243 -0
- pulumi_harness/platform/get_aws_cc_connector.py +271 -0
- pulumi_harness/platform/get_aws_connector.py +313 -0
- pulumi_harness/platform/get_aws_kms_connector.py +253 -0
- pulumi_harness/platform/get_aws_secret_manager_connector.py +267 -0
- pulumi_harness/platform/get_azure_cloud_cost_connector.py +257 -0
- pulumi_harness/platform/get_azure_cloud_provider_connector.py +257 -0
- pulumi_harness/platform/get_azure_key_vault_connector.py +308 -0
- pulumi_harness/platform/get_bitbucket_connector.py +285 -0
- pulumi_harness/platform/get_ccm_filters.py +221 -0
- pulumi_harness/platform/get_connector_custom_secret_manager.py +330 -0
- pulumi_harness/platform/get_connector_customhealthsource.py +281 -0
- pulumi_harness/platform/get_connector_jdbc.py +243 -0
- pulumi_harness/platform/get_connector_pdc.py +229 -0
- pulumi_harness/platform/get_connector_rancher.py +236 -0
- pulumi_harness/platform/get_current_account.py +126 -0
- pulumi_harness/platform/get_current_user.py +252 -0
- pulumi_harness/platform/get_datadog_connector.py +262 -0
- pulumi_harness/platform/get_db_instance.py +268 -0
- pulumi_harness/platform/get_db_schema.py +233 -0
- pulumi_harness/platform/get_delegatetoken.py +214 -0
- pulumi_harness/platform/get_docker_connector.py +257 -0
- pulumi_harness/platform/get_dynatrace_connector.py +242 -0
- pulumi_harness/platform/get_elasticsearch_connector.py +257 -0
- pulumi_harness/platform/get_environment.py +263 -0
- pulumi_harness/platform/get_environment_clusters_mapping.py +262 -0
- pulumi_harness/platform/get_environment_group.py +190 -0
- pulumi_harness/platform/get_environment_list.py +172 -0
- pulumi_harness/platform/get_environment_service_overrides.py +212 -0
- pulumi_harness/platform/get_file_store_file.py +327 -0
- pulumi_harness/platform/get_file_store_folder.py +271 -0
- pulumi_harness/platform/get_filters.py +217 -0
- pulumi_harness/platform/get_gcp_cloud_cost_connector.py +257 -0
- pulumi_harness/platform/get_gcp_connector.py +243 -0
- pulumi_harness/platform/get_gcp_secret_manager_connector.py +238 -0
- pulumi_harness/platform/get_git_connector.py +271 -0
- pulumi_harness/platform/get_github_connector.py +296 -0
- pulumi_harness/platform/get_gitlab_connector.py +285 -0
- pulumi_harness/platform/get_gitops_agent.py +303 -0
- pulumi_harness/platform/get_gitops_agent_deploy_yaml.py +257 -0
- pulumi_harness/platform/get_gitops_app_project.py +191 -0
- pulumi_harness/platform/get_gitops_app_project_mapping.py +189 -0
- pulumi_harness/platform/get_gitops_applications.py +351 -0
- pulumi_harness/platform/get_gitops_cluster.py +216 -0
- pulumi_harness/platform/get_gitops_gnupg.py +219 -0
- pulumi_harness/platform/get_gitops_repo_cert.py +155 -0
- pulumi_harness/platform/get_gitops_repo_cred.py +223 -0
- pulumi_harness/platform/get_gitops_repository.py +230 -0
- pulumi_harness/platform/get_gitx_webhook.py +194 -0
- pulumi_harness/platform/get_helm_connector.py +243 -0
- pulumi_harness/platform/get_iacm_default_pipeline.py +168 -0
- pulumi_harness/platform/get_infra_module.py +320 -0
- pulumi_harness/platform/get_infrastructure.py +287 -0
- pulumi_harness/platform/get_input_set.py +238 -0
- pulumi_harness/platform/get_jenkins_connector.py +243 -0
- pulumi_harness/platform/get_jira_connector.py +285 -0
- pulumi_harness/platform/get_kubernetes_cloud_cost_connector.py +228 -0
- pulumi_harness/platform/get_kubernetes_connector.py +285 -0
- pulumi_harness/platform/get_manual_freeze.py +305 -0
- pulumi_harness/platform/get_monitored_service.py +134 -0
- pulumi_harness/platform/get_nexus_connector.py +257 -0
- pulumi_harness/platform/get_notification_rule.py +156 -0
- pulumi_harness/platform/get_oci_helm_connector.py +243 -0
- pulumi_harness/platform/get_organization.py +156 -0
- pulumi_harness/platform/get_overrides.py +198 -0
- pulumi_harness/platform/get_pagerduty_connector.py +224 -0
- pulumi_harness/platform/get_permissions.py +149 -0
- pulumi_harness/platform/get_pipeline.py +268 -0
- pulumi_harness/platform/get_pipeline_filters.py +197 -0
- pulumi_harness/platform/get_pipeline_list.py +269 -0
- pulumi_harness/platform/get_policy.py +220 -0
- pulumi_harness/platform/get_policy_set.py +298 -0
- pulumi_harness/platform/get_project.py +210 -0
- pulumi_harness/platform/get_project_list.py +249 -0
- pulumi_harness/platform/get_prometheus_connector.py +271 -0
- pulumi_harness/platform/get_provider.py +85 -0
- pulumi_harness/platform/get_repo.py +362 -0
- pulumi_harness/platform/get_repo_rule_branch.py +312 -0
- pulumi_harness/platform/get_repo_webhook.py +316 -0
- pulumi_harness/platform/get_resource_group.py +267 -0
- pulumi_harness/platform/get_role_assignments.py +223 -0
- pulumi_harness/platform/get_roles.py +240 -0
- pulumi_harness/platform/get_secret_file.py +224 -0
- pulumi_harness/platform/get_secret_sshkey.py +239 -0
- pulumi_harness/platform/get_secret_text.py +264 -0
- pulumi_harness/platform/get_service.py +235 -0
- pulumi_harness/platform/get_service_account.py +224 -0
- pulumi_harness/platform/get_service_list.py +172 -0
- pulumi_harness/platform/get_service_now_connector.py +285 -0
- pulumi_harness/platform/get_service_overrides_v2.py +220 -0
- pulumi_harness/platform/get_slo.py +134 -0
- pulumi_harness/platform/get_splunk_connector.py +270 -0
- pulumi_harness/platform/get_spot_connector.py +215 -0
- pulumi_harness/platform/get_sumologic_connector.py +256 -0
- pulumi_harness/platform/get_tas_connector.py +243 -0
- pulumi_harness/platform/get_template.py +386 -0
- pulumi_harness/platform/get_template_filters.py +221 -0
- pulumi_harness/platform/get_terraform_cloud_connector.py +233 -0
- pulumi_harness/platform/get_token.py +430 -0
- pulumi_harness/platform/get_triggers.py +260 -0
- pulumi_harness/platform/get_user.py +222 -0
- pulumi_harness/platform/get_usergroup.py +340 -0
- pulumi_harness/platform/get_variables.py +209 -0
- pulumi_harness/platform/get_vault_connector.py +574 -0
- pulumi_harness/platform/get_workspace.py +411 -0
- pulumi_harness/platform/get_workspace_output_value.py +168 -0
- pulumi_harness/platform/git_connector.py +713 -0
- pulumi_harness/platform/git_ops_agent.py +727 -0
- pulumi_harness/platform/git_ops_applications.py +1090 -0
- pulumi_harness/platform/git_ops_cluster.py +438 -0
- pulumi_harness/platform/git_ops_gnupg.py +453 -0
- pulumi_harness/platform/git_ops_repo_cert.py +437 -0
- pulumi_harness/platform/git_ops_repo_cred.py +533 -0
- pulumi_harness/platform/git_ops_repository.py +831 -0
- pulumi_harness/platform/github_connector.py +807 -0
- pulumi_harness/platform/gitlab_connector.py +713 -0
- pulumi_harness/platform/gitops_app_project.py +485 -0
- pulumi_harness/platform/gitops_app_project_mapping.py +423 -0
- pulumi_harness/platform/gitx_webhook.py +616 -0
- pulumi_harness/platform/helm_connector.py +617 -0
- pulumi_harness/platform/iacm_default_pipeline.py +343 -0
- pulumi_harness/platform/infra_module.py +755 -0
- pulumi_harness/platform/infrastructure.py +937 -0
- pulumi_harness/platform/input_set.py +689 -0
- pulumi_harness/platform/jenkins_connector.py +566 -0
- pulumi_harness/platform/jira_connector.py +714 -0
- pulumi_harness/platform/kubernetes_cloud_cost_connector.py +558 -0
- pulumi_harness/platform/kubernetes_connector.py +895 -0
- pulumi_harness/platform/manual_freeze.py +835 -0
- pulumi_harness/platform/monitored_service.py +1984 -0
- pulumi_harness/platform/newrelic_connector.py +651 -0
- pulumi_harness/platform/nexus_connector.py +622 -0
- pulumi_harness/platform/notification_rule.py +526 -0
- pulumi_harness/platform/oci_helm_connector.py +617 -0
- pulumi_harness/platform/organization.py +336 -0
- pulumi_harness/platform/outputs.py +23361 -0
- pulumi_harness/platform/overrides.py +669 -0
- pulumi_harness/platform/pagerduty_connector.py +547 -0
- pulumi_harness/platform/pipeline.py +991 -0
- pulumi_harness/platform/pipeline_filters.py +711 -0
- pulumi_harness/platform/policy.py +944 -0
- pulumi_harness/platform/policy_set.py +594 -0
- pulumi_harness/platform/project.py +453 -0
- pulumi_harness/platform/prometheus_connector.py +710 -0
- pulumi_harness/platform/provider.py +349 -0
- pulumi_harness/platform/repo.py +737 -0
- pulumi_harness/platform/repo_rule_branch.py +645 -0
- pulumi_harness/platform/repo_webhook.py +664 -0
- pulumi_harness/platform/resource_group.py +718 -0
- pulumi_harness/platform/role_assignments.py +524 -0
- pulumi_harness/platform/roles.py +546 -0
- pulumi_harness/platform/secret_file.py +548 -0
- pulumi_harness/platform/secret_sshkey.py +569 -0
- pulumi_harness/platform/secret_text.py +620 -0
- pulumi_harness/platform/service.py +1195 -0
- pulumi_harness/platform/service_account.py +548 -0
- pulumi_harness/platform/service_now_connector.py +714 -0
- pulumi_harness/platform/service_overrides_v2.py +915 -0
- pulumi_harness/platform/slo.py +462 -0
- pulumi_harness/platform/splunk_connector.py +701 -0
- pulumi_harness/platform/spot_connector.py +452 -0
- pulumi_harness/platform/sumologic_connector.py +651 -0
- pulumi_harness/platform/tas_connector.py +570 -0
- pulumi_harness/platform/template.py +861 -0
- pulumi_harness/platform/template_filters.py +515 -0
- pulumi_harness/platform/terraform_cloud_connector.py +545 -0
- pulumi_harness/platform/token.py +977 -0
- pulumi_harness/platform/triggers.py +680 -0
- pulumi_harness/platform/user.py +522 -0
- pulumi_harness/platform/usergroup.py +1104 -0
- pulumi_harness/platform/variables.py +509 -0
- pulumi_harness/platform/vault_connector.py +1919 -0
- pulumi_harness/platform/workspace.py +1145 -0
- pulumi_harness/platform_api_key.py +617 -0
- pulumi_harness/platform_ccm_filters.py +515 -0
- pulumi_harness/provider.py +227 -0
- pulumi_harness/pulumi-plugin.json +6 -0
- pulumi_harness/py.typed +0 -0
- pulumi_harness/service/__init__.py +18 -0
- pulumi_harness/service/_inputs.py +660 -0
- pulumi_harness/service/ami.py +336 -0
- pulumi_harness/service/codedeploy.py +336 -0
- pulumi_harness/service/ecs.py +336 -0
- pulumi_harness/service/helm.py +336 -0
- pulumi_harness/service/kubernetes.py +409 -0
- pulumi_harness/service/lambda_.py +336 -0
- pulumi_harness/service/outputs.py +388 -0
- pulumi_harness/service/ssh.py +386 -0
- pulumi_harness/service/tanzu.py +336 -0
- pulumi_harness/service/winrm.py +386 -0
- pulumi_harness/ssh_credential.py +361 -0
- pulumi_harness/user.py +423 -0
- pulumi_harness/user_group.py +713 -0
- pulumi_harness/user_group_permissions.py +247 -0
- pulumi_harness/yaml_config.py +336 -0
- pulumi_harness-0.5.0a1736833425.dist-info/METADATA +69 -0
- pulumi_harness-0.5.0a1736833425.dist-info/RECORD +311 -0
- pulumi_harness-0.5.0a1736833425.dist-info/WHEEL +5 -0
- pulumi_harness-0.5.0a1736833425.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetEnvironmentClustersMappingResult',
|
|
21
|
+
'AwaitableGetEnvironmentClustersMappingResult',
|
|
22
|
+
'get_environment_clusters_mapping',
|
|
23
|
+
'get_environment_clusters_mapping_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetEnvironmentClustersMappingResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getEnvironmentClustersMapping.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, clusters=None, env_id=None, id=None, identifier=None, org_id=None, project_id=None, scope=None):
|
|
32
|
+
if clusters and not isinstance(clusters, list):
|
|
33
|
+
raise TypeError("Expected argument 'clusters' to be a list")
|
|
34
|
+
pulumi.set(__self__, "clusters", clusters)
|
|
35
|
+
if env_id and not isinstance(env_id, str):
|
|
36
|
+
raise TypeError("Expected argument 'env_id' to be a str")
|
|
37
|
+
pulumi.set(__self__, "env_id", env_id)
|
|
38
|
+
if id and not isinstance(id, str):
|
|
39
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
40
|
+
pulumi.set(__self__, "id", id)
|
|
41
|
+
if identifier and not isinstance(identifier, str):
|
|
42
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
43
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
44
|
+
if org_id and not isinstance(org_id, str):
|
|
45
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
46
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
47
|
+
if project_id and not isinstance(project_id, str):
|
|
48
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
49
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
50
|
+
if scope and not isinstance(scope, str):
|
|
51
|
+
raise TypeError("Expected argument 'scope' to be a str")
|
|
52
|
+
pulumi.set(__self__, "scope", scope)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
@pulumi.getter
|
|
56
|
+
def clusters(self) -> Optional[Sequence['outputs.GetEnvironmentClustersMappingClusterResult']]:
|
|
57
|
+
"""
|
|
58
|
+
list of cluster identifiers and names
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "clusters")
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="envId")
|
|
64
|
+
def env_id(self) -> str:
|
|
65
|
+
"""
|
|
66
|
+
environment identifier.
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "env_id")
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter
|
|
72
|
+
def id(self) -> str:
|
|
73
|
+
"""
|
|
74
|
+
The provider-assigned unique ID for this managed resource.
|
|
75
|
+
"""
|
|
76
|
+
return pulumi.get(self, "id")
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter
|
|
80
|
+
def identifier(self) -> str:
|
|
81
|
+
"""
|
|
82
|
+
identifier for the cluster mapping(can be given any value).
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "identifier")
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="orgId")
|
|
88
|
+
def org_id(self) -> Optional[str]:
|
|
89
|
+
"""
|
|
90
|
+
org_id of the environment.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "org_id")
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter(name="projectId")
|
|
96
|
+
def project_id(self) -> Optional[str]:
|
|
97
|
+
"""
|
|
98
|
+
project_id of the environment.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "project_id")
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
@pulumi.getter
|
|
104
|
+
def scope(self) -> str:
|
|
105
|
+
"""
|
|
106
|
+
scope at which the environment exists in harness.
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "scope")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class AwaitableGetEnvironmentClustersMappingResult(GetEnvironmentClustersMappingResult):
|
|
112
|
+
# pylint: disable=using-constant-test
|
|
113
|
+
def __await__(self):
|
|
114
|
+
if False:
|
|
115
|
+
yield self
|
|
116
|
+
return GetEnvironmentClustersMappingResult(
|
|
117
|
+
clusters=self.clusters,
|
|
118
|
+
env_id=self.env_id,
|
|
119
|
+
id=self.id,
|
|
120
|
+
identifier=self.identifier,
|
|
121
|
+
org_id=self.org_id,
|
|
122
|
+
project_id=self.project_id,
|
|
123
|
+
scope=self.scope)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def get_environment_clusters_mapping(clusters: Optional[Sequence[Union['GetEnvironmentClustersMappingClusterArgs', 'GetEnvironmentClustersMappingClusterArgsDict']]] = None,
|
|
127
|
+
env_id: Optional[str] = None,
|
|
128
|
+
identifier: Optional[str] = None,
|
|
129
|
+
org_id: Optional[str] = None,
|
|
130
|
+
project_id: Optional[str] = None,
|
|
131
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentClustersMappingResult:
|
|
132
|
+
"""
|
|
133
|
+
Data source for retrieving Harness Gitops clusters mapped to Harness Environment.
|
|
134
|
+
|
|
135
|
+
## Example Usage
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
import pulumi
|
|
139
|
+
import pulumi_harness as harness
|
|
140
|
+
|
|
141
|
+
# data source for gitops clusters mapped to a project level env
|
|
142
|
+
example = harness.platform.get_environment_clusters_mapping(identifier="mycustomidentifier",
|
|
143
|
+
org_id="orgIdentifer",
|
|
144
|
+
project_id="projectIdentifier",
|
|
145
|
+
env_id="exampleEnvId",
|
|
146
|
+
clusters=[{
|
|
147
|
+
"identifier": "incluster",
|
|
148
|
+
"name": "in-cluster",
|
|
149
|
+
"agent_identifier": "account.gitopsagentdev",
|
|
150
|
+
"scope": "ACCOUNT",
|
|
151
|
+
}])
|
|
152
|
+
# data source for two gitops clusters mapped to an account level env
|
|
153
|
+
example2 = harness.platform.get_environment_clusters_mapping(identifier="mycustomidentifier",
|
|
154
|
+
env_id="env1",
|
|
155
|
+
clusters=[
|
|
156
|
+
{
|
|
157
|
+
"identifier": "clusterA",
|
|
158
|
+
"name": "cluster-A",
|
|
159
|
+
"agent_identifier": "account.gitopsagentprod",
|
|
160
|
+
"scope": "ACCOUNT",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"identifier": "clusterB",
|
|
164
|
+
"name": "cluster-B",
|
|
165
|
+
"agent_identifier": "account.gitopsagentprod",
|
|
166
|
+
"scope": "ACCOUNT",
|
|
167
|
+
},
|
|
168
|
+
])
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:param Sequence[Union['GetEnvironmentClustersMappingClusterArgs', 'GetEnvironmentClustersMappingClusterArgsDict']] clusters: list of cluster identifiers and names
|
|
173
|
+
:param str env_id: environment identifier.
|
|
174
|
+
:param str identifier: identifier for the cluster mapping(can be given any value).
|
|
175
|
+
:param str org_id: org_id of the environment.
|
|
176
|
+
:param str project_id: project_id of the environment.
|
|
177
|
+
"""
|
|
178
|
+
__args__ = dict()
|
|
179
|
+
__args__['clusters'] = clusters
|
|
180
|
+
__args__['envId'] = env_id
|
|
181
|
+
__args__['identifier'] = identifier
|
|
182
|
+
__args__['orgId'] = org_id
|
|
183
|
+
__args__['projectId'] = project_id
|
|
184
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
185
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getEnvironmentClustersMapping:getEnvironmentClustersMapping', __args__, opts=opts, typ=GetEnvironmentClustersMappingResult).value
|
|
186
|
+
|
|
187
|
+
return AwaitableGetEnvironmentClustersMappingResult(
|
|
188
|
+
clusters=pulumi.get(__ret__, 'clusters'),
|
|
189
|
+
env_id=pulumi.get(__ret__, 'env_id'),
|
|
190
|
+
id=pulumi.get(__ret__, 'id'),
|
|
191
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
192
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
193
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
194
|
+
scope=pulumi.get(__ret__, 'scope'))
|
|
195
|
+
def get_environment_clusters_mapping_output(clusters: Optional[pulumi.Input[Optional[Sequence[Union['GetEnvironmentClustersMappingClusterArgs', 'GetEnvironmentClustersMappingClusterArgsDict']]]]] = None,
|
|
196
|
+
env_id: Optional[pulumi.Input[str]] = None,
|
|
197
|
+
identifier: Optional[pulumi.Input[str]] = None,
|
|
198
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
199
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
200
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentClustersMappingResult]:
|
|
201
|
+
"""
|
|
202
|
+
Data source for retrieving Harness Gitops clusters mapped to Harness Environment.
|
|
203
|
+
|
|
204
|
+
## Example Usage
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
import pulumi
|
|
208
|
+
import pulumi_harness as harness
|
|
209
|
+
|
|
210
|
+
# data source for gitops clusters mapped to a project level env
|
|
211
|
+
example = harness.platform.get_environment_clusters_mapping(identifier="mycustomidentifier",
|
|
212
|
+
org_id="orgIdentifer",
|
|
213
|
+
project_id="projectIdentifier",
|
|
214
|
+
env_id="exampleEnvId",
|
|
215
|
+
clusters=[{
|
|
216
|
+
"identifier": "incluster",
|
|
217
|
+
"name": "in-cluster",
|
|
218
|
+
"agent_identifier": "account.gitopsagentdev",
|
|
219
|
+
"scope": "ACCOUNT",
|
|
220
|
+
}])
|
|
221
|
+
# data source for two gitops clusters mapped to an account level env
|
|
222
|
+
example2 = harness.platform.get_environment_clusters_mapping(identifier="mycustomidentifier",
|
|
223
|
+
env_id="env1",
|
|
224
|
+
clusters=[
|
|
225
|
+
{
|
|
226
|
+
"identifier": "clusterA",
|
|
227
|
+
"name": "cluster-A",
|
|
228
|
+
"agent_identifier": "account.gitopsagentprod",
|
|
229
|
+
"scope": "ACCOUNT",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"identifier": "clusterB",
|
|
233
|
+
"name": "cluster-B",
|
|
234
|
+
"agent_identifier": "account.gitopsagentprod",
|
|
235
|
+
"scope": "ACCOUNT",
|
|
236
|
+
},
|
|
237
|
+
])
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
:param Sequence[Union['GetEnvironmentClustersMappingClusterArgs', 'GetEnvironmentClustersMappingClusterArgsDict']] clusters: list of cluster identifiers and names
|
|
242
|
+
:param str env_id: environment identifier.
|
|
243
|
+
:param str identifier: identifier for the cluster mapping(can be given any value).
|
|
244
|
+
:param str org_id: org_id of the environment.
|
|
245
|
+
:param str project_id: project_id of the environment.
|
|
246
|
+
"""
|
|
247
|
+
__args__ = dict()
|
|
248
|
+
__args__['clusters'] = clusters
|
|
249
|
+
__args__['envId'] = env_id
|
|
250
|
+
__args__['identifier'] = identifier
|
|
251
|
+
__args__['orgId'] = org_id
|
|
252
|
+
__args__['projectId'] = project_id
|
|
253
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
254
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getEnvironmentClustersMapping:getEnvironmentClustersMapping', __args__, opts=opts, typ=GetEnvironmentClustersMappingResult)
|
|
255
|
+
return __ret__.apply(lambda __response__: GetEnvironmentClustersMappingResult(
|
|
256
|
+
clusters=pulumi.get(__response__, 'clusters'),
|
|
257
|
+
env_id=pulumi.get(__response__, 'env_id'),
|
|
258
|
+
id=pulumi.get(__response__, 'id'),
|
|
259
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
260
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
261
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
262
|
+
scope=pulumi.get(__response__, 'scope')))
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'GetEnvironmentGroupResult',
|
|
19
|
+
'AwaitableGetEnvironmentGroupResult',
|
|
20
|
+
'get_environment_group',
|
|
21
|
+
'get_environment_group_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetEnvironmentGroupResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getEnvironmentGroup.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, color=None, id=None, identifier=None, org_id=None, project_id=None, yaml=None):
|
|
30
|
+
if color and not isinstance(color, str):
|
|
31
|
+
raise TypeError("Expected argument 'color' to be a str")
|
|
32
|
+
pulumi.set(__self__, "color", color)
|
|
33
|
+
if id and not isinstance(id, str):
|
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "id", id)
|
|
36
|
+
if identifier and not isinstance(identifier, str):
|
|
37
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
38
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
39
|
+
if org_id and not isinstance(org_id, str):
|
|
40
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
41
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
42
|
+
if project_id and not isinstance(project_id, str):
|
|
43
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
44
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
45
|
+
if yaml and not isinstance(yaml, str):
|
|
46
|
+
raise TypeError("Expected argument 'yaml' to be a str")
|
|
47
|
+
pulumi.set(__self__, "yaml", yaml)
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter
|
|
51
|
+
def color(self) -> str:
|
|
52
|
+
"""
|
|
53
|
+
Color of the environment group.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "color")
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def id(self) -> str:
|
|
60
|
+
"""
|
|
61
|
+
The provider-assigned unique ID for this managed resource.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "id")
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter
|
|
67
|
+
def identifier(self) -> str:
|
|
68
|
+
"""
|
|
69
|
+
identifier of the environment group.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "identifier")
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter(name="orgId")
|
|
75
|
+
def org_id(self) -> Optional[str]:
|
|
76
|
+
"""
|
|
77
|
+
org_id of the environment group.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "org_id")
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter(name="projectId")
|
|
83
|
+
def project_id(self) -> Optional[str]:
|
|
84
|
+
"""
|
|
85
|
+
project_id of the environment group.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "project_id")
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def yaml(self) -> str:
|
|
92
|
+
"""
|
|
93
|
+
Input Set YAML
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "yaml")
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class AwaitableGetEnvironmentGroupResult(GetEnvironmentGroupResult):
|
|
99
|
+
# pylint: disable=using-constant-test
|
|
100
|
+
def __await__(self):
|
|
101
|
+
if False:
|
|
102
|
+
yield self
|
|
103
|
+
return GetEnvironmentGroupResult(
|
|
104
|
+
color=self.color,
|
|
105
|
+
id=self.id,
|
|
106
|
+
identifier=self.identifier,
|
|
107
|
+
org_id=self.org_id,
|
|
108
|
+
project_id=self.project_id,
|
|
109
|
+
yaml=self.yaml)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def get_environment_group(color: Optional[str] = None,
|
|
113
|
+
identifier: Optional[str] = None,
|
|
114
|
+
org_id: Optional[str] = None,
|
|
115
|
+
project_id: Optional[str] = None,
|
|
116
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentGroupResult:
|
|
117
|
+
"""
|
|
118
|
+
Data source for retrieving a Harness environment group.
|
|
119
|
+
|
|
120
|
+
## Example Usage
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
import pulumi
|
|
124
|
+
import pulumi_harness as harness
|
|
125
|
+
|
|
126
|
+
example = harness.platform.get_environment_group(identifier="identifier",
|
|
127
|
+
org_id="org_id",
|
|
128
|
+
project_id="project_id")
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param str color: Color of the environment group.
|
|
133
|
+
:param str identifier: identifier of the environment group.
|
|
134
|
+
:param str org_id: org_id of the environment group.
|
|
135
|
+
:param str project_id: project_id of the environment group.
|
|
136
|
+
"""
|
|
137
|
+
__args__ = dict()
|
|
138
|
+
__args__['color'] = color
|
|
139
|
+
__args__['identifier'] = identifier
|
|
140
|
+
__args__['orgId'] = org_id
|
|
141
|
+
__args__['projectId'] = project_id
|
|
142
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
143
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getEnvironmentGroup:getEnvironmentGroup', __args__, opts=opts, typ=GetEnvironmentGroupResult).value
|
|
144
|
+
|
|
145
|
+
return AwaitableGetEnvironmentGroupResult(
|
|
146
|
+
color=pulumi.get(__ret__, 'color'),
|
|
147
|
+
id=pulumi.get(__ret__, 'id'),
|
|
148
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
149
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
150
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
151
|
+
yaml=pulumi.get(__ret__, 'yaml'))
|
|
152
|
+
def get_environment_group_output(color: Optional[pulumi.Input[Optional[str]]] = None,
|
|
153
|
+
identifier: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
155
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentGroupResult]:
|
|
157
|
+
"""
|
|
158
|
+
Data source for retrieving a Harness environment group.
|
|
159
|
+
|
|
160
|
+
## Example Usage
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
import pulumi
|
|
164
|
+
import pulumi_harness as harness
|
|
165
|
+
|
|
166
|
+
example = harness.platform.get_environment_group(identifier="identifier",
|
|
167
|
+
org_id="org_id",
|
|
168
|
+
project_id="project_id")
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:param str color: Color of the environment group.
|
|
173
|
+
:param str identifier: identifier of the environment group.
|
|
174
|
+
:param str org_id: org_id of the environment group.
|
|
175
|
+
:param str project_id: project_id of the environment group.
|
|
176
|
+
"""
|
|
177
|
+
__args__ = dict()
|
|
178
|
+
__args__['color'] = color
|
|
179
|
+
__args__['identifier'] = identifier
|
|
180
|
+
__args__['orgId'] = org_id
|
|
181
|
+
__args__['projectId'] = project_id
|
|
182
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
183
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getEnvironmentGroup:getEnvironmentGroup', __args__, opts=opts, typ=GetEnvironmentGroupResult)
|
|
184
|
+
return __ret__.apply(lambda __response__: GetEnvironmentGroupResult(
|
|
185
|
+
color=pulumi.get(__response__, 'color'),
|
|
186
|
+
id=pulumi.get(__response__, 'id'),
|
|
187
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
188
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
189
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
190
|
+
yaml=pulumi.get(__response__, 'yaml')))
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetEnvironmentListResult',
|
|
20
|
+
'AwaitableGetEnvironmentListResult',
|
|
21
|
+
'get_environment_list',
|
|
22
|
+
'get_environment_list_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetEnvironmentListResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getEnvironmentList.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, environments=None, id=None, org_id=None, project_id=None):
|
|
31
|
+
if environments and not isinstance(environments, list):
|
|
32
|
+
raise TypeError("Expected argument 'environments' to be a list")
|
|
33
|
+
pulumi.set(__self__, "environments", environments)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if org_id and not isinstance(org_id, str):
|
|
38
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
40
|
+
if project_id and not isinstance(project_id, str):
|
|
41
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter
|
|
46
|
+
def environments(self) -> Sequence['outputs.GetEnvironmentListEnvironmentResult']:
|
|
47
|
+
return pulumi.get(self, "environments")
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter
|
|
51
|
+
def id(self) -> str:
|
|
52
|
+
"""
|
|
53
|
+
The provider-assigned unique ID for this managed resource.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "id")
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter(name="orgId")
|
|
59
|
+
def org_id(self) -> Optional[str]:
|
|
60
|
+
return pulumi.get(self, "org_id")
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="projectId")
|
|
64
|
+
def project_id(self) -> Optional[str]:
|
|
65
|
+
return pulumi.get(self, "project_id")
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class AwaitableGetEnvironmentListResult(GetEnvironmentListResult):
|
|
69
|
+
# pylint: disable=using-constant-test
|
|
70
|
+
def __await__(self):
|
|
71
|
+
if False:
|
|
72
|
+
yield self
|
|
73
|
+
return GetEnvironmentListResult(
|
|
74
|
+
environments=self.environments,
|
|
75
|
+
id=self.id,
|
|
76
|
+
org_id=self.org_id,
|
|
77
|
+
project_id=self.project_id)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def get_environment_list(org_id: Optional[str] = None,
|
|
81
|
+
project_id: Optional[str] = None,
|
|
82
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentListResult:
|
|
83
|
+
"""
|
|
84
|
+
Data source for retrieving Harness environment list.
|
|
85
|
+
|
|
86
|
+
## Example Usage
|
|
87
|
+
|
|
88
|
+
### Project Level Environment List
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
import pulumi
|
|
92
|
+
import pulumi_harness as harness
|
|
93
|
+
|
|
94
|
+
example = harness.platform.get_environment_list(org_id="org_id",
|
|
95
|
+
project_id="project_id")
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Organisation Level Environment List
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
import pulumi
|
|
102
|
+
import pulumi_harness as harness
|
|
103
|
+
|
|
104
|
+
example = harness.platform.get_environment_list(org_id="org_id")
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Account Level Environment List
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
import pulumi
|
|
111
|
+
import pulumi_harness as harness
|
|
112
|
+
|
|
113
|
+
example = harness.platform.get_environment_list()
|
|
114
|
+
```
|
|
115
|
+
"""
|
|
116
|
+
__args__ = dict()
|
|
117
|
+
__args__['orgId'] = org_id
|
|
118
|
+
__args__['projectId'] = project_id
|
|
119
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
120
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getEnvironmentList:getEnvironmentList', __args__, opts=opts, typ=GetEnvironmentListResult).value
|
|
121
|
+
|
|
122
|
+
return AwaitableGetEnvironmentListResult(
|
|
123
|
+
environments=pulumi.get(__ret__, 'environments'),
|
|
124
|
+
id=pulumi.get(__ret__, 'id'),
|
|
125
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
126
|
+
project_id=pulumi.get(__ret__, 'project_id'))
|
|
127
|
+
def get_environment_list_output(org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
128
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
129
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentListResult]:
|
|
130
|
+
"""
|
|
131
|
+
Data source for retrieving Harness environment list.
|
|
132
|
+
|
|
133
|
+
## Example Usage
|
|
134
|
+
|
|
135
|
+
### Project Level Environment List
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
import pulumi
|
|
139
|
+
import pulumi_harness as harness
|
|
140
|
+
|
|
141
|
+
example = harness.platform.get_environment_list(org_id="org_id",
|
|
142
|
+
project_id="project_id")
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Organisation Level Environment List
|
|
146
|
+
|
|
147
|
+
```python
|
|
148
|
+
import pulumi
|
|
149
|
+
import pulumi_harness as harness
|
|
150
|
+
|
|
151
|
+
example = harness.platform.get_environment_list(org_id="org_id")
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Account Level Environment List
|
|
155
|
+
|
|
156
|
+
```python
|
|
157
|
+
import pulumi
|
|
158
|
+
import pulumi_harness as harness
|
|
159
|
+
|
|
160
|
+
example = harness.platform.get_environment_list()
|
|
161
|
+
```
|
|
162
|
+
"""
|
|
163
|
+
__args__ = dict()
|
|
164
|
+
__args__['orgId'] = org_id
|
|
165
|
+
__args__['projectId'] = project_id
|
|
166
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
167
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getEnvironmentList:getEnvironmentList', __args__, opts=opts, typ=GetEnvironmentListResult)
|
|
168
|
+
return __ret__.apply(lambda __response__: GetEnvironmentListResult(
|
|
169
|
+
environments=pulumi.get(__response__, 'environments'),
|
|
170
|
+
id=pulumi.get(__response__, 'id'),
|
|
171
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
172
|
+
project_id=pulumi.get(__response__, 'project_id')))
|