diff --git a/class_generator/schema/__resources-mappings.json.gz b/class_generator/schema/__resources-mappings.json.gz index 7efbe7f26c..4ae3678ae2 100644 Binary files a/class_generator/schema/__resources-mappings.json.gz and b/class_generator/schema/__resources-mappings.json.gz differ diff --git a/ocp_resources/llama_stack_distribution.py b/ocp_resources/llama_stack_distribution.py index 2a80917e1c..4fba9dd90c 100644 --- a/ocp_resources/llama_stack_distribution.py +++ b/ocp_resources/llama_stack_distribution.py @@ -8,20 +8,21 @@ class LlamaStackDistribution(NamespacedResource): - """ - No field description from API - """ + """ """ api_group: str = NamespacedResource.ApiGroup.LLAMASTACK_IO def __init__( self, + network: dict[str, Any] | None = None, replicas: int | None = None, server: dict[str, Any] | None = None, **kwargs: Any, ) -> None: r""" Args: + network (dict[str, Any]): Network defines network access controls for the LlamaStack service + replicas (int): No field description from API server (dict[str, Any]): ServerSpec defines the desired state of llama server. @@ -29,10 +30,12 @@ def __init__( """ super().__init__(**kwargs) + self.network = network self.replicas = replicas self.server = server def to_dict(self) -> None: + super().to_dict() if not self.kind_dict and not self.yaml_file: @@ -44,6 +47,9 @@ def to_dict(self) -> None: _spec["server"] = self.server + if self.network is not None: + _spec["network"] = self.network + if self.replicas is not None: _spec["replicas"] = self.replicas