Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: generate from api 0.19.168 #140

Merged
merged 1 commit into from
Jun 21, 2024
Merged
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
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ docs/AppAWSECRImageConfig.md
docs/AppAccount.md
docs/AppAccountType.md
docs/AppApp.md
docs/AppAppAWSDelegationConfig.md
docs/AppAppConfig.md
docs/AppAppConfigFmt.md
docs/AppAppConfigStatus.md
Expand Down Expand Up @@ -134,6 +135,7 @@ nuon/models/__init__.py
nuon/models/app_account.py
nuon/models/app_account_type.py
nuon/models/app_app.py
nuon/models/app_app_aws_delegation_config.py
nuon/models/app_app_config.py
nuon/models/app_app_config_fmt.py
nuon/models/app_app_config_status.py
Expand Down Expand Up @@ -249,4 +251,5 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_app_app_aws_delegation_config.py
tox.ini
38 changes: 38 additions & 0 deletions docs/AppAppAWSDelegationConfig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# AppAppAWSDelegationConfig


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**access_key_id** | **str** | static credentials for long lived cross account access. NOTE: this is not recommended for long-term usage, just to be used for short term access before gov-cloud support is fully spun up. | [optional]
**app_sandbox_config_id** | **str** | | [optional]
**created_at** | **str** | | [optional]
**created_by** | [**AppAccount**](AppAccount.md) | | [optional]
**created_by_id** | **str** | | [optional]
**iam_role_arn** | **str** | | [optional]
**id** | **str** | | [optional]
**org_id** | **str** | | [optional]
**secret_access_key** | **str** | | [optional]
**updated_at** | **str** | | [optional]

## Example

```python
from nuon.models.app_app_aws_delegation_config import AppAppAWSDelegationConfig

# TODO update the JSON string below
json = "{}"
# create an instance of AppAppAWSDelegationConfig from a JSON string
app_app_aws_delegation_config_instance = AppAppAWSDelegationConfig.from_json(json)
# print the JSON string representation of the object
print AppAppAWSDelegationConfig.to_json()

# convert the object into a dict
app_app_aws_delegation_config_dict = app_app_aws_delegation_config_instance.to_dict()
# create an instance of AppAppAWSDelegationConfig from a dict
app_app_aws_delegation_config_form_dict = app_app_aws_delegation_config.from_dict(app_app_aws_delegation_config_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)


4 changes: 3 additions & 1 deletion docs/AppAppSandboxConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**app_id** | **str** | | [optional]
**artifacts** | [**AppAppSandboxConfigArtifacts**](AppAppSandboxConfigArtifacts.md) | | [optional]
**cloud_platform** | [**AppCloudPlatform**](AppCloudPlatform.md) | | [optional]
**aws_delegation_config** | [**AppAppAWSDelegationConfig**](AppAppAWSDelegationConfig.md) | cloud specific fields | [optional]
**aws_region_type** | **str** | | [optional]
**cloud_platform** | [**AppCloudPlatform**](AppCloudPlatform.md) | fields set via after query | [optional]
**connected_github_vcs_config** | [**AppConnectedGithubVCSConfig**](AppConnectedGithubVCSConfig.md) | | [optional]
**created_at** | **str** | | [optional]
**created_by** | [**AppAccount**](AppAccount.md) | | [optional]
Expand Down
5 changes: 3 additions & 2 deletions nuon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


__version__ = "0.19.167"
__version__ = "0.19.168"

# import apis into sdk package
from nuon.api.apps_api import AppsApi
Expand Down Expand Up @@ -44,6 +44,7 @@
from nuon.models.app_account import AppAccount
from nuon.models.app_account_type import AppAccountType
from nuon.models.app_app import AppApp
from nuon.models.app_app_aws_delegation_config import AppAppAWSDelegationConfig
from nuon.models.app_app_config import AppAppConfig
from nuon.models.app_app_config_fmt import AppAppConfigFmt
from nuon.models.app_app_config_status import AppAppConfigStatus
Expand Down
2 changes: 1 addition & 1 deletion nuon/api/apps_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/components_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/general_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/installers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/installs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/orgs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/releases_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/api/vcs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
4 changes: 2 additions & 2 deletions nuon/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down Expand Up @@ -87,7 +87,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/0.19.167/python'
self.user_agent = 'OpenAPI-Generator/0.19.168/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
6 changes: 3 additions & 3 deletions nuon/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down Expand Up @@ -406,8 +406,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.19.167\n"\
"SDK Package Version: 0.19.167".\
"Version of the API: 0.19.168\n"\
"SDK Package Version: 0.19.168".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion nuon/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
3 changes: 2 additions & 1 deletion nuon/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand All @@ -20,6 +20,7 @@
from nuon.models.app_account import AppAccount
from nuon.models.app_account_type import AppAccountType
from nuon.models.app_app import AppApp
from nuon.models.app_app_aws_delegation_config import AppAppAWSDelegationConfig
from nuon.models.app_app_config import AppAppConfig
from nuon.models.app_app_config_fmt import AppAppConfigFmt
from nuon.models.app_app_config_status import AppAppConfigStatus
Expand Down
2 changes: 1 addition & 1 deletion nuon/models/app_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/models/app_account_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/models/app_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
113 changes: 113 additions & 0 deletions nuon/models/app_app_aws_delegation_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# coding: utf-8

"""
Nuon

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import pprint
import re # noqa: F401
import json




from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from nuon.models.app_account import AppAccount
try:
from typing import Self
except ImportError:
from typing_extensions import Self

class AppAppAWSDelegationConfig(BaseModel):
"""
AppAppAWSDelegationConfig
""" # noqa: E501
access_key_id: Optional[StrictStr] = Field(default=None, description="static credentials for long lived cross account access. NOTE: this is not recommended for long-term usage, just to be used for short term access before gov-cloud support is fully spun up.")
app_sandbox_config_id: Optional[StrictStr] = None
created_at: Optional[StrictStr] = None
created_by: Optional[AppAccount] = None
created_by_id: Optional[StrictStr] = None
iam_role_arn: Optional[StrictStr] = None
id: Optional[StrictStr] = None
org_id: Optional[StrictStr] = None
secret_access_key: Optional[StrictStr] = None
updated_at: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["access_key_id", "app_sandbox_config_id", "created_at", "created_by", "created_by_id", "iam_role_arn", "id", "org_id", "secret_access_key", "updated_at"]

model_config = {
"populate_by_name": True,
"validate_assignment": True,
"protected_namespaces": (),
}


def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of AppAppAWSDelegationConfig from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:

* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
"""
_dict = self.model_dump(
by_alias=True,
exclude={
},
exclude_none=True,
)
# override the default output from pydantic by calling `to_dict()` of created_by
if self.created_by:
_dict['created_by'] = self.created_by.to_dict()
return _dict

@classmethod
def from_dict(cls, obj: Dict) -> Self:
"""Create an instance of AppAppAWSDelegationConfig from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"access_key_id": obj.get("access_key_id"),
"app_sandbox_config_id": obj.get("app_sandbox_config_id"),
"created_at": obj.get("created_at"),
"created_by": AppAccount.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None,
"created_by_id": obj.get("created_by_id"),
"iam_role_arn": obj.get("iam_role_arn"),
"id": obj.get("id"),
"org_id": obj.get("org_id"),
"secret_access_key": obj.get("secret_access_key"),
"updated_at": obj.get("updated_at")
})
return _obj


2 changes: 1 addition & 1 deletion nuon/models/app_app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
2 changes: 1 addition & 1 deletion nuon/models/app_app_config_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

API for managing nuon apps, components, and installs.

The version of the OpenAPI document: 0.19.167
The version of the OpenAPI document: 0.19.168
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down
Loading
Loading