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,386 @@
|
|
|
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
|
+
'GetTemplateResult',
|
|
21
|
+
'AwaitableGetTemplateResult',
|
|
22
|
+
'get_template',
|
|
23
|
+
'get_template_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetTemplateResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getTemplate.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, branch_name=None, child_type=None, connector_ref=None, description=None, git_details=None, id=None, identifier=None, is_stable=None, name=None, org_id=None, project_id=None, scope=None, store_type=None, tags=None, template_yaml=None, version=None):
|
|
32
|
+
if branch_name and not isinstance(branch_name, str):
|
|
33
|
+
raise TypeError("Expected argument 'branch_name' to be a str")
|
|
34
|
+
pulumi.set(__self__, "branch_name", branch_name)
|
|
35
|
+
if child_type and not isinstance(child_type, str):
|
|
36
|
+
raise TypeError("Expected argument 'child_type' to be a str")
|
|
37
|
+
pulumi.set(__self__, "child_type", child_type)
|
|
38
|
+
if connector_ref and not isinstance(connector_ref, str):
|
|
39
|
+
raise TypeError("Expected argument 'connector_ref' to be a str")
|
|
40
|
+
pulumi.set(__self__, "connector_ref", connector_ref)
|
|
41
|
+
if description and not isinstance(description, str):
|
|
42
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
43
|
+
pulumi.set(__self__, "description", description)
|
|
44
|
+
if git_details and not isinstance(git_details, dict):
|
|
45
|
+
raise TypeError("Expected argument 'git_details' to be a dict")
|
|
46
|
+
pulumi.set(__self__, "git_details", git_details)
|
|
47
|
+
if id and not isinstance(id, str):
|
|
48
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
49
|
+
pulumi.set(__self__, "id", id)
|
|
50
|
+
if identifier and not isinstance(identifier, str):
|
|
51
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
52
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
53
|
+
if is_stable and not isinstance(is_stable, bool):
|
|
54
|
+
raise TypeError("Expected argument 'is_stable' to be a bool")
|
|
55
|
+
pulumi.set(__self__, "is_stable", is_stable)
|
|
56
|
+
if name and not isinstance(name, str):
|
|
57
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
58
|
+
pulumi.set(__self__, "name", name)
|
|
59
|
+
if org_id and not isinstance(org_id, str):
|
|
60
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
61
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
62
|
+
if project_id and not isinstance(project_id, str):
|
|
63
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
64
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
65
|
+
if scope and not isinstance(scope, str):
|
|
66
|
+
raise TypeError("Expected argument 'scope' to be a str")
|
|
67
|
+
pulumi.set(__self__, "scope", scope)
|
|
68
|
+
if store_type and not isinstance(store_type, str):
|
|
69
|
+
raise TypeError("Expected argument 'store_type' to be a str")
|
|
70
|
+
pulumi.set(__self__, "store_type", store_type)
|
|
71
|
+
if tags and not isinstance(tags, list):
|
|
72
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
73
|
+
pulumi.set(__self__, "tags", tags)
|
|
74
|
+
if template_yaml and not isinstance(template_yaml, str):
|
|
75
|
+
raise TypeError("Expected argument 'template_yaml' to be a str")
|
|
76
|
+
pulumi.set(__self__, "template_yaml", template_yaml)
|
|
77
|
+
if version and not isinstance(version, str):
|
|
78
|
+
raise TypeError("Expected argument 'version' to be a str")
|
|
79
|
+
pulumi.set(__self__, "version", version)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter(name="branchName")
|
|
83
|
+
def branch_name(self) -> Optional[str]:
|
|
84
|
+
"""
|
|
85
|
+
Version Label for Template.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "branch_name")
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter(name="childType")
|
|
91
|
+
def child_type(self) -> Optional[str]:
|
|
92
|
+
"""
|
|
93
|
+
Defines child template type.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "child_type")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter(name="connectorRef")
|
|
99
|
+
def connector_ref(self) -> str:
|
|
100
|
+
"""
|
|
101
|
+
Identifier of the Harness Connector used for CRUD operations on the Entity.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "connector_ref")
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter
|
|
107
|
+
def description(self) -> str:
|
|
108
|
+
"""
|
|
109
|
+
Description of the resource.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "description")
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter(name="gitDetails")
|
|
115
|
+
def git_details(self) -> Optional['outputs.GetTemplateGitDetailsResult']:
|
|
116
|
+
"""
|
|
117
|
+
Contains parameters related to creating an Entity for Git Experience.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "git_details")
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter
|
|
123
|
+
def id(self) -> str:
|
|
124
|
+
"""
|
|
125
|
+
The provider-assigned unique ID for this managed resource.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "id")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter
|
|
131
|
+
def identifier(self) -> Optional[str]:
|
|
132
|
+
"""
|
|
133
|
+
Unique identifier of the resource.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "identifier")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter(name="isStable")
|
|
139
|
+
def is_stable(self) -> Optional[bool]:
|
|
140
|
+
"""
|
|
141
|
+
True if given version for template to be set as stable.
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "is_stable")
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter
|
|
147
|
+
def name(self) -> Optional[str]:
|
|
148
|
+
"""
|
|
149
|
+
Name of the resource.
|
|
150
|
+
"""
|
|
151
|
+
return pulumi.get(self, "name")
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter(name="orgId")
|
|
155
|
+
def org_id(self) -> Optional[str]:
|
|
156
|
+
"""
|
|
157
|
+
Unique identifier of the organization.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "org_id")
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
@pulumi.getter(name="projectId")
|
|
163
|
+
def project_id(self) -> Optional[str]:
|
|
164
|
+
"""
|
|
165
|
+
Unique identifier of the project.
|
|
166
|
+
"""
|
|
167
|
+
return pulumi.get(self, "project_id")
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
@pulumi.getter
|
|
171
|
+
def scope(self) -> Optional[str]:
|
|
172
|
+
"""
|
|
173
|
+
Scope of template.
|
|
174
|
+
"""
|
|
175
|
+
return pulumi.get(self, "scope")
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter(name="storeType")
|
|
179
|
+
def store_type(self) -> str:
|
|
180
|
+
"""
|
|
181
|
+
Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "store_type")
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter
|
|
187
|
+
def tags(self) -> Sequence[str]:
|
|
188
|
+
"""
|
|
189
|
+
Tags to associate with the resource.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "tags")
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter(name="templateYaml")
|
|
195
|
+
def template_yaml(self) -> str:
|
|
196
|
+
"""
|
|
197
|
+
Yaml for creating new Template.
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "template_yaml")
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def version(self) -> Optional[str]:
|
|
204
|
+
"""
|
|
205
|
+
Version Label for Template.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "version")
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
class AwaitableGetTemplateResult(GetTemplateResult):
|
|
211
|
+
# pylint: disable=using-constant-test
|
|
212
|
+
def __await__(self):
|
|
213
|
+
if False:
|
|
214
|
+
yield self
|
|
215
|
+
return GetTemplateResult(
|
|
216
|
+
branch_name=self.branch_name,
|
|
217
|
+
child_type=self.child_type,
|
|
218
|
+
connector_ref=self.connector_ref,
|
|
219
|
+
description=self.description,
|
|
220
|
+
git_details=self.git_details,
|
|
221
|
+
id=self.id,
|
|
222
|
+
identifier=self.identifier,
|
|
223
|
+
is_stable=self.is_stable,
|
|
224
|
+
name=self.name,
|
|
225
|
+
org_id=self.org_id,
|
|
226
|
+
project_id=self.project_id,
|
|
227
|
+
scope=self.scope,
|
|
228
|
+
store_type=self.store_type,
|
|
229
|
+
tags=self.tags,
|
|
230
|
+
template_yaml=self.template_yaml,
|
|
231
|
+
version=self.version)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
def get_template(branch_name: Optional[str] = None,
|
|
235
|
+
child_type: Optional[str] = None,
|
|
236
|
+
git_details: Optional[Union['GetTemplateGitDetailsArgs', 'GetTemplateGitDetailsArgsDict']] = None,
|
|
237
|
+
identifier: Optional[str] = None,
|
|
238
|
+
is_stable: Optional[bool] = None,
|
|
239
|
+
name: Optional[str] = None,
|
|
240
|
+
org_id: Optional[str] = None,
|
|
241
|
+
project_id: Optional[str] = None,
|
|
242
|
+
scope: Optional[str] = None,
|
|
243
|
+
version: Optional[str] = None,
|
|
244
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTemplateResult:
|
|
245
|
+
"""
|
|
246
|
+
Data source for retrieving a Harness pipeline.
|
|
247
|
+
|
|
248
|
+
## Example Usage
|
|
249
|
+
|
|
250
|
+
```python
|
|
251
|
+
import pulumi
|
|
252
|
+
import pulumi_harness as harness
|
|
253
|
+
|
|
254
|
+
#For account level template
|
|
255
|
+
example = harness.platform.get_template(identifier="identifier",
|
|
256
|
+
version="version")
|
|
257
|
+
#For org level template
|
|
258
|
+
example1 = harness.platform.get_template(identifier="identifier",
|
|
259
|
+
version="version",
|
|
260
|
+
org_id="org_id")
|
|
261
|
+
#For project level template
|
|
262
|
+
example2 = harness.platform.get_template(identifier="identifier",
|
|
263
|
+
version="version",
|
|
264
|
+
org_id="org_id",
|
|
265
|
+
project_id="project_id")
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
:param str branch_name: Version Label for Template.
|
|
270
|
+
:param str child_type: Defines child template type.
|
|
271
|
+
:param Union['GetTemplateGitDetailsArgs', 'GetTemplateGitDetailsArgsDict'] git_details: Contains parameters related to creating an Entity for Git Experience.
|
|
272
|
+
:param str identifier: Unique identifier of the resource.
|
|
273
|
+
:param bool is_stable: True if given version for template to be set as stable.
|
|
274
|
+
:param str name: Name of the resource.
|
|
275
|
+
:param str org_id: Unique identifier of the organization.
|
|
276
|
+
:param str project_id: Unique identifier of the project.
|
|
277
|
+
:param str scope: Scope of template.
|
|
278
|
+
:param str version: Version Label for Template.
|
|
279
|
+
"""
|
|
280
|
+
__args__ = dict()
|
|
281
|
+
__args__['branchName'] = branch_name
|
|
282
|
+
__args__['childType'] = child_type
|
|
283
|
+
__args__['gitDetails'] = git_details
|
|
284
|
+
__args__['identifier'] = identifier
|
|
285
|
+
__args__['isStable'] = is_stable
|
|
286
|
+
__args__['name'] = name
|
|
287
|
+
__args__['orgId'] = org_id
|
|
288
|
+
__args__['projectId'] = project_id
|
|
289
|
+
__args__['scope'] = scope
|
|
290
|
+
__args__['version'] = version
|
|
291
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
292
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getTemplate:getTemplate', __args__, opts=opts, typ=GetTemplateResult).value
|
|
293
|
+
|
|
294
|
+
return AwaitableGetTemplateResult(
|
|
295
|
+
branch_name=pulumi.get(__ret__, 'branch_name'),
|
|
296
|
+
child_type=pulumi.get(__ret__, 'child_type'),
|
|
297
|
+
connector_ref=pulumi.get(__ret__, 'connector_ref'),
|
|
298
|
+
description=pulumi.get(__ret__, 'description'),
|
|
299
|
+
git_details=pulumi.get(__ret__, 'git_details'),
|
|
300
|
+
id=pulumi.get(__ret__, 'id'),
|
|
301
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
302
|
+
is_stable=pulumi.get(__ret__, 'is_stable'),
|
|
303
|
+
name=pulumi.get(__ret__, 'name'),
|
|
304
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
305
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
306
|
+
scope=pulumi.get(__ret__, 'scope'),
|
|
307
|
+
store_type=pulumi.get(__ret__, 'store_type'),
|
|
308
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
309
|
+
template_yaml=pulumi.get(__ret__, 'template_yaml'),
|
|
310
|
+
version=pulumi.get(__ret__, 'version'))
|
|
311
|
+
def get_template_output(branch_name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
312
|
+
child_type: Optional[pulumi.Input[Optional[str]]] = None,
|
|
313
|
+
git_details: Optional[pulumi.Input[Optional[Union['GetTemplateGitDetailsArgs', 'GetTemplateGitDetailsArgsDict']]]] = None,
|
|
314
|
+
identifier: Optional[pulumi.Input[Optional[str]]] = None,
|
|
315
|
+
is_stable: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
316
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
317
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
318
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
319
|
+
scope: Optional[pulumi.Input[Optional[str]]] = None,
|
|
320
|
+
version: Optional[pulumi.Input[Optional[str]]] = None,
|
|
321
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTemplateResult]:
|
|
322
|
+
"""
|
|
323
|
+
Data source for retrieving a Harness pipeline.
|
|
324
|
+
|
|
325
|
+
## Example Usage
|
|
326
|
+
|
|
327
|
+
```python
|
|
328
|
+
import pulumi
|
|
329
|
+
import pulumi_harness as harness
|
|
330
|
+
|
|
331
|
+
#For account level template
|
|
332
|
+
example = harness.platform.get_template(identifier="identifier",
|
|
333
|
+
version="version")
|
|
334
|
+
#For org level template
|
|
335
|
+
example1 = harness.platform.get_template(identifier="identifier",
|
|
336
|
+
version="version",
|
|
337
|
+
org_id="org_id")
|
|
338
|
+
#For project level template
|
|
339
|
+
example2 = harness.platform.get_template(identifier="identifier",
|
|
340
|
+
version="version",
|
|
341
|
+
org_id="org_id",
|
|
342
|
+
project_id="project_id")
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:param str branch_name: Version Label for Template.
|
|
347
|
+
:param str child_type: Defines child template type.
|
|
348
|
+
:param Union['GetTemplateGitDetailsArgs', 'GetTemplateGitDetailsArgsDict'] git_details: Contains parameters related to creating an Entity for Git Experience.
|
|
349
|
+
:param str identifier: Unique identifier of the resource.
|
|
350
|
+
:param bool is_stable: True if given version for template to be set as stable.
|
|
351
|
+
:param str name: Name of the resource.
|
|
352
|
+
:param str org_id: Unique identifier of the organization.
|
|
353
|
+
:param str project_id: Unique identifier of the project.
|
|
354
|
+
:param str scope: Scope of template.
|
|
355
|
+
:param str version: Version Label for Template.
|
|
356
|
+
"""
|
|
357
|
+
__args__ = dict()
|
|
358
|
+
__args__['branchName'] = branch_name
|
|
359
|
+
__args__['childType'] = child_type
|
|
360
|
+
__args__['gitDetails'] = git_details
|
|
361
|
+
__args__['identifier'] = identifier
|
|
362
|
+
__args__['isStable'] = is_stable
|
|
363
|
+
__args__['name'] = name
|
|
364
|
+
__args__['orgId'] = org_id
|
|
365
|
+
__args__['projectId'] = project_id
|
|
366
|
+
__args__['scope'] = scope
|
|
367
|
+
__args__['version'] = version
|
|
368
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
369
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getTemplate:getTemplate', __args__, opts=opts, typ=GetTemplateResult)
|
|
370
|
+
return __ret__.apply(lambda __response__: GetTemplateResult(
|
|
371
|
+
branch_name=pulumi.get(__response__, 'branch_name'),
|
|
372
|
+
child_type=pulumi.get(__response__, 'child_type'),
|
|
373
|
+
connector_ref=pulumi.get(__response__, 'connector_ref'),
|
|
374
|
+
description=pulumi.get(__response__, 'description'),
|
|
375
|
+
git_details=pulumi.get(__response__, 'git_details'),
|
|
376
|
+
id=pulumi.get(__response__, 'id'),
|
|
377
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
378
|
+
is_stable=pulumi.get(__response__, 'is_stable'),
|
|
379
|
+
name=pulumi.get(__response__, 'name'),
|
|
380
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
381
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
382
|
+
scope=pulumi.get(__response__, 'scope'),
|
|
383
|
+
store_type=pulumi.get(__response__, 'store_type'),
|
|
384
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
385
|
+
template_yaml=pulumi.get(__response__, 'template_yaml'),
|
|
386
|
+
version=pulumi.get(__response__, 'version')))
|
|
@@ -0,0 +1,221 @@
|
|
|
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
|
+
'GetTemplateFiltersResult',
|
|
20
|
+
'AwaitableGetTemplateFiltersResult',
|
|
21
|
+
'get_template_filters',
|
|
22
|
+
'get_template_filters_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetTemplateFiltersResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getTemplateFilters.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, filter_properties=None, filter_visibility=None, id=None, identifier=None, name=None, org_id=None, project_id=None, type=None):
|
|
31
|
+
if filter_properties and not isinstance(filter_properties, list):
|
|
32
|
+
raise TypeError("Expected argument 'filter_properties' to be a list")
|
|
33
|
+
pulumi.set(__self__, "filter_properties", filter_properties)
|
|
34
|
+
if filter_visibility and not isinstance(filter_visibility, str):
|
|
35
|
+
raise TypeError("Expected argument 'filter_visibility' to be a str")
|
|
36
|
+
pulumi.set(__self__, "filter_visibility", filter_visibility)
|
|
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 name and not isinstance(name, str):
|
|
44
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
45
|
+
pulumi.set(__self__, "name", name)
|
|
46
|
+
if org_id and not isinstance(org_id, str):
|
|
47
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
49
|
+
if project_id and not isinstance(project_id, str):
|
|
50
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
51
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
52
|
+
if type and not isinstance(type, str):
|
|
53
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
54
|
+
pulumi.set(__self__, "type", type)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="filterProperties")
|
|
58
|
+
def filter_properties(self) -> Sequence['outputs.GetTemplateFiltersFilterPropertyResult']:
|
|
59
|
+
"""
|
|
60
|
+
Properties of the filter entity defined in Harness.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "filter_properties")
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter(name="filterVisibility")
|
|
66
|
+
def filter_visibility(self) -> str:
|
|
67
|
+
"""
|
|
68
|
+
This indicates visibility of filter. By default, everyone can view this filter.
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "filter_visibility")
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter
|
|
74
|
+
def id(self) -> str:
|
|
75
|
+
"""
|
|
76
|
+
The provider-assigned unique ID for this managed resource.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "id")
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def identifier(self) -> str:
|
|
83
|
+
"""
|
|
84
|
+
Unique identifier of the resource.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "identifier")
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
@pulumi.getter
|
|
90
|
+
def name(self) -> str:
|
|
91
|
+
"""
|
|
92
|
+
Name of the Filter.
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "name")
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
@pulumi.getter(name="orgId")
|
|
98
|
+
def org_id(self) -> Optional[str]:
|
|
99
|
+
"""
|
|
100
|
+
Organization Identifier for the Entity.
|
|
101
|
+
"""
|
|
102
|
+
return pulumi.get(self, "org_id")
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter(name="projectId")
|
|
106
|
+
def project_id(self) -> Optional[str]:
|
|
107
|
+
"""
|
|
108
|
+
Project Identifier for the Entity.
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "project_id")
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter
|
|
114
|
+
def type(self) -> str:
|
|
115
|
+
"""
|
|
116
|
+
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "type")
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class AwaitableGetTemplateFiltersResult(GetTemplateFiltersResult):
|
|
122
|
+
# pylint: disable=using-constant-test
|
|
123
|
+
def __await__(self):
|
|
124
|
+
if False:
|
|
125
|
+
yield self
|
|
126
|
+
return GetTemplateFiltersResult(
|
|
127
|
+
filter_properties=self.filter_properties,
|
|
128
|
+
filter_visibility=self.filter_visibility,
|
|
129
|
+
id=self.id,
|
|
130
|
+
identifier=self.identifier,
|
|
131
|
+
name=self.name,
|
|
132
|
+
org_id=self.org_id,
|
|
133
|
+
project_id=self.project_id,
|
|
134
|
+
type=self.type)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def get_template_filters(identifier: Optional[str] = None,
|
|
138
|
+
org_id: Optional[str] = None,
|
|
139
|
+
project_id: Optional[str] = None,
|
|
140
|
+
type: Optional[str] = None,
|
|
141
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTemplateFiltersResult:
|
|
142
|
+
"""
|
|
143
|
+
Data source for retrieving a Harness Template Filter.
|
|
144
|
+
|
|
145
|
+
## Example Usage
|
|
146
|
+
|
|
147
|
+
```python
|
|
148
|
+
import pulumi
|
|
149
|
+
import pulumi_harness as harness
|
|
150
|
+
|
|
151
|
+
test = harness.platform.get_template_filters(identifier="identifier",
|
|
152
|
+
org_id="org_id",
|
|
153
|
+
project_id="project_id",
|
|
154
|
+
type="Template")
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param str identifier: Unique identifier of the resource.
|
|
159
|
+
:param str org_id: Organization Identifier for the Entity.
|
|
160
|
+
:param str project_id: Project Identifier for the Entity.
|
|
161
|
+
:param str type: Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
|
|
162
|
+
"""
|
|
163
|
+
__args__ = dict()
|
|
164
|
+
__args__['identifier'] = identifier
|
|
165
|
+
__args__['orgId'] = org_id
|
|
166
|
+
__args__['projectId'] = project_id
|
|
167
|
+
__args__['type'] = type
|
|
168
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
169
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getTemplateFilters:getTemplateFilters', __args__, opts=opts, typ=GetTemplateFiltersResult).value
|
|
170
|
+
|
|
171
|
+
return AwaitableGetTemplateFiltersResult(
|
|
172
|
+
filter_properties=pulumi.get(__ret__, 'filter_properties'),
|
|
173
|
+
filter_visibility=pulumi.get(__ret__, 'filter_visibility'),
|
|
174
|
+
id=pulumi.get(__ret__, 'id'),
|
|
175
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
176
|
+
name=pulumi.get(__ret__, 'name'),
|
|
177
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
178
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
179
|
+
type=pulumi.get(__ret__, 'type'))
|
|
180
|
+
def get_template_filters_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
181
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
182
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
183
|
+
type: Optional[pulumi.Input[str]] = None,
|
|
184
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTemplateFiltersResult]:
|
|
185
|
+
"""
|
|
186
|
+
Data source for retrieving a Harness Template Filter.
|
|
187
|
+
|
|
188
|
+
## Example Usage
|
|
189
|
+
|
|
190
|
+
```python
|
|
191
|
+
import pulumi
|
|
192
|
+
import pulumi_harness as harness
|
|
193
|
+
|
|
194
|
+
test = harness.platform.get_template_filters(identifier="identifier",
|
|
195
|
+
org_id="org_id",
|
|
196
|
+
project_id="project_id",
|
|
197
|
+
type="Template")
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:param str identifier: Unique identifier of the resource.
|
|
202
|
+
:param str org_id: Organization Identifier for the Entity.
|
|
203
|
+
:param str project_id: Project Identifier for the Entity.
|
|
204
|
+
:param str type: Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
|
|
205
|
+
"""
|
|
206
|
+
__args__ = dict()
|
|
207
|
+
__args__['identifier'] = identifier
|
|
208
|
+
__args__['orgId'] = org_id
|
|
209
|
+
__args__['projectId'] = project_id
|
|
210
|
+
__args__['type'] = type
|
|
211
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
212
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getTemplateFilters:getTemplateFilters', __args__, opts=opts, typ=GetTemplateFiltersResult)
|
|
213
|
+
return __ret__.apply(lambda __response__: GetTemplateFiltersResult(
|
|
214
|
+
filter_properties=pulumi.get(__response__, 'filter_properties'),
|
|
215
|
+
filter_visibility=pulumi.get(__response__, 'filter_visibility'),
|
|
216
|
+
id=pulumi.get(__response__, 'id'),
|
|
217
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
218
|
+
name=pulumi.get(__response__, 'name'),
|
|
219
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
220
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
221
|
+
type=pulumi.get(__response__, 'type')))
|