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.
204 changes: 204 additions & 0 deletions class_generator/schema/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -22239,6 +22239,210 @@
}
]
},
"maas.opendatahub.io/v1alpha1/MaaSModelRef": {
"description": "MaaSModelRef is the Schema for the maasmodelrefs API",
"namespaced": true,
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
}
],
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
},
"spec": {
"description": "MaaSModelSpec defines the desired state of MaaSModelRef",
"properties": {
"modelRef": {
"description": "ModelRef references the actual model endpoint",
"properties": {
"kind": {
"description": "Kind determines which fields are available",
"enum": [
"LLMInferenceService",
"ExternalModel"
],
"type": "string"
},
"name": {
"description": "Name is the name of the model resource",
"type": "string"
},
"namespace": {
"description": "Namespace is the namespace of the model resource\nIf not specified, defaults to the same namespace as MaaSModelRef",
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
}
},
"required": [
"modelRef"
],
"type": "object"
},
"status": {
"description": "MaaSModelStatus defines the observed state of MaaSModelRef",
"properties": {
"conditions": {
"description": "Conditions represent the latest available observations of the model's state",
"items": {
"description": "Condition contains details for one aspect of the current state of this API Resource.",
"properties": {
"lastTransitionTime": {
"description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
"format": "date-time",
"type": "string"
},
"message": {
"description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"description": "status of the condition, one of True, False, Unknown.",
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"endpoint": {
"description": "Endpoint is the endpoint URL for the model",
"type": "string"
},
"httpRouteGatewayName": {
"description": "HTTPRouteGatewayName is the name of the Gateway that the HTTPRoute references",
"type": "string"
},
"httpRouteGatewayNamespace": {
"description": "HTTPRouteGatewayNamespace is the namespace of the Gateway that the HTTPRoute references",
"type": "string"
},
"httpRouteHostnames": {
"description": "HTTPRouteHostnames are the hostnames configured on the HTTPRoute",
"items": {
"type": "string"
},
"type": "array"
},
"httpRouteName": {
"description": "HTTPRouteName is the name of the HTTPRoute associated with this model",
"type": "string"
},
"httpRouteNamespace": {
"description": "HTTPRouteNamespace is the namespace of the HTTPRoute associated with this model",
"type": "string"
},
"phase": {
"description": "Phase represents the current phase of the model",
"enum": [
"Pending",
"Ready",
"Unhealthy",
"Failed"
],
"type": "string"
}
},
"type": "object"
}
},
"required": [],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "maas.opendatahub.io",
"kind": "MaaSModelRef",
"version": "v1alpha1"
}
]
},
"maas.opendatahub.io/v1alpha1/MaaSModelRefList": {
"description": "MaaSModelRefList is a list of MaaSModelRef",
"namespaced": true,
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"items": {
"description": "List of maasmodelrefs. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md",
"items": {
"$ref": "#/components/schemas/io.opendatahub.maas.v1alpha1.MaaSModelRef"
},
"type": "array"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
}
],
"description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
}
},
"required": [
"items"
],
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "maas.opendatahub.io",
"kind": "MaaSModelRefList",
"version": "v1alpha1"
}
]
},
"maas.opendatahub.io/v1alpha1/MaaSSubscription": {
"description": "MaaSSubscription is the Schema for the maassubscriptions API",
"namespaced": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from ocp_resources.resource import NamespacedResource


class MaaSModel(NamespacedResource):
class MaaSModelRef(NamespacedResource):
"""
MaaSModel is the Schema for the maasmodels API
MaaSModelRef is the Schema for the maasmodelrefs API
"""

api_group: str = NamespacedResource.ApiGroup.MAAS_OPENDATAHUB_IO
Expand Down