forked from kserve/kserve
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #425 from Jooho/odh_master
[20241101] ODH Master Sync
Showing
58 changed files
with
3,388 additions
and
1,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
charts/kserve-crd-minimal/templates/serving.kserve.io_localmodelnodes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.16.2 | ||
name: localmodelnodes.serving.kserve.io | ||
spec: | ||
group: serving.kserve.io | ||
names: | ||
kind: LocalModelNode | ||
listKind: LocalModelNodeList | ||
plural: localmodelnodes | ||
singular: localmodelnode | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
x-kubernetes-preserve-unknown-fields: true | ||
status: | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
x-kubernetes-preserve-unknown-fields: true | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.16.2 | ||
name: localmodelnodes.serving.kserve.io | ||
spec: | ||
group: serving.kserve.io | ||
names: | ||
kind: LocalModelNode | ||
listKind: LocalModelNodeList | ||
plural: localmodelnodes | ||
singular: localmodelnode | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
properties: | ||
localModels: | ||
items: | ||
properties: | ||
modelName: | ||
type: string | ||
sourceModelUri: | ||
type: string | ||
required: | ||
- modelName | ||
- sourceModelUri | ||
type: object | ||
type: array | ||
required: | ||
- localModels | ||
type: object | ||
status: | ||
properties: | ||
modelStatus: | ||
additionalProperties: | ||
enum: | ||
- "" | ||
- ModelDownloadPending | ||
- ModelDownloading | ||
- ModelDownloaded | ||
- ModelDownloadError | ||
type: string | ||
type: object | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.16.2 | ||
name: localmodelnodes.serving.kserve.io | ||
spec: | ||
group: serving.kserve.io | ||
names: | ||
kind: LocalModelNode | ||
listKind: LocalModelNodeList | ||
plural: localmodelnodes | ||
singular: localmodelnode | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
x-kubernetes-preserve-unknown-fields: true | ||
status: | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
x-kubernetes-preserve-unknown-fields: true | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Copyright 2024 The KServe Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1alpha1 | ||
|
||
type LocalModelNodeStatus struct { | ||
// Status of each local model | ||
ModelStatus map[string]ModelStatus `json:"modelStatus,omitempty"` | ||
} | ||
|
||
// ModelStatus enum | ||
// +kubebuilder:validation:Enum="";ModelDownloadPending;ModelDownloading;ModelDownloaded;ModelDownloadError | ||
type ModelStatus string | ||
|
||
// ModelStatus Enum values | ||
const ( | ||
ModelDownloadPending ModelStatus = "ModelDownloadPending" | ||
ModelDownloading ModelStatus = "ModelDownloading" | ||
ModelDownloaded ModelStatus = "ModelDownloaded" | ||
ModelDownloadError ModelStatus = "ModelDownloadError" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
Copyright 2024 The KServe Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1alpha1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
type LocalModelInfo struct { | ||
// Original StorageUri | ||
SourceModelUri string `json:"sourceModelUri" validate:"required"` | ||
// Model name. Used as the subdirectory name to store this model on local file system | ||
ModelName string `json:"modelName" validate:"required"` | ||
} | ||
|
||
// +k8s:openapi-gen=true | ||
type LocalModelNodeSpec struct { | ||
// List of model source URI and their names | ||
LocalModels []LocalModelInfo `json:"localModels" validate:"required"` | ||
} | ||
|
||
// +k8s:openapi-gen=true | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
// +genclient | ||
// +kubebuilder:object:root=true | ||
// +kubebuilder:subresource:status | ||
// +kubebuilder:resource:scope="Cluster" | ||
type LocalModelNode struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec LocalModelNodeSpec `json:"spec,omitempty"` | ||
Status LocalModelNodeStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +k8s:openapi-gen=true | ||
// +kubebuilder:object:root=true | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
type LocalModelNodeList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []LocalModelNode `json:"items" validate:"required"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&LocalModelNode{}, &LocalModelNodeList{}) | ||
} |
Oops, something went wrong.
141 changes: 141 additions & 0 deletions
141
pkg/client/clientset/versioned/typed/serving/v1alpha1/fake/fake_localmodelnode.go
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
pkg/client/clientset/versioned/typed/serving/v1alpha1/fake/fake_serving_client.go
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
pkg/client/clientset/versioned/typed/serving/v1alpha1/generated_expansion.go
Oops, something went wrong.
195 changes: 195 additions & 0 deletions
195
pkg/client/clientset/versioned/typed/serving/v1alpha1/localmodelnode.go
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
pkg/client/clientset/versioned/typed/serving/v1alpha1/serving_client.go
Oops, something went wrong.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
pkg/client/informers/externalversions/serving/v1alpha1/interface.go
Oops, something went wrong.
90 changes: 90 additions & 0 deletions
90
pkg/client/informers/externalversions/serving/v1alpha1/localmodelnode.go
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# V1alpha1LocalModelNode | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**api_version** | **str** | 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 | [optional] | ||
**kind** | **str** | 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 | [optional] | ||
**metadata** | [**V1ObjectMeta**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ObjectMeta.md) | | [optional] | ||
**spec** | [**V1alpha1LocalModelNodeSpec**](V1alpha1LocalModelNodeSpec.md) | | [optional] | ||
**status** | [**V1alpha1LocalModelNodeStatus**](V1alpha1LocalModelNodeStatus.md) | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# V1alpha1LocalModelNodeList | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**api_version** | **str** | 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 | [optional] | ||
**items** | [**list[V1alpha1LocalModelNode]**](V1alpha1LocalModelNode.md) | | | ||
**kind** | **str** | 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 | [optional] | ||
**metadata** | [**V1ListMeta**](https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1ListMeta.md) | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# V1alpha1LocalModelNodeSpec | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**local_models** | [**list[V1alpha1LocalModelInfo]**](V1alpha1LocalModelInfo.md) | List of model source URI and their names | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
242 changes: 242 additions & 0 deletions
242
python/kserve/kserve/models/v1alpha1_local_model_node.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
# Copyright 2023 The KServe Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# coding: utf-8 | ||
|
||
""" | ||
KServe | ||
Python SDK for KServe # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
import pprint | ||
import re # noqa: F401 | ||
|
||
import six | ||
|
||
from kserve.configuration import Configuration | ||
|
||
|
||
class V1alpha1LocalModelNode(object): | ||
"""NOTE: This class is auto generated by OpenAPI Generator. | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
""" | ||
Attributes: | ||
openapi_types (dict): The key is attribute name | ||
and the value is attribute type. | ||
attribute_map (dict): The key is attribute name | ||
and the value is json key in definition. | ||
""" | ||
openapi_types = { | ||
'api_version': 'str', | ||
'kind': 'str', | ||
'metadata': 'V1ObjectMeta', | ||
'spec': 'V1alpha1LocalModelNodeSpec', | ||
'status': 'V1alpha1LocalModelNodeStatus' | ||
} | ||
|
||
attribute_map = { | ||
'api_version': 'apiVersion', | ||
'kind': 'kind', | ||
'metadata': 'metadata', | ||
'spec': 'spec', | ||
'status': 'status' | ||
} | ||
|
||
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 | ||
"""V1alpha1LocalModelNode - a model defined in OpenAPI""" # noqa: E501 | ||
if local_vars_configuration is None: | ||
local_vars_configuration = Configuration() | ||
self.local_vars_configuration = local_vars_configuration | ||
|
||
self._api_version = None | ||
self._kind = None | ||
self._metadata = None | ||
self._spec = None | ||
self._status = None | ||
self.discriminator = None | ||
|
||
if api_version is not None: | ||
self.api_version = api_version | ||
if kind is not None: | ||
self.kind = kind | ||
if metadata is not None: | ||
self.metadata = metadata | ||
if spec is not None: | ||
self.spec = spec | ||
if status is not None: | ||
self.status = status | ||
|
||
@property | ||
def api_version(self): | ||
"""Gets the api_version of this V1alpha1LocalModelNode. # noqa: E501 | ||
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 # noqa: E501 | ||
:return: The api_version of this V1alpha1LocalModelNode. # noqa: E501 | ||
:rtype: str | ||
""" | ||
return self._api_version | ||
|
||
@api_version.setter | ||
def api_version(self, api_version): | ||
"""Sets the api_version of this V1alpha1LocalModelNode. | ||
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 # noqa: E501 | ||
:param api_version: The api_version of this V1alpha1LocalModelNode. # noqa: E501 | ||
:type: str | ||
""" | ||
|
||
self._api_version = api_version | ||
|
||
@property | ||
def kind(self): | ||
"""Gets the kind of this V1alpha1LocalModelNode. # noqa: E501 | ||
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 # noqa: E501 | ||
:return: The kind of this V1alpha1LocalModelNode. # noqa: E501 | ||
:rtype: str | ||
""" | ||
return self._kind | ||
|
||
@kind.setter | ||
def kind(self, kind): | ||
"""Sets the kind of this V1alpha1LocalModelNode. | ||
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 # noqa: E501 | ||
:param kind: The kind of this V1alpha1LocalModelNode. # noqa: E501 | ||
:type: str | ||
""" | ||
|
||
self._kind = kind | ||
|
||
@property | ||
def metadata(self): | ||
"""Gets the metadata of this V1alpha1LocalModelNode. # noqa: E501 | ||
:return: The metadata of this V1alpha1LocalModelNode. # noqa: E501 | ||
:rtype: V1ObjectMeta | ||
""" | ||
return self._metadata | ||
|
||
@metadata.setter | ||
def metadata(self, metadata): | ||
"""Sets the metadata of this V1alpha1LocalModelNode. | ||
:param metadata: The metadata of this V1alpha1LocalModelNode. # noqa: E501 | ||
:type: V1ObjectMeta | ||
""" | ||
|
||
self._metadata = metadata | ||
|
||
@property | ||
def spec(self): | ||
"""Gets the spec of this V1alpha1LocalModelNode. # noqa: E501 | ||
:return: The spec of this V1alpha1LocalModelNode. # noqa: E501 | ||
:rtype: V1alpha1LocalModelNodeSpec | ||
""" | ||
return self._spec | ||
|
||
@spec.setter | ||
def spec(self, spec): | ||
"""Sets the spec of this V1alpha1LocalModelNode. | ||
:param spec: The spec of this V1alpha1LocalModelNode. # noqa: E501 | ||
:type: V1alpha1LocalModelNodeSpec | ||
""" | ||
|
||
self._spec = spec | ||
|
||
@property | ||
def status(self): | ||
"""Gets the status of this V1alpha1LocalModelNode. # noqa: E501 | ||
:return: The status of this V1alpha1LocalModelNode. # noqa: E501 | ||
:rtype: V1alpha1LocalModelNodeStatus | ||
""" | ||
return self._status | ||
|
||
@status.setter | ||
def status(self, status): | ||
"""Sets the status of this V1alpha1LocalModelNode. | ||
:param status: The status of this V1alpha1LocalModelNode. # noqa: E501 | ||
:type: V1alpha1LocalModelNodeStatus | ||
""" | ||
|
||
self._status = status | ||
|
||
def to_dict(self): | ||
"""Returns the model properties as a dict""" | ||
result = {} | ||
|
||
for attr, _ in six.iteritems(self.openapi_types): | ||
value = getattr(self, attr) | ||
if isinstance(value, list): | ||
result[attr] = list(map( | ||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x, | ||
value | ||
)) | ||
elif hasattr(value, "to_dict"): | ||
result[attr] = value.to_dict() | ||
elif isinstance(value, dict): | ||
result[attr] = dict(map( | ||
lambda item: (item[0], item[1].to_dict()) | ||
if hasattr(item[1], "to_dict") else item, | ||
value.items() | ||
)) | ||
else: | ||
result[attr] = value | ||
|
||
return result | ||
|
||
def to_str(self): | ||
"""Returns the string representation of the model""" | ||
return pprint.pformat(self.to_dict()) | ||
|
||
def __repr__(self): | ||
"""For `print` and `pprint`""" | ||
return self.to_str() | ||
|
||
def __eq__(self, other): | ||
"""Returns true if both objects are equal""" | ||
if not isinstance(other, V1alpha1LocalModelNode): | ||
return False | ||
|
||
return self.to_dict() == other.to_dict() | ||
|
||
def __ne__(self, other): | ||
"""Returns true if both objects are not equal""" | ||
if not isinstance(other, V1alpha1LocalModelNode): | ||
return True | ||
|
||
return self.to_dict() != other.to_dict() |
217 changes: 217 additions & 0 deletions
217
python/kserve/kserve/models/v1alpha1_local_model_node_list.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
# Copyright 2023 The KServe Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# coding: utf-8 | ||
|
||
""" | ||
KServe | ||
Python SDK for KServe # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
import pprint | ||
import re # noqa: F401 | ||
|
||
import six | ||
|
||
from kserve.configuration import Configuration | ||
|
||
|
||
class V1alpha1LocalModelNodeList(object): | ||
"""NOTE: This class is auto generated by OpenAPI Generator. | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
""" | ||
Attributes: | ||
openapi_types (dict): The key is attribute name | ||
and the value is attribute type. | ||
attribute_map (dict): The key is attribute name | ||
and the value is json key in definition. | ||
""" | ||
openapi_types = { | ||
'api_version': 'str', | ||
'items': 'list[V1alpha1LocalModelNode]', | ||
'kind': 'str', | ||
'metadata': 'V1ListMeta' | ||
} | ||
|
||
attribute_map = { | ||
'api_version': 'apiVersion', | ||
'items': 'items', | ||
'kind': 'kind', | ||
'metadata': 'metadata' | ||
} | ||
|
||
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 | ||
"""V1alpha1LocalModelNodeList - a model defined in OpenAPI""" # noqa: E501 | ||
if local_vars_configuration is None: | ||
local_vars_configuration = Configuration() | ||
self.local_vars_configuration = local_vars_configuration | ||
|
||
self._api_version = None | ||
self._items = None | ||
self._kind = None | ||
self._metadata = None | ||
self.discriminator = None | ||
|
||
if api_version is not None: | ||
self.api_version = api_version | ||
self.items = items | ||
if kind is not None: | ||
self.kind = kind | ||
if metadata is not None: | ||
self.metadata = metadata | ||
|
||
@property | ||
def api_version(self): | ||
"""Gets the api_version of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
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 # noqa: E501 | ||
:return: The api_version of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:rtype: str | ||
""" | ||
return self._api_version | ||
|
||
@api_version.setter | ||
def api_version(self, api_version): | ||
"""Sets the api_version of this V1alpha1LocalModelNodeList. | ||
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 # noqa: E501 | ||
:param api_version: The api_version of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:type: str | ||
""" | ||
|
||
self._api_version = api_version | ||
|
||
@property | ||
def items(self): | ||
"""Gets the items of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:return: The items of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:rtype: list[V1alpha1LocalModelNode] | ||
""" | ||
return self._items | ||
|
||
@items.setter | ||
def items(self, items): | ||
"""Sets the items of this V1alpha1LocalModelNodeList. | ||
:param items: The items of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:type: list[V1alpha1LocalModelNode] | ||
""" | ||
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 | ||
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 | ||
|
||
self._items = items | ||
|
||
@property | ||
def kind(self): | ||
"""Gets the kind of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
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 # noqa: E501 | ||
:return: The kind of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:rtype: str | ||
""" | ||
return self._kind | ||
|
||
@kind.setter | ||
def kind(self, kind): | ||
"""Sets the kind of this V1alpha1LocalModelNodeList. | ||
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 # noqa: E501 | ||
:param kind: The kind of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:type: str | ||
""" | ||
|
||
self._kind = kind | ||
|
||
@property | ||
def metadata(self): | ||
"""Gets the metadata of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:return: The metadata of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:rtype: V1ListMeta | ||
""" | ||
return self._metadata | ||
|
||
@metadata.setter | ||
def metadata(self, metadata): | ||
"""Sets the metadata of this V1alpha1LocalModelNodeList. | ||
:param metadata: The metadata of this V1alpha1LocalModelNodeList. # noqa: E501 | ||
:type: V1ListMeta | ||
""" | ||
|
||
self._metadata = metadata | ||
|
||
def to_dict(self): | ||
"""Returns the model properties as a dict""" | ||
result = {} | ||
|
||
for attr, _ in six.iteritems(self.openapi_types): | ||
value = getattr(self, attr) | ||
if isinstance(value, list): | ||
result[attr] = list(map( | ||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x, | ||
value | ||
)) | ||
elif hasattr(value, "to_dict"): | ||
result[attr] = value.to_dict() | ||
elif isinstance(value, dict): | ||
result[attr] = dict(map( | ||
lambda item: (item[0], item[1].to_dict()) | ||
if hasattr(item[1], "to_dict") else item, | ||
value.items() | ||
)) | ||
else: | ||
result[attr] = value | ||
|
||
return result | ||
|
||
def to_str(self): | ||
"""Returns the string representation of the model""" | ||
return pprint.pformat(self.to_dict()) | ||
|
||
def __repr__(self): | ||
"""For `print` and `pprint`""" | ||
return self.to_str() | ||
|
||
def __eq__(self, other): | ||
"""Returns true if both objects are equal""" | ||
if not isinstance(other, V1alpha1LocalModelNodeList): | ||
return False | ||
|
||
return self.to_dict() == other.to_dict() | ||
|
||
def __ne__(self, other): | ||
"""Returns true if both objects are not equal""" | ||
if not isinstance(other, V1alpha1LocalModelNodeList): | ||
return True | ||
|
||
return self.to_dict() != other.to_dict() |
137 changes: 137 additions & 0 deletions
137
python/kserve/kserve/models/v1alpha1_local_model_node_spec.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
# Copyright 2023 The KServe Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# coding: utf-8 | ||
|
||
""" | ||
KServe | ||
Python SDK for KServe # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
import pprint | ||
import re # noqa: F401 | ||
|
||
import six | ||
|
||
from kserve.configuration import Configuration | ||
|
||
|
||
class V1alpha1LocalModelNodeSpec(object): | ||
"""NOTE: This class is auto generated by OpenAPI Generator. | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
""" | ||
Attributes: | ||
openapi_types (dict): The key is attribute name | ||
and the value is attribute type. | ||
attribute_map (dict): The key is attribute name | ||
and the value is json key in definition. | ||
""" | ||
openapi_types = { | ||
'local_models': 'list[V1alpha1LocalModelInfo]' | ||
} | ||
|
||
attribute_map = { | ||
'local_models': 'localModels' | ||
} | ||
|
||
def __init__(self, local_models=None, local_vars_configuration=None): # noqa: E501 | ||
"""V1alpha1LocalModelNodeSpec - a model defined in OpenAPI""" # noqa: E501 | ||
if local_vars_configuration is None: | ||
local_vars_configuration = Configuration() | ||
self.local_vars_configuration = local_vars_configuration | ||
|
||
self._local_models = None | ||
self.discriminator = None | ||
|
||
self.local_models = local_models | ||
|
||
@property | ||
def local_models(self): | ||
"""Gets the local_models of this V1alpha1LocalModelNodeSpec. # noqa: E501 | ||
List of model source URI and their names # noqa: E501 | ||
:return: The local_models of this V1alpha1LocalModelNodeSpec. # noqa: E501 | ||
:rtype: list[V1alpha1LocalModelInfo] | ||
""" | ||
return self._local_models | ||
|
||
@local_models.setter | ||
def local_models(self, local_models): | ||
"""Sets the local_models of this V1alpha1LocalModelNodeSpec. | ||
List of model source URI and their names # noqa: E501 | ||
:param local_models: The local_models of this V1alpha1LocalModelNodeSpec. # noqa: E501 | ||
:type: list[V1alpha1LocalModelInfo] | ||
""" | ||
if self.local_vars_configuration.client_side_validation and local_models is None: # noqa: E501 | ||
raise ValueError("Invalid value for `local_models`, must not be `None`") # noqa: E501 | ||
|
||
self._local_models = local_models | ||
|
||
def to_dict(self): | ||
"""Returns the model properties as a dict""" | ||
result = {} | ||
|
||
for attr, _ in six.iteritems(self.openapi_types): | ||
value = getattr(self, attr) | ||
if isinstance(value, list): | ||
result[attr] = list(map( | ||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x, | ||
value | ||
)) | ||
elif hasattr(value, "to_dict"): | ||
result[attr] = value.to_dict() | ||
elif isinstance(value, dict): | ||
result[attr] = dict(map( | ||
lambda item: (item[0], item[1].to_dict()) | ||
if hasattr(item[1], "to_dict") else item, | ||
value.items() | ||
)) | ||
else: | ||
result[attr] = value | ||
|
||
return result | ||
|
||
def to_str(self): | ||
"""Returns the string representation of the model""" | ||
return pprint.pformat(self.to_dict()) | ||
|
||
def __repr__(self): | ||
"""For `print` and `pprint`""" | ||
return self.to_str() | ||
|
||
def __eq__(self, other): | ||
"""Returns true if both objects are equal""" | ||
if not isinstance(other, V1alpha1LocalModelNodeSpec): | ||
return False | ||
|
||
return self.to_dict() == other.to_dict() | ||
|
||
def __ne__(self, other): | ||
"""Returns true if both objects are not equal""" | ||
if not isinstance(other, V1alpha1LocalModelNodeSpec): | ||
return True | ||
|
||
return self.to_dict() != other.to_dict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Steps to generate | ||
|
||
|
||
```bash | ||
curl https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml -o openapi-2.0.0.yaml | ||
datamodel-codegen --input openapi-2.0.0.yaml --input-file-type openapi --output openapi.py --output-model-type pydantic_v2.BaseModel --use-double-quotes --collapse-root-models --enum-field-as-literal all --strict-nullable | ||
datamodel-codegen --input openapi-2.0.0.yaml --input-file-type openapi --output openapi.py --output-model-type pydantic_v2.BaseModel --use-double-quotes --collapse-root-models --enum-field-as-literal all --strict-nullable``` | ||
Adapted from the generated `openapi.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright 2023 The KServe Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# coding: utf-8 | ||
|
||
""" | ||
KServe | ||
Python SDK for KServe # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
from __future__ import absolute_import | ||
|
||
import unittest | ||
import datetime | ||
|
||
import kserve | ||
from kserve.models.v1alpha1_local_model_node import V1alpha1LocalModelNode # noqa: E501 | ||
from kserve.rest import ApiException | ||
|
||
|
||
class TestV1alpha1LocalModelNode(unittest.TestCase): | ||
"""V1alpha1LocalModelNode unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional): | ||
"""Test V1alpha1LocalModelNode | ||
include_option is a boolean, when False only required | ||
params are included, when True both required and | ||
optional params are included""" | ||
# model = kserve.models.v1alpha1_local_model_node.V1alpha1LocalModelNode() # noqa: E501 | ||
if include_optional: | ||
return V1alpha1LocalModelNode( | ||
api_version="0", | ||
kind="0", | ||
metadata=None, | ||
spec=kserve.models.v1alpha1_local_model_node_spec.V1alpha1LocalModelNodeSpec( | ||
local_models=[None], | ||
), | ||
status=None, | ||
) | ||
else: | ||
return V1alpha1LocalModelNode() | ||
|
||
def testV1alpha1LocalModelNode(self): | ||
"""Test V1alpha1LocalModelNode""" | ||
inst_req_only = self.make_instance(include_optional=False) | ||
inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Copyright 2023 The KServe Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# coding: utf-8 | ||
|
||
""" | ||
KServe | ||
Python SDK for KServe # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
from __future__ import absolute_import | ||
|
||
import unittest | ||
import datetime | ||
|
||
import kserve | ||
from kserve.models.v1alpha1_local_model_node_list import ( | ||
V1alpha1LocalModelNodeList, | ||
) # noqa: E501 | ||
from kserve.rest import ApiException | ||
|
||
|
||
class TestV1alpha1LocalModelNodeList(unittest.TestCase): | ||
"""V1alpha1LocalModelNodeList unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional): | ||
"""Test V1alpha1LocalModelNodeList | ||
include_option is a boolean, when False only required | ||
params are included, when True both required and | ||
optional params are included""" | ||
# model = kserve.models.v1alpha1_local_model_node_list.V1alpha1LocalModelNodeList() # noqa: E501 | ||
if include_optional: | ||
return V1alpha1LocalModelNodeList( | ||
api_version="0", | ||
items=[ | ||
kserve.models.v1alpha1_local_model_node.V1alpha1LocalModelNode( | ||
api_version="0", | ||
kind="0", | ||
metadata=None, | ||
spec=kserve.models.v1alpha1_local_model_node_spec.V1alpha1LocalModelNodeSpec( | ||
local_models=[None], | ||
), | ||
status=None, | ||
) | ||
], | ||
kind="0", | ||
metadata=None, | ||
) | ||
else: | ||
return V1alpha1LocalModelNodeList( | ||
items=[ | ||
kserve.models.v1alpha1_local_model_node.V1alpha1LocalModelNode( | ||
api_version="0", | ||
kind="0", | ||
metadata=None, | ||
spec=kserve.models.v1alpha1_local_model_node_spec.V1alpha1LocalModelNodeSpec( | ||
local_models=[None], | ||
), | ||
status=None, | ||
) | ||
], | ||
) | ||
|
||
def testV1alpha1LocalModelNodeList(self): | ||
"""Test V1alpha1LocalModelNodeList""" | ||
inst_req_only = self.make_instance(include_optional=False) | ||
inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Copyright 2023 The KServe Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# coding: utf-8 | ||
|
||
""" | ||
KServe | ||
Python SDK for KServe # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
from __future__ import absolute_import | ||
|
||
import unittest | ||
import datetime | ||
|
||
import kserve | ||
from kserve.models.v1alpha1_local_model_node_spec import ( | ||
V1alpha1LocalModelNodeSpec, | ||
) # noqa: E501 | ||
from kserve.rest import ApiException | ||
|
||
|
||
class TestV1alpha1LocalModelNodeSpec(unittest.TestCase): | ||
"""V1alpha1LocalModelNodeSpec unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional): | ||
"""Test V1alpha1LocalModelNodeSpec | ||
include_option is a boolean, when False only required | ||
params are included, when True both required and | ||
optional params are included""" | ||
# model = kserve.models.v1alpha1_local_model_node_spec.V1alpha1LocalModelNodeSpec() # noqa: E501 | ||
if include_optional: | ||
return V1alpha1LocalModelNodeSpec(local_models=[None]) | ||
else: | ||
return V1alpha1LocalModelNodeSpec( | ||
local_models=[None], | ||
) | ||
|
||
def testV1alpha1LocalModelNodeSpec(self): | ||
"""Test V1alpha1LocalModelNodeSpec""" | ||
inst_req_only = self.make_instance(include_optional=False) | ||
inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
Binary file not shown.
Oops, something went wrong.