-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated with build a6c04008-0187-4cdb-95d0-2327ad8c7b7c from OmniCore…
…-SDK-Generator commit 2c63b3788912a32dd121fb934ee716912cf406d6
- Loading branch information
1 parent
eb533a7
commit 9760e17
Showing
12 changed files
with
179 additions
and
13 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
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,77 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
OmniCore Model and State Management API | ||
This is an OmniCore Model and State Management server. # noqa: E501 | ||
The version of the OpenAPI document: 1.8.2 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
from __future__ import annotations | ||
from inspect import getfullargspec | ||
import pprint | ||
import re # noqa: F401 | ||
import json | ||
|
||
|
||
from typing import Optional | ||
from pydantic import BaseModel, StrictInt, StrictStr | ||
|
||
class VaultConfiguration(BaseModel): | ||
"""NOTE: This class is auto generated by OpenAPI Generator. | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
id: Optional[StrictInt] = None | ||
subscription: Optional[StrictStr] = None | ||
type: Optional[StrictStr] = None | ||
data: Optional[StrictStr] = None | ||
__properties = ["id", "subscription", "type", "data"] | ||
|
||
class Config: | ||
allow_population_by_field_name = True | ||
validate_assignment = True | ||
|
||
def to_str(self) -> str: | ||
"""Returns the string representation of the model using alias""" | ||
return pprint.pformat(self.dict(by_alias=True)) | ||
|
||
def to_json(self) -> str: | ||
"""Returns the JSON representation of the model using alias""" | ||
return json.dumps(self.to_dict()) | ||
|
||
@classmethod | ||
def from_json(cls, json_str: str) -> VaultConfiguration: | ||
"""Create an instance of VaultConfiguration from a JSON string""" | ||
return cls.from_dict(json.loads(json_str)) | ||
|
||
def to_dict(self): | ||
"""Returns the dictionary representation of the model using alias""" | ||
_dict = self.dict(by_alias=True, | ||
exclude={ | ||
}, | ||
exclude_none=True) | ||
return _dict | ||
|
||
@classmethod | ||
def from_dict(cls, obj: dict) -> VaultConfiguration: | ||
"""Create an instance of VaultConfiguration from a dict""" | ||
if obj is None: | ||
return None | ||
|
||
if type(obj) is not dict: | ||
return VaultConfiguration.parse_obj(obj) | ||
|
||
_obj = VaultConfiguration.parse_obj({ | ||
"id": obj.get("id"), | ||
"subscription": obj.get("subscription"), | ||
"type": obj.get("type"), | ||
"data": obj.get("data") | ||
}) | ||
return _obj | ||
|
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,31 @@ | ||
# VaultConfiguration | ||
|
||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **int** | | [optional] | ||
**subscription** | **str** | | [optional] | ||
**type** | **str** | | [optional] | ||
**data** | **str** | | [optional] | ||
|
||
## Example | ||
|
||
```python | ||
from OmniCore.models.vault_configuration import VaultConfiguration | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of VaultConfiguration from a JSON string | ||
vault_configuration_instance = VaultConfiguration.from_json(json) | ||
# print the JSON string representation of the object | ||
print VaultConfiguration.to_json() | ||
|
||
# convert the object into a dict | ||
vault_configuration_dict = vault_configuration_instance.to_dict() | ||
# create an instance of VaultConfiguration from a dict | ||
vault_configuration_form_dict = vault_configuration.from_dict(vault_configuration_dict) | ||
``` | ||
[[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
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,58 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
OmniCore Model and State Management API | ||
This is an OmniCore Model and State Management server. # noqa: E501 | ||
The version of the OpenAPI document: 1.8.2 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
from __future__ import absolute_import | ||
|
||
import unittest | ||
import datetime | ||
|
||
import OmniCore | ||
from OmniCore.models.vault_configuration import VaultConfiguration # noqa: E501 | ||
from OmniCore.rest import ApiException | ||
|
||
class TestVaultConfiguration(unittest.TestCase): | ||
"""VaultConfiguration unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional): | ||
"""Test VaultConfiguration | ||
include_option is a boolean, when False only required | ||
params are included, when True both required and | ||
optional params are included """ | ||
# uncomment below to create an instance of `VaultConfiguration` | ||
""" | ||
model = OmniCore.models.vault_configuration.VaultConfiguration() # noqa: E501 | ||
if include_optional : | ||
return VaultConfiguration( | ||
id = 56, | ||
subscription = '', | ||
type = '', | ||
data = '' | ||
) | ||
else : | ||
return VaultConfiguration( | ||
) | ||
""" | ||
|
||
def testVaultConfiguration(self): | ||
"""Test VaultConfiguration""" | ||
# inst_req_only = self.make_instance(include_optional=False) | ||
# inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |