pulumi-harness 0.8.0a1755712204__py3-none-any.whl → 0.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-harness might be problematic. Click here for more details.
- pulumi_harness/__init__.py +75 -0
- pulumi_harness/add_user_to_group.py +4 -0
- pulumi_harness/application.py +4 -0
- pulumi_harness/application_git_sync.py +4 -0
- pulumi_harness/chaos/__init__.py +21 -0
- pulumi_harness/chaos/_inputs.py +2702 -0
- pulumi_harness/chaos/get_hub.py +324 -0
- pulumi_harness/chaos/get_image_registry.py +339 -0
- pulumi_harness/chaos/get_infrastructure_v2.py +684 -0
- pulumi_harness/chaos/get_security_governance_condition.py +261 -0
- pulumi_harness/chaos/get_security_governance_rule.py +261 -0
- pulumi_harness/chaos/hub.py +806 -0
- pulumi_harness/chaos/hub_sync.py +274 -0
- pulumi_harness/chaos/image_registry.py +730 -0
- pulumi_harness/chaos/infrastructure_v2.py +1670 -0
- pulumi_harness/chaos/outputs.py +2276 -0
- pulumi_harness/chaos/security_governance_condition.py +795 -0
- pulumi_harness/chaos/security_governance_rule.py +688 -0
- pulumi_harness/chaos_infrastructure.py +10 -4
- pulumi_harness/cloudprovider/aws.py +4 -0
- pulumi_harness/cloudprovider/azure.py +4 -0
- pulumi_harness/cloudprovider/datacenter.py +4 -0
- pulumi_harness/cloudprovider/kubernetes.py +4 -0
- pulumi_harness/cloudprovider/spot.py +4 -0
- pulumi_harness/cloudprovider/tanzu.py +4 -0
- pulumi_harness/cluster/_inputs.py +540 -0
- pulumi_harness/cluster/get_orchestrator_config.py +46 -6
- pulumi_harness/cluster/orchestrator.py +0 -16
- pulumi_harness/cluster/orchestrator_config.py +253 -5
- pulumi_harness/cluster/outputs.py +394 -0
- pulumi_harness/delegate_approval.py +4 -0
- pulumi_harness/encrypted_text.py +4 -0
- pulumi_harness/environment.py +4 -0
- pulumi_harness/get_current_account.py +3 -3
- pulumi_harness/git_connector.py +4 -0
- pulumi_harness/governance/rule.py +4 -0
- pulumi_harness/governance/rule_enforcement.py +4 -0
- pulumi_harness/infrastructure_definition.py +4 -0
- pulumi_harness/platform/__init__.py +2 -0
- pulumi_harness/platform/_inputs.py +2780 -416
- pulumi_harness/platform/app_dynamics_connector.py +4 -0
- pulumi_harness/platform/artifactory_connector.py +4 -0
- pulumi_harness/platform/aws_cc_connector.py +4 -0
- pulumi_harness/platform/aws_connector.py +11 -7
- pulumi_harness/platform/aws_kms_connector.py +70 -20
- pulumi_harness/platform/aws_secret_manager_connector.py +13 -9
- pulumi_harness/platform/azure_cloud_cost_connector.py +69 -0
- pulumi_harness/platform/azure_cloud_provider_connector.py +4 -0
- pulumi_harness/platform/azure_key_vault_connector.py +8 -0
- pulumi_harness/platform/bitbucket_connector.py +4 -0
- pulumi_harness/platform/connector_azure_artifacts.py +4 -2
- pulumi_harness/platform/connector_azure_repo.py +11 -16
- pulumi_harness/platform/connector_custom_secret_manager.py +51 -156
- pulumi_harness/platform/connector_customhealthsource.py +4 -0
- pulumi_harness/platform/connector_gcp_kms.py +4 -0
- pulumi_harness/platform/connector_jdbc.py +4 -0
- pulumi_harness/platform/connector_pdc.py +13 -13
- pulumi_harness/platform/connector_rancher.py +4 -0
- pulumi_harness/platform/dashboard_folders.py +2 -2
- pulumi_harness/platform/dashboards.py +10 -14
- pulumi_harness/platform/datadog_connector.py +4 -0
- pulumi_harness/platform/db_instance.py +4 -0
- pulumi_harness/platform/db_schema.py +25 -21
- pulumi_harness/platform/default_notification_template_set.py +495 -0
- pulumi_harness/platform/docker_connector.py +4 -4
- pulumi_harness/platform/dynatrace_connector.py +4 -0
- pulumi_harness/platform/elasticsearch_connector.py +19 -15
- pulumi_harness/platform/environment.py +25 -530
- pulumi_harness/platform/environment_clusters_mapping.py +8 -0
- pulumi_harness/platform/environment_group.py +13 -100
- pulumi_harness/platform/environment_service_overrides.py +20 -186
- pulumi_harness/platform/feature_flag_target_group.py +8 -8
- pulumi_harness/platform/file_store_file.py +11 -7
- pulumi_harness/platform/file_store_folder.py +11 -7
- pulumi_harness/platform/filters.py +8 -0
- pulumi_harness/platform/gcp_cloud_cost_connector.py +4 -0
- pulumi_harness/platform/gcp_connector.py +4 -0
- pulumi_harness/platform/gcp_secret_manager_connector.py +6 -92
- pulumi_harness/platform/get_api_key.py +8 -38
- pulumi_harness/platform/get_aws_kms_connector.py +16 -1
- pulumi_harness/platform/get_aws_secret_manager_connector.py +7 -3
- pulumi_harness/platform/get_azure_cloud_cost_connector.py +15 -1
- pulumi_harness/platform/get_connector_azure_repo.py +53 -2
- pulumi_harness/platform/get_connector_custom_secret_manager.py +28 -32
- pulumi_harness/platform/get_connector_pdc.py +3 -3
- pulumi_harness/platform/get_current_account.py +2 -20
- pulumi_harness/platform/get_dashboard_folders.py +16 -5
- pulumi_harness/platform/get_dashboards.py +15 -7
- pulumi_harness/platform/get_db_instance.py +5 -0
- pulumi_harness/platform/get_db_schema.py +12 -15
- pulumi_harness/platform/get_default_notification_template_set.py +244 -0
- pulumi_harness/platform/get_environment.py +5 -0
- pulumi_harness/platform/get_environment_list.py +12 -58
- pulumi_harness/platform/get_environment_service_overrides.py +6 -6
- pulumi_harness/platform/get_filters.py +4 -0
- pulumi_harness/platform/get_gcp_secret_manager_connector.py +4 -0
- pulumi_harness/platform/get_github_connector.py +3 -0
- pulumi_harness/platform/get_gitops_applications.py +8 -0
- pulumi_harness/platform/get_gitops_filters.py +25 -10
- pulumi_harness/platform/get_gitx_webhook.py +3 -3
- pulumi_harness/platform/get_har_registry.py +46 -10
- pulumi_harness/platform/get_iacm_default_pipeline.py +24 -0
- pulumi_harness/platform/get_infra_variable_set.py +34 -25
- pulumi_harness/platform/get_infrastructure.py +5 -0
- pulumi_harness/platform/get_manual_freeze.py +0 -24
- pulumi_harness/platform/get_monitored_service.py +22 -0
- pulumi_harness/platform/get_organization.py +4 -0
- pulumi_harness/platform/get_overrides.py +66 -2
- pulumi_harness/platform/get_pagerduty_connector.py +4 -0
- pulumi_harness/platform/get_pipeline_list.py +18 -63
- pulumi_harness/platform/get_project.py +4 -0
- pulumi_harness/platform/get_project_list.py +18 -63
- pulumi_harness/platform/get_provider.py +11 -2
- pulumi_harness/platform/get_resource_group.py +4 -0
- pulumi_harness/platform/get_role_assignments.py +6 -2
- pulumi_harness/platform/get_roles.py +4 -0
- pulumi_harness/platform/get_secret_file.py +4 -0
- pulumi_harness/platform/get_secret_sshkey.py +4 -0
- pulumi_harness/platform/get_service.py +5 -0
- pulumi_harness/platform/get_service_account.py +4 -0
- pulumi_harness/platform/get_service_list.py +22 -58
- pulumi_harness/platform/get_service_overrides_v2.py +42 -0
- pulumi_harness/platform/get_slo.py +22 -0
- pulumi_harness/platform/get_token.py +2 -0
- pulumi_harness/platform/get_user.py +4 -0
- pulumi_harness/platform/get_usergroup.py +4 -0
- pulumi_harness/platform/get_variables.py +4 -0
- pulumi_harness/platform/get_vault_connector.py +5 -1
- pulumi_harness/platform/get_workspace.py +8 -3
- pulumi_harness/platform/git_connector.py +4 -0
- pulumi_harness/platform/git_ops_agent.py +4 -0
- pulumi_harness/platform/git_ops_applications.py +4 -0
- pulumi_harness/platform/git_ops_cluster.py +51 -0
- pulumi_harness/platform/git_ops_gnupg.py +4 -0
- pulumi_harness/platform/git_ops_repo_cert.py +4 -0
- pulumi_harness/platform/git_ops_repo_cred.py +4 -0
- pulumi_harness/platform/git_ops_repository.py +4 -0
- pulumi_harness/platform/github_connector.py +11 -7
- pulumi_harness/platform/gitlab_connector.py +4 -0
- pulumi_harness/platform/gitops_app_project.py +4 -0
- pulumi_harness/platform/gitops_app_project_mapping.py +4 -0
- pulumi_harness/platform/gitops_applicationset.py +98 -0
- pulumi_harness/platform/gitops_filters.py +51 -179
- pulumi_harness/platform/gitx_webhook.py +4 -0
- pulumi_harness/platform/har_registry.py +42 -43
- pulumi_harness/platform/helm_connector.py +4 -0
- pulumi_harness/platform/iacm_default_pipeline.py +28 -0
- pulumi_harness/platform/infra_module.py +6 -2
- pulumi_harness/platform/infra_variable_set.py +38 -22
- pulumi_harness/platform/infrastructure.py +18 -240
- pulumi_harness/platform/input_set.py +4 -0
- pulumi_harness/platform/jenkins_connector.py +8 -0
- pulumi_harness/platform/jira_connector.py +4 -2
- pulumi_harness/platform/kubernetes_cloud_cost_connector.py +35 -11
- pulumi_harness/platform/kubernetes_connector.py +4 -0
- pulumi_harness/platform/manual_freeze.py +6 -154
- pulumi_harness/platform/monitored_service.py +16 -12
- pulumi_harness/platform/newrelic_connector.py +4 -0
- pulumi_harness/platform/nexus_connector.py +4 -4
- pulumi_harness/platform/notification_rule.py +4 -0
- pulumi_harness/platform/oci_helm_connector.py +4 -0
- pulumi_harness/platform/organization.py +8 -0
- pulumi_harness/platform/outputs.py +2085 -219
- pulumi_harness/platform/overrides.py +48 -2
- pulumi_harness/platform/pagerduty_connector.py +8 -0
- pulumi_harness/platform/pipeline.py +18 -2
- pulumi_harness/platform/pipeline_filters.py +4 -0
- pulumi_harness/platform/policy.py +6 -26
- pulumi_harness/platform/policy_set.py +4 -0
- pulumi_harness/platform/project.py +8 -0
- pulumi_harness/platform/prometheus_connector.py +4 -0
- pulumi_harness/platform/provider.py +4 -2
- pulumi_harness/platform/repo.py +40 -0
- pulumi_harness/platform/resource_group.py +15 -7
- pulumi_harness/platform/role_assignments.py +20 -16
- pulumi_harness/platform/roles.py +8 -0
- pulumi_harness/platform/secret_file.py +8 -0
- pulumi_harness/platform/secret_sshkey.py +6 -2
- pulumi_harness/platform/secret_text.py +78 -0
- pulumi_harness/platform/service.py +13 -494
- pulumi_harness/platform/service_account.py +8 -0
- pulumi_harness/platform/service_now_connector.py +4 -2
- pulumi_harness/platform/service_overrides_v2.py +4 -204
- pulumi_harness/platform/slo.py +12 -18
- pulumi_harness/platform/splunk_connector.py +4 -0
- pulumi_harness/platform/spot_connector.py +4 -0
- pulumi_harness/platform/sumologic_connector.py +4 -0
- pulumi_harness/platform/tas_connector.py +4 -0
- pulumi_harness/platform/template.py +25 -21
- pulumi_harness/platform/template_filters.py +4 -0
- pulumi_harness/platform/terraform_cloud_connector.py +4 -0
- pulumi_harness/platform/token.py +6 -2
- pulumi_harness/platform/triggers.py +8 -0
- pulumi_harness/platform/user.py +13 -9
- pulumi_harness/platform/usergroup.py +71 -7
- pulumi_harness/platform/variables.py +8 -0
- pulumi_harness/platform/vault_connector.py +15 -7
- pulumi_harness/platform/workspace.py +19 -7
- pulumi_harness/platform_api_key.py +6 -66
- pulumi_harness/platform_ccm_filters.py +11 -7
- pulumi_harness/pulumi-plugin.json +1 -1
- pulumi_harness/service/__init__.py +4 -0
- pulumi_harness/service/_inputs.py +1729 -0
- pulumi_harness/service/ami.py +4 -0
- pulumi_harness/service/codedeploy.py +4 -0
- pulumi_harness/service/discovery_agent.py +1211 -0
- pulumi_harness/service/discovery_setting.py +384 -0
- pulumi_harness/service/ecs.py +4 -0
- pulumi_harness/service/get_discovery_agent.py +443 -0
- pulumi_harness/service/get_discovery_setting.py +199 -0
- pulumi_harness/service/helm.py +4 -0
- pulumi_harness/service/kubernetes.py +4 -0
- pulumi_harness/service/lambda_.py +4 -0
- pulumi_harness/service/outputs.py +2367 -117
- pulumi_harness/service/ssh.py +4 -0
- pulumi_harness/service/tanzu.py +4 -0
- pulumi_harness/service/winrm.py +4 -0
- pulumi_harness/ssh_credential.py +4 -0
- pulumi_harness/user.py +4 -0
- pulumi_harness/user_group.py +4 -0
- pulumi_harness/yaml_config.py +4 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/METADATA +1 -1
- pulumi_harness-0.8.1.dist-info/RECORD +357 -0
- pulumi_harness-0.8.0a1755712204.dist-info/RECORD +0 -337
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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
|
+
'GetHubResult',
|
|
19
|
+
'AwaitableGetHubResult',
|
|
20
|
+
'get_hub',
|
|
21
|
+
'get_hub_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetHubResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getHub.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, connector_id=None, created_at=None, description=None, id=None, is_available=None, is_default=None, last_synced_at=None, name=None, org_id=None, project_id=None, repo_branch=None, repo_name=None, tags=None, total_experiments=None, total_faults=None, updated_at=None):
|
|
30
|
+
if connector_id and not isinstance(connector_id, str):
|
|
31
|
+
raise TypeError("Expected argument 'connector_id' to be a str")
|
|
32
|
+
pulumi.set(__self__, "connector_id", connector_id)
|
|
33
|
+
if created_at and not isinstance(created_at, str):
|
|
34
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
35
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
36
|
+
if description and not isinstance(description, str):
|
|
37
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
38
|
+
pulumi.set(__self__, "description", description)
|
|
39
|
+
if id and not isinstance(id, str):
|
|
40
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
41
|
+
pulumi.set(__self__, "id", id)
|
|
42
|
+
if is_available and not isinstance(is_available, bool):
|
|
43
|
+
raise TypeError("Expected argument 'is_available' to be a bool")
|
|
44
|
+
pulumi.set(__self__, "is_available", is_available)
|
|
45
|
+
if is_default and not isinstance(is_default, bool):
|
|
46
|
+
raise TypeError("Expected argument 'is_default' to be a bool")
|
|
47
|
+
pulumi.set(__self__, "is_default", is_default)
|
|
48
|
+
if last_synced_at and not isinstance(last_synced_at, str):
|
|
49
|
+
raise TypeError("Expected argument 'last_synced_at' to be a str")
|
|
50
|
+
pulumi.set(__self__, "last_synced_at", last_synced_at)
|
|
51
|
+
if name and not isinstance(name, str):
|
|
52
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
53
|
+
pulumi.set(__self__, "name", name)
|
|
54
|
+
if org_id and not isinstance(org_id, str):
|
|
55
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
56
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
57
|
+
if project_id and not isinstance(project_id, str):
|
|
58
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
59
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
60
|
+
if repo_branch and not isinstance(repo_branch, str):
|
|
61
|
+
raise TypeError("Expected argument 'repo_branch' to be a str")
|
|
62
|
+
pulumi.set(__self__, "repo_branch", repo_branch)
|
|
63
|
+
if repo_name and not isinstance(repo_name, str):
|
|
64
|
+
raise TypeError("Expected argument 'repo_name' to be a str")
|
|
65
|
+
pulumi.set(__self__, "repo_name", repo_name)
|
|
66
|
+
if tags and not isinstance(tags, list):
|
|
67
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
68
|
+
pulumi.set(__self__, "tags", tags)
|
|
69
|
+
if total_experiments and not isinstance(total_experiments, int):
|
|
70
|
+
raise TypeError("Expected argument 'total_experiments' to be a int")
|
|
71
|
+
pulumi.set(__self__, "total_experiments", total_experiments)
|
|
72
|
+
if total_faults and not isinstance(total_faults, int):
|
|
73
|
+
raise TypeError("Expected argument 'total_faults' to be a int")
|
|
74
|
+
pulumi.set(__self__, "total_faults", total_faults)
|
|
75
|
+
if updated_at and not isinstance(updated_at, str):
|
|
76
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
77
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
78
|
+
|
|
79
|
+
@_builtins.property
|
|
80
|
+
@pulumi.getter(name="connectorId")
|
|
81
|
+
def connector_id(self) -> _builtins.str:
|
|
82
|
+
"""
|
|
83
|
+
ID of the Git connector
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "connector_id")
|
|
86
|
+
|
|
87
|
+
@_builtins.property
|
|
88
|
+
@pulumi.getter(name="createdAt")
|
|
89
|
+
def created_at(self) -> _builtins.str:
|
|
90
|
+
"""
|
|
91
|
+
Creation timestamp
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "created_at")
|
|
94
|
+
|
|
95
|
+
@_builtins.property
|
|
96
|
+
@pulumi.getter
|
|
97
|
+
def description(self) -> _builtins.str:
|
|
98
|
+
"""
|
|
99
|
+
Description of the chaos hub
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "description")
|
|
102
|
+
|
|
103
|
+
@_builtins.property
|
|
104
|
+
@pulumi.getter
|
|
105
|
+
def id(self) -> _builtins.str:
|
|
106
|
+
"""
|
|
107
|
+
The provider-assigned unique ID for this managed resource.
|
|
108
|
+
"""
|
|
109
|
+
return pulumi.get(self, "id")
|
|
110
|
+
|
|
111
|
+
@_builtins.property
|
|
112
|
+
@pulumi.getter(name="isAvailable")
|
|
113
|
+
def is_available(self) -> _builtins.bool:
|
|
114
|
+
"""
|
|
115
|
+
Whether the chaos hub is available
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "is_available")
|
|
118
|
+
|
|
119
|
+
@_builtins.property
|
|
120
|
+
@pulumi.getter(name="isDefault")
|
|
121
|
+
def is_default(self) -> _builtins.bool:
|
|
122
|
+
"""
|
|
123
|
+
Whether this is the default chaos hub
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "is_default")
|
|
126
|
+
|
|
127
|
+
@_builtins.property
|
|
128
|
+
@pulumi.getter(name="lastSyncedAt")
|
|
129
|
+
def last_synced_at(self) -> _builtins.str:
|
|
130
|
+
"""
|
|
131
|
+
Timestamp of the last sync
|
|
132
|
+
"""
|
|
133
|
+
return pulumi.get(self, "last_synced_at")
|
|
134
|
+
|
|
135
|
+
@_builtins.property
|
|
136
|
+
@pulumi.getter
|
|
137
|
+
def name(self) -> _builtins.str:
|
|
138
|
+
"""
|
|
139
|
+
Name of the chaos hub
|
|
140
|
+
"""
|
|
141
|
+
return pulumi.get(self, "name")
|
|
142
|
+
|
|
143
|
+
@_builtins.property
|
|
144
|
+
@pulumi.getter(name="orgId")
|
|
145
|
+
def org_id(self) -> Optional[_builtins.str]:
|
|
146
|
+
"""
|
|
147
|
+
The organization ID of the chaos hub
|
|
148
|
+
"""
|
|
149
|
+
return pulumi.get(self, "org_id")
|
|
150
|
+
|
|
151
|
+
@_builtins.property
|
|
152
|
+
@pulumi.getter(name="projectId")
|
|
153
|
+
def project_id(self) -> Optional[_builtins.str]:
|
|
154
|
+
"""
|
|
155
|
+
The project ID of the chaos hub
|
|
156
|
+
"""
|
|
157
|
+
return pulumi.get(self, "project_id")
|
|
158
|
+
|
|
159
|
+
@_builtins.property
|
|
160
|
+
@pulumi.getter(name="repoBranch")
|
|
161
|
+
def repo_branch(self) -> _builtins.str:
|
|
162
|
+
"""
|
|
163
|
+
Git repository branch
|
|
164
|
+
"""
|
|
165
|
+
return pulumi.get(self, "repo_branch")
|
|
166
|
+
|
|
167
|
+
@_builtins.property
|
|
168
|
+
@pulumi.getter(name="repoName")
|
|
169
|
+
def repo_name(self) -> _builtins.str:
|
|
170
|
+
"""
|
|
171
|
+
Name of the Git repository
|
|
172
|
+
"""
|
|
173
|
+
return pulumi.get(self, "repo_name")
|
|
174
|
+
|
|
175
|
+
@_builtins.property
|
|
176
|
+
@pulumi.getter
|
|
177
|
+
def tags(self) -> Sequence[_builtins.str]:
|
|
178
|
+
"""
|
|
179
|
+
Tags associated with the chaos hub
|
|
180
|
+
"""
|
|
181
|
+
return pulumi.get(self, "tags")
|
|
182
|
+
|
|
183
|
+
@_builtins.property
|
|
184
|
+
@pulumi.getter(name="totalExperiments")
|
|
185
|
+
def total_experiments(self) -> _builtins.int:
|
|
186
|
+
"""
|
|
187
|
+
Total number of experiments in the hub
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "total_experiments")
|
|
190
|
+
|
|
191
|
+
@_builtins.property
|
|
192
|
+
@pulumi.getter(name="totalFaults")
|
|
193
|
+
def total_faults(self) -> _builtins.int:
|
|
194
|
+
"""
|
|
195
|
+
Total number of faults in the hub
|
|
196
|
+
"""
|
|
197
|
+
return pulumi.get(self, "total_faults")
|
|
198
|
+
|
|
199
|
+
@_builtins.property
|
|
200
|
+
@pulumi.getter(name="updatedAt")
|
|
201
|
+
def updated_at(self) -> _builtins.str:
|
|
202
|
+
"""
|
|
203
|
+
Last update timestamp
|
|
204
|
+
"""
|
|
205
|
+
return pulumi.get(self, "updated_at")
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
class AwaitableGetHubResult(GetHubResult):
|
|
209
|
+
# pylint: disable=using-constant-test
|
|
210
|
+
def __await__(self):
|
|
211
|
+
if False:
|
|
212
|
+
yield self
|
|
213
|
+
return GetHubResult(
|
|
214
|
+
connector_id=self.connector_id,
|
|
215
|
+
created_at=self.created_at,
|
|
216
|
+
description=self.description,
|
|
217
|
+
id=self.id,
|
|
218
|
+
is_available=self.is_available,
|
|
219
|
+
is_default=self.is_default,
|
|
220
|
+
last_synced_at=self.last_synced_at,
|
|
221
|
+
name=self.name,
|
|
222
|
+
org_id=self.org_id,
|
|
223
|
+
project_id=self.project_id,
|
|
224
|
+
repo_branch=self.repo_branch,
|
|
225
|
+
repo_name=self.repo_name,
|
|
226
|
+
tags=self.tags,
|
|
227
|
+
total_experiments=self.total_experiments,
|
|
228
|
+
total_faults=self.total_faults,
|
|
229
|
+
updated_at=self.updated_at)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def get_hub(name: Optional[_builtins.str] = None,
|
|
233
|
+
org_id: Optional[_builtins.str] = None,
|
|
234
|
+
project_id: Optional[_builtins.str] = None,
|
|
235
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHubResult:
|
|
236
|
+
"""
|
|
237
|
+
Data source for retrieving a Harness Chaos Hub
|
|
238
|
+
|
|
239
|
+
## Example Usage
|
|
240
|
+
|
|
241
|
+
```python
|
|
242
|
+
import pulumi
|
|
243
|
+
import pulumi_harness as harness
|
|
244
|
+
|
|
245
|
+
example = harness.chaos.get_hub(name="<name>",
|
|
246
|
+
org_id="<org_id>",
|
|
247
|
+
project_id="<project_id>")
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
:param _builtins.str name: Name of the chaos hub
|
|
252
|
+
:param _builtins.str org_id: The organization ID of the chaos hub
|
|
253
|
+
:param _builtins.str project_id: The project ID of the chaos hub
|
|
254
|
+
"""
|
|
255
|
+
__args__ = dict()
|
|
256
|
+
__args__['name'] = name
|
|
257
|
+
__args__['orgId'] = org_id
|
|
258
|
+
__args__['projectId'] = project_id
|
|
259
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
260
|
+
__ret__ = pulumi.runtime.invoke('harness:chaos/getHub:getHub', __args__, opts=opts, typ=GetHubResult).value
|
|
261
|
+
|
|
262
|
+
return AwaitableGetHubResult(
|
|
263
|
+
connector_id=pulumi.get(__ret__, 'connector_id'),
|
|
264
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
265
|
+
description=pulumi.get(__ret__, 'description'),
|
|
266
|
+
id=pulumi.get(__ret__, 'id'),
|
|
267
|
+
is_available=pulumi.get(__ret__, 'is_available'),
|
|
268
|
+
is_default=pulumi.get(__ret__, 'is_default'),
|
|
269
|
+
last_synced_at=pulumi.get(__ret__, 'last_synced_at'),
|
|
270
|
+
name=pulumi.get(__ret__, 'name'),
|
|
271
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
272
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
273
|
+
repo_branch=pulumi.get(__ret__, 'repo_branch'),
|
|
274
|
+
repo_name=pulumi.get(__ret__, 'repo_name'),
|
|
275
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
276
|
+
total_experiments=pulumi.get(__ret__, 'total_experiments'),
|
|
277
|
+
total_faults=pulumi.get(__ret__, 'total_faults'),
|
|
278
|
+
updated_at=pulumi.get(__ret__, 'updated_at'))
|
|
279
|
+
def get_hub_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
280
|
+
org_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
281
|
+
project_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
282
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetHubResult]:
|
|
283
|
+
"""
|
|
284
|
+
Data source for retrieving a Harness Chaos Hub
|
|
285
|
+
|
|
286
|
+
## Example Usage
|
|
287
|
+
|
|
288
|
+
```python
|
|
289
|
+
import pulumi
|
|
290
|
+
import pulumi_harness as harness
|
|
291
|
+
|
|
292
|
+
example = harness.chaos.get_hub(name="<name>",
|
|
293
|
+
org_id="<org_id>",
|
|
294
|
+
project_id="<project_id>")
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
:param _builtins.str name: Name of the chaos hub
|
|
299
|
+
:param _builtins.str org_id: The organization ID of the chaos hub
|
|
300
|
+
:param _builtins.str project_id: The project ID of the chaos hub
|
|
301
|
+
"""
|
|
302
|
+
__args__ = dict()
|
|
303
|
+
__args__['name'] = name
|
|
304
|
+
__args__['orgId'] = org_id
|
|
305
|
+
__args__['projectId'] = project_id
|
|
306
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
307
|
+
__ret__ = pulumi.runtime.invoke_output('harness:chaos/getHub:getHub', __args__, opts=opts, typ=GetHubResult)
|
|
308
|
+
return __ret__.apply(lambda __response__: GetHubResult(
|
|
309
|
+
connector_id=pulumi.get(__response__, 'connector_id'),
|
|
310
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
311
|
+
description=pulumi.get(__response__, 'description'),
|
|
312
|
+
id=pulumi.get(__response__, 'id'),
|
|
313
|
+
is_available=pulumi.get(__response__, 'is_available'),
|
|
314
|
+
is_default=pulumi.get(__response__, 'is_default'),
|
|
315
|
+
last_synced_at=pulumi.get(__response__, 'last_synced_at'),
|
|
316
|
+
name=pulumi.get(__response__, 'name'),
|
|
317
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
318
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
319
|
+
repo_branch=pulumi.get(__response__, 'repo_branch'),
|
|
320
|
+
repo_name=pulumi.get(__response__, 'repo_name'),
|
|
321
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
322
|
+
total_experiments=pulumi.get(__response__, 'total_experiments'),
|
|
323
|
+
total_faults=pulumi.get(__response__, 'total_faults'),
|
|
324
|
+
updated_at=pulumi.get(__response__, 'updated_at')))
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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
|
+
'GetImageRegistryResult',
|
|
20
|
+
'AwaitableGetImageRegistryResult',
|
|
21
|
+
'get_image_registry',
|
|
22
|
+
'get_image_registry_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetImageRegistryResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getImageRegistry.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, check_override=None, created_at=None, custom_images=None, id=None, infra_id=None, is_default=None, is_override_allowed=None, is_private=None, org_id=None, override_blocked_by_scope=None, project_id=None, registry_account=None, registry_server=None, secret_name=None, updated_at=None, use_custom_images=None):
|
|
31
|
+
if check_override and not isinstance(check_override, bool):
|
|
32
|
+
raise TypeError("Expected argument 'check_override' to be a bool")
|
|
33
|
+
pulumi.set(__self__, "check_override", check_override)
|
|
34
|
+
if created_at and not isinstance(created_at, str):
|
|
35
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
36
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
37
|
+
if custom_images and not isinstance(custom_images, list):
|
|
38
|
+
raise TypeError("Expected argument 'custom_images' to be a list")
|
|
39
|
+
pulumi.set(__self__, "custom_images", custom_images)
|
|
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 infra_id and not isinstance(infra_id, str):
|
|
44
|
+
raise TypeError("Expected argument 'infra_id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "infra_id", infra_id)
|
|
46
|
+
if is_default and not isinstance(is_default, bool):
|
|
47
|
+
raise TypeError("Expected argument 'is_default' to be a bool")
|
|
48
|
+
pulumi.set(__self__, "is_default", is_default)
|
|
49
|
+
if is_override_allowed and not isinstance(is_override_allowed, bool):
|
|
50
|
+
raise TypeError("Expected argument 'is_override_allowed' to be a bool")
|
|
51
|
+
pulumi.set(__self__, "is_override_allowed", is_override_allowed)
|
|
52
|
+
if is_private and not isinstance(is_private, bool):
|
|
53
|
+
raise TypeError("Expected argument 'is_private' to be a bool")
|
|
54
|
+
pulumi.set(__self__, "is_private", is_private)
|
|
55
|
+
if org_id and not isinstance(org_id, str):
|
|
56
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
57
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
58
|
+
if override_blocked_by_scope and not isinstance(override_blocked_by_scope, str):
|
|
59
|
+
raise TypeError("Expected argument 'override_blocked_by_scope' to be a str")
|
|
60
|
+
pulumi.set(__self__, "override_blocked_by_scope", override_blocked_by_scope)
|
|
61
|
+
if project_id and not isinstance(project_id, str):
|
|
62
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
63
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
64
|
+
if registry_account and not isinstance(registry_account, str):
|
|
65
|
+
raise TypeError("Expected argument 'registry_account' to be a str")
|
|
66
|
+
pulumi.set(__self__, "registry_account", registry_account)
|
|
67
|
+
if registry_server and not isinstance(registry_server, str):
|
|
68
|
+
raise TypeError("Expected argument 'registry_server' to be a str")
|
|
69
|
+
pulumi.set(__self__, "registry_server", registry_server)
|
|
70
|
+
if secret_name and not isinstance(secret_name, str):
|
|
71
|
+
raise TypeError("Expected argument 'secret_name' to be a str")
|
|
72
|
+
pulumi.set(__self__, "secret_name", secret_name)
|
|
73
|
+
if updated_at and not isinstance(updated_at, str):
|
|
74
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
75
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
76
|
+
if use_custom_images and not isinstance(use_custom_images, bool):
|
|
77
|
+
raise TypeError("Expected argument 'use_custom_images' to be a bool")
|
|
78
|
+
pulumi.set(__self__, "use_custom_images", use_custom_images)
|
|
79
|
+
|
|
80
|
+
@_builtins.property
|
|
81
|
+
@pulumi.getter(name="checkOverride")
|
|
82
|
+
def check_override(self) -> Optional[_builtins.bool]:
|
|
83
|
+
"""
|
|
84
|
+
Whether to check if override is allowed
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "check_override")
|
|
87
|
+
|
|
88
|
+
@_builtins.property
|
|
89
|
+
@pulumi.getter(name="createdAt")
|
|
90
|
+
def created_at(self) -> _builtins.str:
|
|
91
|
+
"""
|
|
92
|
+
Creation timestamp
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "created_at")
|
|
95
|
+
|
|
96
|
+
@_builtins.property
|
|
97
|
+
@pulumi.getter(name="customImages")
|
|
98
|
+
def custom_images(self) -> Sequence['outputs.GetImageRegistryCustomImageResult']:
|
|
99
|
+
"""
|
|
100
|
+
Custom images configuration
|
|
101
|
+
"""
|
|
102
|
+
return pulumi.get(self, "custom_images")
|
|
103
|
+
|
|
104
|
+
@_builtins.property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def id(self) -> _builtins.str:
|
|
107
|
+
"""
|
|
108
|
+
The provider-assigned unique ID for this managed resource.
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "id")
|
|
111
|
+
|
|
112
|
+
@_builtins.property
|
|
113
|
+
@pulumi.getter(name="infraId")
|
|
114
|
+
def infra_id(self) -> Optional[_builtins.str]:
|
|
115
|
+
"""
|
|
116
|
+
The infrastructure ID to set up the image registry
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "infra_id")
|
|
119
|
+
|
|
120
|
+
@_builtins.property
|
|
121
|
+
@pulumi.getter(name="isDefault")
|
|
122
|
+
def is_default(self) -> _builtins.bool:
|
|
123
|
+
"""
|
|
124
|
+
Whether this is the default registry
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "is_default")
|
|
127
|
+
|
|
128
|
+
@_builtins.property
|
|
129
|
+
@pulumi.getter(name="isOverrideAllowed")
|
|
130
|
+
def is_override_allowed(self) -> _builtins.bool:
|
|
131
|
+
"""
|
|
132
|
+
Whether override is allowed for this registry
|
|
133
|
+
"""
|
|
134
|
+
return pulumi.get(self, "is_override_allowed")
|
|
135
|
+
|
|
136
|
+
@_builtins.property
|
|
137
|
+
@pulumi.getter(name="isPrivate")
|
|
138
|
+
def is_private(self) -> _builtins.bool:
|
|
139
|
+
"""
|
|
140
|
+
Whether the registry is private
|
|
141
|
+
"""
|
|
142
|
+
return pulumi.get(self, "is_private")
|
|
143
|
+
|
|
144
|
+
@_builtins.property
|
|
145
|
+
@pulumi.getter(name="orgId")
|
|
146
|
+
def org_id(self) -> Optional[_builtins.str]:
|
|
147
|
+
"""
|
|
148
|
+
The organization ID of the image registry
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "org_id")
|
|
151
|
+
|
|
152
|
+
@_builtins.property
|
|
153
|
+
@pulumi.getter(name="overrideBlockedByScope")
|
|
154
|
+
def override_blocked_by_scope(self) -> _builtins.str:
|
|
155
|
+
"""
|
|
156
|
+
Indicates if override is blocked by scope (only populated if check_override is true)
|
|
157
|
+
"""
|
|
158
|
+
return pulumi.get(self, "override_blocked_by_scope")
|
|
159
|
+
|
|
160
|
+
@_builtins.property
|
|
161
|
+
@pulumi.getter(name="projectId")
|
|
162
|
+
def project_id(self) -> Optional[_builtins.str]:
|
|
163
|
+
"""
|
|
164
|
+
The project ID of the image registry
|
|
165
|
+
"""
|
|
166
|
+
return pulumi.get(self, "project_id")
|
|
167
|
+
|
|
168
|
+
@_builtins.property
|
|
169
|
+
@pulumi.getter(name="registryAccount")
|
|
170
|
+
def registry_account(self) -> _builtins.str:
|
|
171
|
+
"""
|
|
172
|
+
The registry account name
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "registry_account")
|
|
175
|
+
|
|
176
|
+
@_builtins.property
|
|
177
|
+
@pulumi.getter(name="registryServer")
|
|
178
|
+
def registry_server(self) -> _builtins.str:
|
|
179
|
+
"""
|
|
180
|
+
The registry server URL
|
|
181
|
+
"""
|
|
182
|
+
return pulumi.get(self, "registry_server")
|
|
183
|
+
|
|
184
|
+
@_builtins.property
|
|
185
|
+
@pulumi.getter(name="secretName")
|
|
186
|
+
def secret_name(self) -> _builtins.str:
|
|
187
|
+
"""
|
|
188
|
+
The name of the secret for authentication
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "secret_name")
|
|
191
|
+
|
|
192
|
+
@_builtins.property
|
|
193
|
+
@pulumi.getter(name="updatedAt")
|
|
194
|
+
def updated_at(self) -> _builtins.str:
|
|
195
|
+
"""
|
|
196
|
+
Last update timestamp
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "updated_at")
|
|
199
|
+
|
|
200
|
+
@_builtins.property
|
|
201
|
+
@pulumi.getter(name="useCustomImages")
|
|
202
|
+
def use_custom_images(self) -> _builtins.bool:
|
|
203
|
+
"""
|
|
204
|
+
Whether custom images are used
|
|
205
|
+
"""
|
|
206
|
+
return pulumi.get(self, "use_custom_images")
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
class AwaitableGetImageRegistryResult(GetImageRegistryResult):
|
|
210
|
+
# pylint: disable=using-constant-test
|
|
211
|
+
def __await__(self):
|
|
212
|
+
if False:
|
|
213
|
+
yield self
|
|
214
|
+
return GetImageRegistryResult(
|
|
215
|
+
check_override=self.check_override,
|
|
216
|
+
created_at=self.created_at,
|
|
217
|
+
custom_images=self.custom_images,
|
|
218
|
+
id=self.id,
|
|
219
|
+
infra_id=self.infra_id,
|
|
220
|
+
is_default=self.is_default,
|
|
221
|
+
is_override_allowed=self.is_override_allowed,
|
|
222
|
+
is_private=self.is_private,
|
|
223
|
+
org_id=self.org_id,
|
|
224
|
+
override_blocked_by_scope=self.override_blocked_by_scope,
|
|
225
|
+
project_id=self.project_id,
|
|
226
|
+
registry_account=self.registry_account,
|
|
227
|
+
registry_server=self.registry_server,
|
|
228
|
+
secret_name=self.secret_name,
|
|
229
|
+
updated_at=self.updated_at,
|
|
230
|
+
use_custom_images=self.use_custom_images)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def get_image_registry(check_override: Optional[_builtins.bool] = None,
|
|
234
|
+
infra_id: Optional[_builtins.str] = None,
|
|
235
|
+
org_id: Optional[_builtins.str] = None,
|
|
236
|
+
project_id: Optional[_builtins.str] = None,
|
|
237
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetImageRegistryResult:
|
|
238
|
+
"""
|
|
239
|
+
Data source for retrieving a Harness Chaos Image Registry and checking override status
|
|
240
|
+
|
|
241
|
+
## Example Usage
|
|
242
|
+
|
|
243
|
+
```python
|
|
244
|
+
import pulumi
|
|
245
|
+
import pulumi_harness as harness
|
|
246
|
+
|
|
247
|
+
# Data source to verify the registry
|
|
248
|
+
example = harness.chaos.get_image_registry(org_id="<org_id>",
|
|
249
|
+
project_id="<project_id>")
|
|
250
|
+
# Example of checking override status
|
|
251
|
+
override_check = harness.chaos.get_image_registry(org_id="<org_id>",
|
|
252
|
+
project_id="<project_id>",
|
|
253
|
+
check_override=True)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
:param _builtins.bool check_override: Whether to check if override is allowed
|
|
258
|
+
:param _builtins.str infra_id: The infrastructure ID to set up the image registry
|
|
259
|
+
:param _builtins.str org_id: The organization ID of the image registry
|
|
260
|
+
:param _builtins.str project_id: The project ID of the image registry
|
|
261
|
+
"""
|
|
262
|
+
__args__ = dict()
|
|
263
|
+
__args__['checkOverride'] = check_override
|
|
264
|
+
__args__['infraId'] = infra_id
|
|
265
|
+
__args__['orgId'] = org_id
|
|
266
|
+
__args__['projectId'] = project_id
|
|
267
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
268
|
+
__ret__ = pulumi.runtime.invoke('harness:chaos/getImageRegistry:getImageRegistry', __args__, opts=opts, typ=GetImageRegistryResult).value
|
|
269
|
+
|
|
270
|
+
return AwaitableGetImageRegistryResult(
|
|
271
|
+
check_override=pulumi.get(__ret__, 'check_override'),
|
|
272
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
273
|
+
custom_images=pulumi.get(__ret__, 'custom_images'),
|
|
274
|
+
id=pulumi.get(__ret__, 'id'),
|
|
275
|
+
infra_id=pulumi.get(__ret__, 'infra_id'),
|
|
276
|
+
is_default=pulumi.get(__ret__, 'is_default'),
|
|
277
|
+
is_override_allowed=pulumi.get(__ret__, 'is_override_allowed'),
|
|
278
|
+
is_private=pulumi.get(__ret__, 'is_private'),
|
|
279
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
280
|
+
override_blocked_by_scope=pulumi.get(__ret__, 'override_blocked_by_scope'),
|
|
281
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
282
|
+
registry_account=pulumi.get(__ret__, 'registry_account'),
|
|
283
|
+
registry_server=pulumi.get(__ret__, 'registry_server'),
|
|
284
|
+
secret_name=pulumi.get(__ret__, 'secret_name'),
|
|
285
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
286
|
+
use_custom_images=pulumi.get(__ret__, 'use_custom_images'))
|
|
287
|
+
def get_image_registry_output(check_override: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
288
|
+
infra_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
289
|
+
org_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
290
|
+
project_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
291
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetImageRegistryResult]:
|
|
292
|
+
"""
|
|
293
|
+
Data source for retrieving a Harness Chaos Image Registry and checking override status
|
|
294
|
+
|
|
295
|
+
## Example Usage
|
|
296
|
+
|
|
297
|
+
```python
|
|
298
|
+
import pulumi
|
|
299
|
+
import pulumi_harness as harness
|
|
300
|
+
|
|
301
|
+
# Data source to verify the registry
|
|
302
|
+
example = harness.chaos.get_image_registry(org_id="<org_id>",
|
|
303
|
+
project_id="<project_id>")
|
|
304
|
+
# Example of checking override status
|
|
305
|
+
override_check = harness.chaos.get_image_registry(org_id="<org_id>",
|
|
306
|
+
project_id="<project_id>",
|
|
307
|
+
check_override=True)
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
:param _builtins.bool check_override: Whether to check if override is allowed
|
|
312
|
+
:param _builtins.str infra_id: The infrastructure ID to set up the image registry
|
|
313
|
+
:param _builtins.str org_id: The organization ID of the image registry
|
|
314
|
+
:param _builtins.str project_id: The project ID of the image registry
|
|
315
|
+
"""
|
|
316
|
+
__args__ = dict()
|
|
317
|
+
__args__['checkOverride'] = check_override
|
|
318
|
+
__args__['infraId'] = infra_id
|
|
319
|
+
__args__['orgId'] = org_id
|
|
320
|
+
__args__['projectId'] = project_id
|
|
321
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
322
|
+
__ret__ = pulumi.runtime.invoke_output('harness:chaos/getImageRegistry:getImageRegistry', __args__, opts=opts, typ=GetImageRegistryResult)
|
|
323
|
+
return __ret__.apply(lambda __response__: GetImageRegistryResult(
|
|
324
|
+
check_override=pulumi.get(__response__, 'check_override'),
|
|
325
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
326
|
+
custom_images=pulumi.get(__response__, 'custom_images'),
|
|
327
|
+
id=pulumi.get(__response__, 'id'),
|
|
328
|
+
infra_id=pulumi.get(__response__, 'infra_id'),
|
|
329
|
+
is_default=pulumi.get(__response__, 'is_default'),
|
|
330
|
+
is_override_allowed=pulumi.get(__response__, 'is_override_allowed'),
|
|
331
|
+
is_private=pulumi.get(__response__, 'is_private'),
|
|
332
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
333
|
+
override_blocked_by_scope=pulumi.get(__response__, 'override_blocked_by_scope'),
|
|
334
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
335
|
+
registry_account=pulumi.get(__response__, 'registry_account'),
|
|
336
|
+
registry_server=pulumi.get(__response__, 'registry_server'),
|
|
337
|
+
secret_name=pulumi.get(__response__, 'secret_name'),
|
|
338
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
339
|
+
use_custom_images=pulumi.get(__response__, 'use_custom_images')))
|