Skip to content

Commit

Permalink
Updated with build a6c04008-0187-4cdb-95d0-2327ad8c7b7c from OmniCore…
Browse files Browse the repository at this point in the history
…-SDK-Generator commit 2c63b3788912a32dd121fb934ee716912cf406d6
  • Loading branch information
jaisonjayan committed Nov 20, 2023
1 parent eb533a7 commit 9760e17
Show file tree
Hide file tree
Showing 12 changed files with 179 additions and 13 deletions.
4 changes: 2 additions & 2 deletions OmniCore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import absolute_import

__version__ = "1.8.2"
__version__ = "1.8.3"

# import apis into sdk package
from OmniCore.api.device_api import DeviceApi
Expand All @@ -40,7 +40,6 @@
from OmniCore.models.bind_request_ids_gateway import BindRequestIdsGateway
from OmniCore.models.block_communication_body import BlockCommunicationBody
from OmniCore.models.config import Config
from OmniCore.models.configuration import Configuration
from OmniCore.models.configurations import Configurations
from OmniCore.models.create_configuration import CreateConfiguration
from OmniCore.models.custom_onboard import CustomOnboard
Expand Down Expand Up @@ -91,6 +90,7 @@
from OmniCore.models.replay_body import ReplayBody
from OmniCore.models.sink import Sink
from OmniCore.models.start_export_body import StartExportBody
from OmniCore.models.vault_configuration import VaultConfiguration
from OmniCore.models.vault_status import VaultStatus
from OmniCore.models.vault_status_details import VaultStatusDetails
from OmniCore.models.x509_certificate_details import X509CertificateDetails
2 changes: 1 addition & 1 deletion OmniCore/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.8.2/python'
self.user_agent = 'OpenAPI-Generator/1.8.3/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion OmniCore/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.8.2\n"\
"SDK Package Version: 1.8.2".\
"SDK Package Version: 1.8.3".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion OmniCore/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from OmniCore.models.bind_request_ids_gateway import BindRequestIdsGateway
from OmniCore.models.block_communication_body import BlockCommunicationBody
from OmniCore.models.config import Config
from OmniCore.models.configuration import Configuration
from OmniCore.models.configurations import Configurations
from OmniCore.models.create_configuration import CreateConfiguration
from OmniCore.models.custom_onboard import CustomOnboard
Expand Down Expand Up @@ -72,6 +71,7 @@
from OmniCore.models.replay_body import ReplayBody
from OmniCore.models.sink import Sink
from OmniCore.models.start_export_body import StartExportBody
from OmniCore.models.vault_configuration import VaultConfiguration
from OmniCore.models.vault_status import VaultStatus
from OmniCore.models.vault_status_details import VaultStatusDetails
from OmniCore.models.x509_certificate_details import X509CertificateDetails
6 changes: 3 additions & 3 deletions OmniCore/models/configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

from typing import List, Optional
from pydantic import BaseModel, Field
from OmniCore.models.configuration import Configuration
from OmniCore.models.vault_configuration import VaultConfiguration

class Configurations(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
details: Optional[List[Configuration]] = Field(None, alias="Details")
details: Optional[List[VaultConfiguration]] = Field(None, alias="Details")
__properties = ["Details"]

class Config:
Expand Down Expand Up @@ -73,7 +73,7 @@ def from_dict(cls, obj: dict) -> Configurations:
return Configurations.parse_obj(obj)

_obj = Configurations.parse_obj({
"details": [Configuration.from_dict(_item) for _item in obj.get("Details")] if obj.get("Details") is not None else None
"details": [VaultConfiguration.from_dict(_item) for _item in obj.get("Details")] if obj.get("Details") is not None else None
})
return _obj

77 changes: 77 additions & 0 deletions OmniCore/models/vault_configuration.py
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

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is an OmniCore Model and State Management server.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.8.2
- Package version: 1.8.2
- Package version: 1.8.3
- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen
For more information, please visit [http://www.korewireless.com](http://www.korewireless.com)

Expand Down Expand Up @@ -148,7 +148,6 @@ Class | Method | HTTP request | Description
- [BindRequestIdsGateway](docs/BindRequestIdsGateway.md)
- [BlockCommunicationBody](docs/BlockCommunicationBody.md)
- [Config](docs/Config.md)
- [Configuration](docs/Configuration.md)
- [Configurations](docs/Configurations.md)
- [CreateConfiguration](docs/CreateConfiguration.md)
- [CustomOnboard](docs/CustomOnboard.md)
Expand Down Expand Up @@ -199,6 +198,7 @@ Class | Method | HTTP request | Description
- [ReplayBody](docs/ReplayBody.md)
- [Sink](docs/Sink.md)
- [StartExportBody](docs/StartExportBody.md)
- [VaultConfiguration](docs/VaultConfiguration.md)
- [VaultStatus](docs/VaultStatus.md)
- [VaultStatusDetails](docs/VaultStatusDetails.md)
- [X509CertificateDetails](docs/X509CertificateDetails.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**details** | [**List[Configuration]**](Configuration.md) | | [optional]
**details** | [**List[VaultConfiguration]**](VaultConfiguration.md) | | [optional]

## Example

Expand Down
31 changes: 31 additions & 0 deletions docs/VaultConfiguration.md
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)


2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "OmniCore"
VERSION = "1.8.2"
VERSION = "1.8.3"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3",
Expand Down
2 changes: 1 addition & 1 deletion test/test_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def make_instance(self, include_optional):
if include_optional :
return Configurations(
details = [
OmniCore.models.configuration.Configuration(
OmniCore.models.vault_configuration.VaultConfiguration(
id = 56,
subscription = '',
type = '',
Expand Down
58 changes: 58 additions & 0 deletions test/test_vault_configuration.py
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()

0 comments on commit 9760e17

Please sign in to comment.