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,249 @@
|
|
|
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
|
+
'GetProjectListResult',
|
|
20
|
+
'AwaitableGetProjectListResult',
|
|
21
|
+
'get_project_list',
|
|
22
|
+
'get_project_list_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetProjectListResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getProjectList.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, description=None, id=None, identifier=None, limit=None, name=None, org_id=None, page=None, projects=None, tags=None):
|
|
31
|
+
if description and not isinstance(description, str):
|
|
32
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
33
|
+
pulumi.set(__self__, "description", description)
|
|
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 identifier and not isinstance(identifier, str):
|
|
38
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
39
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
40
|
+
if limit and not isinstance(limit, int):
|
|
41
|
+
raise TypeError("Expected argument 'limit' to be a int")
|
|
42
|
+
pulumi.set(__self__, "limit", limit)
|
|
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 page and not isinstance(page, int):
|
|
50
|
+
raise TypeError("Expected argument 'page' to be a int")
|
|
51
|
+
pulumi.set(__self__, "page", page)
|
|
52
|
+
if projects and not isinstance(projects, list):
|
|
53
|
+
raise TypeError("Expected argument 'projects' to be a list")
|
|
54
|
+
pulumi.set(__self__, "projects", projects)
|
|
55
|
+
if tags and not isinstance(tags, list):
|
|
56
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
57
|
+
pulumi.set(__self__, "tags", tags)
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter
|
|
61
|
+
def description(self) -> str:
|
|
62
|
+
return pulumi.get(self, "description")
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter
|
|
66
|
+
def id(self) -> str:
|
|
67
|
+
"""
|
|
68
|
+
The provider-assigned unique ID for this managed resource.
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "id")
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter
|
|
74
|
+
def identifier(self) -> Optional[str]:
|
|
75
|
+
return pulumi.get(self, "identifier")
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def limit(self) -> Optional[int]:
|
|
80
|
+
"""
|
|
81
|
+
Optional pagination parameter indicating the maximum number of entities to retrieve per page.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "limit")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter
|
|
87
|
+
def name(self) -> Optional[str]:
|
|
88
|
+
return pulumi.get(self, "name")
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter(name="orgId")
|
|
92
|
+
def org_id(self) -> str:
|
|
93
|
+
"""
|
|
94
|
+
Unique identifier of the organization.
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "org_id")
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def page(self) -> Optional[int]:
|
|
101
|
+
"""
|
|
102
|
+
Optional pagination parameter indicating the page number when retrieving entities.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "page")
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter
|
|
108
|
+
def projects(self) -> Sequence['outputs.GetProjectListProjectResult']:
|
|
109
|
+
"""
|
|
110
|
+
Containing list of all projects with details identifier and name.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "projects")
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
@pulumi.getter
|
|
116
|
+
def tags(self) -> Sequence[str]:
|
|
117
|
+
return pulumi.get(self, "tags")
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class AwaitableGetProjectListResult(GetProjectListResult):
|
|
121
|
+
# pylint: disable=using-constant-test
|
|
122
|
+
def __await__(self):
|
|
123
|
+
if False:
|
|
124
|
+
yield self
|
|
125
|
+
return GetProjectListResult(
|
|
126
|
+
description=self.description,
|
|
127
|
+
id=self.id,
|
|
128
|
+
identifier=self.identifier,
|
|
129
|
+
limit=self.limit,
|
|
130
|
+
name=self.name,
|
|
131
|
+
org_id=self.org_id,
|
|
132
|
+
page=self.page,
|
|
133
|
+
projects=self.projects,
|
|
134
|
+
tags=self.tags)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def get_project_list(identifier: Optional[str] = None,
|
|
138
|
+
limit: Optional[int] = None,
|
|
139
|
+
name: Optional[str] = None,
|
|
140
|
+
org_id: Optional[str] = None,
|
|
141
|
+
page: Optional[int] = None,
|
|
142
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectListResult:
|
|
143
|
+
"""
|
|
144
|
+
Data source for retrieving Harness project list.
|
|
145
|
+
|
|
146
|
+
## Example Usage
|
|
147
|
+
|
|
148
|
+
### Org Level Project List
|
|
149
|
+
|
|
150
|
+
### Without the Pagination
|
|
151
|
+
|
|
152
|
+
```python
|
|
153
|
+
import pulumi
|
|
154
|
+
import pulumi_harness as harness
|
|
155
|
+
|
|
156
|
+
example = harness.platform.get_project_list(org_id="org_id")
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### With Pagination Logic
|
|
160
|
+
|
|
161
|
+
```python
|
|
162
|
+
import pulumi
|
|
163
|
+
import pulumi_harness as harness
|
|
164
|
+
|
|
165
|
+
example = harness.platform.get_project_list(org_id="org_id",
|
|
166
|
+
page=1,
|
|
167
|
+
limit=4)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param int limit: Optional pagination parameter indicating the maximum number of entities to retrieve per page.
|
|
172
|
+
:param str org_id: Unique identifier of the organization.
|
|
173
|
+
:param int page: Optional pagination parameter indicating the page number when retrieving entities.
|
|
174
|
+
"""
|
|
175
|
+
__args__ = dict()
|
|
176
|
+
__args__['identifier'] = identifier
|
|
177
|
+
__args__['limit'] = limit
|
|
178
|
+
__args__['name'] = name
|
|
179
|
+
__args__['orgId'] = org_id
|
|
180
|
+
__args__['page'] = page
|
|
181
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
182
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getProjectList:getProjectList', __args__, opts=opts, typ=GetProjectListResult).value
|
|
183
|
+
|
|
184
|
+
return AwaitableGetProjectListResult(
|
|
185
|
+
description=pulumi.get(__ret__, 'description'),
|
|
186
|
+
id=pulumi.get(__ret__, 'id'),
|
|
187
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
188
|
+
limit=pulumi.get(__ret__, 'limit'),
|
|
189
|
+
name=pulumi.get(__ret__, 'name'),
|
|
190
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
191
|
+
page=pulumi.get(__ret__, 'page'),
|
|
192
|
+
projects=pulumi.get(__ret__, 'projects'),
|
|
193
|
+
tags=pulumi.get(__ret__, 'tags'))
|
|
194
|
+
def get_project_list_output(identifier: Optional[pulumi.Input[Optional[str]]] = None,
|
|
195
|
+
limit: Optional[pulumi.Input[Optional[int]]] = None,
|
|
196
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
197
|
+
org_id: Optional[pulumi.Input[str]] = None,
|
|
198
|
+
page: Optional[pulumi.Input[Optional[int]]] = None,
|
|
199
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectListResult]:
|
|
200
|
+
"""
|
|
201
|
+
Data source for retrieving Harness project list.
|
|
202
|
+
|
|
203
|
+
## Example Usage
|
|
204
|
+
|
|
205
|
+
### Org Level Project List
|
|
206
|
+
|
|
207
|
+
### Without the Pagination
|
|
208
|
+
|
|
209
|
+
```python
|
|
210
|
+
import pulumi
|
|
211
|
+
import pulumi_harness as harness
|
|
212
|
+
|
|
213
|
+
example = harness.platform.get_project_list(org_id="org_id")
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### With Pagination Logic
|
|
217
|
+
|
|
218
|
+
```python
|
|
219
|
+
import pulumi
|
|
220
|
+
import pulumi_harness as harness
|
|
221
|
+
|
|
222
|
+
example = harness.platform.get_project_list(org_id="org_id",
|
|
223
|
+
page=1,
|
|
224
|
+
limit=4)
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param int limit: Optional pagination parameter indicating the maximum number of entities to retrieve per page.
|
|
229
|
+
:param str org_id: Unique identifier of the organization.
|
|
230
|
+
:param int page: Optional pagination parameter indicating the page number when retrieving entities.
|
|
231
|
+
"""
|
|
232
|
+
__args__ = dict()
|
|
233
|
+
__args__['identifier'] = identifier
|
|
234
|
+
__args__['limit'] = limit
|
|
235
|
+
__args__['name'] = name
|
|
236
|
+
__args__['orgId'] = org_id
|
|
237
|
+
__args__['page'] = page
|
|
238
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
239
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getProjectList:getProjectList', __args__, opts=opts, typ=GetProjectListResult)
|
|
240
|
+
return __ret__.apply(lambda __response__: GetProjectListResult(
|
|
241
|
+
description=pulumi.get(__response__, 'description'),
|
|
242
|
+
id=pulumi.get(__response__, 'id'),
|
|
243
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
244
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
245
|
+
name=pulumi.get(__response__, 'name'),
|
|
246
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
247
|
+
page=pulumi.get(__response__, 'page'),
|
|
248
|
+
projects=pulumi.get(__response__, 'projects'),
|
|
249
|
+
tags=pulumi.get(__response__, 'tags')))
|
|
@@ -0,0 +1,271 @@
|
|
|
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
|
+
'GetPrometheusConnectorResult',
|
|
20
|
+
'AwaitableGetPrometheusConnectorResult',
|
|
21
|
+
'get_prometheus_connector',
|
|
22
|
+
'get_prometheus_connector_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetPrometheusConnectorResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getPrometheusConnector.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, delegate_selectors=None, description=None, headers=None, id=None, identifier=None, name=None, org_id=None, password_ref=None, project_id=None, tags=None, url=None, user_name=None):
|
|
31
|
+
if delegate_selectors and not isinstance(delegate_selectors, list):
|
|
32
|
+
raise TypeError("Expected argument 'delegate_selectors' to be a list")
|
|
33
|
+
pulumi.set(__self__, "delegate_selectors", delegate_selectors)
|
|
34
|
+
if description and not isinstance(description, str):
|
|
35
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
36
|
+
pulumi.set(__self__, "description", description)
|
|
37
|
+
if headers and not isinstance(headers, list):
|
|
38
|
+
raise TypeError("Expected argument 'headers' to be a list")
|
|
39
|
+
pulumi.set(__self__, "headers", headers)
|
|
40
|
+
if id and not isinstance(id, str):
|
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "id", id)
|
|
43
|
+
if identifier and not isinstance(identifier, str):
|
|
44
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
45
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
46
|
+
if name and not isinstance(name, str):
|
|
47
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
48
|
+
pulumi.set(__self__, "name", name)
|
|
49
|
+
if org_id and not isinstance(org_id, str):
|
|
50
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
51
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
52
|
+
if password_ref and not isinstance(password_ref, str):
|
|
53
|
+
raise TypeError("Expected argument 'password_ref' to be a str")
|
|
54
|
+
pulumi.set(__self__, "password_ref", password_ref)
|
|
55
|
+
if project_id and not isinstance(project_id, str):
|
|
56
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
57
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
58
|
+
if tags and not isinstance(tags, list):
|
|
59
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
60
|
+
pulumi.set(__self__, "tags", tags)
|
|
61
|
+
if url and not isinstance(url, str):
|
|
62
|
+
raise TypeError("Expected argument 'url' to be a str")
|
|
63
|
+
pulumi.set(__self__, "url", url)
|
|
64
|
+
if user_name and not isinstance(user_name, str):
|
|
65
|
+
raise TypeError("Expected argument 'user_name' to be a str")
|
|
66
|
+
pulumi.set(__self__, "user_name", user_name)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="delegateSelectors")
|
|
70
|
+
def delegate_selectors(self) -> Sequence[str]:
|
|
71
|
+
"""
|
|
72
|
+
Tags to filter delegates for connection.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "delegate_selectors")
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
@pulumi.getter
|
|
78
|
+
def description(self) -> str:
|
|
79
|
+
"""
|
|
80
|
+
Description of the resource.
|
|
81
|
+
"""
|
|
82
|
+
return pulumi.get(self, "description")
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
@pulumi.getter
|
|
86
|
+
def headers(self) -> Sequence['outputs.GetPrometheusConnectorHeaderResult']:
|
|
87
|
+
"""
|
|
88
|
+
Headers.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "headers")
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter
|
|
94
|
+
def id(self) -> str:
|
|
95
|
+
"""
|
|
96
|
+
The provider-assigned unique ID for this managed resource.
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "id")
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
@pulumi.getter
|
|
102
|
+
def identifier(self) -> str:
|
|
103
|
+
"""
|
|
104
|
+
Unique identifier of the resource.
|
|
105
|
+
"""
|
|
106
|
+
return pulumi.get(self, "identifier")
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
@pulumi.getter
|
|
110
|
+
def name(self) -> Optional[str]:
|
|
111
|
+
"""
|
|
112
|
+
Name of the resource.
|
|
113
|
+
"""
|
|
114
|
+
return pulumi.get(self, "name")
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
@pulumi.getter(name="orgId")
|
|
118
|
+
def org_id(self) -> Optional[str]:
|
|
119
|
+
"""
|
|
120
|
+
Unique identifier of the organization.
|
|
121
|
+
"""
|
|
122
|
+
return pulumi.get(self, "org_id")
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
@pulumi.getter(name="passwordRef")
|
|
126
|
+
def password_ref(self) -> str:
|
|
127
|
+
"""
|
|
128
|
+
Reference to the Harness secret containing the password. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
129
|
+
"""
|
|
130
|
+
return pulumi.get(self, "password_ref")
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
@pulumi.getter(name="projectId")
|
|
134
|
+
def project_id(self) -> Optional[str]:
|
|
135
|
+
"""
|
|
136
|
+
Unique identifier of the project.
|
|
137
|
+
"""
|
|
138
|
+
return pulumi.get(self, "project_id")
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
@pulumi.getter
|
|
142
|
+
def tags(self) -> Sequence[str]:
|
|
143
|
+
"""
|
|
144
|
+
Tags to associate with the resource.
|
|
145
|
+
"""
|
|
146
|
+
return pulumi.get(self, "tags")
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
@pulumi.getter
|
|
150
|
+
def url(self) -> str:
|
|
151
|
+
"""
|
|
152
|
+
URL of the Prometheus server.
|
|
153
|
+
"""
|
|
154
|
+
return pulumi.get(self, "url")
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
@pulumi.getter(name="userName")
|
|
158
|
+
def user_name(self) -> str:
|
|
159
|
+
"""
|
|
160
|
+
User name.
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "user_name")
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class AwaitableGetPrometheusConnectorResult(GetPrometheusConnectorResult):
|
|
166
|
+
# pylint: disable=using-constant-test
|
|
167
|
+
def __await__(self):
|
|
168
|
+
if False:
|
|
169
|
+
yield self
|
|
170
|
+
return GetPrometheusConnectorResult(
|
|
171
|
+
delegate_selectors=self.delegate_selectors,
|
|
172
|
+
description=self.description,
|
|
173
|
+
headers=self.headers,
|
|
174
|
+
id=self.id,
|
|
175
|
+
identifier=self.identifier,
|
|
176
|
+
name=self.name,
|
|
177
|
+
org_id=self.org_id,
|
|
178
|
+
password_ref=self.password_ref,
|
|
179
|
+
project_id=self.project_id,
|
|
180
|
+
tags=self.tags,
|
|
181
|
+
url=self.url,
|
|
182
|
+
user_name=self.user_name)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def get_prometheus_connector(identifier: Optional[str] = None,
|
|
186
|
+
name: Optional[str] = None,
|
|
187
|
+
org_id: Optional[str] = None,
|
|
188
|
+
project_id: Optional[str] = None,
|
|
189
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPrometheusConnectorResult:
|
|
190
|
+
"""
|
|
191
|
+
Datasource for looking up a Prometheus connector.
|
|
192
|
+
|
|
193
|
+
## Example Usage
|
|
194
|
+
|
|
195
|
+
```python
|
|
196
|
+
import pulumi
|
|
197
|
+
import pulumi_harness as harness
|
|
198
|
+
|
|
199
|
+
example = harness.platform.get_prometheus_connector(identifier="identifier")
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param str identifier: Unique identifier of the resource.
|
|
204
|
+
:param str name: Name of the resource.
|
|
205
|
+
:param str org_id: Unique identifier of the organization.
|
|
206
|
+
:param str project_id: Unique identifier of the project.
|
|
207
|
+
"""
|
|
208
|
+
__args__ = dict()
|
|
209
|
+
__args__['identifier'] = identifier
|
|
210
|
+
__args__['name'] = name
|
|
211
|
+
__args__['orgId'] = org_id
|
|
212
|
+
__args__['projectId'] = project_id
|
|
213
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
214
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getPrometheusConnector:getPrometheusConnector', __args__, opts=opts, typ=GetPrometheusConnectorResult).value
|
|
215
|
+
|
|
216
|
+
return AwaitableGetPrometheusConnectorResult(
|
|
217
|
+
delegate_selectors=pulumi.get(__ret__, 'delegate_selectors'),
|
|
218
|
+
description=pulumi.get(__ret__, 'description'),
|
|
219
|
+
headers=pulumi.get(__ret__, 'headers'),
|
|
220
|
+
id=pulumi.get(__ret__, 'id'),
|
|
221
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
222
|
+
name=pulumi.get(__ret__, 'name'),
|
|
223
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
224
|
+
password_ref=pulumi.get(__ret__, 'password_ref'),
|
|
225
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
226
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
227
|
+
url=pulumi.get(__ret__, 'url'),
|
|
228
|
+
user_name=pulumi.get(__ret__, 'user_name'))
|
|
229
|
+
def get_prometheus_connector_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
230
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
231
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
232
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
233
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPrometheusConnectorResult]:
|
|
234
|
+
"""
|
|
235
|
+
Datasource for looking up a Prometheus connector.
|
|
236
|
+
|
|
237
|
+
## Example Usage
|
|
238
|
+
|
|
239
|
+
```python
|
|
240
|
+
import pulumi
|
|
241
|
+
import pulumi_harness as harness
|
|
242
|
+
|
|
243
|
+
example = harness.platform.get_prometheus_connector(identifier="identifier")
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:param str identifier: Unique identifier of the resource.
|
|
248
|
+
:param str name: Name of the resource.
|
|
249
|
+
:param str org_id: Unique identifier of the organization.
|
|
250
|
+
:param str project_id: Unique identifier of the project.
|
|
251
|
+
"""
|
|
252
|
+
__args__ = dict()
|
|
253
|
+
__args__['identifier'] = identifier
|
|
254
|
+
__args__['name'] = name
|
|
255
|
+
__args__['orgId'] = org_id
|
|
256
|
+
__args__['projectId'] = project_id
|
|
257
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
258
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getPrometheusConnector:getPrometheusConnector', __args__, opts=opts, typ=GetPrometheusConnectorResult)
|
|
259
|
+
return __ret__.apply(lambda __response__: GetPrometheusConnectorResult(
|
|
260
|
+
delegate_selectors=pulumi.get(__response__, 'delegate_selectors'),
|
|
261
|
+
description=pulumi.get(__response__, 'description'),
|
|
262
|
+
headers=pulumi.get(__response__, 'headers'),
|
|
263
|
+
id=pulumi.get(__response__, 'id'),
|
|
264
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
265
|
+
name=pulumi.get(__response__, 'name'),
|
|
266
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
267
|
+
password_ref=pulumi.get(__response__, 'password_ref'),
|
|
268
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
269
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
270
|
+
url=pulumi.get(__response__, 'url'),
|
|
271
|
+
user_name=pulumi.get(__response__, 'user_name')))
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
'GetProviderResult',
|
|
19
|
+
'AwaitableGetProviderResult',
|
|
20
|
+
'get_provider',
|
|
21
|
+
'get_provider_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetProviderResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getProvider.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, id=None, identifier=None):
|
|
30
|
+
if id and not isinstance(id, str):
|
|
31
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
32
|
+
pulumi.set(__self__, "id", id)
|
|
33
|
+
if identifier and not isinstance(identifier, str):
|
|
34
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
35
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
@pulumi.getter
|
|
39
|
+
def id(self) -> str:
|
|
40
|
+
"""
|
|
41
|
+
The provider-assigned unique ID for this managed resource.
|
|
42
|
+
"""
|
|
43
|
+
return pulumi.get(self, "id")
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
@pulumi.getter
|
|
47
|
+
def identifier(self) -> str:
|
|
48
|
+
return pulumi.get(self, "identifier")
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class AwaitableGetProviderResult(GetProviderResult):
|
|
52
|
+
# pylint: disable=using-constant-test
|
|
53
|
+
def __await__(self):
|
|
54
|
+
if False:
|
|
55
|
+
yield self
|
|
56
|
+
return GetProviderResult(
|
|
57
|
+
id=self.id,
|
|
58
|
+
identifier=self.identifier)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def get_provider(identifier: Optional[str] = None,
|
|
62
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProviderResult:
|
|
63
|
+
"""
|
|
64
|
+
Use this data source to access information about an existing resource.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['identifier'] = identifier
|
|
68
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
69
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getProvider:getProvider', __args__, opts=opts, typ=GetProviderResult).value
|
|
70
|
+
|
|
71
|
+
return AwaitableGetProviderResult(
|
|
72
|
+
id=pulumi.get(__ret__, 'id'),
|
|
73
|
+
identifier=pulumi.get(__ret__, 'identifier'))
|
|
74
|
+
def get_provider_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
75
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProviderResult]:
|
|
76
|
+
"""
|
|
77
|
+
Use this data source to access information about an existing resource.
|
|
78
|
+
"""
|
|
79
|
+
__args__ = dict()
|
|
80
|
+
__args__['identifier'] = identifier
|
|
81
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
82
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getProvider:getProvider', __args__, opts=opts, typ=GetProviderResult)
|
|
83
|
+
return __ret__.apply(lambda __response__: GetProviderResult(
|
|
84
|
+
id=pulumi.get(__response__, 'id'),
|
|
85
|
+
identifier=pulumi.get(__response__, 'identifier')))
|