Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified class_generator/schema/__resources-mappings.json.gz
Binary file not shown.
12 changes: 9 additions & 3 deletions ocp_resources/llama_stack_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,34 @@


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.

"""
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:
Expand All @@ -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

Expand Down