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,351 @@
|
|
|
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
|
+
'GetGitopsApplicationsResult',
|
|
20
|
+
'AwaitableGetGitopsApplicationsResult',
|
|
21
|
+
'get_gitops_applications',
|
|
22
|
+
'get_gitops_applications_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetGitopsApplicationsResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getGitopsApplications.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, account_id=None, agent_id=None, applications=None, cluster_id=None, id=None, identifier=None, kind=None, name=None, options_remove_existing_finalizers=None, org_id=None, project=None, project_id=None, repo_id=None, request_cascade=None, request_propagation_policy=None, skip_repo_validation=None, upsert=None, validate=None):
|
|
31
|
+
if account_id and not isinstance(account_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "account_id", account_id)
|
|
34
|
+
if agent_id and not isinstance(agent_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'agent_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "agent_id", agent_id)
|
|
37
|
+
if applications and not isinstance(applications, list):
|
|
38
|
+
raise TypeError("Expected argument 'applications' to be a list")
|
|
39
|
+
pulumi.set(__self__, "applications", applications)
|
|
40
|
+
if cluster_id and not isinstance(cluster_id, str):
|
|
41
|
+
raise TypeError("Expected argument 'cluster_id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
43
|
+
if id and not isinstance(id, str):
|
|
44
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "id", id)
|
|
46
|
+
if identifier and not isinstance(identifier, str):
|
|
47
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
48
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
49
|
+
if kind and not isinstance(kind, str):
|
|
50
|
+
raise TypeError("Expected argument 'kind' to be a str")
|
|
51
|
+
pulumi.set(__self__, "kind", kind)
|
|
52
|
+
if name and not isinstance(name, str):
|
|
53
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
54
|
+
pulumi.set(__self__, "name", name)
|
|
55
|
+
if options_remove_existing_finalizers and not isinstance(options_remove_existing_finalizers, bool):
|
|
56
|
+
raise TypeError("Expected argument 'options_remove_existing_finalizers' to be a bool")
|
|
57
|
+
pulumi.set(__self__, "options_remove_existing_finalizers", options_remove_existing_finalizers)
|
|
58
|
+
if org_id and not isinstance(org_id, str):
|
|
59
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
60
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
61
|
+
if project and not isinstance(project, str):
|
|
62
|
+
raise TypeError("Expected argument 'project' to be a str")
|
|
63
|
+
pulumi.set(__self__, "project", project)
|
|
64
|
+
if project_id and not isinstance(project_id, str):
|
|
65
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
66
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
67
|
+
if repo_id and not isinstance(repo_id, str):
|
|
68
|
+
raise TypeError("Expected argument 'repo_id' to be a str")
|
|
69
|
+
pulumi.set(__self__, "repo_id", repo_id)
|
|
70
|
+
if request_cascade and not isinstance(request_cascade, bool):
|
|
71
|
+
raise TypeError("Expected argument 'request_cascade' to be a bool")
|
|
72
|
+
pulumi.set(__self__, "request_cascade", request_cascade)
|
|
73
|
+
if request_propagation_policy and not isinstance(request_propagation_policy, str):
|
|
74
|
+
raise TypeError("Expected argument 'request_propagation_policy' to be a str")
|
|
75
|
+
pulumi.set(__self__, "request_propagation_policy", request_propagation_policy)
|
|
76
|
+
if skip_repo_validation and not isinstance(skip_repo_validation, bool):
|
|
77
|
+
raise TypeError("Expected argument 'skip_repo_validation' to be a bool")
|
|
78
|
+
pulumi.set(__self__, "skip_repo_validation", skip_repo_validation)
|
|
79
|
+
if upsert and not isinstance(upsert, bool):
|
|
80
|
+
raise TypeError("Expected argument 'upsert' to be a bool")
|
|
81
|
+
pulumi.set(__self__, "upsert", upsert)
|
|
82
|
+
if validate and not isinstance(validate, bool):
|
|
83
|
+
raise TypeError("Expected argument 'validate' to be a bool")
|
|
84
|
+
pulumi.set(__self__, "validate", validate)
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="accountId")
|
|
88
|
+
@_utilities.deprecated("""This field is deprecated and will be removed in a future release.""")
|
|
89
|
+
def account_id(self) -> str:
|
|
90
|
+
"""
|
|
91
|
+
Account identifier of the GitOps application.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "account_id")
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
@pulumi.getter(name="agentId")
|
|
97
|
+
def agent_id(self) -> str:
|
|
98
|
+
"""
|
|
99
|
+
Agent identifier of the GitOps application.
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "agent_id")
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
@pulumi.getter
|
|
105
|
+
def applications(self) -> Sequence['outputs.GetGitopsApplicationsApplicationResult']:
|
|
106
|
+
"""
|
|
107
|
+
Definition of the GitOps application resource.
|
|
108
|
+
"""
|
|
109
|
+
return pulumi.get(self, "applications")
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
@pulumi.getter(name="clusterId")
|
|
113
|
+
def cluster_id(self) -> str:
|
|
114
|
+
"""
|
|
115
|
+
Cluster identifier of the GitOps application.
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "cluster_id")
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
@pulumi.getter
|
|
121
|
+
def id(self) -> str:
|
|
122
|
+
"""
|
|
123
|
+
The provider-assigned unique ID for this managed resource.
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "id")
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
@pulumi.getter
|
|
129
|
+
@_utilities.deprecated("""This field is deprecated and will be removed in a future release.""")
|
|
130
|
+
def identifier(self) -> Optional[str]:
|
|
131
|
+
"""
|
|
132
|
+
Identifier of the GitOps application.
|
|
133
|
+
"""
|
|
134
|
+
return pulumi.get(self, "identifier")
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
@pulumi.getter
|
|
138
|
+
def kind(self) -> str:
|
|
139
|
+
"""
|
|
140
|
+
Kind of the GitOps application.
|
|
141
|
+
"""
|
|
142
|
+
return pulumi.get(self, "kind")
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
@pulumi.getter
|
|
146
|
+
def name(self) -> str:
|
|
147
|
+
"""
|
|
148
|
+
Name of the GitOps application.
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "name")
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
@pulumi.getter(name="optionsRemoveExistingFinalizers")
|
|
154
|
+
def options_remove_existing_finalizers(self) -> bool:
|
|
155
|
+
"""
|
|
156
|
+
Options to remove existing finalizers to delete the GitOps application.
|
|
157
|
+
"""
|
|
158
|
+
return pulumi.get(self, "options_remove_existing_finalizers")
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
@pulumi.getter(name="orgId")
|
|
162
|
+
def org_id(self) -> str:
|
|
163
|
+
"""
|
|
164
|
+
Organization identifier of the GitOps application.
|
|
165
|
+
"""
|
|
166
|
+
return pulumi.get(self, "org_id")
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter
|
|
170
|
+
def project(self) -> str:
|
|
171
|
+
"""
|
|
172
|
+
The ArgoCD project name corresponding to this GitOps application. An empty string means that the GitOps application belongs to the default project created by Harness.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "project")
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
@pulumi.getter(name="projectId")
|
|
178
|
+
def project_id(self) -> str:
|
|
179
|
+
"""
|
|
180
|
+
Project identifier of the GitOps application.
|
|
181
|
+
"""
|
|
182
|
+
return pulumi.get(self, "project_id")
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
@pulumi.getter(name="repoId")
|
|
186
|
+
def repo_id(self) -> str:
|
|
187
|
+
"""
|
|
188
|
+
Repository identifier of the GitOps application.
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "repo_id")
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter(name="requestCascade")
|
|
194
|
+
def request_cascade(self) -> bool:
|
|
195
|
+
"""
|
|
196
|
+
Request cascade to delete the GitOps application.
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "request_cascade")
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
@pulumi.getter(name="requestPropagationPolicy")
|
|
202
|
+
def request_propagation_policy(self) -> str:
|
|
203
|
+
"""
|
|
204
|
+
Request propagation policy to delete the GitOps application.
|
|
205
|
+
"""
|
|
206
|
+
return pulumi.get(self, "request_propagation_policy")
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
@pulumi.getter(name="skipRepoValidation")
|
|
210
|
+
def skip_repo_validation(self) -> bool:
|
|
211
|
+
"""
|
|
212
|
+
Indicates if the GitOps application should skip validate repository definition exists.
|
|
213
|
+
"""
|
|
214
|
+
return pulumi.get(self, "skip_repo_validation")
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter
|
|
218
|
+
def upsert(self) -> bool:
|
|
219
|
+
"""
|
|
220
|
+
Indicates if the GitOps application should be updated if existing and inserted if not.
|
|
221
|
+
"""
|
|
222
|
+
return pulumi.get(self, "upsert")
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
@pulumi.getter
|
|
226
|
+
def validate(self) -> bool:
|
|
227
|
+
"""
|
|
228
|
+
Indicates if the GitOps application yaml has to be validated.
|
|
229
|
+
"""
|
|
230
|
+
return pulumi.get(self, "validate")
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
class AwaitableGetGitopsApplicationsResult(GetGitopsApplicationsResult):
|
|
234
|
+
# pylint: disable=using-constant-test
|
|
235
|
+
def __await__(self):
|
|
236
|
+
if False:
|
|
237
|
+
yield self
|
|
238
|
+
return GetGitopsApplicationsResult(
|
|
239
|
+
account_id=self.account_id,
|
|
240
|
+
agent_id=self.agent_id,
|
|
241
|
+
applications=self.applications,
|
|
242
|
+
cluster_id=self.cluster_id,
|
|
243
|
+
id=self.id,
|
|
244
|
+
identifier=self.identifier,
|
|
245
|
+
kind=self.kind,
|
|
246
|
+
name=self.name,
|
|
247
|
+
options_remove_existing_finalizers=self.options_remove_existing_finalizers,
|
|
248
|
+
org_id=self.org_id,
|
|
249
|
+
project=self.project,
|
|
250
|
+
project_id=self.project_id,
|
|
251
|
+
repo_id=self.repo_id,
|
|
252
|
+
request_cascade=self.request_cascade,
|
|
253
|
+
request_propagation_policy=self.request_propagation_policy,
|
|
254
|
+
skip_repo_validation=self.skip_repo_validation,
|
|
255
|
+
upsert=self.upsert,
|
|
256
|
+
validate=self.validate)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def get_gitops_applications(account_id: Optional[str] = None,
|
|
260
|
+
agent_id: Optional[str] = None,
|
|
261
|
+
identifier: Optional[str] = None,
|
|
262
|
+
name: Optional[str] = None,
|
|
263
|
+
org_id: Optional[str] = None,
|
|
264
|
+
project_id: Optional[str] = None,
|
|
265
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGitopsApplicationsResult:
|
|
266
|
+
"""
|
|
267
|
+
Datasource for fetching a Harness GitOps Application.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:param str account_id: Account identifier of the GitOps application.
|
|
271
|
+
:param str agent_id: Agent identifier of the GitOps application.
|
|
272
|
+
:param str identifier: Identifier of the GitOps application.
|
|
273
|
+
:param str name: Name of the GitOps application.
|
|
274
|
+
:param str org_id: Organization identifier of the GitOps application.
|
|
275
|
+
:param str project_id: Project identifier of the GitOps application.
|
|
276
|
+
"""
|
|
277
|
+
__args__ = dict()
|
|
278
|
+
__args__['accountId'] = account_id
|
|
279
|
+
__args__['agentId'] = agent_id
|
|
280
|
+
__args__['identifier'] = identifier
|
|
281
|
+
__args__['name'] = name
|
|
282
|
+
__args__['orgId'] = org_id
|
|
283
|
+
__args__['projectId'] = project_id
|
|
284
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
285
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getGitopsApplications:getGitopsApplications', __args__, opts=opts, typ=GetGitopsApplicationsResult).value
|
|
286
|
+
|
|
287
|
+
return AwaitableGetGitopsApplicationsResult(
|
|
288
|
+
account_id=pulumi.get(__ret__, 'account_id'),
|
|
289
|
+
agent_id=pulumi.get(__ret__, 'agent_id'),
|
|
290
|
+
applications=pulumi.get(__ret__, 'applications'),
|
|
291
|
+
cluster_id=pulumi.get(__ret__, 'cluster_id'),
|
|
292
|
+
id=pulumi.get(__ret__, 'id'),
|
|
293
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
294
|
+
kind=pulumi.get(__ret__, 'kind'),
|
|
295
|
+
name=pulumi.get(__ret__, 'name'),
|
|
296
|
+
options_remove_existing_finalizers=pulumi.get(__ret__, 'options_remove_existing_finalizers'),
|
|
297
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
298
|
+
project=pulumi.get(__ret__, 'project'),
|
|
299
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
300
|
+
repo_id=pulumi.get(__ret__, 'repo_id'),
|
|
301
|
+
request_cascade=pulumi.get(__ret__, 'request_cascade'),
|
|
302
|
+
request_propagation_policy=pulumi.get(__ret__, 'request_propagation_policy'),
|
|
303
|
+
skip_repo_validation=pulumi.get(__ret__, 'skip_repo_validation'),
|
|
304
|
+
upsert=pulumi.get(__ret__, 'upsert'),
|
|
305
|
+
validate=pulumi.get(__ret__, 'validate'))
|
|
306
|
+
def get_gitops_applications_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
307
|
+
agent_id: Optional[pulumi.Input[str]] = None,
|
|
308
|
+
identifier: Optional[pulumi.Input[Optional[str]]] = None,
|
|
309
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
310
|
+
org_id: Optional[pulumi.Input[str]] = None,
|
|
311
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
312
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGitopsApplicationsResult]:
|
|
313
|
+
"""
|
|
314
|
+
Datasource for fetching a Harness GitOps Application.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param str account_id: Account identifier of the GitOps application.
|
|
318
|
+
:param str agent_id: Agent identifier of the GitOps application.
|
|
319
|
+
:param str identifier: Identifier of the GitOps application.
|
|
320
|
+
:param str name: Name of the GitOps application.
|
|
321
|
+
:param str org_id: Organization identifier of the GitOps application.
|
|
322
|
+
:param str project_id: Project identifier of the GitOps application.
|
|
323
|
+
"""
|
|
324
|
+
__args__ = dict()
|
|
325
|
+
__args__['accountId'] = account_id
|
|
326
|
+
__args__['agentId'] = agent_id
|
|
327
|
+
__args__['identifier'] = identifier
|
|
328
|
+
__args__['name'] = name
|
|
329
|
+
__args__['orgId'] = org_id
|
|
330
|
+
__args__['projectId'] = project_id
|
|
331
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
332
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getGitopsApplications:getGitopsApplications', __args__, opts=opts, typ=GetGitopsApplicationsResult)
|
|
333
|
+
return __ret__.apply(lambda __response__: GetGitopsApplicationsResult(
|
|
334
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
|
335
|
+
agent_id=pulumi.get(__response__, 'agent_id'),
|
|
336
|
+
applications=pulumi.get(__response__, 'applications'),
|
|
337
|
+
cluster_id=pulumi.get(__response__, 'cluster_id'),
|
|
338
|
+
id=pulumi.get(__response__, 'id'),
|
|
339
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
340
|
+
kind=pulumi.get(__response__, 'kind'),
|
|
341
|
+
name=pulumi.get(__response__, 'name'),
|
|
342
|
+
options_remove_existing_finalizers=pulumi.get(__response__, 'options_remove_existing_finalizers'),
|
|
343
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
344
|
+
project=pulumi.get(__response__, 'project'),
|
|
345
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
346
|
+
repo_id=pulumi.get(__response__, 'repo_id'),
|
|
347
|
+
request_cascade=pulumi.get(__response__, 'request_cascade'),
|
|
348
|
+
request_propagation_policy=pulumi.get(__response__, 'request_propagation_policy'),
|
|
349
|
+
skip_repo_validation=pulumi.get(__response__, 'skip_repo_validation'),
|
|
350
|
+
upsert=pulumi.get(__response__, 'upsert'),
|
|
351
|
+
validate=pulumi.get(__response__, 'validate')))
|
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
'GetGitopsClusterResult',
|
|
20
|
+
'AwaitableGetGitopsClusterResult',
|
|
21
|
+
'get_gitops_cluster',
|
|
22
|
+
'get_gitops_cluster_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetGitopsClusterResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getGitopsCluster.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, account_id=None, agent_id=None, id=None, identifier=None, org_id=None, project_id=None, requests=None):
|
|
31
|
+
if account_id and not isinstance(account_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "account_id", account_id)
|
|
34
|
+
if agent_id and not isinstance(agent_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'agent_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "agent_id", agent_id)
|
|
37
|
+
if id and not isinstance(id, str):
|
|
38
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "id", id)
|
|
40
|
+
if identifier and not isinstance(identifier, str):
|
|
41
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
42
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
43
|
+
if org_id and not isinstance(org_id, str):
|
|
44
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
46
|
+
if project_id and not isinstance(project_id, str):
|
|
47
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
49
|
+
if requests and not isinstance(requests, list):
|
|
50
|
+
raise TypeError("Expected argument 'requests' to be a list")
|
|
51
|
+
pulumi.set(__self__, "requests", requests)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter(name="accountId")
|
|
55
|
+
@_utilities.deprecated("""This field is deprecated and will be removed in a future release.""")
|
|
56
|
+
def account_id(self) -> str:
|
|
57
|
+
"""
|
|
58
|
+
Account identifier of the GitOps cluster.
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "account_id")
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="agentId")
|
|
64
|
+
def agent_id(self) -> str:
|
|
65
|
+
"""
|
|
66
|
+
Agent identifier of the GitOps cluster.
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "agent_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 of the GitOps cluster.
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "identifier")
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="orgId")
|
|
88
|
+
def org_id(self) -> Optional[str]:
|
|
89
|
+
"""
|
|
90
|
+
Organization identifier of the cluster.
|
|
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 identifier of the GitOps cluster.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "project_id")
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
@pulumi.getter
|
|
104
|
+
def requests(self) -> Sequence['outputs.GetGitopsClusterRequestResult']:
|
|
105
|
+
"""
|
|
106
|
+
Cluster create or update request.
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "requests")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class AwaitableGetGitopsClusterResult(GetGitopsClusterResult):
|
|
112
|
+
# pylint: disable=using-constant-test
|
|
113
|
+
def __await__(self):
|
|
114
|
+
if False:
|
|
115
|
+
yield self
|
|
116
|
+
return GetGitopsClusterResult(
|
|
117
|
+
account_id=self.account_id,
|
|
118
|
+
agent_id=self.agent_id,
|
|
119
|
+
id=self.id,
|
|
120
|
+
identifier=self.identifier,
|
|
121
|
+
org_id=self.org_id,
|
|
122
|
+
project_id=self.project_id,
|
|
123
|
+
requests=self.requests)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def get_gitops_cluster(account_id: Optional[str] = None,
|
|
127
|
+
agent_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) -> AwaitableGetGitopsClusterResult:
|
|
132
|
+
"""
|
|
133
|
+
Data source for fetching a Harness GitOps Cluster.
|
|
134
|
+
|
|
135
|
+
## Example Usage
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
import pulumi
|
|
139
|
+
import pulumi_harness as harness
|
|
140
|
+
|
|
141
|
+
example = harness.platform.get_gitops_cluster(identifier="identifier",
|
|
142
|
+
account_id="account_id",
|
|
143
|
+
project_id="project_id",
|
|
144
|
+
org_id="org_id",
|
|
145
|
+
agent_id="agent_id")
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:param str account_id: Account identifier of the GitOps cluster.
|
|
150
|
+
:param str agent_id: Agent identifier of the GitOps cluster.
|
|
151
|
+
:param str identifier: Identifier of the GitOps cluster.
|
|
152
|
+
:param str org_id: Organization identifier of the cluster.
|
|
153
|
+
:param str project_id: Project identifier of the GitOps cluster.
|
|
154
|
+
"""
|
|
155
|
+
__args__ = dict()
|
|
156
|
+
__args__['accountId'] = account_id
|
|
157
|
+
__args__['agentId'] = agent_id
|
|
158
|
+
__args__['identifier'] = identifier
|
|
159
|
+
__args__['orgId'] = org_id
|
|
160
|
+
__args__['projectId'] = project_id
|
|
161
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getGitopsCluster:getGitopsCluster', __args__, opts=opts, typ=GetGitopsClusterResult).value
|
|
163
|
+
|
|
164
|
+
return AwaitableGetGitopsClusterResult(
|
|
165
|
+
account_id=pulumi.get(__ret__, 'account_id'),
|
|
166
|
+
agent_id=pulumi.get(__ret__, 'agent_id'),
|
|
167
|
+
id=pulumi.get(__ret__, 'id'),
|
|
168
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
169
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
170
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
171
|
+
requests=pulumi.get(__ret__, 'requests'))
|
|
172
|
+
def get_gitops_cluster_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
173
|
+
agent_id: Optional[pulumi.Input[str]] = None,
|
|
174
|
+
identifier: Optional[pulumi.Input[str]] = None,
|
|
175
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
176
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
177
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGitopsClusterResult]:
|
|
178
|
+
"""
|
|
179
|
+
Data source for fetching a Harness GitOps Cluster.
|
|
180
|
+
|
|
181
|
+
## Example Usage
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
import pulumi
|
|
185
|
+
import pulumi_harness as harness
|
|
186
|
+
|
|
187
|
+
example = harness.platform.get_gitops_cluster(identifier="identifier",
|
|
188
|
+
account_id="account_id",
|
|
189
|
+
project_id="project_id",
|
|
190
|
+
org_id="org_id",
|
|
191
|
+
agent_id="agent_id")
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param str account_id: Account identifier of the GitOps cluster.
|
|
196
|
+
:param str agent_id: Agent identifier of the GitOps cluster.
|
|
197
|
+
:param str identifier: Identifier of the GitOps cluster.
|
|
198
|
+
:param str org_id: Organization identifier of the cluster.
|
|
199
|
+
:param str project_id: Project identifier of the GitOps cluster.
|
|
200
|
+
"""
|
|
201
|
+
__args__ = dict()
|
|
202
|
+
__args__['accountId'] = account_id
|
|
203
|
+
__args__['agentId'] = agent_id
|
|
204
|
+
__args__['identifier'] = identifier
|
|
205
|
+
__args__['orgId'] = org_id
|
|
206
|
+
__args__['projectId'] = project_id
|
|
207
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
208
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getGitopsCluster:getGitopsCluster', __args__, opts=opts, typ=GetGitopsClusterResult)
|
|
209
|
+
return __ret__.apply(lambda __response__: GetGitopsClusterResult(
|
|
210
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
|
211
|
+
agent_id=pulumi.get(__response__, 'agent_id'),
|
|
212
|
+
id=pulumi.get(__response__, 'id'),
|
|
213
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
214
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
215
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
216
|
+
requests=pulumi.get(__response__, 'requests')))
|