truefoundry-sdk 0.1.17rc1__py3-none-any.whl → 0.1.18__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.
Files changed (81) hide show
  1. truefoundry_sdk/applications/types/applications_list_request_device_type_filter.py +12 -0
  2. truefoundry_sdk/applications/types/applications_list_request_lifecycle_stage.py +12 -0
  3. truefoundry_sdk/core/client_wrapper.py +2 -2
  4. truefoundry_sdk/internal/ai_gateway/types/ai_gateway_get_gateway_config_request_type.py +12 -0
  5. truefoundry_sdk/internal/metrics/types/metrics_get_charts_request_filter_entity.py +12 -0
  6. truefoundry_sdk/teams/types/teams_list_request_type.py +17 -1
  7. truefoundry_sdk/types/addon_component_name.py +12 -0
  8. truefoundry_sdk/types/alert_config_resource_type.py +17 -1
  9. truefoundry_sdk/types/alert_severity.py +17 -1
  10. truefoundry_sdk/types/alert_status.py +17 -1
  11. truefoundry_sdk/types/application_lifecycle_stage.py +12 -0
  12. truefoundry_sdk/types/application_type.py +12 -0
  13. truefoundry_sdk/types/artifact_type.py +12 -0
  14. truefoundry_sdk/types/aws_bedrock_guardrail_config_operation.py +17 -1
  15. truefoundry_sdk/types/aws_region.py +12 -0
  16. truefoundry_sdk/types/azure_content_safety_category.py +12 -0
  17. truefoundry_sdk/types/azure_pii_category.py +12 -0
  18. truefoundry_sdk/types/azure_pii_guardrail_config_domain.py +17 -1
  19. truefoundry_sdk/types/base_o_auth2login_jwt_source.py +17 -1
  20. truefoundry_sdk/types/budget_limit_unit.py +12 -0
  21. truefoundry_sdk/types/build_status.py +12 -0
  22. truefoundry_sdk/types/cluster_manifest_cluster_type.py +12 -0
  23. truefoundry_sdk/types/cluster_type.py +12 -0
  24. truefoundry_sdk/types/custom_guardrail_config_operation.py +17 -1
  25. truefoundry_sdk/types/custom_guardrail_config_target.py +17 -1
  26. truefoundry_sdk/types/deployment_status_value.py +12 -0
  27. truefoundry_sdk/types/deployment_transition.py +12 -0
  28. truefoundry_sdk/types/enkrypt_ai_guardrail_config_operation.py +17 -1
  29. truefoundry_sdk/types/environment_optimize_for.py +17 -1
  30. truefoundry_sdk/types/event_chart_category.py +12 -0
  31. truefoundry_sdk/types/fiddler_guard_type.py +12 -0
  32. truefoundry_sdk/types/gateway_request_metadata_filter_operator.py +12 -0
  33. truefoundry_sdk/types/gcp_region.py +12 -0
  34. truefoundry_sdk/types/graph_chart_type.py +12 -0
  35. truefoundry_sdk/types/i_change_operation.py +12 -0
  36. truefoundry_sdk/types/infer_method_name.py +17 -1
  37. truefoundry_sdk/types/job_run_status.py +12 -0
  38. truefoundry_sdk/types/job_runs_sort_by.py +12 -0
  39. truefoundry_sdk/types/library_name.py +12 -0
  40. truefoundry_sdk/types/logs_filter_query_type.py +12 -0
  41. truefoundry_sdk/types/logs_search_filter_type.py +12 -0
  42. truefoundry_sdk/types/logs_search_operator_type.py +17 -1
  43. truefoundry_sdk/types/logs_sorting_direction.py +17 -1
  44. truefoundry_sdk/types/mcp_server_integration_transport.py +17 -1
  45. truefoundry_sdk/types/mcp_server_o_auth2jwt_source.py +17 -1
  46. truefoundry_sdk/types/mime_type.py +12 -0
  47. truefoundry_sdk/types/model_type.py +12 -0
  48. truefoundry_sdk/types/multi_part_upload_storage_provider.py +17 -1
  49. truefoundry_sdk/types/node_selector_capacity_type.py +12 -0
  50. truefoundry_sdk/types/nvidia_miggpu_profile.py +12 -0
  51. truefoundry_sdk/types/operation.py +17 -1
  52. truefoundry_sdk/types/otel_exporter_http_config_encoding.py +17 -1
  53. truefoundry_sdk/types/palo_alto_prisma_airs_guardrail_config_mode.py +17 -1
  54. truefoundry_sdk/types/pangea_guard_type.py +17 -1
  55. truefoundry_sdk/types/pangea_guardrail_config_operation.py +17 -1
  56. truefoundry_sdk/types/param_param_type.py +17 -1
  57. truefoundry_sdk/types/patronus_glider_criteria.py +12 -0
  58. truefoundry_sdk/types/patronus_guardrail_config_target.py +17 -1
  59. truefoundry_sdk/types/patronus_judge_criteria.py +12 -0
  60. truefoundry_sdk/types/policy_entity_types.py +12 -0
  61. truefoundry_sdk/types/policy_manifest_mode.py +12 -0
  62. truefoundry_sdk/types/port_app_protocol.py +12 -0
  63. truefoundry_sdk/types/port_protocol.py +17 -1
  64. truefoundry_sdk/types/prompt_foo_guard_type.py +12 -0
  65. truefoundry_sdk/types/prompt_foo_guardrail_config_operation.py +17 -1
  66. truefoundry_sdk/types/rate_limit_unit.py +12 -0
  67. truefoundry_sdk/types/schedule_concurrency_policy.py +12 -0
  68. truefoundry_sdk/types/self_hosted_model_model_server.py +12 -0
  69. truefoundry_sdk/types/sklearn_serialization_format.py +12 -0
  70. truefoundry_sdk/types/sort_direction.py +17 -1
  71. truefoundry_sdk/types/span_attribute_filter_operator.py +12 -0
  72. truefoundry_sdk/types/span_field_filter_operator.py +12 -0
  73. truefoundry_sdk/types/span_field_filter_span_field_name.py +12 -0
  74. truefoundry_sdk/types/subject_type.py +12 -0
  75. truefoundry_sdk/types/true_foundry_apply_response_action.py +17 -1
  76. truefoundry_sdk/types/user_metadata_tenant_role_managed_by.py +12 -0
  77. truefoundry_sdk/types/user_role_with_resource_resource_type.py +12 -0
  78. truefoundry_sdk/types/xg_boost_serialization_format.py +12 -0
  79. {truefoundry_sdk-0.1.17rc1.dist-info → truefoundry_sdk-0.1.18.dist-info}/METADATA +1 -1
  80. {truefoundry_sdk-0.1.17rc1.dist-info → truefoundry_sdk-0.1.18.dist-info}/RECORD +81 -81
  81. {truefoundry_sdk-0.1.17rc1.dist-info → truefoundry_sdk-0.1.18.dist-info}/WHEEL +0 -0
@@ -14,6 +14,16 @@ class ApplicationsListRequestDeviceTypeFilter(enum.StrEnum):
14
14
  NVIDIA_MIG_GPU = "nvidia_mig_gpu"
15
15
  NVIDIA_TIMESLICING_GPU = "nvidia_timeslicing_gpu"
16
16
  GCP_TPU = "gcp_tpu"
17
+ _UNKNOWN = "__APPLICATIONSLISTREQUESTDEVICETYPEFILTER_UNKNOWN__"
18
+ """
19
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
20
+ """
21
+
22
+ @classmethod
23
+ def _missing_(cls, value: typing.Any) -> "ApplicationsListRequestDeviceTypeFilter":
24
+ unknown = cls._UNKNOWN
25
+ unknown._value_ = value
26
+ return unknown
17
27
 
18
28
  def visit(
19
29
  self,
@@ -23,6 +33,7 @@ class ApplicationsListRequestDeviceTypeFilter(enum.StrEnum):
23
33
  nvidia_mig_gpu: typing.Callable[[], T_Result],
24
34
  nvidia_timeslicing_gpu: typing.Callable[[], T_Result],
25
35
  gcp_tpu: typing.Callable[[], T_Result],
36
+ _unknown_member: typing.Callable[[str], T_Result],
26
37
  ) -> T_Result:
27
38
  if self is ApplicationsListRequestDeviceTypeFilter.CPU:
28
39
  return cpu()
@@ -36,3 +47,4 @@ class ApplicationsListRequestDeviceTypeFilter(enum.StrEnum):
36
47
  return nvidia_timeslicing_gpu()
37
48
  if self is ApplicationsListRequestDeviceTypeFilter.GCP_TPU:
38
49
  return gcp_tpu()
50
+ return _unknown_member(self._value_)
@@ -11,12 +11,23 @@ class ApplicationsListRequestLifecycleStage(enum.StrEnum):
11
11
  ACTIVE = "active"
12
12
  DELETING = "deleting"
13
13
  DELETION_FAILED = "deletion_failed"
14
+ _UNKNOWN = "__APPLICATIONSLISTREQUESTLIFECYCLESTAGE_UNKNOWN__"
15
+ """
16
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
17
+ """
18
+
19
+ @classmethod
20
+ def _missing_(cls, value: typing.Any) -> "ApplicationsListRequestLifecycleStage":
21
+ unknown = cls._UNKNOWN
22
+ unknown._value_ = value
23
+ return unknown
14
24
 
15
25
  def visit(
16
26
  self,
17
27
  active: typing.Callable[[], T_Result],
18
28
  deleting: typing.Callable[[], T_Result],
19
29
  deletion_failed: typing.Callable[[], T_Result],
30
+ _unknown_member: typing.Callable[[str], T_Result],
20
31
  ) -> T_Result:
21
32
  if self is ApplicationsListRequestLifecycleStage.ACTIVE:
22
33
  return active()
@@ -24,3 +35,4 @@ class ApplicationsListRequestLifecycleStage(enum.StrEnum):
24
35
  return deleting()
25
36
  if self is ApplicationsListRequestLifecycleStage.DELETION_FAILED:
26
37
  return deletion_failed()
38
+ return _unknown_member(self._value_)
@@ -22,10 +22,10 @@ class BaseClientWrapper:
22
22
 
23
23
  def get_headers(self) -> typing.Dict[str, str]:
24
24
  headers: typing.Dict[str, str] = {
25
- "User-Agent": "truefoundry-sdk/0.1.17-rc.1",
25
+ "User-Agent": "truefoundry-sdk/0.1.18",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "truefoundry-sdk",
28
- "X-Fern-SDK-Version": "0.1.17-rc.1",
28
+ "X-Fern-SDK-Version": "0.1.18",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["Authorization"] = f"Bearer {self._get_api_key()}"
@@ -14,6 +14,16 @@ class AiGatewayGetGatewayConfigRequestType(enum.StrEnum):
14
14
  GATEWAY_GUARDRAILS_CONFIG = "gateway-guardrails-config"
15
15
  GATEWAY_BUDGET_CONFIG = "gateway-budget-config"
16
16
  GATEWAY_OTEL_CONFIG = "gateway-otel-config"
17
+ _UNKNOWN = "__AIGATEWAYGETGATEWAYCONFIGREQUESTTYPE_UNKNOWN__"
18
+ """
19
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
20
+ """
21
+
22
+ @classmethod
23
+ def _missing_(cls, value: typing.Any) -> "AiGatewayGetGatewayConfigRequestType":
24
+ unknown = cls._UNKNOWN
25
+ unknown._value_ = value
26
+ return unknown
17
27
 
18
28
  def visit(
19
29
  self,
@@ -23,6 +33,7 @@ class AiGatewayGetGatewayConfigRequestType(enum.StrEnum):
23
33
  gateway_guardrails_config: typing.Callable[[], T_Result],
24
34
  gateway_budget_config: typing.Callable[[], T_Result],
25
35
  gateway_otel_config: typing.Callable[[], T_Result],
36
+ _unknown_member: typing.Callable[[str], T_Result],
26
37
  ) -> T_Result:
27
38
  if self is AiGatewayGetGatewayConfigRequestType.GATEWAY_RATE_LIMITING_CONFIG:
28
39
  return gateway_rate_limiting_config()
@@ -36,3 +47,4 @@ class AiGatewayGetGatewayConfigRequestType(enum.StrEnum):
36
47
  return gateway_budget_config()
37
48
  if self is AiGatewayGetGatewayConfigRequestType.GATEWAY_OTEL_CONFIG:
38
49
  return gateway_otel_config()
50
+ return _unknown_member(self._value_)
@@ -13,6 +13,16 @@ class MetricsGetChartsRequestFilterEntity(enum.StrEnum):
13
13
  JOB_RUN = "job-run"
14
14
  EVENT = "event"
15
15
  CLUSTER = "cluster"
16
+ _UNKNOWN = "__METRICSGETCHARTSREQUESTFILTERENTITY_UNKNOWN__"
17
+ """
18
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
19
+ """
20
+
21
+ @classmethod
22
+ def _missing_(cls, value: typing.Any) -> "MetricsGetChartsRequestFilterEntity":
23
+ unknown = cls._UNKNOWN
24
+ unknown._value_ = value
25
+ return unknown
16
26
 
17
27
  def visit(
18
28
  self,
@@ -21,6 +31,7 @@ class MetricsGetChartsRequestFilterEntity(enum.StrEnum):
21
31
  job_run: typing.Callable[[], T_Result],
22
32
  event: typing.Callable[[], T_Result],
23
33
  cluster: typing.Callable[[], T_Result],
34
+ _unknown_member: typing.Callable[[str], T_Result],
24
35
  ) -> T_Result:
25
36
  if self is MetricsGetChartsRequestFilterEntity.APPLICATION:
26
37
  return application()
@@ -32,3 +43,4 @@ class MetricsGetChartsRequestFilterEntity(enum.StrEnum):
32
43
  return event()
33
44
  if self is MetricsGetChartsRequestFilterEntity.CLUSTER:
34
45
  return cluster()
46
+ return _unknown_member(self._value_)
@@ -10,9 +10,25 @@ T_Result = typing.TypeVar("T_Result")
10
10
  class TeamsListRequestType(enum.StrEnum):
11
11
  TEAM = "team"
12
12
  SSO_TEAM = "sso-team"
13
+ _UNKNOWN = "__TEAMSLISTREQUESTTYPE_UNKNOWN__"
14
+ """
15
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
16
+ """
13
17
 
14
- def visit(self, team: typing.Callable[[], T_Result], sso_team: typing.Callable[[], T_Result]) -> T_Result:
18
+ @classmethod
19
+ def _missing_(cls, value: typing.Any) -> "TeamsListRequestType":
20
+ unknown = cls._UNKNOWN
21
+ unknown._value_ = value
22
+ return unknown
23
+
24
+ def visit(
25
+ self,
26
+ team: typing.Callable[[], T_Result],
27
+ sso_team: typing.Callable[[], T_Result],
28
+ _unknown_member: typing.Callable[[str], T_Result],
29
+ ) -> T_Result:
15
30
  if self is TeamsListRequestType.TEAM:
16
31
  return team()
17
32
  if self is TeamsListRequestType.SSO_TEAM:
18
33
  return sso_team()
34
+ return _unknown_member(self._value_)
@@ -34,6 +34,16 @@ class AddonComponentName(enum.StrEnum):
34
34
  TFY_PROMETHEUS_CONFIG = "TFY_PROMETHEUS_CONFIG"
35
35
  SPARK_OPERATOR = "SPARK_OPERATOR"
36
36
  TFY_LOGS = "TFY_LOGS"
37
+ _UNKNOWN = "__ADDONCOMPONENTNAME_UNKNOWN__"
38
+ """
39
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
40
+ """
41
+
42
+ @classmethod
43
+ def _missing_(cls, value: typing.Any) -> "AddonComponentName":
44
+ unknown = cls._UNKNOWN
45
+ unknown._value_ = value
46
+ return unknown
37
47
 
38
48
  def visit(
39
49
  self,
@@ -63,6 +73,7 @@ class AddonComponentName(enum.StrEnum):
63
73
  tfy_prometheus_config: typing.Callable[[], T_Result],
64
74
  spark_operator: typing.Callable[[], T_Result],
65
75
  tfy_logs: typing.Callable[[], T_Result],
76
+ _unknown_member: typing.Callable[[str], T_Result],
66
77
  ) -> T_Result:
67
78
  if self is AddonComponentName.ARGOCD:
68
79
  return argocd()
@@ -116,3 +127,4 @@ class AddonComponentName(enum.StrEnum):
116
127
  return spark_operator()
117
128
  if self is AddonComponentName.TFY_LOGS:
118
129
  return tfy_logs()
130
+ return _unknown_member(self._value_)
@@ -14,9 +14,25 @@ class AlertConfigResourceType(enum.StrEnum):
14
14
 
15
15
  APPLICATION = "application"
16
16
  CLUSTER = "cluster"
17
+ _UNKNOWN = "__ALERTCONFIGRESOURCETYPE_UNKNOWN__"
18
+ """
19
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
20
+ """
21
+
22
+ @classmethod
23
+ def _missing_(cls, value: typing.Any) -> "AlertConfigResourceType":
24
+ unknown = cls._UNKNOWN
25
+ unknown._value_ = value
26
+ return unknown
17
27
 
18
- def visit(self, application: typing.Callable[[], T_Result], cluster: typing.Callable[[], T_Result]) -> T_Result:
28
+ def visit(
29
+ self,
30
+ application: typing.Callable[[], T_Result],
31
+ cluster: typing.Callable[[], T_Result],
32
+ _unknown_member: typing.Callable[[str], T_Result],
33
+ ) -> T_Result:
19
34
  if self is AlertConfigResourceType.APPLICATION:
20
35
  return application()
21
36
  if self is AlertConfigResourceType.CLUSTER:
22
37
  return cluster()
38
+ return _unknown_member(self._value_)
@@ -10,9 +10,25 @@ T_Result = typing.TypeVar("T_Result")
10
10
  class AlertSeverity(enum.StrEnum):
11
11
  WARNING = "warning"
12
12
  CRITICAL = "critical"
13
+ _UNKNOWN = "__ALERTSEVERITY_UNKNOWN__"
14
+ """
15
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
16
+ """
13
17
 
14
- def visit(self, warning: typing.Callable[[], T_Result], critical: typing.Callable[[], T_Result]) -> T_Result:
18
+ @classmethod
19
+ def _missing_(cls, value: typing.Any) -> "AlertSeverity":
20
+ unknown = cls._UNKNOWN
21
+ unknown._value_ = value
22
+ return unknown
23
+
24
+ def visit(
25
+ self,
26
+ warning: typing.Callable[[], T_Result],
27
+ critical: typing.Callable[[], T_Result],
28
+ _unknown_member: typing.Callable[[str], T_Result],
29
+ ) -> T_Result:
15
30
  if self is AlertSeverity.WARNING:
16
31
  return warning()
17
32
  if self is AlertSeverity.CRITICAL:
18
33
  return critical()
34
+ return _unknown_member(self._value_)
@@ -10,9 +10,25 @@ T_Result = typing.TypeVar("T_Result")
10
10
  class AlertStatus(enum.StrEnum):
11
11
  FIRING = "firing"
12
12
  RESOLVED = "resolved"
13
+ _UNKNOWN = "__ALERTSTATUS_UNKNOWN__"
14
+ """
15
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
16
+ """
13
17
 
14
- def visit(self, firing: typing.Callable[[], T_Result], resolved: typing.Callable[[], T_Result]) -> T_Result:
18
+ @classmethod
19
+ def _missing_(cls, value: typing.Any) -> "AlertStatus":
20
+ unknown = cls._UNKNOWN
21
+ unknown._value_ = value
22
+ return unknown
23
+
24
+ def visit(
25
+ self,
26
+ firing: typing.Callable[[], T_Result],
27
+ resolved: typing.Callable[[], T_Result],
28
+ _unknown_member: typing.Callable[[str], T_Result],
29
+ ) -> T_Result:
15
30
  if self is AlertStatus.FIRING:
16
31
  return firing()
17
32
  if self is AlertStatus.RESOLVED:
18
33
  return resolved()
34
+ return _unknown_member(self._value_)
@@ -11,12 +11,23 @@ class ApplicationLifecycleStage(enum.StrEnum):
11
11
  ACTIVE = "active"
12
12
  DELETING = "deleting"
13
13
  DELETION_FAILED = "deletion_failed"
14
+ _UNKNOWN = "__APPLICATIONLIFECYCLESTAGE_UNKNOWN__"
15
+ """
16
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
17
+ """
18
+
19
+ @classmethod
20
+ def _missing_(cls, value: typing.Any) -> "ApplicationLifecycleStage":
21
+ unknown = cls._UNKNOWN
22
+ unknown._value_ = value
23
+ return unknown
14
24
 
15
25
  def visit(
16
26
  self,
17
27
  active: typing.Callable[[], T_Result],
18
28
  deleting: typing.Callable[[], T_Result],
19
29
  deletion_failed: typing.Callable[[], T_Result],
30
+ _unknown_member: typing.Callable[[str], T_Result],
20
31
  ) -> T_Result:
21
32
  if self is ApplicationLifecycleStage.ACTIVE:
22
33
  return active()
@@ -24,3 +35,4 @@ class ApplicationLifecycleStage(enum.StrEnum):
24
35
  return deleting()
25
36
  if self is ApplicationLifecycleStage.DELETION_FAILED:
26
37
  return deletion_failed()
38
+ return _unknown_member(self._value_)
@@ -22,6 +22,16 @@ class ApplicationType(enum.StrEnum):
22
22
  APPLICATION_SET = "application-set"
23
23
  INTERCEPT = "intercept"
24
24
  WORKFLOW = "workflow"
25
+ _UNKNOWN = "__APPLICATIONTYPE_UNKNOWN__"
26
+ """
27
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
28
+ """
29
+
30
+ @classmethod
31
+ def _missing_(cls, value: typing.Any) -> "ApplicationType":
32
+ unknown = cls._UNKNOWN
33
+ unknown._value_ = value
34
+ return unknown
25
35
 
26
36
  def visit(
27
37
  self,
@@ -39,6 +49,7 @@ class ApplicationType(enum.StrEnum):
39
49
  application_set: typing.Callable[[], T_Result],
40
50
  intercept: typing.Callable[[], T_Result],
41
51
  workflow: typing.Callable[[], T_Result],
52
+ _unknown_member: typing.Callable[[str], T_Result],
42
53
  ) -> T_Result:
43
54
  if self is ApplicationType.ASYNC_SERVICE:
44
55
  return async_service()
@@ -68,3 +79,4 @@ class ApplicationType(enum.StrEnum):
68
79
  return intercept()
69
80
  if self is ApplicationType.WORKFLOW:
70
81
  return workflow()
82
+ return _unknown_member(self._value_)
@@ -17,6 +17,16 @@ class ArtifactType(enum.StrEnum):
17
17
  PLOT = "plot"
18
18
  IMAGE = "image"
19
19
  CHAT_PROMPT = "chat_prompt"
20
+ _UNKNOWN = "__ARTIFACTTYPE_UNKNOWN__"
21
+ """
22
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
23
+ """
24
+
25
+ @classmethod
26
+ def _missing_(cls, value: typing.Any) -> "ArtifactType":
27
+ unknown = cls._UNKNOWN
28
+ unknown._value_ = value
29
+ return unknown
20
30
 
21
31
  def visit(
22
32
  self,
@@ -25,6 +35,7 @@ class ArtifactType(enum.StrEnum):
25
35
  plot: typing.Callable[[], T_Result],
26
36
  image: typing.Callable[[], T_Result],
27
37
  chat_prompt: typing.Callable[[], T_Result],
38
+ _unknown_member: typing.Callable[[str], T_Result],
28
39
  ) -> T_Result:
29
40
  if self is ArtifactType.ARTIFACT:
30
41
  return artifact()
@@ -36,3 +47,4 @@ class ArtifactType(enum.StrEnum):
36
47
  return image()
37
48
  if self is ArtifactType.CHAT_PROMPT:
38
49
  return chat_prompt()
50
+ return _unknown_member(self._value_)
@@ -15,9 +15,25 @@ class AwsBedrockGuardrailConfigOperation(enum.StrEnum):
15
15
 
16
16
  VALIDATE = "validate"
17
17
  MUTATE = "mutate"
18
+ _UNKNOWN = "__AWSBEDROCKGUARDRAILCONFIGOPERATION_UNKNOWN__"
19
+ """
20
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
21
+ """
22
+
23
+ @classmethod
24
+ def _missing_(cls, value: typing.Any) -> "AwsBedrockGuardrailConfigOperation":
25
+ unknown = cls._UNKNOWN
26
+ unknown._value_ = value
27
+ return unknown
18
28
 
19
- def visit(self, validate: typing.Callable[[], T_Result], mutate: typing.Callable[[], T_Result]) -> T_Result:
29
+ def visit(
30
+ self,
31
+ validate: typing.Callable[[], T_Result],
32
+ mutate: typing.Callable[[], T_Result],
33
+ _unknown_member: typing.Callable[[str], T_Result],
34
+ ) -> T_Result:
20
35
  if self is AwsBedrockGuardrailConfigOperation.VALIDATE:
21
36
  return validate()
22
37
  if self is AwsBedrockGuardrailConfigOperation.MUTATE:
23
38
  return mutate()
39
+ return _unknown_member(self._value_)
@@ -44,6 +44,16 @@ class AwsRegion(enum.StrEnum):
44
44
  US_GOV_WEST1 = "us-gov-west-1"
45
45
  US_WEST1 = "us-west-1"
46
46
  US_WEST2 = "us-west-2"
47
+ _UNKNOWN = "__AWSREGION_UNKNOWN__"
48
+ """
49
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
50
+ """
51
+
52
+ @classmethod
53
+ def _missing_(cls, value: typing.Any) -> "AwsRegion":
54
+ unknown = cls._UNKNOWN
55
+ unknown._value_ = value
56
+ return unknown
47
57
 
48
58
  def visit(
49
59
  self,
@@ -83,6 +93,7 @@ class AwsRegion(enum.StrEnum):
83
93
  us_gov_west1: typing.Callable[[], T_Result],
84
94
  us_west1: typing.Callable[[], T_Result],
85
95
  us_west2: typing.Callable[[], T_Result],
96
+ _unknown_member: typing.Callable[[str], T_Result],
86
97
  ) -> T_Result:
87
98
  if self is AwsRegion.AF_SOUTH1:
88
99
  return af_south1()
@@ -156,3 +167,4 @@ class AwsRegion(enum.StrEnum):
156
167
  return us_west1()
157
168
  if self is AwsRegion.US_WEST2:
158
169
  return us_west2()
170
+ return _unknown_member(self._value_)
@@ -12,6 +12,16 @@ class AzureContentSafetyCategory(enum.StrEnum):
12
12
  SELF_HARM = "SelfHarm"
13
13
  SEXUAL = "Sexual"
14
14
  VIOLENCE = "Violence"
15
+ _UNKNOWN = "__AZURECONTENTSAFETYCATEGORY_UNKNOWN__"
16
+ """
17
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
18
+ """
19
+
20
+ @classmethod
21
+ def _missing_(cls, value: typing.Any) -> "AzureContentSafetyCategory":
22
+ unknown = cls._UNKNOWN
23
+ unknown._value_ = value
24
+ return unknown
15
25
 
16
26
  def visit(
17
27
  self,
@@ -19,6 +29,7 @@ class AzureContentSafetyCategory(enum.StrEnum):
19
29
  self_harm: typing.Callable[[], T_Result],
20
30
  sexual: typing.Callable[[], T_Result],
21
31
  violence: typing.Callable[[], T_Result],
32
+ _unknown_member: typing.Callable[[str], T_Result],
22
33
  ) -> T_Result:
23
34
  if self is AzureContentSafetyCategory.HATE:
24
35
  return hate()
@@ -28,3 +39,4 @@ class AzureContentSafetyCategory(enum.StrEnum):
28
39
  return sexual()
29
40
  if self is AzureContentSafetyCategory.VIOLENCE:
30
41
  return violence()
42
+ return _unknown_member(self._value_)
@@ -21,6 +21,16 @@ class AzurePiiCategory(enum.StrEnum):
21
21
  BANK_ACCOUNT_NUMBER = "BankAccountNumber"
22
22
  DRIVERS_LICENSE_NUMBER = "DriversLicenseNumber"
23
23
  PASSPORT_NUMBER = "PassportNumber"
24
+ _UNKNOWN = "__AZUREPIICATEGORY_UNKNOWN__"
25
+ """
26
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
27
+ """
28
+
29
+ @classmethod
30
+ def _missing_(cls, value: typing.Any) -> "AzurePiiCategory":
31
+ unknown = cls._UNKNOWN
32
+ unknown._value_ = value
33
+ return unknown
24
34
 
25
35
  def visit(
26
36
  self,
@@ -37,6 +47,7 @@ class AzurePiiCategory(enum.StrEnum):
37
47
  bank_account_number: typing.Callable[[], T_Result],
38
48
  drivers_license_number: typing.Callable[[], T_Result],
39
49
  passport_number: typing.Callable[[], T_Result],
50
+ _unknown_member: typing.Callable[[str], T_Result],
40
51
  ) -> T_Result:
41
52
  if self is AzurePiiCategory.ALL:
42
53
  return all_()
@@ -64,3 +75,4 @@ class AzurePiiCategory(enum.StrEnum):
64
75
  return drivers_license_number()
65
76
  if self is AzurePiiCategory.PASSPORT_NUMBER:
66
77
  return passport_number()
78
+ return _unknown_member(self._value_)
@@ -14,9 +14,25 @@ class AzurePiiGuardrailConfigDomain(enum.StrEnum):
14
14
 
15
15
  NONE = "none"
16
16
  HEALTHCARE = "healthcare"
17
+ _UNKNOWN = "__AZUREPIIGUARDRAILCONFIGDOMAIN_UNKNOWN__"
18
+ """
19
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
20
+ """
21
+
22
+ @classmethod
23
+ def _missing_(cls, value: typing.Any) -> "AzurePiiGuardrailConfigDomain":
24
+ unknown = cls._UNKNOWN
25
+ unknown._value_ = value
26
+ return unknown
17
27
 
18
- def visit(self, none: typing.Callable[[], T_Result], healthcare: typing.Callable[[], T_Result]) -> T_Result:
28
+ def visit(
29
+ self,
30
+ none: typing.Callable[[], T_Result],
31
+ healthcare: typing.Callable[[], T_Result],
32
+ _unknown_member: typing.Callable[[str], T_Result],
33
+ ) -> T_Result:
19
34
  if self is AzurePiiGuardrailConfigDomain.NONE:
20
35
  return none()
21
36
  if self is AzurePiiGuardrailConfigDomain.HEALTHCARE:
22
37
  return healthcare()
38
+ return _unknown_member(self._value_)
@@ -14,9 +14,25 @@ class BaseOAuth2LoginJwtSource(enum.StrEnum):
14
14
 
15
15
  ACCESS_TOKEN = "access_token"
16
16
  ID_TOKEN = "id_token"
17
+ _UNKNOWN = "__BASEOAUTH2LOGINJWTSOURCE_UNKNOWN__"
18
+ """
19
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
20
+ """
21
+
22
+ @classmethod
23
+ def _missing_(cls, value: typing.Any) -> "BaseOAuth2LoginJwtSource":
24
+ unknown = cls._UNKNOWN
25
+ unknown._value_ = value
26
+ return unknown
17
27
 
18
- def visit(self, access_token: typing.Callable[[], T_Result], id_token: typing.Callable[[], T_Result]) -> T_Result:
28
+ def visit(
29
+ self,
30
+ access_token: typing.Callable[[], T_Result],
31
+ id_token: typing.Callable[[], T_Result],
32
+ _unknown_member: typing.Callable[[str], T_Result],
33
+ ) -> T_Result:
19
34
  if self is BaseOAuth2LoginJwtSource.ACCESS_TOKEN:
20
35
  return access_token()
21
36
  if self is BaseOAuth2LoginJwtSource.ID_TOKEN:
22
37
  return id_token()
38
+ return _unknown_member(self._value_)
@@ -17,6 +17,16 @@ class BudgetLimitUnit(enum.StrEnum):
17
17
  COST_PER_WEEK = "cost_per_week"
18
18
  TOKENS_PER_DAY = "tokens_per_day"
19
19
  TOKENS_PER_MONTH = "tokens_per_month"
20
+ _UNKNOWN = "__BUDGETLIMITUNIT_UNKNOWN__"
21
+ """
22
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
23
+ """
24
+
25
+ @classmethod
26
+ def _missing_(cls, value: typing.Any) -> "BudgetLimitUnit":
27
+ unknown = cls._UNKNOWN
28
+ unknown._value_ = value
29
+ return unknown
20
30
 
21
31
  def visit(
22
32
  self,
@@ -25,6 +35,7 @@ class BudgetLimitUnit(enum.StrEnum):
25
35
  cost_per_week: typing.Callable[[], T_Result],
26
36
  tokens_per_day: typing.Callable[[], T_Result],
27
37
  tokens_per_month: typing.Callable[[], T_Result],
38
+ _unknown_member: typing.Callable[[str], T_Result],
28
39
  ) -> T_Result:
29
40
  if self is BudgetLimitUnit.COST_PER_DAY:
30
41
  return cost_per_day()
@@ -36,3 +47,4 @@ class BudgetLimitUnit(enum.StrEnum):
36
47
  return tokens_per_day()
37
48
  if self is BudgetLimitUnit.TOKENS_PER_MONTH:
38
49
  return tokens_per_month()
50
+ return _unknown_member(self._value_)
@@ -11,12 +11,23 @@ class BuildStatus(enum.StrEnum):
11
11
  STARTED = "STARTED"
12
12
  SUCCEEDED = "SUCCEEDED"
13
13
  FAILED = "FAILED"
14
+ _UNKNOWN = "__BUILDSTATUS_UNKNOWN__"
15
+ """
16
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
17
+ """
18
+
19
+ @classmethod
20
+ def _missing_(cls, value: typing.Any) -> "BuildStatus":
21
+ unknown = cls._UNKNOWN
22
+ unknown._value_ = value
23
+ return unknown
14
24
 
15
25
  def visit(
16
26
  self,
17
27
  started: typing.Callable[[], T_Result],
18
28
  succeeded: typing.Callable[[], T_Result],
19
29
  failed: typing.Callable[[], T_Result],
30
+ _unknown_member: typing.Callable[[str], T_Result],
20
31
  ) -> T_Result:
21
32
  if self is BuildStatus.STARTED:
22
33
  return started()
@@ -24,3 +35,4 @@ class BuildStatus(enum.StrEnum):
24
35
  return succeeded()
25
36
  if self is BuildStatus.FAILED:
26
37
  return failed()
38
+ return _unknown_member(self._value_)
@@ -17,6 +17,16 @@ class ClusterManifestClusterType(enum.StrEnum):
17
17
  AZURE_AKS = "azure-aks"
18
18
  GENERIC = "generic"
19
19
  CIVO_TALOS = "civo-talos"
20
+ _UNKNOWN = "__CLUSTERMANIFESTCLUSTERTYPE_UNKNOWN__"
21
+ """
22
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
23
+ """
24
+
25
+ @classmethod
26
+ def _missing_(cls, value: typing.Any) -> "ClusterManifestClusterType":
27
+ unknown = cls._UNKNOWN
28
+ unknown._value_ = value
29
+ return unknown
20
30
 
21
31
  def visit(
22
32
  self,
@@ -25,6 +35,7 @@ class ClusterManifestClusterType(enum.StrEnum):
25
35
  azure_aks: typing.Callable[[], T_Result],
26
36
  generic: typing.Callable[[], T_Result],
27
37
  civo_talos: typing.Callable[[], T_Result],
38
+ _unknown_member: typing.Callable[[str], T_Result],
28
39
  ) -> T_Result:
29
40
  if self is ClusterManifestClusterType.AWS_EKS:
30
41
  return aws_eks()
@@ -36,3 +47,4 @@ class ClusterManifestClusterType(enum.StrEnum):
36
47
  return generic()
37
48
  if self is ClusterManifestClusterType.CIVO_TALOS:
38
49
  return civo_talos()
50
+ return _unknown_member(self._value_)
@@ -13,6 +13,16 @@ class ClusterType(enum.StrEnum):
13
13
  AZURE_AKS = "azure-aks"
14
14
  GENERIC = "generic"
15
15
  CIVO_TALOS = "civo-talos"
16
+ _UNKNOWN = "__CLUSTERTYPE_UNKNOWN__"
17
+ """
18
+ This member is used for forward compatibility. If the value is not recognized by the enum, it will be stored here, and the raw value is accessible through `.value`.
19
+ """
20
+
21
+ @classmethod
22
+ def _missing_(cls, value: typing.Any) -> "ClusterType":
23
+ unknown = cls._UNKNOWN
24
+ unknown._value_ = value
25
+ return unknown
16
26
 
17
27
  def visit(
18
28
  self,
@@ -21,6 +31,7 @@ class ClusterType(enum.StrEnum):
21
31
  azure_aks: typing.Callable[[], T_Result],
22
32
  generic: typing.Callable[[], T_Result],
23
33
  civo_talos: typing.Callable[[], T_Result],
34
+ _unknown_member: typing.Callable[[str], T_Result],
24
35
  ) -> T_Result:
25
36
  if self is ClusterType.AWS_EKS:
26
37
  return aws_eks()
@@ -32,3 +43,4 @@ class ClusterType(enum.StrEnum):
32
43
  return generic()
33
44
  if self is ClusterType.CIVO_TALOS:
34
45
  return civo_talos()
46
+ return _unknown_member(self._value_)