diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d1c7eb6d..2778016c 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,5 +1,7 @@ docs/AppAWSAccount.md docs/AppAWSECRImageConfig.md +docs/AppAccount.md +docs/AppAccountType.md docs/AppApp.md docs/AppAppConfig.md docs/AppAppConfigFmt.md @@ -42,14 +44,13 @@ docs/AppOrgHealthCheck.md docs/AppOrgHealthCheckStatus.md docs/AppOrgInvite.md docs/AppOrgInviteStatus.md +docs/AppPolicy.md +docs/AppPolicyName.md docs/AppPublicGitVCSConfig.md -docs/AppSandbox.md -docs/AppSandboxRelease.md +docs/AppRole.md +docs/AppRoleType.md docs/AppSandboxRunType.md docs/AppTerraformModuleComponentConfig.md -docs/AppTokenType.md -docs/AppUserOrg.md -docs/AppUserToken.md docs/AppVCSConnection.md docs/AppVCSConnectionCommit.md docs/AppsApi.md @@ -62,9 +63,9 @@ docs/MetricsEvent.md docs/MetricsIncr.md docs/MetricsTiming.md docs/OrgsApi.md +docs/PermissionsPermission.md docs/Planv1Plan.md docs/ReleasesApi.md -docs/SandboxesApi.md docs/ServiceAppConfigTemplate.md docs/ServiceAppConfigTemplateType.md docs/ServiceAppGroupRequest.md @@ -124,13 +125,14 @@ nuon/api/installers_api.py nuon/api/installs_api.py nuon/api/orgs_api.py nuon/api/releases_api.py -nuon/api/sandboxes_api.py nuon/api/vcs_api.py nuon/api_client.py nuon/api_response.py nuon/configuration.py nuon/exceptions.py nuon/models/__init__.py +nuon/models/app_account.py +nuon/models/app_account_type.py nuon/models/app_app.py nuon/models/app_app_config.py nuon/models/app_app_config_fmt.py @@ -175,20 +177,20 @@ nuon/models/app_org_health_check.py nuon/models/app_org_health_check_status.py nuon/models/app_org_invite.py nuon/models/app_org_invite_status.py +nuon/models/app_policy.py +nuon/models/app_policy_name.py nuon/models/app_public_git_vcs_config.py -nuon/models/app_sandbox.py -nuon/models/app_sandbox_release.py +nuon/models/app_role.py +nuon/models/app_role_type.py nuon/models/app_sandbox_run_type.py nuon/models/app_terraform_module_component_config.py -nuon/models/app_token_type.py -nuon/models/app_user_org.py -nuon/models/app_user_token.py nuon/models/app_vcs_connection.py nuon/models/app_vcs_connection_commit.py nuon/models/metrics_decr.py nuon/models/metrics_event.py nuon/models/metrics_incr.py nuon/models/metrics_timing.py +nuon/models/permissions_permission.py nuon/models/planv1_plan.py nuon/models/service_app_config_template.py nuon/models/service_app_config_template_type.py @@ -247,4 +249,11 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_app_account.py +test/test_app_account_type.py +test/test_app_policy.py +test/test_app_policy_name.py +test/test_app_role.py +test/test_app_role_type.py +test/test_permissions_permission.py tox.ini diff --git a/docs/AppAWSAccount.md b/docs/AppAWSAccount.md index 3efb4d3f..a6feb8a7 100644 --- a/docs/AppAWSAccount.md +++ b/docs/AppAWSAccount.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **iam_role_arn** | **str** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppAWSECRImageConfig.md b/docs/AppAWSECRImageConfig.md index 32f80d83..67aae16e 100644 --- a/docs/AppAWSECRImageConfig.md +++ b/docs/AppAWSECRImageConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **component_config_id** | **str** | connection to parent model | [optional] **component_config_type** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **iam_role_arn** | **str** | actual configuration | [optional] **id** | **str** | | [optional] diff --git a/docs/AppAccount.md b/docs/AppAccount.md new file mode 100644 index 00000000..2739df00 --- /dev/null +++ b/docs/AppAccount.md @@ -0,0 +1,38 @@ +# AppAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_type** | [**AppAccountType**](AppAccountType.md) | | [optional] +**created_at** | **str** | | [optional] +**email** | **str** | | [optional] +**id** | **str** | | [optional] +**org_ids** | **List[str]** | ReadOnly Fields | [optional] +**orgs** | [**List[AppOrg]**](AppOrg.md) | | [optional] +**permissions** | [**Dict[str, PermissionsPermission]**](PermissionsPermission.md) | | [optional] +**roles** | [**List[AppRole]**](AppRole.md) | | [optional] +**subject** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from nuon.models.app_account import AppAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of AppAccount from a JSON string +app_account_instance = AppAccount.from_json(json) +# print the JSON string representation of the object +print AppAccount.to_json() + +# convert the object into a dict +app_account_dict = app_account_instance.to_dict() +# create an instance of AppAccount from a dict +app_account_form_dict = app_account.from_dict(app_account_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) + + diff --git a/docs/AppAccountType.md b/docs/AppAccountType.md new file mode 100644 index 00000000..89ed9e08 --- /dev/null +++ b/docs/AppAccountType.md @@ -0,0 +1,11 @@ +# AppAccountType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppApp.md b/docs/AppApp.md index ef5381b7..24021725 100644 --- a/docs/AppApp.md +++ b/docs/AppApp.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cloud_platform** | [**AppCloudPlatform**](AppCloudPlatform.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **description** | **str** | | [optional] **display_name** | **str** | | [optional] diff --git a/docs/AppAppConfig.md b/docs/AppAppConfig.md index ec424535..7521c510 100644 --- a/docs/AppAppConfig.md +++ b/docs/AppAppConfig.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **app_id** | **str** | | [optional] **content** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **format** | [**AppAppConfigFmt**](AppAppConfigFmt.md) | | [optional] **generated_terraform** | **str** | | [optional] diff --git a/docs/AppAppInput.md b/docs/AppAppInput.md index a4f4ac6d..30b59877 100644 --- a/docs/AppAppInput.md +++ b/docs/AppAppInput.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_input_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **default** | **str** | | [optional] **description** | **str** | | [optional] diff --git a/docs/AppAppInputConfig.md b/docs/AppAppInputConfig.md index 03f1d5fd..50a0dfc0 100644 --- a/docs/AppAppInputConfig.md +++ b/docs/AppAppInputConfig.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **input_groups** | [**List[AppAppInputGroup]**](AppAppInputGroup.md) | | [optional] diff --git a/docs/AppAppInputGroup.md b/docs/AppAppInputGroup.md index b2d0c765..3eaf22fe 100644 --- a/docs/AppAppInputGroup.md +++ b/docs/AppAppInputGroup.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **app_input_id** | **str** | | [optional] **app_inputs** | [**List[AppAppInput]**](AppAppInput.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **description** | **str** | | [optional] **display_name** | **str** | | [optional] diff --git a/docs/AppAppRunnerConfig.md b/docs/AppAppRunnerConfig.md index 4cd6f22a..0d8f55b9 100644 --- a/docs/AppAppRunnerConfig.md +++ b/docs/AppAppRunnerConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **app_runner_type** | [**AppAppRunnerType**](AppAppRunnerType.md) | | [optional] **cloud_platform** | [**AppCloudPlatform**](AppCloudPlatform.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **env_vars** | **Dict[str, str]** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppAppSandboxConfig.md b/docs/AppAppSandboxConfig.md index 6378e138..2100ac93 100644 --- a/docs/AppAppSandboxConfig.md +++ b/docs/AppAppSandboxConfig.md @@ -10,13 +10,11 @@ Name | Type | Description | Notes **cloud_platform** | [**AppCloudPlatform**](AppCloudPlatform.md) | | [optional] **connected_github_vcs_config** | [**AppConnectedGithubVCSConfig**](AppConnectedGithubVCSConfig.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **org_id** | **str** | | [optional] **public_git_vcs_config** | [**AppPublicGitVCSConfig**](AppPublicGitVCSConfig.md) | | [optional] -**sandbox_release** | [**AppSandboxRelease**](AppSandboxRelease.md) | | [optional] -**sandbox_release_id** | **str** | | [optional] **terraform_version** | **str** | | [optional] **updated_at** | **str** | | [optional] **variables** | **Dict[str, str]** | | [optional] diff --git a/docs/AppAppSecret.md b/docs/AppAppSecret.md index 192f03dc..f02efe05 100644 --- a/docs/AppAppSecret.md +++ b/docs/AppAppSecret.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **length** | **int** | after query fields | [optional] diff --git a/docs/AppAzureAccount.md b/docs/AppAzureAccount.md index 7c729bd3..7252bfd8 100644 --- a/docs/AppAzureAccount.md +++ b/docs/AppAzureAccount.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install** | [**AppInstall**](AppInstall.md) | | [optional] diff --git a/docs/AppComponent.md b/docs/AppComponent.md index 56129948..3a7bee4a 100644 --- a/docs/AppComponent.md +++ b/docs/AppComponent.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **app_id** | **str** | | [optional] **config_versions** | **int** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **dependencies** | **List[str]** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppComponentBuild.md b/docs/AppComponentBuild.md index 732c4e31..4656a282 100644 --- a/docs/AppComponentBuild.md +++ b/docs/AppComponentBuild.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **component_id** | **str** | Read-only fields set on the object to de-nest data | [optional] **component_name** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **git_ref** | **str** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppComponentConfigConnection.md b/docs/AppComponentConfigConnection.md index 39a988d8..4ea92811 100644 --- a/docs/AppComponentConfigConnection.md +++ b/docs/AppComponentConfigConnection.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **docker_build** | [**AppDockerBuildComponentConfig**](AppDockerBuildComponentConfig.md) | | [optional] **external_image** | [**AppExternalImageComponentConfig**](AppExternalImageComponentConfig.md) | | [optional] diff --git a/docs/AppComponentRelease.md b/docs/AppComponentRelease.md index c15b6a5d..8178c349 100644 --- a/docs/AppComponentRelease.md +++ b/docs/AppComponentRelease.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **build_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **release_steps** | [**List[AppComponentReleaseStep]**](AppComponentReleaseStep.md) | | [optional] diff --git a/docs/AppComponentReleaseStep.md b/docs/AppComponentReleaseStep.md index a07ba231..f3b69e7f 100644 --- a/docs/AppComponentReleaseStep.md +++ b/docs/AppComponentReleaseStep.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component_release_id** | **str** | parent release ID | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **delay** | **str** | fields to control the delay of the individual step, as this is set based on the parent strategy | [optional] **id** | **str** | | [optional] diff --git a/docs/AppConnectedGithubVCSConfig.md b/docs/AppConnectedGithubVCSConfig.md index 7832e535..85060190 100644 --- a/docs/AppConnectedGithubVCSConfig.md +++ b/docs/AppConnectedGithubVCSConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **component_config_id** | **str** | parent component | [optional] **component_config_type** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **directory** | **str** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppDockerBuildComponentConfig.md b/docs/AppDockerBuildComponentConfig.md index 115b9d16..edb2db76 100644 --- a/docs/AppDockerBuildComponentConfig.md +++ b/docs/AppDockerBuildComponentConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **component_config_connection_id** | **str** | value | [optional] **connected_github_vcs_config** | [**AppConnectedGithubVCSConfig**](AppConnectedGithubVCSConfig.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **dockerfile** | **str** | | [optional] **env_vars** | **Dict[str, str]** | | [optional] diff --git a/docs/AppExternalImageComponentConfig.md b/docs/AppExternalImageComponentConfig.md index b823d69c..e37692e9 100644 --- a/docs/AppExternalImageComponentConfig.md +++ b/docs/AppExternalImageComponentConfig.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **aws_ecr_image_config** | [**AppAWSECRImageConfig**](AppAWSECRImageConfig.md) | | [optional] **component_config_connection_id** | **str** | value | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **image_url** | **str** | | [optional] diff --git a/docs/AppHelmComponentConfig.md b/docs/AppHelmComponentConfig.md index 9ca984a1..919c3f38 100644 --- a/docs/AppHelmComponentConfig.md +++ b/docs/AppHelmComponentConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **component_config_connection_id** | **str** | parent reference | [optional] **connected_github_vcs_config** | [**AppConnectedGithubVCSConfig**](AppConnectedGithubVCSConfig.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **public_git_vcs_config** | [**AppPublicGitVCSConfig**](AppPublicGitVCSConfig.md) | | [optional] diff --git a/docs/AppInstall.md b/docs/AppInstall.md index 2965c34d..ca71813e 100644 --- a/docs/AppInstall.md +++ b/docs/AppInstall.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **aws_account** | [**AppAWSAccount**](AppAWSAccount.md) | | [optional] **azure_account** | [**AppAzureAccount**](AppAzureAccount.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install_components** | [**List[AppInstallComponent]**](AppInstallComponent.md) | | [optional] diff --git a/docs/AppInstallComponent.md b/docs/AppInstallComponent.md index 9e380a35..2e780dcb 100644 --- a/docs/AppInstallComponent.md +++ b/docs/AppInstallComponent.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **component** | [**AppComponent**](AppComponent.md) | | [optional] **component_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install_deploys** | [**List[AppInstallDeploy]**](AppInstallDeploy.md) | | [optional] diff --git a/docs/AppInstallDeploy.md b/docs/AppInstallDeploy.md index bb726e76..41359b0b 100644 --- a/docs/AppInstallDeploy.md +++ b/docs/AppInstallDeploy.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **component_id** | **str** | | [optional] **component_name** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install_component_id** | **str** | | [optional] diff --git a/docs/AppInstallEvent.md b/docs/AppInstallEvent.md index b7c01c7d..a872eebc 100644 --- a/docs/AppInstallEvent.md +++ b/docs/AppInstallEvent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install_id** | **str** | | [optional] diff --git a/docs/AppInstallInputs.md b/docs/AppInstallInputs.md index c3f1fce0..2f48e6af 100644 --- a/docs/AppInstallInputs.md +++ b/docs/AppInstallInputs.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_input_config_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install_id** | **str** | | [optional] diff --git a/docs/AppInstallSandboxRun.md b/docs/AppInstallSandboxRun.md index 160d6e30..80229078 100644 --- a/docs/AppInstallSandboxRun.md +++ b/docs/AppInstallSandboxRun.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_sandbox_config** | [**AppAppSandboxConfig**](AppAppSandboxConfig.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **install_id** | **str** | | [optional] diff --git a/docs/AppInstaller.md b/docs/AppInstaller.md index d527e5e1..3252a3da 100644 --- a/docs/AppInstaller.md +++ b/docs/AppInstaller.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apps** | [**List[AppApp]**](AppApp.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **metadata** | [**AppInstallerMetadata**](AppInstallerMetadata.md) | | [optional] diff --git a/docs/AppInstallerMetadata.md b/docs/AppInstallerMetadata.md index 09eab212..ad3a1c04 100644 --- a/docs/AppInstallerMetadata.md +++ b/docs/AppInstallerMetadata.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **community_url** | **str** | | [optional] **copyright_markdown** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **demo_url** | **str** | | [optional] **description** | **str** | | [optional] diff --git a/docs/AppJobComponentConfig.md b/docs/AppJobComponentConfig.md index 5024cab0..278296e4 100644 --- a/docs/AppJobComponentConfig.md +++ b/docs/AppJobComponentConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **cmd** | **List[str]** | | [optional] **component_config_connection_id** | **str** | value | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **env_vars** | **Dict[str, str]** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppNotificationsConfig.md b/docs/AppNotificationsConfig.md index 3df16f13..4a84b778 100644 --- a/docs/AppNotificationsConfig.md +++ b/docs/AppNotificationsConfig.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **org_id** | **str** | | [optional] diff --git a/docs/AppOrg.md b/docs/AppOrg.md index 5a65b8fd..118ccad2 100644 --- a/docs/AppOrg.md +++ b/docs/AppOrg.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **custom_cert** | **bool** | | [optional] **health_checks** | [**List[AppOrgHealthCheck]**](AppOrgHealthCheck.md) | | [optional] @@ -18,7 +18,6 @@ Name | Type | Description | Notes **status** | **str** | | [optional] **status_description** | **str** | | [optional] **updated_at** | **str** | | [optional] -**users** | [**List[AppUserOrg]**](AppUserOrg.md) | | [optional] **vcs_connections** | [**List[AppVCSConnection]**](AppVCSConnection.md) | | [optional] ## Example diff --git a/docs/AppOrgHealthCheck.md b/docs/AppOrgHealthCheck.md index 6b55c58c..f90fa1cf 100644 --- a/docs/AppOrgHealthCheck.md +++ b/docs/AppOrgHealthCheck.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **org_id** | **str** | | [optional] diff --git a/docs/AppOrgInvite.md b/docs/AppOrgInvite.md index 37b91d41..f2b3f6aa 100644 --- a/docs/AppOrgInvite.md +++ b/docs/AppOrgInvite.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **email** | **str** | | [optional] **id** | **str** | | [optional] **org_id** | **str** | parent relationship | [optional] +**role_type** | [**AppRoleType**](AppRoleType.md) | | [optional] **status** | [**AppOrgInviteStatus**](AppOrgInviteStatus.md) | | [optional] **updated_at** | **str** | | [optional] diff --git a/docs/AppPolicy.md b/docs/AppPolicy.md new file mode 100644 index 00000000..b5066733 --- /dev/null +++ b/docs/AppPolicy.md @@ -0,0 +1,36 @@ +# AppPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **str** | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] +**created_by_id** | **str** | | [optional] +**id** | **str** | | [optional] +**name** | [**AppPolicyName**](AppPolicyName.md) | | [optional] +**permissions** | **Dict[str, str]** | Permissions are used to track granular permissions for each domain | [optional] +**role_id** | **str** | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from nuon.models.app_policy import AppPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of AppPolicy from a JSON string +app_policy_instance = AppPolicy.from_json(json) +# print the JSON string representation of the object +print AppPolicy.to_json() + +# convert the object into a dict +app_policy_dict = app_policy_instance.to_dict() +# create an instance of AppPolicy from a dict +app_policy_form_dict = app_policy.from_dict(app_policy_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) + + diff --git a/docs/AppPolicyName.md b/docs/AppPolicyName.md new file mode 100644 index 00000000..8124365e --- /dev/null +++ b/docs/AppPolicyName.md @@ -0,0 +1,11 @@ +# AppPolicyName + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppPublicGitVCSConfig.md b/docs/AppPublicGitVCSConfig.md index 2d893589..888a71d9 100644 --- a/docs/AppPublicGitVCSConfig.md +++ b/docs/AppPublicGitVCSConfig.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **component_config_id** | **str** | | [optional] **component_config_type** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **directory** | **str** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppRole.md b/docs/AppRole.md new file mode 100644 index 00000000..5840b58e --- /dev/null +++ b/docs/AppRole.md @@ -0,0 +1,35 @@ +# AppRole + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] +**created_at** | **str** | | [optional] +**created_by_id** | **str** | | [optional] +**id** | **str** | | [optional] +**policies** | [**List[AppPolicy]**](AppPolicy.md) | | [optional] +**role_type** | [**AppRoleType**](AppRoleType.md) | | [optional] +**updated_at** | **str** | | [optional] + +## Example + +```python +from nuon.models.app_role import AppRole + +# TODO update the JSON string below +json = "{}" +# create an instance of AppRole from a JSON string +app_role_instance = AppRole.from_json(json) +# print the JSON string representation of the object +print AppRole.to_json() + +# convert the object into a dict +app_role_dict = app_role_instance.to_dict() +# create an instance of AppRole from a dict +app_role_form_dict = app_role.from_dict(app_role_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) + + diff --git a/docs/AppRoleType.md b/docs/AppRoleType.md new file mode 100644 index 00000000..ad40c326 --- /dev/null +++ b/docs/AppRoleType.md @@ -0,0 +1,11 @@ +# AppRoleType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppTerraformModuleComponentConfig.md b/docs/AppTerraformModuleComponentConfig.md index 71027758..0341aa02 100644 --- a/docs/AppTerraformModuleComponentConfig.md +++ b/docs/AppTerraformModuleComponentConfig.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **component_config_connection_id** | **str** | parent reference | [optional] **connected_github_vcs_config** | [**AppConnectedGithubVCSConfig**](AppConnectedGithubVCSConfig.md) | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **env_vars** | **Dict[str, str]** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppVCSConnection.md b/docs/AppVCSConnection.md index 19113b57..dc48c6cd 100644 --- a/docs/AppVCSConnection.md +++ b/docs/AppVCSConnection.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **github_install_id** | **str** | | [optional] **id** | **str** | | [optional] diff --git a/docs/AppVCSConnectionCommit.md b/docs/AppVCSConnectionCommit.md index db416c22..977f6b4c 100644 --- a/docs/AppVCSConnectionCommit.md +++ b/docs/AppVCSConnectionCommit.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **author_name** | **str** | | [optional] **component_config_connection_id** | **str** | | [optional] **created_at** | **str** | | [optional] -**created_by** | [**AppUserToken**](AppUserToken.md) | | [optional] +**created_by** | [**AppAccount**](AppAccount.md) | | [optional] **created_by_id** | **str** | | [optional] **id** | **str** | | [optional] **message** | **str** | | [optional] diff --git a/docs/GeneralApi.md b/docs/GeneralApi.md index 3cd703f1..be66a6fa 100644 --- a/docs/GeneralApi.md +++ b/docs/GeneralApi.md @@ -155,7 +155,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_current_user** -> AppUserToken get_current_user() +> AppAccount get_current_user() Get current user @@ -167,7 +167,7 @@ Get current user import time import os import nuon -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount from nuon.rest import ApiException from pprint import pprint @@ -210,7 +210,7 @@ This endpoint does not need any parameter. ### Return type -[**AppUserToken**](AppUserToken.md) +[**AppAccount**](AppAccount.md) ### Authorization diff --git a/docs/OrgsApi.md b/docs/OrgsApi.md index 98358005..fbf1e9ff 100644 --- a/docs/OrgsApi.md +++ b/docs/OrgsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **add_user** -> AppUserOrg add_user(service_create_org_user_request) +> AppAccount add_user(service_create_org_user_request) Add a user to the current org @@ -29,7 +29,7 @@ Add a user to the current org import time import os import nuon -from nuon.models.app_user_org import AppUserOrg +from nuon.models.app_account import AppAccount from nuon.models.service_create_org_user_request import ServiceCreateOrgUserRequest from nuon.rest import ApiException from pprint import pprint @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### Return type -[**AppUserOrg**](AppUserOrg.md) +[**AppAccount**](AppAccount.md) ### Authorization diff --git a/docs/PermissionsPermission.md b/docs/PermissionsPermission.md new file mode 100644 index 00000000..a83ed6a3 --- /dev/null +++ b/docs/PermissionsPermission.md @@ -0,0 +1,11 @@ +# PermissionsPermission + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceCreateAppSandboxConfigRequest.md b/docs/ServiceCreateAppSandboxConfigRequest.md index 60f6f71e..6ce944e3 100644 --- a/docs/ServiceCreateAppSandboxConfigRequest.md +++ b/docs/ServiceCreateAppSandboxConfigRequest.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **connected_github_vcs_config** | [**ServiceConnectedGithubVCSSandboxConfigRequest**](ServiceConnectedGithubVCSSandboxConfigRequest.md) | | [optional] **public_git_vcs_config** | [**ServicePublicGitVCSSandboxConfigRequest**](ServicePublicGitVCSSandboxConfigRequest.md) | | [optional] **sandbox_inputs** | **Dict[str, str]** | | -**sandbox_release_id** | **str** | | [optional] **terraform_version** | **str** | | ## Example diff --git a/nuon/__init__.py b/nuon/__init__.py index 65120096..b1a17233 100644 --- a/nuon/__init__.py +++ b/nuon/__init__.py @@ -7,7 +7,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "0.19.161" +__version__ = "0.19.162" # import apis into sdk package from nuon.api.apps_api import AppsApi @@ -25,7 +25,6 @@ from nuon.api.installs_api import InstallsApi from nuon.api.orgs_api import OrgsApi from nuon.api.releases_api import ReleasesApi -from nuon.api.sandboxes_api import SandboxesApi from nuon.api.vcs_api import VcsApi # import ApiClient @@ -42,6 +41,8 @@ # import models into sdk package from nuon.models.app_aws_account import AppAWSAccount from nuon.models.app_awsecr_image_config import AppAWSECRImageConfig +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_config import AppAppConfig from nuon.models.app_app_config_fmt import AppAppConfigFmt @@ -84,20 +85,20 @@ from nuon.models.app_org_health_check_status import AppOrgHealthCheckStatus from nuon.models.app_org_invite import AppOrgInvite from nuon.models.app_org_invite_status import AppOrgInviteStatus +from nuon.models.app_policy import AppPolicy +from nuon.models.app_policy_name import AppPolicyName from nuon.models.app_public_git_vcs_config import AppPublicGitVCSConfig -from nuon.models.app_sandbox import AppSandbox -from nuon.models.app_sandbox_release import AppSandboxRelease +from nuon.models.app_role import AppRole +from nuon.models.app_role_type import AppRoleType from nuon.models.app_sandbox_run_type import AppSandboxRunType from nuon.models.app_terraform_module_component_config import AppTerraformModuleComponentConfig -from nuon.models.app_token_type import AppTokenType -from nuon.models.app_user_org import AppUserOrg -from nuon.models.app_user_token import AppUserToken from nuon.models.app_vcs_connection import AppVCSConnection from nuon.models.app_vcs_connection_commit import AppVCSConnectionCommit from nuon.models.metrics_decr import MetricsDecr from nuon.models.metrics_event import MetricsEvent from nuon.models.metrics_incr import MetricsIncr from nuon.models.metrics_timing import MetricsTiming +from nuon.models.permissions_permission import PermissionsPermission from nuon.models.planv1_plan import Planv1Plan from nuon.models.service_app_config_template import ServiceAppConfigTemplate from nuon.models.service_app_config_template_type import ServiceAppConfigTemplateType diff --git a/nuon/api/__init__.py b/nuon/api/__init__.py index 8cd3132d..a74e986c 100644 --- a/nuon/api/__init__.py +++ b/nuon/api/__init__.py @@ -8,6 +8,5 @@ from nuon.api.installs_api import InstallsApi from nuon.api.orgs_api import OrgsApi from nuon.api.releases_api import ReleasesApi -from nuon.api.sandboxes_api import SandboxesApi from nuon.api.vcs_api import VcsApi diff --git a/nuon/api/apps_api.py b/nuon/api/apps_api.py index b7abe762..7db50ad0 100644 --- a/nuon/api/apps_api.py +++ b/nuon/api/apps_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/api/components_api.py b/nuon/api/components_api.py index 664760c7..bd678975 100644 --- a/nuon/api/components_api.py +++ b/nuon/api/components_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/api/general_api.py b/nuon/api/general_api.py index 817303d4..0eabad3a 100644 --- a/nuon/api/general_api.py +++ b/nuon/api/general_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,8 +27,8 @@ from pydantic import Field, StrictStr from typing import List from typing_extensions import Annotated +from nuon.models.app_account import AppAccount from nuon.models.app_cloud_platform_region import AppCloudPlatformRegion -from nuon.models.app_user_token import AppUserToken from nuon.models.service_cli_config import ServiceCLIConfig from nuon.models.service_publish_metric_input import ServicePublishMetricInput @@ -591,7 +591,7 @@ def get_current_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppUserToken: + ) -> AppAccount: """Get current user @@ -625,7 +625,7 @@ def get_current_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppUserToken", + '200': "AppAccount", '400': "StderrErrResponse", '401': "StderrErrResponse", '403': "StderrErrResponse", @@ -658,7 +658,7 @@ def get_current_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppUserToken]: + ) -> ApiResponse[AppAccount]: """Get current user @@ -692,7 +692,7 @@ def get_current_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppUserToken", + '200': "AppAccount", '400': "StderrErrResponse", '401': "StderrErrResponse", '403': "StderrErrResponse", @@ -759,7 +759,7 @@ def get_current_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppUserToken", + '200': "AppAccount", '400': "StderrErrResponse", '401': "StderrErrResponse", '403': "StderrErrResponse", diff --git a/nuon/api/installers_api.py b/nuon/api/installers_api.py index d542c9c6..1c92b934 100644 --- a/nuon/api/installers_api.py +++ b/nuon/api/installers_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/api/installs_api.py b/nuon/api/installs_api.py index 621e1175..36227265 100644 --- a/nuon/api/installs_api.py +++ b/nuon/api/installs_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/api/orgs_api.py b/nuon/api/orgs_api.py index 7437f07e..62cdafba 100644 --- a/nuon/api/orgs_api.py +++ b/nuon/api/orgs_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,10 +27,10 @@ from pydantic import Field, StrictBool, StrictInt from typing import List, Optional from typing_extensions import Annotated +from nuon.models.app_account import AppAccount from nuon.models.app_org import AppOrg from nuon.models.app_org_health_check import AppOrgHealthCheck from nuon.models.app_org_invite import AppOrgInvite -from nuon.models.app_user_org import AppUserOrg from nuon.models.service_create_org_invite_request import ServiceCreateOrgInviteRequest from nuon.models.service_create_org_request import ServiceCreateOrgRequest from nuon.models.service_create_org_user_request import ServiceCreateOrgUserRequest @@ -70,7 +70,7 @@ def add_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppUserOrg: + ) -> AppAccount: """Add a user to the current org @@ -107,7 +107,7 @@ def add_user( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "AppUserOrg", + '201': "AppAccount", '400': "StderrErrResponse", '401': "StderrErrResponse", '403': "StderrErrResponse", @@ -141,7 +141,7 @@ def add_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppUserOrg]: + ) -> ApiResponse[AppAccount]: """Add a user to the current org @@ -178,7 +178,7 @@ def add_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "AppUserOrg", + '201': "AppAccount", '400': "StderrErrResponse", '401': "StderrErrResponse", '403': "StderrErrResponse", @@ -249,7 +249,7 @@ def add_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "AppUserOrg", + '201': "AppAccount", '400': "StderrErrResponse", '401': "StderrErrResponse", '403': "StderrErrResponse", diff --git a/nuon/api/releases_api.py b/nuon/api/releases_api.py index 843e5270..883b192f 100644 --- a/nuon/api/releases_api.py +++ b/nuon/api/releases_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/api/vcs_api.py b/nuon/api/vcs_api.py index 5ed574ee..645a82ba 100644 --- a/nuon/api/vcs_api.py +++ b/nuon/api/vcs_api.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/api_client.py b/nuon/api_client.py index 13d1bf5f..537ba66a 100644 --- a/nuon/api_client.py +++ b/nuon/api_client.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -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.161/python' + self.user_agent = 'OpenAPI-Generator/0.19.162/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/nuon/configuration.py b/nuon/configuration.py index dd0a50d3..b03e18c1 100644 --- a/nuon/configuration.py +++ b/nuon/configuration.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -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.161\n"\ - "SDK Package Version: 0.19.161".\ + "Version of the API: 0.19.162\n"\ + "SDK Package Version: 0.19.162".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/nuon/exceptions.py b/nuon/exceptions.py index c5cec67b..a0f440c5 100644 --- a/nuon/exceptions.py +++ b/nuon/exceptions.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/__init__.py b/nuon/models/__init__.py index 80c39a33..a8d6ddca 100644 --- a/nuon/models/__init__.py +++ b/nuon/models/__init__.py @@ -6,7 +6,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,6 +17,8 @@ # import models into model package from nuon.models.app_aws_account import AppAWSAccount from nuon.models.app_awsecr_image_config import AppAWSECRImageConfig +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_config import AppAppConfig from nuon.models.app_app_config_fmt import AppAppConfigFmt @@ -59,20 +61,20 @@ from nuon.models.app_org_health_check_status import AppOrgHealthCheckStatus from nuon.models.app_org_invite import AppOrgInvite from nuon.models.app_org_invite_status import AppOrgInviteStatus +from nuon.models.app_policy import AppPolicy +from nuon.models.app_policy_name import AppPolicyName from nuon.models.app_public_git_vcs_config import AppPublicGitVCSConfig -from nuon.models.app_sandbox import AppSandbox -from nuon.models.app_sandbox_release import AppSandboxRelease +from nuon.models.app_role import AppRole +from nuon.models.app_role_type import AppRoleType from nuon.models.app_sandbox_run_type import AppSandboxRunType from nuon.models.app_terraform_module_component_config import AppTerraformModuleComponentConfig -from nuon.models.app_token_type import AppTokenType -from nuon.models.app_user_org import AppUserOrg -from nuon.models.app_user_token import AppUserToken from nuon.models.app_vcs_connection import AppVCSConnection from nuon.models.app_vcs_connection_commit import AppVCSConnectionCommit from nuon.models.metrics_decr import MetricsDecr from nuon.models.metrics_event import MetricsEvent from nuon.models.metrics_incr import MetricsIncr from nuon.models.metrics_timing import MetricsTiming +from nuon.models.permissions_permission import PermissionsPermission from nuon.models.planv1_plan import Planv1Plan from nuon.models.service_app_config_template import ServiceAppConfigTemplate from nuon.models.service_app_config_template_type import ServiceAppConfigTemplateType diff --git a/nuon/models/app_account.py b/nuon/models/app_account.py new file mode 100644 index 00000000..a3e37865 --- /dev/null +++ b/nuon/models/app_account.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + 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_type import AppAccountType +from nuon.models.permissions_permission import PermissionsPermission +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class AppAccount(BaseModel): + """ + AppAccount + """ # noqa: E501 + account_type: Optional[AppAccountType] = None + created_at: Optional[StrictStr] = None + email: Optional[StrictStr] = None + id: Optional[StrictStr] = None + org_ids: Optional[List[StrictStr]] = Field(default=None, description="ReadOnly Fields") + orgs: Optional[List[AppOrg]] = None + permissions: Optional[Dict[str, PermissionsPermission]] = None + roles: Optional[List[AppRole]] = None + subject: Optional[StrictStr] = None + updated_at: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["account_type", "created_at", "email", "id", "org_ids", "orgs", "permissions", "roles", "subject", "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 AppAccount 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 each item in orgs (list) + _items = [] + if self.orgs: + for _item in self.orgs: + if _item: + _items.append(_item.to_dict()) + _dict['orgs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of AppAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account_type": obj.get("account_type"), + "created_at": obj.get("created_at"), + "email": obj.get("email"), + "id": obj.get("id"), + "org_ids": obj.get("org_ids"), + "orgs": [AppOrg.from_dict(_item) for _item in obj.get("orgs")] if obj.get("orgs") is not None else None, + "permissions": dict((_k, _v) for _k, _v in obj.get("permissions").items()), + "roles": [AppRole.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None, + "subject": obj.get("subject"), + "updated_at": obj.get("updated_at") + }) + return _obj + +from nuon.models.app_org import AppOrg +from nuon.models.app_role import AppRole +# TODO: Rewrite to not use raise_errors +AppAccount.model_rebuild(raise_errors=False) + diff --git a/nuon/models/app_account_type.py b/nuon/models/app_account_type.py new file mode 100644 index 00000000..0a4db9b4 --- /dev/null +++ b/nuon/models/app_account_type.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +import re # noqa: F401 +from enum import Enum + + + +try: + from typing import Self +except ImportError: + from typing_extensions import Self + + +class AppAccountType(str, Enum): + """ + AppAccountType + """ + + """ + allowed enum values + """ + AUTH0 = 'auth0' + SERVICE = 'service' + CANARY = 'canary' + INTEGRATION = 'integration' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AppAccountType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/nuon/models/app_app.py b/nuon/models/app_app.py index 5203c37a..c26e0f30 100644 --- a/nuon/models/app_app.py +++ b/nuon/models/app_app.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,12 +23,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_input_config import AppAppInputConfig from nuon.models.app_app_runner_config import AppAppRunnerConfig from nuon.models.app_app_sandbox_config import AppAppSandboxConfig from nuon.models.app_cloud_platform import AppCloudPlatform from nuon.models.app_notifications_config import AppNotificationsConfig -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -40,7 +40,7 @@ class AppApp(BaseModel): """ # noqa: E501 cloud_platform: Optional[AppCloudPlatform] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None description: Optional[StrictStr] = None display_name: Optional[StrictStr] = None @@ -122,7 +122,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "cloud_platform": obj.get("cloud_platform"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "description": obj.get("description"), "display_name": obj.get("display_name"), diff --git a/nuon/models/app_app_config.py b/nuon/models/app_app_config.py index f62ac89f..fdc73529 100644 --- a/nuon/models/app_app_config.py +++ b/nuon/models/app_app_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_config_fmt import AppAppConfigFmt from nuon.models.app_app_config_status import AppAppConfigStatus -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -38,7 +38,7 @@ class AppAppConfig(BaseModel): app_id: Optional[StrictStr] = None content: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None format: Optional[AppAppConfigFmt] = None generated_terraform: Optional[StrictStr] = None @@ -105,7 +105,7 @@ def from_dict(cls, obj: Dict) -> Self: "app_id": obj.get("app_id"), "content": obj.get("content"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "format": obj.get("format"), "generated_terraform": obj.get("generated_terraform"), diff --git a/nuon/models/app_app_config_fmt.py b/nuon/models/app_app_config_fmt.py index 23e66c8c..a75d230c 100644 --- a/nuon/models/app_app_config_fmt.py +++ b/nuon/models/app_app_config_fmt.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_app_config_status.py b/nuon/models/app_app_config_status.py index ccc9e6d6..5867234d 100644 --- a/nuon/models/app_app_config_status.py +++ b/nuon/models/app_app_config_status.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_app_input.py b/nuon/models/app_app_input.py index a6fe0ea2..447e8725 100644 --- a/nuon/models/app_app_input.py +++ b/nuon/models/app_app_input.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -35,7 +35,7 @@ class AppAppInput(BaseModel): """ # noqa: E501 app_input_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None default: Optional[StrictStr] = None description: Optional[StrictStr] = None @@ -107,7 +107,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "app_input_id": obj.get("app_input_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "default": obj.get("default"), "description": obj.get("description"), diff --git a/nuon/models/app_app_input_config.py b/nuon/models/app_app_input_config.py index 835371e5..365342ac 100644 --- a/nuon/models/app_app_input_config.py +++ b/nuon/models/app_app_input_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,10 +23,10 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_input import AppAppInput from nuon.models.app_app_input_group import AppAppInputGroup from nuon.models.app_install_inputs import AppInstallInputs -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -38,7 +38,7 @@ class AppAppInputConfig(BaseModel): """ # noqa: E501 app_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None input_groups: Optional[List[AppAppInputGroup]] = None @@ -123,7 +123,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "app_id": obj.get("app_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "input_groups": [AppAppInputGroup.from_dict(_item) for _item in obj.get("input_groups")] if obj.get("input_groups") is not None else None, diff --git a/nuon/models/app_app_input_group.py b/nuon/models/app_app_input_group.py index 9682ae5c..ba67d331 100644 --- a/nuon/models/app_app_input_group.py +++ b/nuon/models/app_app_input_group.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -36,7 +36,7 @@ class AppAppInputGroup(BaseModel): app_input_id: Optional[StrictStr] = None app_inputs: Optional[List[AppAppInput]] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None description: Optional[StrictStr] = None display_name: Optional[StrictStr] = None @@ -108,7 +108,7 @@ def from_dict(cls, obj: Dict) -> Self: "app_input_id": obj.get("app_input_id"), "app_inputs": [AppAppInput.from_dict(_item) for _item in obj.get("app_inputs")] if obj.get("app_inputs") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "description": obj.get("description"), "display_name": obj.get("display_name"), diff --git a/nuon/models/app_app_runner_config.py b/nuon/models/app_app_runner_config.py index abcfc3ef..76fe57b3 100644 --- a/nuon/models/app_app_runner_config.py +++ b/nuon/models/app_app_runner_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_runner_type import AppAppRunnerType from nuon.models.app_cloud_platform import AppCloudPlatform -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -39,7 +39,7 @@ class AppAppRunnerConfig(BaseModel): app_runner_type: Optional[AppAppRunnerType] = None cloud_platform: Optional[AppCloudPlatform] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None id: Optional[StrictStr] = None @@ -103,7 +103,7 @@ def from_dict(cls, obj: Dict) -> Self: "app_runner_type": obj.get("app_runner_type"), "cloud_platform": obj.get("cloud_platform"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "env_vars": obj.get("env_vars"), "id": obj.get("id"), diff --git a/nuon/models/app_app_runner_type.py b/nuon/models/app_app_runner_type.py index b63c6b52..a0a1b7f3 100644 --- a/nuon/models/app_app_runner_type.py +++ b/nuon/models/app_app_runner_type.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_app_sandbox_config.py b/nuon/models/app_app_sandbox_config.py index 5f1aaa3b..c0361623 100644 --- a/nuon/models/app_app_sandbox_config.py +++ b/nuon/models/app_app_sandbox_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,12 +23,11 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_sandbox_config_artifacts import AppAppSandboxConfigArtifacts from nuon.models.app_cloud_platform import AppCloudPlatform from nuon.models.app_connected_github_vcs_config import AppConnectedGithubVCSConfig from nuon.models.app_public_git_vcs_config import AppPublicGitVCSConfig -from nuon.models.app_sandbox_release import AppSandboxRelease -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -43,17 +42,15 @@ class AppAppSandboxConfig(BaseModel): cloud_platform: Optional[AppCloudPlatform] = None connected_github_vcs_config: Optional[AppConnectedGithubVCSConfig] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None org_id: Optional[StrictStr] = None public_git_vcs_config: Optional[AppPublicGitVCSConfig] = None - sandbox_release: Optional[AppSandboxRelease] = None - sandbox_release_id: Optional[StrictStr] = None terraform_version: Optional[StrictStr] = None updated_at: Optional[StrictStr] = None variables: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["app_id", "artifacts", "cloud_platform", "connected_github_vcs_config", "created_at", "created_by", "created_by_id", "id", "org_id", "public_git_vcs_config", "sandbox_release", "sandbox_release_id", "terraform_version", "updated_at", "variables"] + __properties: ClassVar[List[str]] = ["app_id", "artifacts", "cloud_platform", "connected_github_vcs_config", "created_at", "created_by", "created_by_id", "id", "org_id", "public_git_vcs_config", "terraform_version", "updated_at", "variables"] model_config = { "populate_by_name": True, @@ -104,9 +101,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of public_git_vcs_config if self.public_git_vcs_config: _dict['public_git_vcs_config'] = self.public_git_vcs_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of sandbox_release - if self.sandbox_release: - _dict['sandbox_release'] = self.sandbox_release.to_dict() return _dict @classmethod @@ -124,13 +118,11 @@ def from_dict(cls, obj: Dict) -> Self: "cloud_platform": obj.get("cloud_platform"), "connected_github_vcs_config": AppConnectedGithubVCSConfig.from_dict(obj.get("connected_github_vcs_config")) if obj.get("connected_github_vcs_config") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "org_id": obj.get("org_id"), "public_git_vcs_config": AppPublicGitVCSConfig.from_dict(obj.get("public_git_vcs_config")) if obj.get("public_git_vcs_config") is not None else None, - "sandbox_release": AppSandboxRelease.from_dict(obj.get("sandbox_release")) if obj.get("sandbox_release") is not None else None, - "sandbox_release_id": obj.get("sandbox_release_id"), "terraform_version": obj.get("terraform_version"), "updated_at": obj.get("updated_at"), "variables": obj.get("variables") diff --git a/nuon/models/app_app_sandbox_config_artifacts.py b/nuon/models/app_app_sandbox_config_artifacts.py index 8b91e472..836bf4e5 100644 --- a/nuon/models/app_app_sandbox_config_artifacts.py +++ b/nuon/models/app_app_sandbox_config_artifacts.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_app_secret.py b/nuon/models/app_app_secret.py index b414b9e1..919eb32b 100644 --- a/nuon/models/app_app_secret.py +++ b/nuon/models/app_app_secret.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -35,7 +35,7 @@ class AppAppSecret(BaseModel): """ # noqa: E501 app_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None length: Optional[StrictInt] = Field(default=None, description="after query fields") @@ -98,7 +98,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "app_id": obj.get("app_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "length": obj.get("length"), diff --git a/nuon/models/app_aws_account.py b/nuon/models/app_aws_account.py index 11d4d9a3..63449691 100644 --- a/nuon/models/app_aws_account.py +++ b/nuon/models/app_aws_account.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -34,7 +34,7 @@ class AppAWSAccount(BaseModel): AppAWSAccount """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None iam_role_arn: Optional[StrictStr] = None id: Optional[StrictStr] = None @@ -95,7 +95,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), diff --git a/nuon/models/app_awsecr_image_config.py b/nuon/models/app_awsecr_image_config.py index 08ad855e..c99c9a6a 100644 --- a/nuon/models/app_awsecr_image_config.py +++ b/nuon/models/app_awsecr_image_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -37,7 +37,7 @@ class AppAWSECRImageConfig(BaseModel): component_config_id: Optional[StrictStr] = Field(default=None, description="connection to parent model") component_config_type: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None iam_role_arn: Optional[StrictStr] = Field(default=None, description="actual configuration") id: Optional[StrictStr] = None @@ -100,7 +100,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_config_id": obj.get("component_config_id"), "component_config_type": obj.get("component_config_type"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), diff --git a/nuon/models/app_azure_account.py b/nuon/models/app_azure_account.py index 4748488e..a1ba13be 100644 --- a/nuon/models/app_azure_account.py +++ b/nuon/models/app_azure_account.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -34,7 +34,7 @@ class AppAzureAccount(BaseModel): AppAzureAccount """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install: Optional[AppInstall] = None @@ -102,7 +102,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install": AppInstall.from_dict(obj.get("install")) if obj.get("install") is not None else None, diff --git a/nuon/models/app_cloud_platform.py b/nuon/models/app_cloud_platform.py index e8d8b205..2641e11d 100644 --- a/nuon/models/app_cloud_platform.py +++ b/nuon/models/app_cloud_platform.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_cloud_platform_region.py b/nuon/models/app_cloud_platform_region.py index 603c82cc..2f6883c9 100644 --- a/nuon/models/app_cloud_platform_region.py +++ b/nuon/models/app_cloud_platform_region.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_component.py b/nuon/models/app_component.py index 1c23a8cf..04d211b5 100644 --- a/nuon/models/app_component.py +++ b/nuon/models/app_component.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -36,7 +36,7 @@ class AppComponent(BaseModel): app_id: Optional[StrictStr] = None config_versions: Optional[StrictInt] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None dependencies: Optional[List[StrictStr]] = None id: Optional[StrictStr] = None @@ -103,7 +103,7 @@ def from_dict(cls, obj: Dict) -> Self: "app_id": obj.get("app_id"), "config_versions": obj.get("config_versions"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "dependencies": obj.get("dependencies"), "id": obj.get("id"), diff --git a/nuon/models/app_component_build.py b/nuon/models/app_component_build.py index bc501514..c1d14505 100644 --- a/nuon/models/app_component_build.py +++ b/nuon/models/app_component_build.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_component_release import AppComponentRelease from nuon.models.app_install_deploy import AppInstallDeploy -from nuon.models.app_user_token import AppUserToken from nuon.models.app_vcs_connection_commit import AppVCSConnectionCommit try: from typing import Self @@ -41,7 +41,7 @@ class AppComponentBuild(BaseModel): component_id: Optional[StrictStr] = Field(default=None, description="Read-only fields set on the object to de-nest data") component_name: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None git_ref: Optional[StrictStr] = None id: Optional[StrictStr] = None @@ -127,7 +127,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_id": obj.get("component_id"), "component_name": obj.get("component_name"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "git_ref": obj.get("git_ref"), "id": obj.get("id"), diff --git a/nuon/models/app_component_config_connection.py b/nuon/models/app_component_config_connection.py index 1928fb48..a1236cfe 100644 --- a/nuon/models/app_component_config_connection.py +++ b/nuon/models/app_component_config_connection.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,12 +23,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_docker_build_component_config import AppDockerBuildComponentConfig from nuon.models.app_external_image_component_config import AppExternalImageComponentConfig from nuon.models.app_helm_component_config import AppHelmComponentConfig from nuon.models.app_job_component_config import AppJobComponentConfig from nuon.models.app_terraform_module_component_config import AppTerraformModuleComponentConfig -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -40,7 +40,7 @@ class AppComponentConfigConnection(BaseModel): """ # noqa: E501 component_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None docker_build: Optional[AppDockerBuildComponentConfig] = None external_image: Optional[AppExternalImageComponentConfig] = None @@ -121,7 +121,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "component_id": obj.get("component_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "docker_build": AppDockerBuildComponentConfig.from_dict(obj.get("docker_build")) if obj.get("docker_build") is not None else None, "external_image": AppExternalImageComponentConfig.from_dict(obj.get("external_image")) if obj.get("external_image") is not None else None, diff --git a/nuon/models/app_component_release.py b/nuon/models/app_component_release.py index ae141d88..cfdac6ef 100644 --- a/nuon/models/app_component_release.py +++ b/nuon/models/app_component_release.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,8 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_component_release_step import AppComponentReleaseStep -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -36,7 +36,7 @@ class AppComponentRelease(BaseModel): """ # noqa: E501 build_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None release_steps: Optional[List[AppComponentReleaseStep]] = None @@ -107,7 +107,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "build_id": obj.get("build_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "release_steps": [AppComponentReleaseStep.from_dict(_item) for _item in obj.get("release_steps")] if obj.get("release_steps") is not None else None, diff --git a/nuon/models/app_component_release_step.py b/nuon/models/app_component_release_step.py index 09ac02e7..c6a30455 100644 --- a/nuon/models/app_component_release_step.py +++ b/nuon/models/app_component_release_step.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_install_deploy import AppInstallDeploy -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -36,7 +36,7 @@ class AppComponentReleaseStep(BaseModel): """ # noqa: E501 component_release_id: Optional[StrictStr] = Field(default=None, description="parent release ID") created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None delay: Optional[StrictStr] = Field(default=None, description="fields to control the delay of the individual step, as this is set based on the parent strategy") id: Optional[StrictStr] = None @@ -108,7 +108,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "component_release_id": obj.get("component_release_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "delay": obj.get("delay"), "id": obj.get("id"), diff --git a/nuon/models/app_connected_github_vcs_config.py b/nuon/models/app_connected_github_vcs_config.py index d10eeb0a..466a6b25 100644 --- a/nuon/models/app_connected_github_vcs_config.py +++ b/nuon/models/app_connected_github_vcs_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount from nuon.models.app_vcs_connection import AppVCSConnection try: from typing import Self @@ -38,7 +38,7 @@ class AppConnectedGithubVCSConfig(BaseModel): component_config_id: Optional[StrictStr] = Field(default=None, description="parent component") component_config_type: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None directory: Optional[StrictStr] = None id: Optional[StrictStr] = None @@ -109,7 +109,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_config_id": obj.get("component_config_id"), "component_config_type": obj.get("component_config_type"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "directory": obj.get("directory"), "id": obj.get("id"), diff --git a/nuon/models/app_docker_build_component_config.py b/nuon/models/app_docker_build_component_config.py index 4e001f9f..d5dc8968 100644 --- a/nuon/models/app_docker_build_component_config.py +++ b/nuon/models/app_docker_build_component_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_connected_github_vcs_config import AppConnectedGithubVCSConfig from nuon.models.app_public_git_vcs_config import AppPublicGitVCSConfig -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -39,7 +39,7 @@ class AppDockerBuildComponentConfig(BaseModel): component_config_connection_id: Optional[StrictStr] = Field(default=None, description="value") connected_github_vcs_config: Optional[AppConnectedGithubVCSConfig] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None dockerfile: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None @@ -111,7 +111,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_config_connection_id": obj.get("component_config_connection_id"), "connected_github_vcs_config": AppConnectedGithubVCSConfig.from_dict(obj.get("connected_github_vcs_config")) if obj.get("connected_github_vcs_config") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "dockerfile": obj.get("dockerfile"), "env_vars": obj.get("env_vars"), diff --git a/nuon/models/app_external_image_component_config.py b/nuon/models/app_external_image_component_config.py index 1d207d81..e7b1042c 100644 --- a/nuon/models/app_external_image_component_config.py +++ b/nuon/models/app_external_image_component_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_awsecr_image_config import AppAWSECRImageConfig -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -37,7 +37,7 @@ class AppExternalImageComponentConfig(BaseModel): aws_ecr_image_config: Optional[AppAWSECRImageConfig] = None component_config_connection_id: Optional[StrictStr] = Field(default=None, description="value") created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None image_url: Optional[StrictStr] = None @@ -103,7 +103,7 @@ def from_dict(cls, obj: Dict) -> Self: "aws_ecr_image_config": AppAWSECRImageConfig.from_dict(obj.get("aws_ecr_image_config")) if obj.get("aws_ecr_image_config") is not None else None, "component_config_connection_id": obj.get("component_config_connection_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "image_url": obj.get("image_url"), diff --git a/nuon/models/app_helm_component_config.py b/nuon/models/app_helm_component_config.py index 8bc951f6..1defb90a 100644 --- a/nuon/models/app_helm_component_config.py +++ b/nuon/models/app_helm_component_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_connected_github_vcs_config import AppConnectedGithubVCSConfig from nuon.models.app_public_git_vcs_config import AppPublicGitVCSConfig -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -39,7 +39,7 @@ class AppHelmComponentConfig(BaseModel): component_config_connection_id: Optional[StrictStr] = Field(default=None, description="parent reference") connected_github_vcs_config: Optional[AppConnectedGithubVCSConfig] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None public_git_vcs_config: Optional[AppPublicGitVCSConfig] = None @@ -110,7 +110,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_config_connection_id": obj.get("component_config_connection_id"), "connected_github_vcs_config": AppConnectedGithubVCSConfig.from_dict(obj.get("connected_github_vcs_config")) if obj.get("connected_github_vcs_config") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "public_git_vcs_config": AppPublicGitVCSConfig.from_dict(obj.get("public_git_vcs_config")) if obj.get("public_git_vcs_config") is not None else None, diff --git a/nuon/models/app_install.py b/nuon/models/app_install.py index c763bd04..8ff4476b 100644 --- a/nuon/models/app_install.py +++ b/nuon/models/app_install.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_runner_config import AppAppRunnerConfig from nuon.models.app_app_sandbox_config import AppAppSandboxConfig from nuon.models.app_aws_account import AppAWSAccount @@ -30,7 +31,6 @@ from nuon.models.app_install_event import AppInstallEvent from nuon.models.app_install_inputs import AppInstallInputs from nuon.models.app_install_sandbox_run import AppInstallSandboxRun -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -46,7 +46,7 @@ class AppInstall(BaseModel): aws_account: Optional[AppAWSAccount] = None azure_account: Optional[AppAzureAccount] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install_components: Optional[List[AppInstallComponent]] = None @@ -158,7 +158,7 @@ def from_dict(cls, obj: Dict) -> Self: "aws_account": AppAWSAccount.from_dict(obj.get("aws_account")) if obj.get("aws_account") is not None else None, "azure_account": AppAzureAccount.from_dict(obj.get("azure_account")) if obj.get("azure_account") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install_components": [AppInstallComponent.from_dict(_item) for _item in obj.get("install_components")] if obj.get("install_components") is not None else None, diff --git a/nuon/models/app_install_component.py b/nuon/models/app_install_component.py index 21248464..dd07e0c8 100644 --- a/nuon/models/app_install_component.py +++ b/nuon/models/app_install_component.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_component import AppComponent from nuon.models.app_install_deploy import AppInstallDeploy -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -38,7 +38,7 @@ class AppInstallComponent(BaseModel): component: Optional[AppComponent] = None component_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install_deploys: Optional[List[AppInstallDeploy]] = None @@ -111,7 +111,7 @@ def from_dict(cls, obj: Dict) -> Self: "component": AppComponent.from_dict(obj.get("component")) if obj.get("component") is not None else None, "component_id": obj.get("component_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install_deploys": [AppInstallDeploy.from_dict(_item) for _item in obj.get("install_deploys")] if obj.get("install_deploys") is not None else None, diff --git a/nuon/models/app_install_deploy.py b/nuon/models/app_install_deploy.py index e22395e2..1624d6c8 100644 --- a/nuon/models/app_install_deploy.py +++ b/nuon/models/app_install_deploy.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_install_deploy_type import AppInstallDeployType -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -39,7 +39,7 @@ class AppInstallDeploy(BaseModel): component_id: Optional[StrictStr] = None component_name: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install_component_id: Optional[StrictStr] = None @@ -108,7 +108,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_id": obj.get("component_id"), "component_name": obj.get("component_name"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install_component_id": obj.get("install_component_id"), diff --git a/nuon/models/app_install_deploy_type.py b/nuon/models/app_install_deploy_type.py index 9b70b650..9d4a1591 100644 --- a/nuon/models/app_install_deploy_type.py +++ b/nuon/models/app_install_deploy_type.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_install_event.py b/nuon/models/app_install_event.py index eda284dd..4d2f92a8 100644 --- a/nuon/models/app_install_event.py +++ b/nuon/models/app_install_event.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,8 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_operation_status import AppOperationStatus -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -35,7 +35,7 @@ class AppInstallEvent(BaseModel): AppInstallEvent """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install_id: Optional[StrictStr] = None @@ -100,7 +100,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install_id": obj.get("install_id"), diff --git a/nuon/models/app_install_inputs.py b/nuon/models/app_install_inputs.py index cf582f06..cf9ed675 100644 --- a/nuon/models/app_install_inputs.py +++ b/nuon/models/app_install_inputs.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -35,7 +35,7 @@ class AppInstallInputs(BaseModel): """ # noqa: E501 app_input_config_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install_id: Optional[StrictStr] = None @@ -98,7 +98,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "app_input_config_id": obj.get("app_input_config_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install_id": obj.get("install_id"), diff --git a/nuon/models/app_install_sandbox_run.py b/nuon/models/app_install_sandbox_run.py index 29016d77..6e0d64e5 100644 --- a/nuon/models/app_install_sandbox_run.py +++ b/nuon/models/app_install_sandbox_run.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app_sandbox_config import AppAppSandboxConfig from nuon.models.app_sandbox_run_type import AppSandboxRunType -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -37,7 +37,7 @@ class AppInstallSandboxRun(BaseModel): """ # noqa: E501 app_sandbox_config: Optional[AppAppSandboxConfig] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None install_id: Optional[StrictStr] = None @@ -104,7 +104,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "app_sandbox_config": AppAppSandboxConfig.from_dict(obj.get("app_sandbox_config")) if obj.get("app_sandbox_config") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "install_id": obj.get("install_id"), diff --git a/nuon/models/app_installer.py b/nuon/models/app_installer.py index 4895f97c..6cb16ee6 100644 --- a/nuon/models/app_installer.py +++ b/nuon/models/app_installer.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,10 +23,10 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_app import AppApp from nuon.models.app_installer_metadata import AppInstallerMetadata from nuon.models.app_installer_type import AppInstallerType -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -38,7 +38,7 @@ class AppInstaller(BaseModel): """ # noqa: E501 apps: Optional[List[AppApp]] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None metadata: Optional[AppInstallerMetadata] = None @@ -111,7 +111,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "apps": [AppApp.from_dict(_item) for _item in obj.get("apps")] if obj.get("apps") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "metadata": AppInstallerMetadata.from_dict(obj.get("metadata")) if obj.get("metadata") is not None else None, diff --git a/nuon/models/app_installer_metadata.py b/nuon/models/app_installer_metadata.py index fca09f65..a54ba959 100644 --- a/nuon/models/app_installer_metadata.py +++ b/nuon/models/app_installer_metadata.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -36,7 +36,7 @@ class AppInstallerMetadata(BaseModel): community_url: Optional[StrictStr] = None copyright_markdown: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None demo_url: Optional[StrictStr] = None description: Optional[StrictStr] = None @@ -109,7 +109,7 @@ def from_dict(cls, obj: Dict) -> Self: "community_url": obj.get("community_url"), "copyright_markdown": obj.get("copyright_markdown"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "demo_url": obj.get("demo_url"), "description": obj.get("description"), diff --git a/nuon/models/app_installer_type.py b/nuon/models/app_installer_type.py index 85b410d5..4a12efa1 100644 --- a/nuon/models/app_installer_type.py +++ b/nuon/models/app_installer_type.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_job_component_config.py b/nuon/models/app_job_component_config.py index 7f448c74..c2649de0 100644 --- a/nuon/models/app_job_component_config.py +++ b/nuon/models/app_job_component_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -37,7 +37,7 @@ class AppJobComponentConfig(BaseModel): cmd: Optional[List[StrictStr]] = None component_config_connection_id: Optional[StrictStr] = Field(default=None, description="value") created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None id: Optional[StrictStr] = None @@ -102,7 +102,7 @@ def from_dict(cls, obj: Dict) -> Self: "cmd": obj.get("cmd"), "component_config_connection_id": obj.get("component_config_connection_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "env_vars": obj.get("env_vars"), "id": obj.get("id"), diff --git a/nuon/models/app_notifications_config.py b/nuon/models/app_notifications_config.py index 2d38072b..aac3c915 100644 --- a/nuon/models/app_notifications_config.py +++ b/nuon/models/app_notifications_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -34,7 +33,7 @@ class AppNotificationsConfig(BaseModel): AppNotificationsConfig """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None org_id: Optional[StrictStr] = None @@ -97,7 +96,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "org_id": obj.get("org_id"), @@ -108,4 +107,7 @@ def from_dict(cls, obj: Dict) -> Self: }) return _obj +from nuon.models.app_account import AppAccount +# TODO: Rewrite to not use raise_errors +AppNotificationsConfig.model_rebuild(raise_errors=False) diff --git a/nuon/models/app_operation_status.py b/nuon/models/app_operation_status.py index c9dbf89d..4bca21c5 100644 --- a/nuon/models/app_operation_status.py +++ b/nuon/models/app_operation_status.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_org.py b/nuon/models/app_org.py index 67ef3d39..d5585855 100644 --- a/nuon/models/app_org.py +++ b/nuon/models/app_org.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,11 +23,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_notifications_config import AppNotificationsConfig -from nuon.models.app_org_health_check import AppOrgHealthCheck -from nuon.models.app_user_org import AppUserOrg -from nuon.models.app_user_token import AppUserToken -from nuon.models.app_vcs_connection import AppVCSConnection try: from typing import Self except ImportError: @@ -38,7 +33,7 @@ class AppOrg(BaseModel): AppOrg """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None custom_cert: Optional[StrictBool] = None health_checks: Optional[List[AppOrgHealthCheck]] = None @@ -50,9 +45,8 @@ class AppOrg(BaseModel): status: Optional[StrictStr] = None status_description: Optional[StrictStr] = None updated_at: Optional[StrictStr] = None - users: Optional[List[AppUserOrg]] = None vcs_connections: Optional[List[AppVCSConnection]] = None - __properties: ClassVar[List[str]] = ["created_at", "created_by", "created_by_id", "custom_cert", "health_checks", "id", "latest_health_check", "name", "notifications_config", "sandbox_mode", "status", "status_description", "updated_at", "users", "vcs_connections"] + __properties: ClassVar[List[str]] = ["created_at", "created_by", "created_by_id", "custom_cert", "health_checks", "id", "latest_health_check", "name", "notifications_config", "sandbox_mode", "status", "status_description", "updated_at", "vcs_connections"] model_config = { "populate_by_name": True, @@ -107,13 +101,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of notifications_config if self.notifications_config: _dict['notifications_config'] = self.notifications_config.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in users (list) - _items = [] - if self.users: - for _item in self.users: - if _item: - _items.append(_item.to_dict()) - _dict['users'] = _items # override the default output from pydantic by calling `to_dict()` of each item in vcs_connections (list) _items = [] if self.vcs_connections: @@ -134,7 +121,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "custom_cert": obj.get("custom_cert"), "health_checks": [AppOrgHealthCheck.from_dict(_item) for _item in obj.get("health_checks")] if obj.get("health_checks") is not None else None, @@ -146,9 +133,14 @@ def from_dict(cls, obj: Dict) -> Self: "status": obj.get("status"), "status_description": obj.get("status_description"), "updated_at": obj.get("updated_at"), - "users": [AppUserOrg.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None, "vcs_connections": [AppVCSConnection.from_dict(_item) for _item in obj.get("vcs_connections")] if obj.get("vcs_connections") is not None else None }) return _obj +from nuon.models.app_account import AppAccount +from nuon.models.app_notifications_config import AppNotificationsConfig +from nuon.models.app_org_health_check import AppOrgHealthCheck +from nuon.models.app_vcs_connection import AppVCSConnection +# TODO: Rewrite to not use raise_errors +AppOrg.model_rebuild(raise_errors=False) diff --git a/nuon/models/app_org_health_check.py b/nuon/models/app_org_health_check.py index 8d51c8c8..b5aa5441 100644 --- a/nuon/models/app_org_health_check.py +++ b/nuon/models/app_org_health_check.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,7 +24,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from nuon.models.app_org_health_check_status import AppOrgHealthCheckStatus -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -35,7 +34,7 @@ class AppOrgHealthCheck(BaseModel): AppOrgHealthCheck """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None org_id: Optional[StrictStr] = Field(default=None, alias="orgID") @@ -97,7 +96,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "orgID": obj.get("orgID"), @@ -107,4 +106,7 @@ def from_dict(cls, obj: Dict) -> Self: }) return _obj +from nuon.models.app_account import AppAccount +# TODO: Rewrite to not use raise_errors +AppOrgHealthCheck.model_rebuild(raise_errors=False) diff --git a/nuon/models/app_org_health_check_status.py b/nuon/models/app_org_health_check_status.py index ac2c87c7..7e974088 100644 --- a/nuon/models/app_org_health_check_status.py +++ b/nuon/models/app_org_health_check_status.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_org_invite.py b/nuon/models/app_org_invite.py index cec0c30e..2db036f8 100644 --- a/nuon/models/app_org_invite.py +++ b/nuon/models/app_org_invite.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_org_invite_status import AppOrgInviteStatus -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_role_type import AppRoleType try: from typing import Self except ImportError: @@ -35,14 +36,15 @@ class AppOrgInvite(BaseModel): AppOrgInvite """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None email: Optional[StrictStr] = None id: Optional[StrictStr] = None org_id: Optional[StrictStr] = Field(default=None, description="parent relationship", alias="orgID") + role_type: Optional[AppRoleType] = None status: Optional[AppOrgInviteStatus] = None updated_at: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["created_at", "created_by", "created_by_id", "email", "id", "orgID", "status", "updated_at"] + __properties: ClassVar[List[str]] = ["created_at", "created_by", "created_by_id", "email", "id", "orgID", "role_type", "status", "updated_at"] model_config = { "populate_by_name": True, @@ -97,11 +99,12 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "email": obj.get("email"), "id": obj.get("id"), "orgID": obj.get("orgID"), + "role_type": obj.get("role_type"), "status": obj.get("status"), "updated_at": obj.get("updated_at") }) diff --git a/nuon/models/app_org_invite_status.py b/nuon/models/app_org_invite_status.py index a4f832fd..e9e2ef9f 100644 --- a/nuon/models/app_org_invite_status.py +++ b/nuon/models/app_org_invite_status.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_policy.py b/nuon/models/app_policy.py new file mode 100644 index 00000000..76705234 --- /dev/null +++ b/nuon/models/app_policy.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + 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_policy_name import AppPolicyName +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class AppPolicy(BaseModel): + """ + AppPolicy + """ # noqa: E501 + created_at: Optional[StrictStr] = None + created_by: Optional[AppAccount] = None + created_by_id: Optional[StrictStr] = None + id: Optional[StrictStr] = None + name: Optional[AppPolicyName] = None + permissions: Optional[Dict[str, StrictStr]] = Field(default=None, description="Permissions are used to track granular permissions for each domain") + role_id: Optional[StrictStr] = None + updated_at: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["created_at", "created_by", "created_by_id", "id", "name", "permissions", "role_id", "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 AppPolicy 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 AppPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "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"), + "id": obj.get("id"), + "name": obj.get("name"), + "permissions": obj.get("permissions"), + "role_id": obj.get("role_id"), + "updated_at": obj.get("updated_at") + }) + return _obj + +from nuon.models.app_account import AppAccount +# TODO: Rewrite to not use raise_errors +AppPolicy.model_rebuild(raise_errors=False) + diff --git a/nuon/models/app_policy_name.py b/nuon/models/app_policy_name.py new file mode 100644 index 00000000..9559ece1 --- /dev/null +++ b/nuon/models/app_policy_name.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +import re # noqa: F401 +from enum import Enum + + + +try: + from typing import Self +except ImportError: + from typing_extensions import Self + + +class AppPolicyName(str, Enum): + """ + AppPolicyName + """ + + """ + allowed enum values + """ + ORG_ADMIN = 'org_admin' + INSTALLER = 'installer' + RUNNER = 'runner' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AppPolicyName from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/nuon/models/app_public_git_vcs_config.py b/nuon/models/app_public_git_vcs_config.py index 5b5b16bd..e6462fd6 100644 --- a/nuon/models/app_public_git_vcs_config.py +++ b/nuon/models/app_public_git_vcs_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken +from nuon.models.app_account import AppAccount try: from typing import Self except ImportError: @@ -37,7 +37,7 @@ class AppPublicGitVCSConfig(BaseModel): component_config_id: Optional[StrictStr] = None component_config_type: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None directory: Optional[StrictStr] = None id: Optional[StrictStr] = None @@ -101,7 +101,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_config_id": obj.get("component_config_id"), "component_config_type": obj.get("component_config_type"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "directory": obj.get("directory"), "id": obj.get("id"), diff --git a/nuon/models/app_role.py b/nuon/models/app_role.py new file mode 100644 index 00000000..83a36624 --- /dev/null +++ b/nuon/models/app_role.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + 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_role_type import AppRoleType +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class AppRole(BaseModel): + """ + AppRole + """ # noqa: E501 + created_by: Optional[AppAccount] = Field(default=None, alias="createdBy") + created_at: Optional[StrictStr] = None + created_by_id: Optional[StrictStr] = None + id: Optional[StrictStr] = None + policies: Optional[List[AppPolicy]] = None + role_type: Optional[AppRoleType] = None + updated_at: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["createdBy", "created_at", "created_by_id", "id", "policies", "role_type", "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 AppRole 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['createdBy'] = self.created_by.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in policies (list) + _items = [] + if self.policies: + for _item in self.policies: + if _item: + _items.append(_item.to_dict()) + _dict['policies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of AppRole from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "createdBy": AppAccount.from_dict(obj.get("createdBy")) if obj.get("createdBy") is not None else None, + "created_at": obj.get("created_at"), + "created_by_id": obj.get("created_by_id"), + "id": obj.get("id"), + "policies": [AppPolicy.from_dict(_item) for _item in obj.get("policies")] if obj.get("policies") is not None else None, + "role_type": obj.get("role_type"), + "updated_at": obj.get("updated_at") + }) + return _obj + +from nuon.models.app_account import AppAccount +from nuon.models.app_policy import AppPolicy +# TODO: Rewrite to not use raise_errors +AppRole.model_rebuild(raise_errors=False) + diff --git a/nuon/models/app_role_type.py b/nuon/models/app_role_type.py new file mode 100644 index 00000000..337379c6 --- /dev/null +++ b/nuon/models/app_role_type.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +import re # noqa: F401 +from enum import Enum + + + +try: + from typing import Self +except ImportError: + from typing_extensions import Self + + +class AppRoleType(str, Enum): + """ + AppRoleType + """ + + """ + allowed enum values + """ + ORG_ADMIN = 'org_admin' + INSTALLER = 'installer' + RUNNER = 'runner' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AppRoleType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/nuon/models/app_sandbox_run_type.py b/nuon/models/app_sandbox_run_type.py index e3d55cb0..a95b2933 100644 --- a/nuon/models/app_sandbox_run_type.py +++ b/nuon/models/app_sandbox_run_type.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/app_terraform_module_component_config.py b/nuon/models/app_terraform_module_component_config.py index 64de8b5c..90d5961f 100644 --- a/nuon/models/app_terraform_module_component_config.py +++ b/nuon/models/app_terraform_module_component_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,9 +23,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from nuon.models.app_account import AppAccount from nuon.models.app_connected_github_vcs_config import AppConnectedGithubVCSConfig from nuon.models.app_public_git_vcs_config import AppPublicGitVCSConfig -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -38,7 +38,7 @@ class AppTerraformModuleComponentConfig(BaseModel): component_config_connection_id: Optional[StrictStr] = Field(default=None, description="parent reference") connected_github_vcs_config: Optional[AppConnectedGithubVCSConfig] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None env_vars: Optional[Dict[str, StrictStr]] = None id: Optional[StrictStr] = None @@ -109,7 +109,7 @@ def from_dict(cls, obj: Dict) -> Self: "component_config_connection_id": obj.get("component_config_connection_id"), "connected_github_vcs_config": AppConnectedGithubVCSConfig.from_dict(obj.get("connected_github_vcs_config")) if obj.get("connected_github_vcs_config") is not None else None, "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "env_vars": obj.get("env_vars"), "id": obj.get("id"), diff --git a/nuon/models/app_vcs_connection.py b/nuon/models/app_vcs_connection.py index 70e23fe6..ec247846 100644 --- a/nuon/models/app_vcs_connection.py +++ b/nuon/models/app_vcs_connection.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,6 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken -from nuon.models.app_vcs_connection_commit import AppVCSConnectionCommit try: from typing import Self except ImportError: @@ -35,7 +33,7 @@ class AppVCSConnection(BaseModel): AppVCSConnection """ # noqa: E501 created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None github_install_id: Optional[StrictStr] = None id: Optional[StrictStr] = None @@ -103,7 +101,7 @@ def from_dict(cls, obj: Dict) -> Self: _obj = cls.model_validate({ "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "github_install_id": obj.get("github_install_id"), "id": obj.get("id"), @@ -112,4 +110,8 @@ def from_dict(cls, obj: Dict) -> Self: }) return _obj +from nuon.models.app_account import AppAccount +from nuon.models.app_vcs_connection_commit import AppVCSConnectionCommit +# TODO: Rewrite to not use raise_errors +AppVCSConnection.model_rebuild(raise_errors=False) diff --git a/nuon/models/app_vcs_connection_commit.py b/nuon/models/app_vcs_connection_commit.py index aefd67e8..84f54a3f 100644 --- a/nuon/models/app_vcs_connection_commit.py +++ b/nuon/models/app_vcs_connection_commit.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from nuon.models.app_user_token import AppUserToken try: from typing import Self except ImportError: @@ -37,7 +36,7 @@ class AppVCSConnectionCommit(BaseModel): author_name: Optional[StrictStr] = None component_config_connection_id: Optional[StrictStr] = None created_at: Optional[StrictStr] = None - created_by: Optional[AppUserToken] = None + created_by: Optional[AppAccount] = None created_by_id: Optional[StrictStr] = None id: Optional[StrictStr] = None message: Optional[StrictStr] = None @@ -101,7 +100,7 @@ def from_dict(cls, obj: Dict) -> Self: "author_name": obj.get("author_name"), "component_config_connection_id": obj.get("component_config_connection_id"), "created_at": obj.get("created_at"), - "created_by": AppUserToken.from_dict(obj.get("created_by")) if obj.get("created_by") is not None else None, + "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"), "id": obj.get("id"), "message": obj.get("message"), @@ -110,4 +109,7 @@ def from_dict(cls, obj: Dict) -> Self: }) return _obj +from nuon.models.app_account import AppAccount +# TODO: Rewrite to not use raise_errors +AppVCSConnectionCommit.model_rebuild(raise_errors=False) diff --git a/nuon/models/metrics_decr.py b/nuon/models/metrics_decr.py index 2009e2ea..01f46f56 100644 --- a/nuon/models/metrics_decr.py +++ b/nuon/models/metrics_decr.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/metrics_event.py b/nuon/models/metrics_event.py index 1eb58ec1..a2e15ffc 100644 --- a/nuon/models/metrics_event.py +++ b/nuon/models/metrics_event.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/metrics_incr.py b/nuon/models/metrics_incr.py index 649276aa..6bca3d59 100644 --- a/nuon/models/metrics_incr.py +++ b/nuon/models/metrics_incr.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/metrics_timing.py b/nuon/models/metrics_timing.py index 0f3086e4..335f0143 100644 --- a/nuon/models/metrics_timing.py +++ b/nuon/models/metrics_timing.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/permissions_permission.py b/nuon/models/permissions_permission.py new file mode 100644 index 00000000..a0a171a9 --- /dev/null +++ b/nuon/models/permissions_permission.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +import re # noqa: F401 +from enum import Enum + + + +try: + from typing import Self +except ImportError: + from typing_extensions import Self + + +class PermissionsPermission(str, Enum): + """ + PermissionsPermission + """ + + """ + allowed enum values + """ + UNKNOWN = 'unknown' + ALL = 'all' + CREATE = 'create' + READ = 'read' + UPDATE = 'update' + DELETE = 'delete' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PermissionsPermission from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/nuon/models/planv1_plan.py b/nuon/models/planv1_plan.py index a4953c6f..6b47382a 100644 --- a/nuon/models/planv1_plan.py +++ b/nuon/models/planv1_plan.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_app_config_template.py b/nuon/models/service_app_config_template.py index 87d023ac..5129821e 100644 --- a/nuon/models/service_app_config_template.py +++ b/nuon/models/service_app_config_template.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_app_config_template_type.py b/nuon/models/service_app_config_template_type.py index fc89f842..c2aa5d21 100644 --- a/nuon/models/service_app_config_template_type.py +++ b/nuon/models/service_app_config_template_type.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_app_group_request.py b/nuon/models/service_app_group_request.py index c7d0373c..e219b7d2 100644 --- a/nuon/models/service_app_group_request.py +++ b/nuon/models/service_app_group_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_app_input_request.py b/nuon/models/service_app_input_request.py index f39a194b..04c8bf9f 100644 --- a/nuon/models/service_app_input_request.py +++ b/nuon/models/service_app_input_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_aws_ecr_image_config_request.py b/nuon/models/service_aws_ecr_image_config_request.py index 4e25d15e..f9c95b7e 100644 --- a/nuon/models/service_aws_ecr_image_config_request.py +++ b/nuon/models/service_aws_ecr_image_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_cli_config.py b/nuon/models/service_cli_config.py index c09939b9..f0087c65 100644 --- a/nuon/models/service_cli_config.py +++ b/nuon/models/service_cli_config.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_connected_github_vcs_config_request.py b/nuon/models/service_connected_github_vcs_config_request.py index c66f046a..33584362 100644 --- a/nuon/models/service_connected_github_vcs_config_request.py +++ b/nuon/models/service_connected_github_vcs_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_connected_github_vcs_sandbox_config_request.py b/nuon/models/service_connected_github_vcs_sandbox_config_request.py index 798f47b6..8eb6161e 100644 --- a/nuon/models/service_connected_github_vcs_sandbox_config_request.py +++ b/nuon/models/service_connected_github_vcs_sandbox_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_app_config_request.py b/nuon/models/service_create_app_config_request.py index 7683c25a..2eaba3fc 100644 --- a/nuon/models/service_create_app_config_request.py +++ b/nuon/models/service_create_app_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_app_input_config_request.py b/nuon/models/service_create_app_input_config_request.py index a8df65e8..9192d42f 100644 --- a/nuon/models/service_create_app_input_config_request.py +++ b/nuon/models/service_create_app_input_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_app_request.py b/nuon/models/service_create_app_request.py index 2bb4179d..3ef80f97 100644 --- a/nuon/models/service_create_app_request.py +++ b/nuon/models/service_create_app_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_app_runner_config_request.py b/nuon/models/service_create_app_runner_config_request.py index 4be4fa6a..83938a3d 100644 --- a/nuon/models/service_create_app_runner_config_request.py +++ b/nuon/models/service_create_app_runner_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_app_sandbox_config_request.py b/nuon/models/service_create_app_sandbox_config_request.py index c326c81c..657c31da 100644 --- a/nuon/models/service_create_app_sandbox_config_request.py +++ b/nuon/models/service_create_app_sandbox_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,9 +37,8 @@ class ServiceCreateAppSandboxConfigRequest(BaseModel): connected_github_vcs_config: Optional[ServiceConnectedGithubVCSSandboxConfigRequest] = None public_git_vcs_config: Optional[ServicePublicGitVCSSandboxConfigRequest] = None sandbox_inputs: Dict[str, StrictStr] - sandbox_release_id: Optional[StrictStr] = None terraform_version: StrictStr - __properties: ClassVar[List[str]] = ["connected_github_vcs_config", "public_git_vcs_config", "sandbox_inputs", "sandbox_release_id", "terraform_version"] + __properties: ClassVar[List[str]] = ["connected_github_vcs_config", "public_git_vcs_config", "sandbox_inputs", "terraform_version"] model_config = { "populate_by_name": True, @@ -99,7 +98,6 @@ def from_dict(cls, obj: Dict) -> Self: "connected_github_vcs_config": ServiceConnectedGithubVCSSandboxConfigRequest.from_dict(obj.get("connected_github_vcs_config")) if obj.get("connected_github_vcs_config") is not None else None, "public_git_vcs_config": ServicePublicGitVCSSandboxConfigRequest.from_dict(obj.get("public_git_vcs_config")) if obj.get("public_git_vcs_config") is not None else None, "sandbox_inputs": obj.get("sandbox_inputs"), - "sandbox_release_id": obj.get("sandbox_release_id"), "terraform_version": obj.get("terraform_version") }) return _obj diff --git a/nuon/models/service_create_app_secret_request.py b/nuon/models/service_create_app_secret_request.py index 9f0c6ab7..407def10 100644 --- a/nuon/models/service_create_app_secret_request.py +++ b/nuon/models/service_create_app_secret_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_component_build_request.py b/nuon/models/service_create_component_build_request.py index 3e6ec18e..7648b3d2 100644 --- a/nuon/models/service_create_component_build_request.py +++ b/nuon/models/service_create_component_build_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_component_release_request.py b/nuon/models/service_create_component_release_request.py index 6928eb61..621fc189 100644 --- a/nuon/models/service_create_component_release_request.py +++ b/nuon/models/service_create_component_release_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_component_release_request_strategy.py b/nuon/models/service_create_component_release_request_strategy.py index 9a3d5297..cd879885 100644 --- a/nuon/models/service_create_component_release_request_strategy.py +++ b/nuon/models/service_create_component_release_request_strategy.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_component_request.py b/nuon/models/service_create_component_request.py index 08cd2138..fff26442 100644 --- a/nuon/models/service_create_component_request.py +++ b/nuon/models/service_create_component_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_connection_callback_request.py b/nuon/models/service_create_connection_callback_request.py index 1f89954a..02528fdb 100644 --- a/nuon/models/service_create_connection_callback_request.py +++ b/nuon/models/service_create_connection_callback_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_connection_request.py b/nuon/models/service_create_connection_request.py index c1ed6416..cfdd92de 100644 --- a/nuon/models/service_create_connection_request.py +++ b/nuon/models/service_create_connection_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_docker_build_component_config_request.py b/nuon/models/service_create_docker_build_component_config_request.py index 1b021d59..60ef0c89 100644 --- a/nuon/models/service_create_docker_build_component_config_request.py +++ b/nuon/models/service_create_docker_build_component_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_external_image_component_config_request.py b/nuon/models/service_create_external_image_component_config_request.py index 23ec383a..c6cc5d20 100644 --- a/nuon/models/service_create_external_image_component_config_request.py +++ b/nuon/models/service_create_external_image_component_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_helm_component_config_request.py b/nuon/models/service_create_helm_component_config_request.py index abb023ad..c7870ceb 100644 --- a/nuon/models/service_create_helm_component_config_request.py +++ b/nuon/models/service_create_helm_component_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_install_deploy_request.py b/nuon/models/service_create_install_deploy_request.py index 43d19e1e..119e072e 100644 --- a/nuon/models/service_create_install_deploy_request.py +++ b/nuon/models/service_create_install_deploy_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_install_inputs_request.py b/nuon/models/service_create_install_inputs_request.py index b8c2d70a..8c2e8097 100644 --- a/nuon/models/service_create_install_inputs_request.py +++ b/nuon/models/service_create_install_inputs_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_install_request.py b/nuon/models/service_create_install_request.py index 57e8e984..28571547 100644 --- a/nuon/models/service_create_install_request.py +++ b/nuon/models/service_create_install_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_install_request_aws_account.py b/nuon/models/service_create_install_request_aws_account.py index cdc84af7..f656f348 100644 --- a/nuon/models/service_create_install_request_aws_account.py +++ b/nuon/models/service_create_install_request_aws_account.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_install_request_azure_account.py b/nuon/models/service_create_install_request_azure_account.py index 82eb3823..098ff0c1 100644 --- a/nuon/models/service_create_install_request_azure_account.py +++ b/nuon/models/service_create_install_request_azure_account.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_installer_request.py b/nuon/models/service_create_installer_request.py index 1d0641f0..b33597ed 100644 --- a/nuon/models/service_create_installer_request.py +++ b/nuon/models/service_create_installer_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_installer_request_metadata.py b/nuon/models/service_create_installer_request_metadata.py index 18d7a973..cce2259e 100644 --- a/nuon/models/service_create_installer_request_metadata.py +++ b/nuon/models/service_create_installer_request_metadata.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_job_component_config_request.py b/nuon/models/service_create_job_component_config_request.py index 25c971a0..16baa202 100644 --- a/nuon/models/service_create_job_component_config_request.py +++ b/nuon/models/service_create_job_component_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_org_invite_request.py b/nuon/models/service_create_org_invite_request.py index 6c10d744..617268e2 100644 --- a/nuon/models/service_create_org_invite_request.py +++ b/nuon/models/service_create_org_invite_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_org_request.py b/nuon/models/service_create_org_request.py index de4da035..a09024b8 100644 --- a/nuon/models/service_create_org_request.py +++ b/nuon/models/service_create_org_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_org_user_request.py b/nuon/models/service_create_org_user_request.py index f81ca359..7db7a839 100644 --- a/nuon/models/service_create_org_user_request.py +++ b/nuon/models/service_create_org_user_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_create_terraform_module_component_config_request.py b/nuon/models/service_create_terraform_module_component_config_request.py index b77abe13..5511059c 100644 --- a/nuon/models/service_create_terraform_module_component_config_request.py +++ b/nuon/models/service_create_terraform_module_component_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_public_git_vcs_config_request.py b/nuon/models/service_public_git_vcs_config_request.py index 21759f57..d628d523 100644 --- a/nuon/models/service_public_git_vcs_config_request.py +++ b/nuon/models/service_public_git_vcs_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_public_git_vcs_sandbox_config_request.py b/nuon/models/service_public_git_vcs_sandbox_config_request.py index 644bd6d1..872747b5 100644 --- a/nuon/models/service_public_git_vcs_sandbox_config_request.py +++ b/nuon/models/service_public_git_vcs_sandbox_config_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_publish_metric_input.py b/nuon/models/service_publish_metric_input.py index 1ef9c03d..d1ecf45e 100644 --- a/nuon/models/service_publish_metric_input.py +++ b/nuon/models/service_publish_metric_input.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_rendered_installer.py b/nuon/models/service_rendered_installer.py index 4ebfda7e..0ef2e87b 100644 --- a/nuon/models/service_rendered_installer.py +++ b/nuon/models/service_rendered_installer.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_repository.py b/nuon/models/service_repository.py index 1b896a0e..95bd0bd5 100644 --- a/nuon/models/service_repository.py +++ b/nuon/models/service_repository.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_update_app_request.py b/nuon/models/service_update_app_request.py index 2a73aafd..682ebb29 100644 --- a/nuon/models/service_update_app_request.py +++ b/nuon/models/service_update_app_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_update_component_request.py b/nuon/models/service_update_component_request.py index ce0a4935..c1441766 100644 --- a/nuon/models/service_update_component_request.py +++ b/nuon/models/service_update_component_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_update_install_request.py b/nuon/models/service_update_install_request.py index 6a7488d9..3cbbb2e7 100644 --- a/nuon/models/service_update_install_request.py +++ b/nuon/models/service_update_install_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_update_installer_request.py b/nuon/models/service_update_installer_request.py index b7599156..b69e5460 100644 --- a/nuon/models/service_update_installer_request.py +++ b/nuon/models/service_update_installer_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/service_update_org_request.py b/nuon/models/service_update_org_request.py index 5f76f656..b8f5e956 100644 --- a/nuon/models/service_update_org_request.py +++ b/nuon/models/service_update_org_request.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/statsd_event.py b/nuon/models/statsd_event.py index dcf6544c..f3b14705 100644 --- a/nuon/models/statsd_event.py +++ b/nuon/models/statsd_event.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/statsd_event_alert_type.py b/nuon/models/statsd_event_alert_type.py index 3c21a1ba..b6f56375 100644 --- a/nuon/models/statsd_event_alert_type.py +++ b/nuon/models/statsd_event_alert_type.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/statsd_event_priority.py b/nuon/models/statsd_event_priority.py index 2da6252e..adf97fe7 100644 --- a/nuon/models/statsd_event_priority.py +++ b/nuon/models/statsd_event_priority.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/models/stderr_err_response.py b/nuon/models/stderr_err_response.py index fc08905e..b501f940 100644 --- a/nuon/models/stderr_err_response.py +++ b/nuon/models/stderr_err_response.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/nuon/rest.py b/nuon/rest.py index e9d8f4d8..d703a406 100644 --- a/nuon/rest.py +++ b/nuon/rest.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/pyproject.toml b/pyproject.toml index c187eb24..a3c63b41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nuon" -version = "0.19.161" +version = "0.19.162" description = "Nuon" authors = ["Nuon Support "] license = "NoLicense" diff --git a/setup.py b/setup.py index eb19248f..33404e26 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ API for managing nuon apps, components, and installs. - The version of the OpenAPI document: 0.19.161 + The version of the OpenAPI document: 0.19.162 Contact: support@nuon.co Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "nuon" -VERSION = "0.19.161" +VERSION = "0.19.162" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/test/test_app_account.py b/test/test_app_account.py new file mode 100644 index 00000000..7cdf93fe --- /dev/null +++ b/test/test_app_account.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.app_account import AppAccount + +class TestAppAccount(unittest.TestCase): + """AppAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppAccount: + """Test AppAccount + 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 `AppAccount` + """ + model = AppAccount() + if include_optional: + return AppAccount( + account_type = 'auth0', + created_at = '', + email = '', + id = '', + org_ids = [ + '' + ], + orgs = [ + nuon.models.app/org.app.Org( + created_at = '', + created_by = nuon.models.app/account.app.Account( + account_type = 'auth0', + created_at = '', + email = '', + id = '', + org_ids = [ + '' + ], + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_by = nuon.models.app/account.app.Account( + created_at = '', + email = '', + id = '', + permissions = { + 'key' : 'unknown' + }, + subject = '', + updated_at = '', ), + created_at = '', + created_by_id = '', + id = '', + policies = [ + nuon.models.app/policy.app.Policy( + created_at = '', + created_by_id = '', + id = '', + name = 'org_admin', + permissions = { + 'key' : '' + }, + role_id = '', + updated_at = '', ) + ], + role_type = 'org_admin', + updated_at = '', ) + ], + subject = '', + updated_at = '', ), + created_by_id = '', + custom_cert = True, + health_checks = [ + nuon.models.app/org_health_check.app.OrgHealthCheck( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + status = 'ok', + status_description = '', + updated_at = '', ) + ], + id = '', + latest_health_check = null, + name = '', + notifications_config = nuon.models.app/notifications_config.app.NotificationsConfig( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + owner_id = '', + owner_type = '', + slack_webhook_url = '', + updated_at = '', ), + sandbox_mode = True, + status = '', + status_description = '', + updated_at = '', + vcs_connections = [ + nuon.models.app/vcs_connection.app.VCSConnection( + created_at = '', + created_by_id = '', + github_install_id = '', + id = '', + updated_at = '', + vcs_connection_commit = [ + nuon.models.app/vcs_connection_commit.app.VCSConnectionCommit( + author_email = '', + author_name = '', + component_config_connection_id = '', + created_at = '', + created_by_id = '', + id = '', + message = '', + sha = '', + updated_at = '', ) + ], ) + ], ) + ], + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_by = nuon.models.app/account.app.Account( + account_type = 'auth0', + created_at = '', + email = '', + id = '', + org_ids = [ + '' + ], + orgs = [ + nuon.models.app/org.app.Org( + created_at = '', + created_by = nuon.models.app/account.app.Account( + created_at = '', + email = '', + id = '', + permissions = { + 'key' : 'unknown' + }, + subject = '', + updated_at = '', ), + created_by_id = '', + custom_cert = True, + health_checks = [ + nuon.models.app/org_health_check.app.OrgHealthCheck( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + status = 'ok', + status_description = '', + updated_at = '', ) + ], + id = '', + latest_health_check = null, + name = '', + notifications_config = nuon.models.app/notifications_config.app.NotificationsConfig( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + owner_id = '', + owner_type = '', + slack_webhook_url = '', + updated_at = '', ), + sandbox_mode = True, + status = '', + status_description = '', + updated_at = '', + vcs_connections = [ + nuon.models.app/vcs_connection.app.VCSConnection( + created_at = '', + created_by_id = '', + github_install_id = '', + id = '', + updated_at = '', + vcs_connection_commit = [ + nuon.models.app/vcs_connection_commit.app.VCSConnectionCommit( + author_email = '', + author_name = '', + component_config_connection_id = '', + created_at = '', + created_by_id = '', + id = '', + message = '', + sha = '', + updated_at = '', ) + ], ) + ], ) + ], + permissions = { + 'key' : 'unknown' + }, + subject = '', + updated_at = '', ), + created_at = '', + created_by_id = '', + id = '', + policies = [ + nuon.models.app/policy.app.Policy( + created_at = '', + created_by_id = '', + id = '', + name = 'org_admin', + permissions = { + 'key' : '' + }, + role_id = '', + updated_at = '', ) + ], + role_type = 'org_admin', + updated_at = '', ) + ], + subject = '', + updated_at = '' + ) + else: + return AppAccount( + ) + """ + + def testAppAccount(self): + """Test AppAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_account_type.py b/test/test_app_account_type.py new file mode 100644 index 00000000..0abe534e --- /dev/null +++ b/test/test_app_account_type.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.app_account_type import AppAccountType + +class TestAppAccountType(unittest.TestCase): + """AppAccountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppAccountType(self): + """Test AppAccountType""" + # inst = AppAccountType() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_policy.py b/test/test_app_policy.py new file mode 100644 index 00000000..8c6e1f80 --- /dev/null +++ b/test/test_app_policy.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.app_policy import AppPolicy + +class TestAppPolicy(unittest.TestCase): + """AppPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppPolicy: + """Test AppPolicy + 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 `AppPolicy` + """ + model = AppPolicy() + if include_optional: + return AppPolicy( + created_at = '', + created_by = nuon.models.app/account.app.Account( + account_type = 'auth0', + created_at = '', + email = '', + id = '', + org_ids = [ + '' + ], + orgs = [ + nuon.models.app/org.app.Org( + created_at = '', + created_by = nuon.models.app/account.app.Account( + created_at = '', + email = '', + id = '', + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_by = , + created_at = '', + created_by_id = '', + id = '', + policies = [ + nuon.models.app/policy.app.Policy( + created_at = '', + created_by_id = '', + id = '', + name = 'org_admin', + permissions = { + 'key' : '' + }, + role_id = '', + updated_at = '', ) + ], + role_type = 'org_admin', + updated_at = '', ) + ], + subject = '', + updated_at = '', ), + created_by_id = '', + custom_cert = True, + health_checks = [ + nuon.models.app/org_health_check.app.OrgHealthCheck( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + status = 'ok', + status_description = '', + updated_at = '', ) + ], + id = '', + latest_health_check = null, + name = '', + notifications_config = nuon.models.app/notifications_config.app.NotificationsConfig( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + owner_id = '', + owner_type = '', + slack_webhook_url = '', + updated_at = '', ), + sandbox_mode = True, + status = '', + status_description = '', + updated_at = '', + vcs_connections = [ + nuon.models.app/vcs_connection.app.VCSConnection( + created_at = '', + created_by_id = '', + github_install_id = '', + id = '', + updated_at = '', + vcs_connection_commit = [ + nuon.models.app/vcs_connection_commit.app.VCSConnectionCommit( + author_email = '', + author_name = '', + component_config_connection_id = '', + created_at = '', + created_by_id = '', + id = '', + message = '', + sha = '', + updated_at = '', ) + ], ) + ], ) + ], + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_at = '', + created_by_id = '', + id = '', + updated_at = '', ) + ], + subject = '', + updated_at = '', ), + created_by_id = '', + id = '', + name = 'org_admin', + permissions = { + 'key' : '' + }, + role_id = '', + updated_at = '' + ) + else: + return AppPolicy( + ) + """ + + def testAppPolicy(self): + """Test AppPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_policy_name.py b/test/test_app_policy_name.py new file mode 100644 index 00000000..a23e61dc --- /dev/null +++ b/test/test_app_policy_name.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.app_policy_name import AppPolicyName + +class TestAppPolicyName(unittest.TestCase): + """AppPolicyName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppPolicyName(self): + """Test AppPolicyName""" + # inst = AppPolicyName() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_role.py b/test/test_app_role.py new file mode 100644 index 00000000..6e463a99 --- /dev/null +++ b/test/test_app_role.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.app_role import AppRole + +class TestAppRole(unittest.TestCase): + """AppRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppRole: + """Test AppRole + 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 `AppRole` + """ + model = AppRole() + if include_optional: + return AppRole( + created_by = nuon.models.app/account.app.Account( + account_type = 'auth0', + created_at = '', + email = '', + id = '', + org_ids = [ + '' + ], + orgs = [ + nuon.models.app/org.app.Org( + created_at = '', + created_by = nuon.models.app/account.app.Account( + created_at = '', + email = '', + id = '', + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_at = '', + created_by_id = '', + id = '', + policies = [ + nuon.models.app/policy.app.Policy( + created_at = '', + created_by_id = '', + id = '', + name = 'org_admin', + permissions = { + 'key' : '' + }, + role_id = '', + updated_at = '', ) + ], + role_type = 'org_admin', + updated_at = '', ) + ], + subject = '', + updated_at = '', ), + created_by_id = '', + custom_cert = True, + health_checks = [ + nuon.models.app/org_health_check.app.OrgHealthCheck( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + status = 'ok', + status_description = '', + updated_at = '', ) + ], + id = '', + latest_health_check = null, + name = '', + notifications_config = nuon.models.app/notifications_config.app.NotificationsConfig( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + owner_id = '', + owner_type = '', + slack_webhook_url = '', + updated_at = '', ), + sandbox_mode = True, + status = '', + status_description = '', + updated_at = '', + vcs_connections = [ + nuon.models.app/vcs_connection.app.VCSConnection( + created_at = '', + created_by_id = '', + github_install_id = '', + id = '', + updated_at = '', + vcs_connection_commit = [ + nuon.models.app/vcs_connection_commit.app.VCSConnectionCommit( + author_email = '', + author_name = '', + component_config_connection_id = '', + created_at = '', + created_by_id = '', + id = '', + message = '', + sha = '', + updated_at = '', ) + ], ) + ], ) + ], + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_at = '', + created_by_id = '', + id = '', + updated_at = '', ) + ], + subject = '', + updated_at = '', ), + created_at = '', + created_by_id = '', + id = '', + policies = [ + nuon.models.app/policy.app.Policy( + created_at = '', + created_by = nuon.models.app/account.app.Account( + account_type = 'auth0', + created_at = '', + email = '', + id = '', + org_ids = [ + '' + ], + orgs = [ + nuon.models.app/org.app.Org( + created_at = '', + created_by_id = '', + custom_cert = True, + health_checks = [ + nuon.models.app/org_health_check.app.OrgHealthCheck( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + status = 'ok', + status_description = '', + updated_at = '', ) + ], + id = '', + latest_health_check = null, + name = '', + notifications_config = nuon.models.app/notifications_config.app.NotificationsConfig( + created_at = '', + created_by_id = '', + id = '', + org_id = '', + owner_id = '', + owner_type = '', + slack_webhook_url = '', + updated_at = '', ), + sandbox_mode = True, + status = '', + status_description = '', + updated_at = '', + vcs_connections = [ + nuon.models.app/vcs_connection.app.VCSConnection( + created_at = '', + created_by_id = '', + github_install_id = '', + id = '', + updated_at = '', + vcs_connection_commit = [ + nuon.models.app/vcs_connection_commit.app.VCSConnectionCommit( + author_email = '', + author_name = '', + component_config_connection_id = '', + created_at = '', + created_by_id = '', + id = '', + message = '', + sha = '', + updated_at = '', ) + ], ) + ], ) + ], + permissions = { + 'key' : 'unknown' + }, + roles = [ + nuon.models.app/role.app.Role( + created_by = nuon.models.app/account.app.Account( + created_at = '', + email = '', + id = '', + permissions = { + 'key' : 'unknown' + }, + subject = '', + updated_at = '', ), + created_at = '', + created_by_id = '', + id = '', + role_type = 'org_admin', + updated_at = '', ) + ], + subject = '', + updated_at = '', ), + created_by_id = '', + id = '', + name = 'org_admin', + permissions = { + 'key' : '' + }, + role_id = '', + updated_at = '', ) + ], + role_type = 'org_admin', + updated_at = '' + ) + else: + return AppRole( + ) + """ + + def testAppRole(self): + """Test AppRole""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_app_role_type.py b/test/test_app_role_type.py new file mode 100644 index 00000000..ec1f1c95 --- /dev/null +++ b/test/test_app_role_type.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.app_role_type import AppRoleType + +class TestAppRoleType(unittest.TestCase): + """AppRoleType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppRoleType(self): + """Test AppRoleType""" + # inst = AppRoleType() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_permissions_permission.py b/test/test_permissions_permission.py new file mode 100644 index 00000000..ecf23258 --- /dev/null +++ b/test/test_permissions_permission.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + Nuon + + API for managing nuon apps, components, and installs. + + The version of the OpenAPI document: 0.19.162 + Contact: support@nuon.co + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from nuon.models.permissions_permission import PermissionsPermission + +class TestPermissionsPermission(unittest.TestCase): + """PermissionsPermission unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPermissionsPermission(self): + """Test PermissionsPermission""" + # inst = PermissionsPermission() + +if __name__ == '__main__': + unittest.main() diff --git a/version.txt b/version.txt index 3044a490..f9f71662 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.19.161 +0.19.162