From 091fb5bb898a525c45d206dbd65cd198a19307eb Mon Sep 17 00:00:00 2001 From: nuonbot Date: Wed, 4 Feb 2026 05:36:33 +0000 Subject: [PATCH] ci: generate from api 0.19.765 --- nuon/api/accounts/complete_user_journey.py | 1 + nuon/api/accounts/get_current_account.py | 1 + nuon/api/accounts/get_user_journeys.py | 1 + nuon/api/accounts/reset_user_journey.py | 1 + nuon/api/actions/create_action_config.py | 8 + .../actions/create_action_workflow_config.py | 8 + nuon/api/actions/create_app_action.py | 8 + .../api/actions/create_app_action_workflow.py | 8 + nuon/api/actions/delete_action.py | 9 + nuon/api/actions/delete_action_workflow.py | 9 + nuon/api/actions/get_action_latest_config.py | 1 + nuon/api/actions/get_action_workflow.py | 9 + .../api/actions/get_action_workflow_config.py | 9 + .../actions/get_action_workflow_configs.py | 9 + .../get_action_workflow_latest_config.py | 1 + nuon/api/actions/get_action_workflows.py | 9 + nuon/api/actions/get_app_action.py | 9 + nuon/api/actions/get_app_action_config.py | 9 + nuon/api/actions/get_app_action_configs.py | 9 + nuon/api/actions/get_app_action_workflow.py | 9 + nuon/api/actions/get_app_actions.py | 9 + .../actions/get_install_action_recent_runs.py | 9 + nuon/api/actions/get_install_action_run.py | 9 + .../actions/get_install_action_run_step.py | 1 + nuon/api/actions/get_install_action_runs.py | 9 + ...get_install_action_workflow_recent_runs.py | 9 + .../get_install_action_workflow_run.py | 9 + .../get_install_action_workflow_run_step.py | 1 + .../get_install_action_workflow_runs.py | 9 + ...et_install_action_workflows_latest_runs.py | 9 + .../get_install_actions_latest_runs.py | 9 + nuon/api/actions/update_app_action.py | 8 + .../api/actions/update_app_action_workflow.py | 8 + nuon/api/apps/create_app.py | 8 + nuon/api/apps/create_app_runner_config.py | 8 + nuon/api/apps/create_app_sandbox_config.py | 8 + nuon/api/apps/create_app_sandbox_config_v2.py | 8 + nuon/api/apps/delete_app.py | 9 + nuon/api/apps/delete_app_secret.py | 1 + nuon/api/apps/delete_app_secret_v2.py | 1 + nuon/api/apps/get_app.py | 1 + nuon/api/apps/get_app_branch_app_configs.py | 9 + nuon/api/apps/get_app_branches.py | 9 + nuon/api/apps/get_app_break_glass_config.py | 1 + nuon/api/apps/get_app_config.py | 1 + nuon/api/apps/get_app_config_graph.py | 1 + nuon/api/apps/get_app_config_graph_v2.py | 1 + nuon/api/apps/get_app_config_template.py | 1 + nuon/api/apps/get_app_configs.py | 1 + nuon/api/apps/get_app_conflg_v2.py | 1 + nuon/api/apps/get_app_input_config.py | 1 + nuon/api/apps/get_app_input_configs.py | 9 + nuon/api/apps/get_app_input_latest_config.py | 9 + nuon/api/apps/get_app_latest_config.py | 1 + nuon/api/apps/get_app_permissions_config.py | 1 + nuon/api/apps/get_app_policies_config.py | 1 + nuon/api/apps/get_app_policies_configs.py | 245 +++++++++ nuon/api/apps/get_app_runner_configs.py | 9 + nuon/api/apps/get_app_runner_latest_config.py | 9 + nuon/api/apps/get_app_sandbox_configs.py | 9 + .../api/apps/get_app_sandbox_latest_config.py | 9 + nuon/api/apps/get_app_secrets.py | 1 + nuon/api/apps/get_app_secrets_config.py | 1 + nuon/api/apps/get_app_stack_config.py | 1 + nuon/api/apps/get_apps.py | 9 + .../apps/get_latest_app_break_glass_config.py | 1 + .../apps/get_latest_app_permissions_config.py | 1 + .../apps/get_latest_app_policies_config.py | 1 + .../api/apps/get_latest_app_secrets_config.py | 1 + nuon/api/apps/update_app.py | 8 + nuon/api/apps/update_app_config_installs.py | 12 +- .../api/apps/update_app_config_installs_v2.py | 12 +- nuon/api/auth/__init__.py | 1 + nuon/api/auth/get_auth_me.py | 147 +++++ nuon/api/components/build_all_components.py | 8 + .../components/create_app_component_build.py | 8 + ...reate_app_docker_build_component_config.py | 8 + ...ate_app_external_image_component_config.py | 8 + .../create_app_job_component_config.py | 8 + ...pp_kubernetes_manifest_component_config.py | 8 + nuon/api/components/create_component.py | 8 + nuon/api/components/create_component_build.py | 8 + .../create_docker_build_component_config.py | 8 + .../create_external_image_component_config.py | 8 + .../components/create_job_component_config.py | 8 + ...te_kubernetes_manifest_component_config.py | 8 + nuon/api/components/delete_app_component.py | 9 + nuon/api/components/delete_component.py | 9 + nuon/api/components/get_app_component.py | 1 + .../api/components/get_app_component_build.py | 1 + .../components/get_app_component_builds.py | 9 + .../components/get_app_component_config.py | 9 + .../components/get_app_component_configs.py | 9 + .../get_app_component_dependencies.py | 9 + .../get_app_component_dependents.py | 9 + .../get_app_component_latest_build.py | 9 + .../get_app_component_latest_config.py | 9 + nuon/api/components/get_app_components.py | 9 + nuon/api/components/get_build.py | 1 + nuon/api/components/get_component.py | 9 + nuon/api/components/get_component_build.py | 1 + nuon/api/components/get_component_builds.py | 9 + nuon/api/components/get_component_config.py | 9 + nuon/api/components/get_component_configs.py | 9 + .../components/get_component_dependencies.py | 9 + .../components/get_component_dependents.py | 9 + .../components/get_component_latest_build.py | 9 + .../components/get_component_latest_config.py | 9 + nuon/api/components/get_org_components.py | 9 + nuon/api/components/update_app_component.py | 8 + nuon/api/components/update_component.py | 8 + nuon/api/general/create_waitlist.py | 8 + nuon/api/general/get_cli_config.py | 9 + .../api/general/get_cloud_platform_regions.py | 1 + nuon/api/general/get_config_schema.py | 25 +- nuon/api/general/get_current_user.py | 9 + nuon/api/installs/cancel_install_workflow.py | 9 + nuon/api/installs/cancel_workflow.py | 9 + nuon/api/installs/create_install.py | 8 + .../create_install_component_deploy.py | 8 + nuon/api/installs/create_install_config.py | 8 + nuon/api/installs/create_install_deploy.py | 8 + nuon/api/installs/create_install_inputs.py | 8 + nuon/api/installs/create_install_v2.py | 8 + nuon/api/installs/delete_install.py | 9 + .../installs/deprovision_install_sandbox.py | 8 + nuon/api/installs/forget_install_component.py | 424 +++++++++++++++ .../installs/generate_cli_install_config.py | 9 + .../generate_terraform_installer_config.py | 9 + nuon/api/installs/get_app_installs.py | 9 + .../installs/get_current_install_inputs.py | 9 + nuon/api/installs/get_drifted_objects.py | 9 + nuon/api/installs/get_install.py | 21 +- nuon/api/installs/get_install_action.py | 1 + .../installs/get_install_action_workflow.py | 1 + .../installs/get_install_action_workflows.py | 1 + nuon/api/installs/get_install_actions.py | 1 + nuon/api/installs/get_install_audit_logs.py | 9 + nuon/api/installs/get_install_component.py | 9 + .../installs/get_install_component_deploy.py | 9 + .../installs/get_install_component_deploys.py | 9 + .../get_install_component_latest_deploy.py | 9 + .../installs/get_install_component_outputs.py | 1 + nuon/api/installs/get_install_components.py | 9 + .../get_install_components_deploys.py | 9 + nuon/api/installs/get_install_deploy.py | 9 + nuon/api/installs/get_install_deploys.py | 9 + nuon/api/installs/get_install_event.py | 1 + nuon/api/installs/get_install_events.py | 1 + nuon/api/installs/get_install_inputs.py | 9 + .../api/installs/get_install_latest_deploy.py | 9 + nuon/api/installs/get_install_readme.py | 1 + nuon/api/installs/get_install_runner_group.py | 1 + nuon/api/installs/get_install_sandbox_run.py | 9 + .../installs/get_install_sandbox_run_v2.py | 9 + nuon/api/installs/get_install_sandbox_runs.py | 9 + nuon/api/installs/get_install_stack.py | 9 + .../get_install_stack_by_install_id.py | 9 + nuon/api/installs/get_install_stack_runs.py | 1 + nuon/api/installs/get_install_state.py | 33 +- .../api/installs/get_install_state_history.py | 9 + nuon/api/installs/get_install_workflow.py | 1 + .../api/installs/get_install_workflow_step.py | 1 + .../get_install_workflow_step_approval.py | 9 + .../installs/get_install_workflow_steps.py | 1 + nuon/api/installs/get_org_installs.py | 9 + nuon/api/installs/get_workflow.py | 1 + nuon/api/installs/get_workflow_step.py | 1 + .../installs/get_workflow_step_approval.py | 9 + .../get_workflow_step_approval_contents.py | 25 +- nuon/api/installs/get_workflow_steps.py | 1 + nuon/api/installs/get_workflows.py | 1 + .../installs/retry_owner_workflow_by_id.py | 8 + nuon/api/installs/retry_workflow.py | 8 + nuon/api/installs/retry_workflow_step.py | 8 + .../installs/teardown_install_component.py | 8 + nuon/api/installs/update_install.py | 8 + nuon/api/installs/update_install_config.py | 8 + nuon/api/installs/update_install_inputs.py | 8 + nuon/api/installs/update_install_workflow.py | 8 + nuon/api/installs/update_workflow.py | 8 + nuon/api/orgs/add_user.py | 8 + nuon/api/orgs/create_org.py | 8 + nuon/api/orgs/delete_org.py | 9 + nuon/api/orgs/get_current_org_features.py | 204 +++++++ nuon/api/orgs/get_org.py | 9 + nuon/api/orgs/get_org_acounts.py | 9 + nuon/api/orgs/get_org_features.py | 165 ++++++ nuon/api/orgs/get_org_invites.py | 1 + nuon/api/orgs/get_org_runner_group.py | 1 + nuon/api/orgs/get_org_stats.py | 9 + nuon/api/orgs/get_orgs.py | 9 + nuon/api/orgs/update_org.py | 8 + nuon/api/orgs/update_org_features.py | 258 +++++++++ nuon/api/releases/create_component_release.py | 8 + nuon/api/releases/get_app_releases.py | 9 + nuon/api/releases/get_component_releases.py | 9 + nuon/api/releases/get_release.py | 9 + nuon/api/releases/get_release_steps.py | 9 + .../api/runners/create_terraform_workspace.py | 8 + .../runners/create_terraform_workspace_v2.py | 8 + .../api/runners/delete_terraform_workspace.py | 9 + nuon/api/runners/fetch_runner_token_mng.py | 200 +++++++ .../runners/get_latest_runner_heart_beat.py | 1 + nuon/api/runners/get_log_stream.py | 1 + nuon/api/runners/get_runner_card_details.py | 9 + nuon/api/runners/get_runner_connect_status.py | 1 + nuon/api/runners/get_runner_job.py | 1 + .../runners/get_runner_job_composite_plan.py | 1 + nuon/api/runners/get_runner_job_plan.py | 1 + nuon/api/runners/get_runner_job_plan_v2.py | 1 + nuon/api/runners/get_runner_job_v2.py | 1 + nuon/api/runners/get_runner_jobs.py | 1 + .../runners/get_runner_latest_heart_beat.py | 1 + nuon/api/runners/get_runner_settings.py | 1 + .../get_terraform_current_state_data.py | 9 + nuon/api/runners/get_terraform_states.py | 9 + nuon/api/runners/get_terraform_states_v2.py | 9 + nuon/api/runners/get_terraform_workspace.py | 9 + .../runners/get_terraform_workspace_lock.py | 9 + .../get_terraform_workspace_state_by_id.py | 9 + .../get_terraform_workspace_state_by_idv2.py | 9 + ...erraform_workspace_state_json_resources.py | 35 +- ...aform_workspace_state_json_resources_v2.py | 35 +- ...get_terraform_workspace_state_resources.py | 9 + .../get_terraform_workspace_states_json.py | 9 + ...t_terraform_workspace_states_json_by_id.py | 9 + ...terraform_workspace_states_json_by_idv2.py | 9 + .../get_terraform_workspace_states_jsonv2.py | 9 + nuon/api/runners/get_terraform_workspaces.py | 9 + nuon/api/runners/lock_terraform_workspace.py | 29 +- .../api/runners/unlock_terraform_workspace.py | 29 +- nuon/api/runners/update_runner_settings.py | 8 + nuon/api/runners/update_terraform_state.py | 29 +- .../get_runner_job_executions.py | 1 + nuon/api/vcs/check_vcs_connection_status.py | 281 ++++++++++ nuon/api/vcs/create_vcs_connection.py | 8 + .../api/vcs/create_vcs_connection_callback.py | 8 + nuon/api/vcs/delete_vcs_connection.py | 9 + nuon/api/vcs/get_org_vcs_connections.py | 9 + nuon/api/vcs/get_vcs_connection.py | 9 + ...get_vcs_connections_connection_id_repos.py | 189 +++++++ nuon/models/__init__.py | 100 ++-- nuon/models/app_account_type.py | 1 + ...pp_action_workflow_step_config_env_vars.py | 1 + nuon/models/app_app_links.py | 1 + nuon/models/app_app_policies_config.py | 29 +- nuon/models/app_app_policy_config.py | 178 ++++++ nuon/models/app_app_runner_config_env_vars.py | 1 + .../models/app_app_sandbox_config_env_vars.py | 1 + .../app_app_sandbox_config_variables.py | 1 + ...aws_stack_outputs_break_glass_role_arns.py | 1 + .../app_aws_stack_outputs_install_inputs.py | 1 + nuon/models/app_component.py | 18 + .../models/app_component_config_connection.py | 18 + nuon/models/app_component_links.py | 1 + nuon/models/app_composite_status_metadata.py | 1 + ..._docker_build_component_config_env_vars.py | 1 + .../app_helm_component_config_values.py | 1 + nuon/models/app_helm_config_values.py | 1 + ...app_install_action_workflow_run_outputs.py | 1 + ...nstall_action_workflow_run_run_env_vars.py | 1 + nuon/models/app_install_component_links.py | 1 + nuon/models/app_install_component_statuses.py | 1 + nuon/models/app_install_deploy_outputs.py | 1 + nuon/models/app_install_event_payload.py | 1 + .../app_install_inputs_redacted_values.py | 1 + nuon/models/app_install_inputs_values.py | 1 + nuon/models/app_install_links.py | 1 + nuon/models/app_install_metadata.py | 1 + .../models/app_install_sandbox_run_outputs.py | 1 + nuon/models/app_install_stack_outputs_data.py | 1 + ...app_install_stack_outputs_data_contents.py | 1 + .../app_install_stack_version_run_data.py | 1 + ...install_stack_version_run_data_contents.py | 1 + .../app_job_component_config_env_vars.py | 1 + nuon/models/app_json_map.py | 1 + ...pp_kubernetes_manifest_component_config.py | 62 ++- nuon/models/app_kustomize_config.py | 90 +++ nuon/models/app_log_stream_attrs.py | 1 + nuon/models/app_oci_artifact_annotations.py | 1 + nuon/models/app_org_feature_info.py | 70 +++ nuon/models/app_org_links.py | 1 + .../app_otel_log_record_log_attributes.py | 1 + ...app_otel_log_record_resource_attributes.py | 1 + .../app_otel_log_record_scope_attributes.py | 1 + nuon/models/app_policy_permissions.py | 1 + nuon/models/app_provider_type.py | 10 + .../app_runner_group_settings_aws_tags.py | 1 + .../app_runner_group_settings_metadata.py | 1 + .../app_runner_job_execution_metadata.py | 1 + ...pp_runner_job_execution_outputs_outputs.py | 1 + ...ion_outputs_outputs_additional_property.py | 1 + ...ner_job_execution_result_error_metadata.py | 1 + nuon/models/app_runner_job_metadata.py | 1 + nuon/models/app_runner_job_outputs.py | 1 + nuon/models/app_runner_job_type.py | 3 + ...raform_module_component_config_env_vars.py | 1 + ...aform_module_component_config_variables.py | 1 + ...app_terraform_state_instance_attributes.py | 1 + nuon/models/app_user_journey_step_metadata.py | 1 + nuon/models/app_workflow.py | 16 +- nuon/models/app_workflow_links.py | 1 + nuon/models/app_workflow_metadata.py | 1 + .../app_workflow_step_approval_response.py | 1 + nuon/models/app_workflow_step_links.py | 1 + nuon/models/app_workflow_step_metadata.py | 1 + ...ehavior.py => config_app_policy_engine.py} | 5 +- nuon/models/config_app_policy_type.py | 9 +- .../models/configs_oci_registry_repository.py | 32 +- ... get_current_org_features_response_200.py} | 17 +- ..._install_component_outputs_response_200.py | 1 + ...orkspace_states_json_by_id_response_200.py | 1 + ...kspace_states_json_by_idv2_response_200.py | 1 + ...nuonco_nuon_pkg_aws_credentials_config.py} | 10 +- ...onco_nuon_pkg_azure_credentials_config.py} | 10 +- ..._com_nuonco_nuon_pkg_types_state_state.py} | 26 +- ..._nuon_pkg_types_state_state_components.py} | 11 +- ...v_mono_pkg_types_state_state_components.py | 46 -- nuon/models/github_match.py | 72 +++ nuon/models/github_plan.py | 106 ++++ nuon/models/github_text_match.py | 115 ++++ ...es_response_200.py => github_timestamp.py} | 27 +- nuon/models/github_user.py | 511 ++++++++++++++++++ ...onse_200.py => github_user_permissions.py} | 22 +- nuon/models/kube_cluster_info.py | 32 +- nuon/models/kube_cluster_info_env_vars.py | 1 + nuon/models/permissions_set.py | 1 + .../plantypes_action_workflow_run_plan.py | 16 +- ...lantypes_action_workflow_run_plan_attrs.py | 1 + ...tion_workflow_run_plan_builtin_env_vars.py | 1 + ...ion_workflow_run_plan_override_env_vars.py | 1 + ...pes_action_workflow_run_step_plan_attrs.py | 1 + ...low_run_step_plan_interpolated_env_vars.py | 1 + nuon/models/plantypes_build_plan.py | 20 + nuon/models/plantypes_composite_plan.py | 18 + .../plantypes_docker_build_plan_build_args.py | 1 + .../plantypes_fetch_image_metadata_plan.py | 122 +++++ .../plantypes_helm_build_plan_labels.py | 1 + ...lantypes_kubernetes_manifest_build_plan.py | 121 +++++ ...s_kubernetes_manifest_build_plan_labels.py | 47 ++ ...antypes_kubernetes_manifest_deploy_plan.py | 22 +- .../plantypes_kustomize_build_config.py | 81 +++ nuon/models/plantypes_noop_deploy_plan.py | 1 + .../plantypes_oci_artifact_reference.py | 79 +++ nuon/models/plantypes_sandbox_mode_outputs.py | 1 + nuon/models/plantypes_sandbox_run_plan.py | 48 +- .../plantypes_sandbox_run_plan_env_vars.py | 1 + .../plantypes_sandbox_run_plan_policies.py | 1 + .../models/plantypes_sandbox_run_plan_vars.py | 1 + nuon/models/plantypes_sync_secrets_plan.py | 32 +- .../plantypes_terraform_build_plan_labels.py | 1 + .../plantypes_terraform_deploy_hooks.py | 16 +- ...antypes_terraform_deploy_hooks_env_vars.py | 1 + .../models/plantypes_terraform_deploy_plan.py | 48 +- ...lantypes_terraform_deploy_plan_env_vars.py | 1 + ...lantypes_terraform_deploy_plan_policies.py | 1 + .../plantypes_terraform_deploy_plan_vars.py | 1 + nuon/models/service_app_policy_config.py | 31 +- nuon/models/service_auth_me_identity.py | 87 +++ nuon/models/service_auth_me_response.py | 216 ++++++++ .../service_build_all_components_request.py | 1 + .../service_cancel_runner_job_request.py | 1 + nuon/models/service_cli_config.py | 18 + ...n_workflow_config_step_request_env_vars.py | 1 + ..._create_app_input_config_request_groups.py | 1 + ..._create_app_input_config_request_inputs.py | 1 + ...eate_app_runner_config_request_env_vars.py | 1 + ...ate_app_sandbox_config_request_env_vars.py | 1 + ...te_app_sandbox_config_request_variables.py | 1 + ...e_docker_build_component_config_request.py | 18 + ...build_component_config_request_env_vars.py | 1 + ...external_image_component_config_request.py | 18 + ...ce_create_helm_component_config_request.py | 18 + ...te_helm_component_config_request_values.py | 1 + ...ction_workflow_run_request_run_env_vars.py | 1 + ...ce_create_install_inputs_request_inputs.py | 1 + .../service_create_install_request_inputs.py | 1 + ...ervice_create_install_v2_request_inputs.py | 1 + ...ice_create_job_component_config_request.py | 18 + ...e_job_component_config_request_env_vars.py | 1 + ...netes_manifest_component_config_request.py | 80 ++- ...rraform_module_component_config_request.py | 18 + ...odule_component_config_request_env_vars.py | 1 + ...dule_component_config_request_variables.py | 1 + nuon/models/service_force_shutdown_request.py | 1 + ...rvice_forget_install_component_request.py} | 11 +- nuon/models/service_forget_install_request.py | 1 + .../service_graceful_shutdown_request.py | 1 + .../service_install_phone_home_request.py | 1 + .../service_kustomize_config_request.py | 90 +++ .../service_latest_runner_heart_beats.py | 1 + ....py => service_mng_fetch_token_request.py} | 11 +- nuon/models/service_mng_shut_down_request.py | 1 + nuon/models/service_mng_update_request.py | 1 + .../service_mng_vm_shut_down_request.py | 1 + ...ce_update_install_inputs_request_inputs.py | 1 + .../service_update_org_features_request.py | 67 +++ ...ce_update_org_features_request_features.py | 47 ++ ...ervice_update_user_journey_step_request.py | 26 +- ...ate_user_journey_step_request_metadata.py} | 11 +- nuon/models/service_vcs_connection_account.py | 79 +++ nuon/models/service_vcs_connection_repo.py | 133 +++++ .../service_vcs_connection_repos_response.py | 88 +++ .../service_vcs_connection_status_response.py | 168 ++++++ ..._connection_status_response_permissions.py | 47 ++ .../state_action_workflow_state_outputs.py | 1 + nuon/models/state_actions_state_workflows.py | 1 + nuon/models/state_app_state_variables.py | 1 + nuon/models/state_inputs_state_inputs.py | 1 + .../state_install_stack_state_outputs.py | 1 + nuon/models/state_install_state_inputs.py | 1 + nuon/models/state_sandbox_state_outputs.py | 1 + nuon/models/state_secrets_state.py | 1 + nuon/models/types_string_bool_map.py | 1 + pyproject.toml | 2 +- version.txt | 2 +- 417 files changed, 7128 insertions(+), 419 deletions(-) create mode 100644 nuon/api/apps/get_app_policies_configs.py create mode 100644 nuon/api/auth/__init__.py create mode 100644 nuon/api/auth/get_auth_me.py create mode 100644 nuon/api/installs/forget_install_component.py create mode 100644 nuon/api/orgs/get_current_org_features.py create mode 100644 nuon/api/orgs/get_org_features.py create mode 100644 nuon/api/orgs/update_org_features.py create mode 100644 nuon/api/runners/fetch_runner_token_mng.py create mode 100644 nuon/api/vcs/check_vcs_connection_status.py create mode 100644 nuon/api/vcs/get_vcs_connections_connection_id_repos.py create mode 100644 nuon/models/app_app_policy_config.py create mode 100644 nuon/models/app_kustomize_config.py create mode 100644 nuon/models/app_org_feature_info.py create mode 100644 nuon/models/app_provider_type.py rename nuon/models/{app_step_error_behavior.py => config_app_policy_engine.py} (51%) rename nuon/models/{update_terraform_state_body.py => get_current_org_features_response_200.py} (65%) rename nuon/models/{github_com_powertoolsdev_mono_pkg_aws_credentials_config.py => github_com_nuonco_nuon_pkg_aws_credentials_config.py} (91%) rename nuon/models/{github_com_powertoolsdev_mono_pkg_azure_credentials_config.py => github_com_nuonco_nuon_pkg_azure_credentials_config.py} (87%) rename nuon/models/{github_com_powertoolsdev_mono_pkg_types_state_state.py => github_com_nuonco_nuon_pkg_types_state_state.py} (90%) rename nuon/models/{lock_terraform_workspace_body.py => github_com_nuonco_nuon_pkg_types_state_state_components.py} (74%) delete mode 100644 nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state_components.py create mode 100644 nuon/models/github_match.py create mode 100644 nuon/models/github_plan.py create mode 100644 nuon/models/github_text_match.py rename nuon/models/{get_terraform_workspace_state_json_resources_response_200.py => github_timestamp.py} (65%) create mode 100644 nuon/models/github_user.py rename nuon/models/{get_terraform_workspace_state_json_resources_v2_response_200.py => github_user_permissions.py} (59%) create mode 100644 nuon/models/plantypes_fetch_image_metadata_plan.py create mode 100644 nuon/models/plantypes_kubernetes_manifest_build_plan.py create mode 100644 nuon/models/plantypes_kubernetes_manifest_build_plan_labels.py create mode 100644 nuon/models/plantypes_kustomize_build_config.py create mode 100644 nuon/models/plantypes_oci_artifact_reference.py create mode 100644 nuon/models/service_auth_me_identity.py create mode 100644 nuon/models/service_auth_me_response.py rename nuon/models/{get_config_schema_response_200.py => service_forget_install_component_request.py} (78%) create mode 100644 nuon/models/service_kustomize_config_request.py rename nuon/models/{unlock_terraform_workspace_body.py => service_mng_fetch_token_request.py} (81%) create mode 100644 nuon/models/service_update_org_features_request.py create mode 100644 nuon/models/service_update_org_features_request_features.py rename nuon/models/{get_workflow_step_approval_contents_response_200.py => service_update_user_journey_step_request_metadata.py} (76%) create mode 100644 nuon/models/service_vcs_connection_account.py create mode 100644 nuon/models/service_vcs_connection_repo.py create mode 100644 nuon/models/service_vcs_connection_repos_response.py create mode 100644 nuon/models/service_vcs_connection_status_response.py create mode 100644 nuon/models/service_vcs_connection_status_response_permissions.py diff --git a/nuon/api/accounts/complete_user_journey.py b/nuon/api/accounts/complete_user_journey.py index 4ae29413..7273d0ab 100644 --- a/nuon/api/accounts/complete_user_journey.py +++ b/nuon/api/accounts/complete_user_journey.py @@ -14,6 +14,7 @@ def _get_kwargs( journey_name: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "post", "url": "/v1/account/user-journeys/{journey_name}/complete".format( diff --git a/nuon/api/accounts/get_current_account.py b/nuon/api/accounts/get_current_account.py index 38e59e87..5dd36139 100644 --- a/nuon/api/accounts/get_current_account.py +++ b/nuon/api/accounts/get_current_account.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/account", diff --git a/nuon/api/accounts/get_user_journeys.py b/nuon/api/accounts/get_user_journeys.py index 11c614d6..e3bcf60e 100644 --- a/nuon/api/accounts/get_user_journeys.py +++ b/nuon/api/accounts/get_user_journeys.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/account/user-journeys", diff --git a/nuon/api/accounts/reset_user_journey.py b/nuon/api/accounts/reset_user_journey.py index 9970bf96..20ff5f40 100644 --- a/nuon/api/accounts/reset_user_journey.py +++ b/nuon/api/accounts/reset_user_journey.py @@ -14,6 +14,7 @@ def _get_kwargs( journey_name: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "post", "url": "/v1/account/user-journeys/{journey_name}/reset".format( diff --git a/nuon/api/actions/create_action_config.py b/nuon/api/actions/create_action_config.py index 50a03e3e..3d03de37 100644 --- a/nuon/api/actions/create_action_config.py +++ b/nuon/api/actions/create_action_config.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """create action config + Create an action workflow configuration. + Args: app_id (str): action_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """create action config + Create an action workflow configuration. + Args: app_id (str): action_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """create action config + Create an action workflow configuration. + Args: app_id (str): action_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """create action config + Create an action workflow configuration. + Args: app_id (str): action_id (str): diff --git a/nuon/api/actions/create_action_workflow_config.py b/nuon/api/actions/create_action_workflow_config.py index 3244e279..3bb51d61 100644 --- a/nuon/api/actions/create_action_workflow_config.py +++ b/nuon/api/actions/create_action_workflow_config.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """create action workflow config + Create an action workflow configuration. + Args: action_workflow_id (str): body (ServiceCreateActionWorkflowConfigRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """create action workflow config + Create an action workflow configuration. + Args: action_workflow_id (str): body (ServiceCreateActionWorkflowConfigRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """create action workflow config + Create an action workflow configuration. + Args: action_workflow_id (str): body (ServiceCreateActionWorkflowConfigRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """create action workflow config + Create an action workflow configuration. + Args: action_workflow_id (str): body (ServiceCreateActionWorkflowConfigRequest): diff --git a/nuon/api/actions/create_app_action.py b/nuon/api/actions/create_app_action.py index eac2dd83..036b0cb1 100644 --- a/nuon/api/actions/create_app_action.py +++ b/nuon/api/actions/create_app_action.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """create an app action + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """create an app action + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """create an app action + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """create an app action + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionRequest): diff --git a/nuon/api/actions/create_app_action_workflow.py b/nuon/api/actions/create_app_action_workflow.py index 1b03a980..44cdcb1d 100644 --- a/nuon/api/actions/create_app_action_workflow.py +++ b/nuon/api/actions/create_app_action_workflow.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """create an app action workflow + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionWorkflowRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """create an app action workflow + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionWorkflowRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """create an app action workflow + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionWorkflowRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """create an app action workflow + Create an action workflow for an app. + Args: app_id (str): body (ServiceCreateAppActionWorkflowRequest): diff --git a/nuon/api/actions/delete_action.py b/nuon/api/actions/delete_action.py index 02491a9e..31adaf7d 100644 --- a/nuon/api/actions/delete_action.py +++ b/nuon/api/actions/delete_action.py @@ -13,6 +13,7 @@ def _get_kwargs( action_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/actions/{action_id}".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """delete an action + Delete an action workflow. + Args: action_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """delete an action + Delete an action workflow. + Args: action_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """delete an action + Delete an action workflow. + Args: action_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """delete an action + Delete an action workflow. + Args: action_id (str): diff --git a/nuon/api/actions/delete_action_workflow.py b/nuon/api/actions/delete_action_workflow.py index fb9d041b..2ad6a900 100644 --- a/nuon/api/actions/delete_action_workflow.py +++ b/nuon/api/actions/delete_action_workflow.py @@ -13,6 +13,7 @@ def _get_kwargs( action_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/action-workflows/{action_workflow_id}".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """delete an action workflow + Delete an action workflow. + Args: action_workflow_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """delete an action workflow + Delete an action workflow. + Args: action_workflow_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """delete an action workflow + Delete an action workflow. + Args: action_workflow_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """delete an action workflow + Delete an action workflow. + Args: action_workflow_id (str): diff --git a/nuon/api/actions/get_action_latest_config.py b/nuon/api/actions/get_action_latest_config.py index d898077b..8ac52068 100644 --- a/nuon/api/actions/get_action_latest_config.py +++ b/nuon/api/actions/get_action_latest_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, action_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/actions/{action_id}/latest-config".format( diff --git a/nuon/api/actions/get_action_workflow.py b/nuon/api/actions/get_action_workflow.py index 166ef59c..259c2a38 100644 --- a/nuon/api/actions/get_action_workflow.py +++ b/nuon/api/actions/get_action_workflow.py @@ -14,6 +14,7 @@ def _get_kwargs( action_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/action-workflows/{action_workflow_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: action_workflow_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: action_workflow_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: action_workflow_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: action_workflow_id (str): diff --git a/nuon/api/actions/get_action_workflow_config.py b/nuon/api/actions/get_action_workflow_config.py index 07cfcdc8..33935ece 100644 --- a/nuon/api/actions/get_action_workflow_config.py +++ b/nuon/api/actions/get_action_workflow_config.py @@ -14,6 +14,7 @@ def _get_kwargs( action_workflow_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/action-workflows/configs/{action_workflow_config_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """get an app action workflow config + Return an action workflow configuration by id. + Args: action_workflow_config_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """get an app action workflow config + Return an action workflow configuration by id. + Args: action_workflow_config_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """get an app action workflow config + Return an action workflow configuration by id. + Args: action_workflow_config_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """get an app action workflow config + Return an action workflow configuration by id. + Args: action_workflow_config_id (str): diff --git a/nuon/api/actions/get_action_workflow_configs.py b/nuon/api/actions/get_action_workflow_configs.py index cc0e40f9..7b8565b5 100644 --- a/nuon/api/actions/get_action_workflow_configs.py +++ b/nuon/api/actions/get_action_workflow_configs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflowConfig]]: """get action workflow for an app + Returns all action workflow configurations. + Args: action_workflow_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppActionWorkflowConfig] | None: """get action workflow for an app + Returns all action workflow configurations. + Args: action_workflow_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflowConfig]]: """get action workflow for an app + Returns all action workflow configurations. + Args: action_workflow_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppActionWorkflowConfig] | None: """get action workflow for an app + Returns all action workflow configurations. + Args: action_workflow_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/actions/get_action_workflow_latest_config.py b/nuon/api/actions/get_action_workflow_latest_config.py index b76725c9..7e6903f7 100644 --- a/nuon/api/actions/get_action_workflow_latest_config.py +++ b/nuon/api/actions/get_action_workflow_latest_config.py @@ -14,6 +14,7 @@ def _get_kwargs( action_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/action-workflows/{action_workflow_id}/latest-config".format( diff --git a/nuon/api/actions/get_action_workflows.py b/nuon/api/actions/get_action_workflows.py index ba557c1a..3cb943f3 100644 --- a/nuon/api/actions/get_action_workflows.py +++ b/nuon/api/actions/get_action_workflows.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["q"] = q @@ -108,6 +109,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflow]]: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): @@ -149,6 +152,8 @@ def sync( ) -> StderrErrResponse | list[AppActionWorkflow] | None: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): @@ -185,6 +190,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflow]]: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): @@ -224,6 +231,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppActionWorkflow] | None: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): diff --git a/nuon/api/actions/get_app_action.py b/nuon/api/actions/get_app_action.py index db31c572..16036735 100644 --- a/nuon/api/actions/get_app_action.py +++ b/nuon/api/actions/get_app_action.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, action_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/actions/{action_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: app_id (str): action_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: app_id (str): action_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: app_id (str): action_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """get an app action workflow by action workflow id + Return an app action workflow by id. + Args: app_id (str): action_id (str): diff --git a/nuon/api/actions/get_app_action_config.py b/nuon/api/actions/get_app_action_config.py index df96f75f..7f3c80e0 100644 --- a/nuon/api/actions/get_app_action_config.py +++ b/nuon/api/actions/get_app_action_config.py @@ -16,6 +16,7 @@ def _get_kwargs( action_id: str, action_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/actions/{action_id}/configs/{action_config_id}".format( @@ -87,6 +88,8 @@ def sync_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """get an app action config + Return an action workflow configuration by id. + Args: app_id (str): action_id (str): @@ -122,6 +125,8 @@ def sync( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """get an app action config + Return an action workflow configuration by id. + Args: app_id (str): action_id (str): @@ -152,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflowConfig | StderrErrResponse]: """get an app action config + Return an action workflow configuration by id. + Args: app_id (str): action_id (str): @@ -185,6 +192,8 @@ async def asyncio( ) -> AppActionWorkflowConfig | StderrErrResponse | None: """get an app action config + Return an action workflow configuration by id. + Args: app_id (str): action_id (str): diff --git a/nuon/api/actions/get_app_action_configs.py b/nuon/api/actions/get_app_action_configs.py index fa3955fc..586cf8c9 100644 --- a/nuon/api/actions/get_app_action_configs.py +++ b/nuon/api/actions/get_app_action_configs.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -107,6 +108,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflowConfig]]: """get action workflow for an app + Returns all action workflow configurations. + Args: app_id (str): action_id (str): @@ -148,6 +151,8 @@ def sync( ) -> StderrErrResponse | list[AppActionWorkflowConfig] | None: """get action workflow for an app + Returns all action workflow configurations. + Args: app_id (str): action_id (str): @@ -184,6 +189,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflowConfig]]: """get action workflow for an app + Returns all action workflow configurations. + Args: app_id (str): action_id (str): @@ -223,6 +230,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppActionWorkflowConfig] | None: """get action workflow for an app + Returns all action workflow configurations. + Args: app_id (str): action_id (str): diff --git a/nuon/api/actions/get_app_action_workflow.py b/nuon/api/actions/get_app_action_workflow.py index 93a8da48..8926d765 100644 --- a/nuon/api/actions/get_app_action_workflow.py +++ b/nuon/api/actions/get_app_action_workflow.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, action_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/action-workflows/{action_workflow_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """get an app action workflow + Return an app action workflow by id. + Args: app_id (str): action_workflow_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """get an app action workflow + Return an app action workflow by id. + Args: app_id (str): action_workflow_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """get an app action workflow + Return an app action workflow by id. + Args: app_id (str): action_workflow_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """get an app action workflow + Return an app action workflow by id. + Args: app_id (str): action_workflow_id (str): diff --git a/nuon/api/actions/get_app_actions.py b/nuon/api/actions/get_app_actions.py index a17c96bb..2e2008b0 100644 --- a/nuon/api/actions/get_app_actions.py +++ b/nuon/api/actions/get_app_actions.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["q"] = q @@ -108,6 +109,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflow]]: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): @@ -149,6 +152,8 @@ def sync( ) -> StderrErrResponse | list[AppActionWorkflow] | None: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): @@ -185,6 +190,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppActionWorkflow]]: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): @@ -224,6 +231,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppActionWorkflow] | None: """get action workflows for an app + Returns all action workflows for the provided app. + Args: app_id (str): q (str | Unset): diff --git a/nuon/api/actions/get_install_action_recent_runs.py b/nuon/api/actions/get_install_action_recent_runs.py index 0462e5e9..5096d10e 100644 --- a/nuon/api/actions/get_install_action_recent_runs.py +++ b/nuon/api/actions/get_install_action_recent_runs.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -102,6 +103,8 @@ def sync_detailed( ) -> Response[AppInstallActionWorkflow | StderrErrResponse]: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_id (str): @@ -143,6 +146,8 @@ def sync( ) -> AppInstallActionWorkflow | StderrErrResponse | None: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_id (str): @@ -179,6 +184,8 @@ async def asyncio_detailed( ) -> Response[AppInstallActionWorkflow | StderrErrResponse]: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_id (str): @@ -218,6 +225,8 @@ async def asyncio( ) -> AppInstallActionWorkflow | StderrErrResponse | None: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_id (str): diff --git a/nuon/api/actions/get_install_action_run.py b/nuon/api/actions/get_install_action_run.py index 2c793075..17413058 100644 --- a/nuon/api/actions/get_install_action_run.py +++ b/nuon/api/actions/get_install_action_run.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, run_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/actions/runs/{run_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppInstallActionWorkflowRun | StderrErrResponse]: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppInstallActionWorkflowRun | StderrErrResponse | None: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppInstallActionWorkflowRun | StderrErrResponse]: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppInstallActionWorkflowRun | StderrErrResponse | None: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): diff --git a/nuon/api/actions/get_install_action_run_step.py b/nuon/api/actions/get_install_action_run_step.py index efbb0984..a50913d5 100644 --- a/nuon/api/actions/get_install_action_run_step.py +++ b/nuon/api/actions/get_install_action_run_step.py @@ -16,6 +16,7 @@ def _get_kwargs( run_id: str, step_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/actions/runs/{run_id}/steps/{step_id}".format( diff --git a/nuon/api/actions/get_install_action_runs.py b/nuon/api/actions/get_install_action_runs.py index f71f6f0b..0df5bcae 100644 --- a/nuon/api/actions/get_install_action_runs.py +++ b/nuon/api/actions/get_install_action_runs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflowRun]]: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallActionWorkflowRun] | None: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflowRun]]: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallActionWorkflowRun] | None: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/actions/get_install_action_workflow_recent_runs.py b/nuon/api/actions/get_install_action_workflow_recent_runs.py index df2bf14b..896f215c 100644 --- a/nuon/api/actions/get_install_action_workflow_recent_runs.py +++ b/nuon/api/actions/get_install_action_workflow_recent_runs.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -102,6 +103,8 @@ def sync_detailed( ) -> Response[AppInstallActionWorkflow | StderrErrResponse]: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_workflow_id (str): @@ -143,6 +146,8 @@ def sync( ) -> AppInstallActionWorkflow | StderrErrResponse | None: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_workflow_id (str): @@ -179,6 +184,8 @@ async def asyncio_detailed( ) -> Response[AppInstallActionWorkflow | StderrErrResponse]: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_workflow_id (str): @@ -218,6 +225,8 @@ async def asyncio( ) -> AppInstallActionWorkflow | StderrErrResponse | None: """get recent runs for an action workflow by install id + Returns recent workflow runs for an install action workflow. + Args: install_id (str): action_workflow_id (str): diff --git a/nuon/api/actions/get_install_action_workflow_run.py b/nuon/api/actions/get_install_action_workflow_run.py index 0657cb85..47192f25 100644 --- a/nuon/api/actions/get_install_action_workflow_run.py +++ b/nuon/api/actions/get_install_action_workflow_run.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, run_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/action-workflows/runs/{run_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppInstallActionWorkflowRun | StderrErrResponse]: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppInstallActionWorkflowRun | StderrErrResponse | None: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppInstallActionWorkflowRun | StderrErrResponse]: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppInstallActionWorkflowRun | StderrErrResponse | None: """get action workflow runs by install id and run id + Return an install action workflow run by id. + Args: install_id (str): run_id (str): diff --git a/nuon/api/actions/get_install_action_workflow_run_step.py b/nuon/api/actions/get_install_action_workflow_run_step.py index 21fb1207..aab8d7f7 100644 --- a/nuon/api/actions/get_install_action_workflow_run_step.py +++ b/nuon/api/actions/get_install_action_workflow_run_step.py @@ -16,6 +16,7 @@ def _get_kwargs( workflow_run_id: str, step_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/action-workflows/runs/{workflow_run_id}/steps/{step_id}".format( diff --git a/nuon/api/actions/get_install_action_workflow_runs.py b/nuon/api/actions/get_install_action_workflow_runs.py index 2e284300..e4c011df 100644 --- a/nuon/api/actions/get_install_action_workflow_runs.py +++ b/nuon/api/actions/get_install_action_workflow_runs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflowRun]]: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallActionWorkflowRun] | None: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflowRun]]: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallActionWorkflowRun] | None: """get action workflow runs by install id + Returns all action workflow runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/actions/get_install_action_workflows_latest_runs.py b/nuon/api/actions/get_install_action_workflows_latest_runs.py index f5889ed6..3190a001 100644 --- a/nuon/api/actions/get_install_action_workflows_latest_runs.py +++ b/nuon/api/actions/get_install_action_workflows_latest_runs.py @@ -20,6 +20,7 @@ def _get_kwargs( page: int | Unset = 0, q: str | Unset = UNSET, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["trigger_types"] = trigger_types @@ -112,6 +113,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflow]]: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): @@ -156,6 +159,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallActionWorkflow] | None: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): @@ -195,6 +200,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflow]]: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): @@ -237,6 +244,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallActionWorkflow] | None: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): diff --git a/nuon/api/actions/get_install_actions_latest_runs.py b/nuon/api/actions/get_install_actions_latest_runs.py index bc9d191d..854ca620 100644 --- a/nuon/api/actions/get_install_actions_latest_runs.py +++ b/nuon/api/actions/get_install_actions_latest_runs.py @@ -20,6 +20,7 @@ def _get_kwargs( page: int | Unset = 0, q: str | Unset = UNSET, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["trigger_types"] = trigger_types @@ -112,6 +113,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflow]]: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): @@ -156,6 +159,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallActionWorkflow] | None: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): @@ -195,6 +200,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallActionWorkflow]]: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): @@ -237,6 +244,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallActionWorkflow] | None: """get latest runs for all action workflows by install id + Returns the most recent workflow run for each install action workflow. + Args: install_id (str): trigger_types (str | Unset): diff --git a/nuon/api/actions/update_app_action.py b/nuon/api/actions/update_app_action.py index c7dbd937..386678a4 100644 --- a/nuon/api/actions/update_app_action.py +++ b/nuon/api/actions/update_app_action.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """patch an app action + Update an app action workflow configuration. + Args: app_id (str): action_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """patch an app action + Update an app action workflow configuration. + Args: app_id (str): action_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """patch an app action + Update an app action workflow configuration. + Args: app_id (str): action_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """patch an app action + Update an app action workflow configuration. + Args: app_id (str): action_id (str): diff --git a/nuon/api/actions/update_app_action_workflow.py b/nuon/api/actions/update_app_action_workflow.py index e64e58b4..338bf016 100644 --- a/nuon/api/actions/update_app_action_workflow.py +++ b/nuon/api/actions/update_app_action_workflow.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """patch an app + Update an app action workflow configuration. + Args: action_workflow_id (str): body (ServiceUpdateActionWorkflowRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppActionWorkflow | StderrErrResponse | None: """patch an app + Update an app action workflow configuration. + Args: action_workflow_id (str): body (ServiceUpdateActionWorkflowRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppActionWorkflow | StderrErrResponse]: """patch an app + Update an app action workflow configuration. + Args: action_workflow_id (str): body (ServiceUpdateActionWorkflowRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppActionWorkflow | StderrErrResponse | None: """patch an app + Update an app action workflow configuration. + Args: action_workflow_id (str): body (ServiceUpdateActionWorkflowRequest): diff --git a/nuon/api/apps/create_app.py b/nuon/api/apps/create_app.py index 7118d467..e0c271cf 100644 --- a/nuon/api/apps/create_app.py +++ b/nuon/api/apps/create_app.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppApp | StderrErrResponse]: """create an app + Create a new app. + Args: body (ServiceCreateAppRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppApp | StderrErrResponse | None: """create an app + Create a new app. + Args: body (ServiceCreateAppRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppApp | StderrErrResponse]: """create an app + Create a new app. + Args: body (ServiceCreateAppRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppApp | StderrErrResponse | None: """create an app + Create a new app. + Args: body (ServiceCreateAppRequest): diff --git a/nuon/api/apps/create_app_runner_config.py b/nuon/api/apps/create_app_runner_config.py index a30b0cb0..caa5a474 100644 --- a/nuon/api/apps/create_app_runner_config.py +++ b/nuon/api/apps/create_app_runner_config.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppAppRunnerConfig | StderrErrResponse]: """create an app runner config + Create a runner configuration for an app. + Args: app_id (str): body (ServiceCreateAppRunnerConfigRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppAppRunnerConfig | StderrErrResponse | None: """create an app runner config + Create a runner configuration for an app. + Args: app_id (str): body (ServiceCreateAppRunnerConfigRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppAppRunnerConfig | StderrErrResponse]: """create an app runner config + Create a runner configuration for an app. + Args: app_id (str): body (ServiceCreateAppRunnerConfigRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppAppRunnerConfig | StderrErrResponse | None: """create an app runner config + Create a runner configuration for an app. + Args: app_id (str): body (ServiceCreateAppRunnerConfigRequest): diff --git a/nuon/api/apps/create_app_sandbox_config.py b/nuon/api/apps/create_app_sandbox_config.py index 487cf137..a69629a0 100644 --- a/nuon/api/apps/create_app_sandbox_config.py +++ b/nuon/api/apps/create_app_sandbox_config.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppAppSandboxConfig | StderrErrResponse]: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppAppSandboxConfig | StderrErrResponse | None: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppAppSandboxConfig | StderrErrResponse]: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppAppSandboxConfig | StderrErrResponse | None: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): diff --git a/nuon/api/apps/create_app_sandbox_config_v2.py b/nuon/api/apps/create_app_sandbox_config_v2.py index ba7a13b3..09ad64b9 100644 --- a/nuon/api/apps/create_app_sandbox_config_v2.py +++ b/nuon/api/apps/create_app_sandbox_config_v2.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppAppSandboxConfig | StderrErrResponse]: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppAppSandboxConfig | StderrErrResponse | None: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppAppSandboxConfig | StderrErrResponse]: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppAppSandboxConfig | StderrErrResponse | None: """create an app sandbox config + Create a sandbox configuration for an app. + Args: app_id (str): body (ServiceCreateAppSandboxConfigRequest): diff --git a/nuon/api/apps/delete_app.py b/nuon/api/apps/delete_app.py index d8f2776f..bfa95829 100644 --- a/nuon/api/apps/delete_app.py +++ b/nuon/api/apps/delete_app.py @@ -13,6 +13,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/apps/{app_id}".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """delete an app + Delete an app. + Args: app_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """delete an app + Delete an app. + Args: app_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """delete an app + Delete an app. + Args: app_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """delete an app + Delete an app. + Args: app_id (str): diff --git a/nuon/api/apps/delete_app_secret.py b/nuon/api/apps/delete_app_secret.py index 03dc30b1..580bae59 100644 --- a/nuon/api/apps/delete_app_secret.py +++ b/nuon/api/apps/delete_app_secret.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, secret_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/apps/{app_id}/secret/{secret_id}".format( diff --git a/nuon/api/apps/delete_app_secret_v2.py b/nuon/api/apps/delete_app_secret_v2.py index e06b8552..15397e7c 100644 --- a/nuon/api/apps/delete_app_secret_v2.py +++ b/nuon/api/apps/delete_app_secret_v2.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, secret_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/apps/{app_id}/secrets/{secret_id}".format( diff --git a/nuon/api/apps/get_app.py b/nuon/api/apps/get_app.py index 5251b41c..130b2333 100644 --- a/nuon/api/apps/get_app.py +++ b/nuon/api/apps/get_app.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}".format( diff --git a/nuon/api/apps/get_app_branch_app_configs.py b/nuon/api/apps/get_app_branch_app_configs.py index d8b38eda..ac7bb7f0 100644 --- a/nuon/api/apps/get_app_branch_app_configs.py +++ b/nuon/api/apps/get_app_branch_app_configs.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -107,6 +108,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppAppConfig]]: """get app branch app configs + Returns all branch configurations for the provided app. + Args: app_id (str): app_branch_id (str): @@ -148,6 +151,8 @@ def sync( ) -> StderrErrResponse | list[AppAppConfig] | None: """get app branch app configs + Returns all branch configurations for the provided app. + Args: app_id (str): app_branch_id (str): @@ -184,6 +189,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppAppConfig]]: """get app branch app configs + Returns all branch configurations for the provided app. + Args: app_id (str): app_branch_id (str): @@ -223,6 +230,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppAppConfig] | None: """get app branch app configs + Returns all branch configurations for the provided app. + Args: app_id (str): app_branch_id (str): diff --git a/nuon/api/apps/get_app_branches.py b/nuon/api/apps/get_app_branches.py index 516b6026..f67c9712 100644 --- a/nuon/api/apps/get_app_branches.py +++ b/nuon/api/apps/get_app_branches.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppAppBranch]]: """get app branches + Returns all branches for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppAppBranch] | None: """get app branches + Returns all branches for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppAppBranch]]: """get app branches + Returns all branches for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppAppBranch] | None: """get app branches + Returns all branches for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/apps/get_app_break_glass_config.py b/nuon/api/apps/get_app_break_glass_config.py index 04f0165c..95fc1d10 100644 --- a/nuon/api/apps/get_app_break_glass_config.py +++ b/nuon/api/apps/get_app_break_glass_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, break_glass_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/break-glass-configs/{break_glass_config_id}".format( diff --git a/nuon/api/apps/get_app_config.py b/nuon/api/apps/get_app_config.py index 5a594c7d..62426f4c 100644 --- a/nuon/api/apps/get_app_config.py +++ b/nuon/api/apps/get_app_config.py @@ -17,6 +17,7 @@ def _get_kwargs( *, recurse: bool | Unset = False, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["recurse"] = recurse diff --git a/nuon/api/apps/get_app_config_graph.py b/nuon/api/apps/get_app_config_graph.py index 5d92f42e..ba5c96f0 100644 --- a/nuon/api/apps/get_app_config_graph.py +++ b/nuon/api/apps/get_app_config_graph.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, app_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/config/{app_config_id}/graph".format( diff --git a/nuon/api/apps/get_app_config_graph_v2.py b/nuon/api/apps/get_app_config_graph_v2.py index 7f9e1a8a..5795bdee 100644 --- a/nuon/api/apps/get_app_config_graph_v2.py +++ b/nuon/api/apps/get_app_config_graph_v2.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/configs/{config_id}/graph".format( diff --git a/nuon/api/apps/get_app_config_template.py b/nuon/api/apps/get_app_config_template.py index 2eed4910..ab9d5a24 100644 --- a/nuon/api/apps/get_app_config_template.py +++ b/nuon/api/apps/get_app_config_template.py @@ -17,6 +17,7 @@ def _get_kwargs( *, type_: GetAppConfigTemplateType, ) -> dict[str, Any]: + params: dict[str, Any] = {} json_type_ = type_.value diff --git a/nuon/api/apps/get_app_configs.py b/nuon/api/apps/get_app_configs.py index 62f9d863..25e522e7 100644 --- a/nuon/api/apps/get_app_configs.py +++ b/nuon/api/apps/get_app_configs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/apps/get_app_conflg_v2.py b/nuon/api/apps/get_app_conflg_v2.py index a8b8e2e9..57e9cffe 100644 --- a/nuon/api/apps/get_app_conflg_v2.py +++ b/nuon/api/apps/get_app_conflg_v2.py @@ -17,6 +17,7 @@ def _get_kwargs( *, recurse: bool | Unset = False, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["recurse"] = recurse diff --git a/nuon/api/apps/get_app_input_config.py b/nuon/api/apps/get_app_input_config.py index f2cb8180..db461c30 100644 --- a/nuon/api/apps/get_app_input_config.py +++ b/nuon/api/apps/get_app_input_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, input_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/input-configs/{input_config_id}".format( diff --git a/nuon/api/apps/get_app_input_configs.py b/nuon/api/apps/get_app_input_configs.py index 28872135..95b83e0d 100644 --- a/nuon/api/apps/get_app_input_configs.py +++ b/nuon/api/apps/get_app_input_configs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppAppInputConfig]]: """get app input configs + Returns all input configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppAppInputConfig] | None: """get app input configs + Returns all input configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppAppInputConfig]]: """get app input configs + Returns all input configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppAppInputConfig] | None: """get app input configs + Returns all input configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/apps/get_app_input_latest_config.py b/nuon/api/apps/get_app_input_latest_config.py index 6e59cea6..2a7722e6 100644 --- a/nuon/api/apps/get_app_input_latest_config.py +++ b/nuon/api/apps/get_app_input_latest_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/input-latest-config".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppAppInputConfig | StderrErrResponse]: """get latest app input config + Returns the most recent input config for the provided app. + Args: app_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppAppInputConfig | StderrErrResponse | None: """get latest app input config + Returns the most recent input config for the provided app. + Args: app_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppAppInputConfig | StderrErrResponse]: """get latest app input config + Returns the most recent input config for the provided app. + Args: app_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppAppInputConfig | StderrErrResponse | None: """get latest app input config + Returns the most recent input config for the provided app. + Args: app_id (str): diff --git a/nuon/api/apps/get_app_latest_config.py b/nuon/api/apps/get_app_latest_config.py index 293a1d43..7a6635f4 100644 --- a/nuon/api/apps/get_app_latest_config.py +++ b/nuon/api/apps/get_app_latest_config.py @@ -16,6 +16,7 @@ def _get_kwargs( *, recurse: bool | Unset = False, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["recurse"] = recurse diff --git a/nuon/api/apps/get_app_permissions_config.py b/nuon/api/apps/get_app_permissions_config.py index f9e9fee5..f2298bd7 100644 --- a/nuon/api/apps/get_app_permissions_config.py +++ b/nuon/api/apps/get_app_permissions_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, permissions_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/permissions-configs/{permissions_config_id}".format( diff --git a/nuon/api/apps/get_app_policies_config.py b/nuon/api/apps/get_app_policies_config.py index 0274907b..22e24e3b 100644 --- a/nuon/api/apps/get_app_policies_config.py +++ b/nuon/api/apps/get_app_policies_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, policies_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/policies-configs/{policies_config_id}".format( diff --git a/nuon/api/apps/get_app_policies_configs.py b/nuon/api/apps/get_app_policies_configs.py new file mode 100644 index 00000000..82bce611 --- /dev/null +++ b/nuon/api/apps/get_app_policies_configs.py @@ -0,0 +1,245 @@ +from http import HTTPStatus +from typing import Any +from urllib.parse import quote + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.app_app_policies_config import AppAppPoliciesConfig +from ...models.stderr_err_response import StderrErrResponse +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + app_id: str, + *, + offset: int | Unset = 0, + limit: int | Unset = 10, + page: int | Unset = 0, +) -> dict[str, Any]: + + params: dict[str, Any] = {} + + params["offset"] = offset + + params["limit"] = limit + + params["page"] = page + + params = {k: v for k, v in params.items() if v is not UNSET and v is not None} + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/v1/apps/{app_id}/policies-configs".format( + app_id=quote(str(app_id), safe=""), + ), + "params": params, + } + + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> StderrErrResponse | list[AppAppPoliciesConfig] | None: + if response.status_code == 200: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = AppAppPoliciesConfig.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + + if response.status_code == 400: + response_400 = StderrErrResponse.from_dict(response.json()) + + return response_400 + + if response.status_code == 401: + response_401 = StderrErrResponse.from_dict(response.json()) + + return response_401 + + if response.status_code == 403: + response_403 = StderrErrResponse.from_dict(response.json()) + + return response_403 + + if response.status_code == 404: + response_404 = StderrErrResponse.from_dict(response.json()) + + return response_404 + + if response.status_code == 500: + response_500 = StderrErrResponse.from_dict(response.json()) + + return response_500 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[StderrErrResponse | list[AppAppPoliciesConfig]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + app_id: str, + *, + client: AuthenticatedClient, + offset: int | Unset = 0, + limit: int | Unset = 10, + page: int | Unset = 0, +) -> Response[StderrErrResponse | list[AppAppPoliciesConfig]]: + """get app policies configs + + Get all policies configs for an app. + + Args: + app_id (str): + offset (int | Unset): Default: 0. + limit (int | Unset): Default: 10. + page (int | Unset): Default: 0. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[StderrErrResponse | list[AppAppPoliciesConfig]] + """ + + kwargs = _get_kwargs( + app_id=app_id, + offset=offset, + limit=limit, + page=page, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + app_id: str, + *, + client: AuthenticatedClient, + offset: int | Unset = 0, + limit: int | Unset = 10, + page: int | Unset = 0, +) -> StderrErrResponse | list[AppAppPoliciesConfig] | None: + """get app policies configs + + Get all policies configs for an app. + + Args: + app_id (str): + offset (int | Unset): Default: 0. + limit (int | Unset): Default: 10. + page (int | Unset): Default: 0. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + StderrErrResponse | list[AppAppPoliciesConfig] + """ + + return sync_detailed( + app_id=app_id, + client=client, + offset=offset, + limit=limit, + page=page, + ).parsed + + +async def asyncio_detailed( + app_id: str, + *, + client: AuthenticatedClient, + offset: int | Unset = 0, + limit: int | Unset = 10, + page: int | Unset = 0, +) -> Response[StderrErrResponse | list[AppAppPoliciesConfig]]: + """get app policies configs + + Get all policies configs for an app. + + Args: + app_id (str): + offset (int | Unset): Default: 0. + limit (int | Unset): Default: 10. + page (int | Unset): Default: 0. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[StderrErrResponse | list[AppAppPoliciesConfig]] + """ + + kwargs = _get_kwargs( + app_id=app_id, + offset=offset, + limit=limit, + page=page, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + app_id: str, + *, + client: AuthenticatedClient, + offset: int | Unset = 0, + limit: int | Unset = 10, + page: int | Unset = 0, +) -> StderrErrResponse | list[AppAppPoliciesConfig] | None: + """get app policies configs + + Get all policies configs for an app. + + Args: + app_id (str): + offset (int | Unset): Default: 0. + limit (int | Unset): Default: 10. + page (int | Unset): Default: 0. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + StderrErrResponse | list[AppAppPoliciesConfig] + """ + + return ( + await asyncio_detailed( + app_id=app_id, + client=client, + offset=offset, + limit=limit, + page=page, + ) + ).parsed diff --git a/nuon/api/apps/get_app_runner_configs.py b/nuon/api/apps/get_app_runner_configs.py index e0414981..8ca8d01f 100644 --- a/nuon/api/apps/get_app_runner_configs.py +++ b/nuon/api/apps/get_app_runner_configs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppAppRunnerConfig]]: """get app runner configs + Returns all runner configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppAppRunnerConfig] | None: """get app runner configs + Returns all runner configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppAppRunnerConfig]]: """get app runner configs + Returns all runner configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppAppRunnerConfig] | None: """get app runner configs + Returns all runner configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/apps/get_app_runner_latest_config.py b/nuon/api/apps/get_app_runner_latest_config.py index 7b1ee5f6..f1fdc5f6 100644 --- a/nuon/api/apps/get_app_runner_latest_config.py +++ b/nuon/api/apps/get_app_runner_latest_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/runner-latest-config".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppAppRunnerConfig | StderrErrResponse]: """get latest app runner config + Returns the most recent runner config for the provided app. + Args: app_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppAppRunnerConfig | StderrErrResponse | None: """get latest app runner config + Returns the most recent runner config for the provided app. + Args: app_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppAppRunnerConfig | StderrErrResponse]: """get latest app runner config + Returns the most recent runner config for the provided app. + Args: app_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppAppRunnerConfig | StderrErrResponse | None: """get latest app runner config + Returns the most recent runner config for the provided app. + Args: app_id (str): diff --git a/nuon/api/apps/get_app_sandbox_configs.py b/nuon/api/apps/get_app_sandbox_configs.py index 7d946713..55c173af 100644 --- a/nuon/api/apps/get_app_sandbox_configs.py +++ b/nuon/api/apps/get_app_sandbox_configs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppAppSandboxConfig]]: """get app sandbox configs + Returns all sandbox configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppAppSandboxConfig] | None: """get app sandbox configs + Returns all sandbox configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppAppSandboxConfig]]: """get app sandbox configs + Returns all sandbox configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppAppSandboxConfig] | None: """get app sandbox configs + Returns all sandbox configurations for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/apps/get_app_sandbox_latest_config.py b/nuon/api/apps/get_app_sandbox_latest_config.py index 52ab53d9..d1536785 100644 --- a/nuon/api/apps/get_app_sandbox_latest_config.py +++ b/nuon/api/apps/get_app_sandbox_latest_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/sandbox-latest-config".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppAppSandboxConfig | StderrErrResponse]: """get latest app sandbox config + Returns the most recent sandbox config for the provided app. + Args: app_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppAppSandboxConfig | StderrErrResponse | None: """get latest app sandbox config + Returns the most recent sandbox config for the provided app. + Args: app_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppAppSandboxConfig | StderrErrResponse]: """get latest app sandbox config + Returns the most recent sandbox config for the provided app. + Args: app_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppAppSandboxConfig | StderrErrResponse | None: """get latest app sandbox config + Returns the most recent sandbox config for the provided app. + Args: app_id (str): diff --git a/nuon/api/apps/get_app_secrets.py b/nuon/api/apps/get_app_secrets.py index 7b1b6f43..1dc0c2b1 100644 --- a/nuon/api/apps/get_app_secrets.py +++ b/nuon/api/apps/get_app_secrets.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/apps/get_app_secrets_config.py b/nuon/api/apps/get_app_secrets_config.py index 8e075715..1da111bb 100644 --- a/nuon/api/apps/get_app_secrets_config.py +++ b/nuon/api/apps/get_app_secrets_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, app_secrets_config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/secrets-configs/{app_secrets_config_id}".format( diff --git a/nuon/api/apps/get_app_stack_config.py b/nuon/api/apps/get_app_stack_config.py index 2bc2ca39..9d4234d7 100644 --- a/nuon/api/apps/get_app_stack_config.py +++ b/nuon/api/apps/get_app_stack_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/stack-configs/{config_id}".format( diff --git a/nuon/api/apps/get_apps.py b/nuon/api/apps/get_apps.py index 5e6c03bf..6a609534 100644 --- a/nuon/api/apps/get_apps.py +++ b/nuon/api/apps/get_apps.py @@ -17,6 +17,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -103,6 +104,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppApp]]: """get all apps for the current org + Returns all apps for the authenticated user. + Args: offset (int | Unset): Default: 0. q (str | Unset): @@ -141,6 +144,8 @@ def sync( ) -> StderrErrResponse | list[AppApp] | None: """get all apps for the current org + Returns all apps for the authenticated user. + Args: offset (int | Unset): Default: 0. q (str | Unset): @@ -174,6 +179,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppApp]]: """get all apps for the current org + Returns all apps for the authenticated user. + Args: offset (int | Unset): Default: 0. q (str | Unset): @@ -210,6 +217,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppApp] | None: """get all apps for the current org + Returns all apps for the authenticated user. + Args: offset (int | Unset): Default: 0. q (str | Unset): diff --git a/nuon/api/apps/get_latest_app_break_glass_config.py b/nuon/api/apps/get_latest_app_break_glass_config.py index 8046ffa0..3494ffc9 100644 --- a/nuon/api/apps/get_latest_app_break_glass_config.py +++ b/nuon/api/apps/get_latest_app_break_glass_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/latest-app-break-glass-config".format( diff --git a/nuon/api/apps/get_latest_app_permissions_config.py b/nuon/api/apps/get_latest_app_permissions_config.py index a1ecfdfb..bfd83555 100644 --- a/nuon/api/apps/get_latest_app_permissions_config.py +++ b/nuon/api/apps/get_latest_app_permissions_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/latest-app-permissions-config".format( diff --git a/nuon/api/apps/get_latest_app_policies_config.py b/nuon/api/apps/get_latest_app_policies_config.py index 7ec847c2..ca6ed4e7 100644 --- a/nuon/api/apps/get_latest_app_policies_config.py +++ b/nuon/api/apps/get_latest_app_policies_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/latest-app-policies-config".format( diff --git a/nuon/api/apps/get_latest_app_secrets_config.py b/nuon/api/apps/get_latest_app_secrets_config.py index acca117e..213476fc 100644 --- a/nuon/api/apps/get_latest_app_secrets_config.py +++ b/nuon/api/apps/get_latest_app_secrets_config.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/latest-app-secrets-config".format( diff --git a/nuon/api/apps/update_app.py b/nuon/api/apps/update_app.py index 38b96546..dde125d2 100644 --- a/nuon/api/apps/update_app.py +++ b/nuon/api/apps/update_app.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppApp | StderrErrResponse]: """update an app + Update an app's configuration. + Args: app_id (str): body (ServiceUpdateAppRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppApp | StderrErrResponse | None: """update an app + Update an app's configuration. + Args: app_id (str): body (ServiceUpdateAppRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppApp | StderrErrResponse]: """update an app + Update an app's configuration. + Args: app_id (str): body (ServiceUpdateAppRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppApp | StderrErrResponse | None: """update an app + Update an app's configuration. + Args: app_id (str): body (ServiceUpdateAppRequest): diff --git a/nuon/api/apps/update_app_config_installs.py b/nuon/api/apps/update_app_config_installs.py index f641ede6..a5b4a537 100644 --- a/nuon/api/apps/update_app_config_installs.py +++ b/nuon/api/apps/update_app_config_installs.py @@ -91,7 +91,8 @@ def sync_detailed( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> Response[StderrErrResponse | str]: - """ + """Update app configuration across multiple installs. + Args: app_id (str): app_config_id (str): @@ -125,7 +126,8 @@ def sync( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> StderrErrResponse | str | None: - """ + """Update app configuration across multiple installs. + Args: app_id (str): app_config_id (str): @@ -154,7 +156,8 @@ async def asyncio_detailed( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> Response[StderrErrResponse | str]: - """ + """Update app configuration across multiple installs. + Args: app_id (str): app_config_id (str): @@ -186,7 +189,8 @@ async def asyncio( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> StderrErrResponse | str | None: - """ + """Update app configuration across multiple installs. + Args: app_id (str): app_config_id (str): diff --git a/nuon/api/apps/update_app_config_installs_v2.py b/nuon/api/apps/update_app_config_installs_v2.py index 54d301a7..86833787 100644 --- a/nuon/api/apps/update_app_config_installs_v2.py +++ b/nuon/api/apps/update_app_config_installs_v2.py @@ -91,7 +91,8 @@ def sync_detailed( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> Response[StderrErrResponse | str]: - """ + """Update app configuration across multiple installs. + Args: app_id (str): config_id (str): @@ -125,7 +126,8 @@ def sync( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> StderrErrResponse | str | None: - """ + """Update app configuration across multiple installs. + Args: app_id (str): config_id (str): @@ -154,7 +156,8 @@ async def asyncio_detailed( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> Response[StderrErrResponse | str]: - """ + """Update app configuration across multiple installs. + Args: app_id (str): config_id (str): @@ -186,7 +189,8 @@ async def asyncio( client: AuthenticatedClient, body: ServiceUpdateAppConfigInstallsRequest, ) -> StderrErrResponse | str | None: - """ + """Update app configuration across multiple installs. + Args: app_id (str): config_id (str): diff --git a/nuon/api/auth/__init__.py b/nuon/api/auth/__init__.py new file mode 100644 index 00000000..2d7c0b23 --- /dev/null +++ b/nuon/api/auth/__init__.py @@ -0,0 +1 @@ +"""Contains endpoint functions for accessing the API""" diff --git a/nuon/api/auth/get_auth_me.py b/nuon/api/auth/get_auth_me.py new file mode 100644 index 00000000..c6c11e74 --- /dev/null +++ b/nuon/api/auth/get_auth_me.py @@ -0,0 +1,147 @@ +from http import HTTPStatus +from typing import Any + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.service_auth_me_response import ServiceAuthMeResponse +from ...models.stderr_err_response import StderrErrResponse +from ...types import Response + + +def _get_kwargs() -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/v1/auth/me", + } + + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ServiceAuthMeResponse | StderrErrResponse | None: + if response.status_code == 200: + response_200 = ServiceAuthMeResponse.from_dict(response.json()) + + return response_200 + + if response.status_code == 401: + response_401 = StderrErrResponse.from_dict(response.json()) + + return response_401 + + if response.status_code == 500: + response_500 = StderrErrResponse.from_dict(response.json()) + + return response_500 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ServiceAuthMeResponse | StderrErrResponse]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, +) -> Response[ServiceAuthMeResponse | StderrErrResponse]: + """Get current account with identity information + + Returns the authenticated account with identity profile information (provider_type, name, picture) + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[ServiceAuthMeResponse | StderrErrResponse] + """ + + kwargs = _get_kwargs() + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, +) -> ServiceAuthMeResponse | StderrErrResponse | None: + """Get current account with identity information + + Returns the authenticated account with identity profile information (provider_type, name, picture) + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + ServiceAuthMeResponse | StderrErrResponse + """ + + return sync_detailed( + client=client, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, +) -> Response[ServiceAuthMeResponse | StderrErrResponse]: + """Get current account with identity information + + Returns the authenticated account with identity profile information (provider_type, name, picture) + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[ServiceAuthMeResponse | StderrErrResponse] + """ + + kwargs = _get_kwargs() + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, +) -> ServiceAuthMeResponse | StderrErrResponse | None: + """Get current account with identity information + + Returns the authenticated account with identity profile information (provider_type, name, picture) + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + ServiceAuthMeResponse | StderrErrResponse + """ + + return ( + await asyncio_detailed( + client=client, + ) + ).parsed diff --git a/nuon/api/components/build_all_components.py b/nuon/api/components/build_all_components.py index 1a2f6e7b..14af0bb5 100644 --- a/nuon/api/components/build_all_components.py +++ b/nuon/api/components/build_all_components.py @@ -97,6 +97,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentBuild]]: """create component build + Build all components for an app. + Args: app_id (str): body (ServiceBuildAllComponentsRequest): @@ -129,6 +131,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentBuild] | None: """create component build + Build all components for an app. + Args: app_id (str): body (ServiceBuildAllComponentsRequest): @@ -156,6 +160,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentBuild]]: """create component build + Build all components for an app. + Args: app_id (str): body (ServiceBuildAllComponentsRequest): @@ -186,6 +192,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentBuild] | None: """create component build + Build all components for an app. + Args: app_id (str): body (ServiceBuildAllComponentsRequest): diff --git a/nuon/api/components/create_app_component_build.py b/nuon/api/components/create_app_component_build.py index f7213879..4cbacfed 100644 --- a/nuon/api/components/create_app_component_build.py +++ b/nuon/api/components/create_app_component_build.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """create component build + Create a build for a component. + Args: app_id (str): component_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppComponentBuild | StderrErrResponse | None: """create component build + Create a build for a component. + Args: app_id (str): component_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """create component build + Create a build for a component. + Args: app_id (str): component_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppComponentBuild | StderrErrResponse | None: """create component build + Create a build for a component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/create_app_docker_build_component_config.py b/nuon/api/components/create_app_docker_build_component_config.py index f28d78e3..f3a34d49 100644 --- a/nuon/api/components/create_app_docker_build_component_config.py +++ b/nuon/api/components/create_app_docker_build_component_config.py @@ -97,6 +97,8 @@ def sync_detailed( ) -> Response[AppDockerBuildComponentConfig | StderrErrResponse]: """create a docker build component config + Create a Docker build component config. + Args: app_id (str): component_id (str): @@ -132,6 +134,8 @@ def sync( ) -> AppDockerBuildComponentConfig | StderrErrResponse | None: """create a docker build component config + Create a Docker build component config. + Args: app_id (str): component_id (str): @@ -162,6 +166,8 @@ async def asyncio_detailed( ) -> Response[AppDockerBuildComponentConfig | StderrErrResponse]: """create a docker build component config + Create a Docker build component config. + Args: app_id (str): component_id (str): @@ -195,6 +201,8 @@ async def asyncio( ) -> AppDockerBuildComponentConfig | StderrErrResponse | None: """create a docker build component config + Create a Docker build component config. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/create_app_external_image_component_config.py b/nuon/api/components/create_app_external_image_component_config.py index 74294c26..54e40889 100644 --- a/nuon/api/components/create_app_external_image_component_config.py +++ b/nuon/api/components/create_app_external_image_component_config.py @@ -97,6 +97,8 @@ def sync_detailed( ) -> Response[AppExternalImageComponentConfig | StderrErrResponse]: """create an external image component config + Create an external image component config. + Args: app_id (str): component_id (str): @@ -132,6 +134,8 @@ def sync( ) -> AppExternalImageComponentConfig | StderrErrResponse | None: """create an external image component config + Create an external image component config. + Args: app_id (str): component_id (str): @@ -162,6 +166,8 @@ async def asyncio_detailed( ) -> Response[AppExternalImageComponentConfig | StderrErrResponse]: """create an external image component config + Create an external image component config. + Args: app_id (str): component_id (str): @@ -195,6 +201,8 @@ async def asyncio( ) -> AppExternalImageComponentConfig | StderrErrResponse | None: """create an external image component config + Create an external image component config. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/create_app_job_component_config.py b/nuon/api/components/create_app_job_component_config.py index b4dbb5aa..df35ab44 100644 --- a/nuon/api/components/create_app_job_component_config.py +++ b/nuon/api/components/create_app_job_component_config.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppJobComponentConfig | StderrErrResponse]: """create a job component config + Create a job component config. + Args: app_id (str): component_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppJobComponentConfig | StderrErrResponse | None: """create a job component config + Create a job component config. + Args: app_id (str): component_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppJobComponentConfig | StderrErrResponse]: """create a job component config + Create a job component config. + Args: app_id (str): component_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppJobComponentConfig | StderrErrResponse | None: """create a job component config + Create a job component config. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/create_app_kubernetes_manifest_component_config.py b/nuon/api/components/create_app_kubernetes_manifest_component_config.py index 8a6f9d73..884fbbb2 100644 --- a/nuon/api/components/create_app_kubernetes_manifest_component_config.py +++ b/nuon/api/components/create_app_kubernetes_manifest_component_config.py @@ -97,6 +97,8 @@ def sync_detailed( ) -> Response[AppKubernetesManifestComponentConfig | StderrErrResponse]: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: app_id (str): component_id (str): @@ -132,6 +134,8 @@ def sync( ) -> AppKubernetesManifestComponentConfig | StderrErrResponse | None: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: app_id (str): component_id (str): @@ -162,6 +166,8 @@ async def asyncio_detailed( ) -> Response[AppKubernetesManifestComponentConfig | StderrErrResponse]: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: app_id (str): component_id (str): @@ -195,6 +201,8 @@ async def asyncio( ) -> AppKubernetesManifestComponentConfig | StderrErrResponse | None: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/create_component.py b/nuon/api/components/create_component.py index f3bc479e..44260850 100644 --- a/nuon/api/components/create_component.py +++ b/nuon/api/components/create_component.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppComponent | StderrErrResponse]: """create a component + Create a new component for an app. + Args: app_id (str): body (ServiceCreateComponentRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppComponent | StderrErrResponse | None: """create a component + Create a new component for an app. + Args: app_id (str): body (ServiceCreateComponentRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppComponent | StderrErrResponse]: """create a component + Create a new component for an app. + Args: app_id (str): body (ServiceCreateComponentRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppComponent | StderrErrResponse | None: """create a component + Create a new component for an app. + Args: app_id (str): body (ServiceCreateComponentRequest): diff --git a/nuon/api/components/create_component_build.py b/nuon/api/components/create_component_build.py index a0e97e03..3da2790a 100644 --- a/nuon/api/components/create_component_build.py +++ b/nuon/api/components/create_component_build.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """create component build + Create a build for a component. + Args: component_id (str): body (ServiceCreateComponentBuildRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppComponentBuild | StderrErrResponse | None: """create component build + Create a build for a component. + Args: component_id (str): body (ServiceCreateComponentBuildRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """create component build + Create a build for a component. + Args: component_id (str): body (ServiceCreateComponentBuildRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppComponentBuild | StderrErrResponse | None: """create component build + Create a build for a component. + Args: component_id (str): body (ServiceCreateComponentBuildRequest): diff --git a/nuon/api/components/create_docker_build_component_config.py b/nuon/api/components/create_docker_build_component_config.py index dd53beb6..d64cde08 100644 --- a/nuon/api/components/create_docker_build_component_config.py +++ b/nuon/api/components/create_docker_build_component_config.py @@ -94,6 +94,8 @@ def sync_detailed( ) -> Response[AppDockerBuildComponentConfig | StderrErrResponse]: """create a docker build component config + Create a Docker build component config. + Args: component_id (str): body (ServiceCreateDockerBuildComponentConfigRequest): @@ -126,6 +128,8 @@ def sync( ) -> AppDockerBuildComponentConfig | StderrErrResponse | None: """create a docker build component config + Create a Docker build component config. + Args: component_id (str): body (ServiceCreateDockerBuildComponentConfigRequest): @@ -153,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppDockerBuildComponentConfig | StderrErrResponse]: """create a docker build component config + Create a Docker build component config. + Args: component_id (str): body (ServiceCreateDockerBuildComponentConfigRequest): @@ -183,6 +189,8 @@ async def asyncio( ) -> AppDockerBuildComponentConfig | StderrErrResponse | None: """create a docker build component config + Create a Docker build component config. + Args: component_id (str): body (ServiceCreateDockerBuildComponentConfigRequest): diff --git a/nuon/api/components/create_external_image_component_config.py b/nuon/api/components/create_external_image_component_config.py index 4080c870..404064aa 100644 --- a/nuon/api/components/create_external_image_component_config.py +++ b/nuon/api/components/create_external_image_component_config.py @@ -94,6 +94,8 @@ def sync_detailed( ) -> Response[AppExternalImageComponentConfig | StderrErrResponse]: """create an external image component config + Create an external image component config. + Args: component_id (str): body (ServiceCreateExternalImageComponentConfigRequest): @@ -126,6 +128,8 @@ def sync( ) -> AppExternalImageComponentConfig | StderrErrResponse | None: """create an external image component config + Create an external image component config. + Args: component_id (str): body (ServiceCreateExternalImageComponentConfigRequest): @@ -153,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppExternalImageComponentConfig | StderrErrResponse]: """create an external image component config + Create an external image component config. + Args: component_id (str): body (ServiceCreateExternalImageComponentConfigRequest): @@ -183,6 +189,8 @@ async def asyncio( ) -> AppExternalImageComponentConfig | StderrErrResponse | None: """create an external image component config + Create an external image component config. + Args: component_id (str): body (ServiceCreateExternalImageComponentConfigRequest): diff --git a/nuon/api/components/create_job_component_config.py b/nuon/api/components/create_job_component_config.py index 7d97f02e..94723180 100644 --- a/nuon/api/components/create_job_component_config.py +++ b/nuon/api/components/create_job_component_config.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppJobComponentConfig | StderrErrResponse]: """create a job component config + Create a job component config. + Args: component_id (str): body (ServiceCreateJobComponentConfigRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppJobComponentConfig | StderrErrResponse | None: """create a job component config + Create a job component config. + Args: component_id (str): body (ServiceCreateJobComponentConfigRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppJobComponentConfig | StderrErrResponse]: """create a job component config + Create a job component config. + Args: component_id (str): body (ServiceCreateJobComponentConfigRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppJobComponentConfig | StderrErrResponse | None: """create a job component config + Create a job component config. + Args: component_id (str): body (ServiceCreateJobComponentConfigRequest): diff --git a/nuon/api/components/create_kubernetes_manifest_component_config.py b/nuon/api/components/create_kubernetes_manifest_component_config.py index 37eebdcd..cde38399 100644 --- a/nuon/api/components/create_kubernetes_manifest_component_config.py +++ b/nuon/api/components/create_kubernetes_manifest_component_config.py @@ -94,6 +94,8 @@ def sync_detailed( ) -> Response[AppKubernetesManifestComponentConfig | StderrErrResponse]: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: component_id (str): body (ServiceCreateKubernetesManifestComponentConfigRequest): @@ -126,6 +128,8 @@ def sync( ) -> AppKubernetesManifestComponentConfig | StderrErrResponse | None: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: component_id (str): body (ServiceCreateKubernetesManifestComponentConfigRequest): @@ -153,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppKubernetesManifestComponentConfig | StderrErrResponse]: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: component_id (str): body (ServiceCreateKubernetesManifestComponentConfigRequest): @@ -183,6 +189,8 @@ async def asyncio( ) -> AppKubernetesManifestComponentConfig | StderrErrResponse | None: """create a kubernetes manifest component config + Create a Kubernetes manifest component config. + Args: component_id (str): body (ServiceCreateKubernetesManifestComponentConfigRequest): diff --git a/nuon/api/components/delete_app_component.py b/nuon/api/components/delete_app_component.py index 0d9be1be..767f3c19 100644 --- a/nuon/api/components/delete_app_component.py +++ b/nuon/api/components/delete_app_component.py @@ -14,6 +14,7 @@ def _get_kwargs( app_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/apps/{app_id}/components/{component_id}".format( @@ -82,6 +83,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """delete a component + Delete a component. + Args: app_id (str): component_id (str): @@ -114,6 +117,8 @@ def sync( ) -> StderrErrResponse | bool | None: """delete a component + Delete a component. + Args: app_id (str): component_id (str): @@ -141,6 +146,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """delete a component + Delete a component. + Args: app_id (str): component_id (str): @@ -171,6 +178,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """delete a component + Delete a component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/delete_component.py b/nuon/api/components/delete_component.py index 809d5333..e9ca88a2 100644 --- a/nuon/api/components/delete_component.py +++ b/nuon/api/components/delete_component.py @@ -13,6 +13,7 @@ def _get_kwargs( component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/components/{component_id}".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """delete a component + Delete a component. + Args: component_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """delete a component + Delete a component. + Args: component_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """delete a component + Delete a component. + Args: component_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """delete a component + Delete a component. + Args: component_id (str): diff --git a/nuon/api/components/get_app_component.py b/nuon/api/components/get_app_component.py index 5346c7fa..8c52d394 100644 --- a/nuon/api/components/get_app_component.py +++ b/nuon/api/components/get_app_component.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, component_name_or_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/component/{component_name_or_id}".format( diff --git a/nuon/api/components/get_app_component_build.py b/nuon/api/components/get_app_component_build.py index c8b48417..684a492c 100644 --- a/nuon/api/components/get_app_component_build.py +++ b/nuon/api/components/get_app_component_build.py @@ -16,6 +16,7 @@ def _get_kwargs( component_id: str, build_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/components/{component_id}/builds/{build_id}".format( diff --git a/nuon/api/components/get_app_component_builds.py b/nuon/api/components/get_app_component_builds.py index de97de7b..b91d163b 100644 --- a/nuon/api/components/get_app_component_builds.py +++ b/nuon/api/components/get_app_component_builds.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -107,6 +108,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentBuild]]: """get builds for components + Returns all builds for the provided component. + Args: app_id (str): component_id (str): @@ -148,6 +151,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentBuild] | None: """get builds for components + Returns all builds for the provided component. + Args: app_id (str): component_id (str): @@ -184,6 +189,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentBuild]]: """get builds for components + Returns all builds for the provided component. + Args: app_id (str): component_id (str): @@ -223,6 +230,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentBuild] | None: """get builds for components + Returns all builds for the provided component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_component_config.py b/nuon/api/components/get_app_component_config.py index 378b0496..a8212b33 100644 --- a/nuon/api/components/get_app_component_config.py +++ b/nuon/api/components/get_app_component_config.py @@ -16,6 +16,7 @@ def _get_kwargs( component_id: str, config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/components/{component_id}/configs/{config_id}".format( @@ -87,6 +88,8 @@ def sync_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get a config for a component + Return a component configuration by id. + Args: app_id (str): component_id (str): @@ -122,6 +125,8 @@ def sync( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get a config for a component + Return a component configuration by id. + Args: app_id (str): component_id (str): @@ -152,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get a config for a component + Return a component configuration by id. + Args: app_id (str): component_id (str): @@ -185,6 +192,8 @@ async def asyncio( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get a config for a component + Return a component configuration by id. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_component_configs.py b/nuon/api/components/get_app_component_configs.py index e4935ab3..d735f91c 100644 --- a/nuon/api/components/get_app_component_configs.py +++ b/nuon/api/components/get_app_component_configs.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -107,6 +108,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentConfigConnection]]: """get all configs for a component + Returns all configurations for the provided component. + Args: app_id (str): component_id (str): @@ -148,6 +151,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentConfigConnection] | None: """get all configs for a component + Returns all configurations for the provided component. + Args: app_id (str): component_id (str): @@ -184,6 +189,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentConfigConnection]]: """get all configs for a component + Returns all configurations for the provided component. + Args: app_id (str): component_id (str): @@ -223,6 +230,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentConfigConnection] | None: """get all configs for a component + Returns all configurations for the provided component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_component_dependencies.py b/nuon/api/components/get_app_component_dependencies.py index 0cda8a08..892a1a09 100644 --- a/nuon/api/components/get_app_component_dependencies.py +++ b/nuon/api/components/get_app_component_dependencies.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/components/{component_id}/dependencies".format( @@ -89,6 +90,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get a component's dependencies + Returns all dependencies for the provided component. + Args: app_id (str): component_id (str): @@ -121,6 +124,8 @@ def sync( ) -> StderrErrResponse | list[AppComponent] | None: """get a component's dependencies + Returns all dependencies for the provided component. + Args: app_id (str): component_id (str): @@ -148,6 +153,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get a component's dependencies + Returns all dependencies for the provided component. + Args: app_id (str): component_id (str): @@ -178,6 +185,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponent] | None: """get a component's dependencies + Returns all dependencies for the provided component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_component_dependents.py b/nuon/api/components/get_app_component_dependents.py index 320a494e..ace6dcf2 100644 --- a/nuon/api/components/get_app_component_dependents.py +++ b/nuon/api/components/get_app_component_dependents.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/components/{component_id}/dependents".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[ServiceComponentChildren | StderrErrResponse]: """get a component's children + Returns all components that depend on the provided component. + Args: app_id (str): component_id (str): @@ -116,6 +119,8 @@ def sync( ) -> ServiceComponentChildren | StderrErrResponse | None: """get a component's children + Returns all components that depend on the provided component. + Args: app_id (str): component_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[ServiceComponentChildren | StderrErrResponse]: """get a component's children + Returns all components that depend on the provided component. + Args: app_id (str): component_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> ServiceComponentChildren | StderrErrResponse | None: """get a component's children + Returns all components that depend on the provided component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_component_latest_build.py b/nuon/api/components/get_app_component_latest_build.py index 10c5e9e2..6b0ae21d 100644 --- a/nuon/api/components/get_app_component_latest_build.py +++ b/nuon/api/components/get_app_component_latest_build.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/components/{component_id}/builds/latest".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """get latest build for a component + Returns the most recent build for the provided component. + Args: app_id (str): component_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppComponentBuild | StderrErrResponse | None: """get latest build for a component + Returns the most recent build for the provided component. + Args: app_id (str): component_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """get latest build for a component + Returns the most recent build for the provided component. + Args: app_id (str): component_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppComponentBuild | StderrErrResponse | None: """get latest build for a component + Returns the most recent build for the provided component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_component_latest_config.py b/nuon/api/components/get_app_component_latest_config.py index 95896947..8cd198f6 100644 --- a/nuon/api/components/get_app_component_latest_config.py +++ b/nuon/api/components/get_app_component_latest_config.py @@ -15,6 +15,7 @@ def _get_kwargs( app_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/apps/{app_id}/components/{component_id}/configs/latest".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get latest config for a component + Returns the most recent config for the provided component. + Args: app_id (str): component_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get latest config for a component + Returns the most recent config for the provided component. + Args: app_id (str): component_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get latest config for a component + Returns the most recent config for the provided component. + Args: app_id (str): component_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get latest config for a component + Returns the most recent config for the provided component. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/get_app_components.py b/nuon/api/components/get_app_components.py index e82b987b..93b7e926 100644 --- a/nuon/api/components/get_app_components.py +++ b/nuon/api/components/get_app_components.py @@ -21,6 +21,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["q"] = q @@ -116,6 +117,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get all components for an app + Returns all components for the provided app. + Args: app_id (str): q (str | Unset): @@ -163,6 +166,8 @@ def sync( ) -> StderrErrResponse | list[AppComponent] | None: """get all components for an app + Returns all components for the provided app. + Args: app_id (str): q (str | Unset): @@ -205,6 +210,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get all components for an app + Returns all components for the provided app. + Args: app_id (str): q (str | Unset): @@ -250,6 +257,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponent] | None: """get all components for an app + Returns all components for the provided app. + Args: app_id (str): q (str | Unset): diff --git a/nuon/api/components/get_build.py b/nuon/api/components/get_build.py index d6f8aa9a..0d3e90b1 100644 --- a/nuon/api/components/get_build.py +++ b/nuon/api/components/get_build.py @@ -14,6 +14,7 @@ def _get_kwargs( build_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/builds/{build_id}".format( diff --git a/nuon/api/components/get_component.py b/nuon/api/components/get_component.py index 1455c242..708d4120 100644 --- a/nuon/api/components/get_component.py +++ b/nuon/api/components/get_component.py @@ -14,6 +14,7 @@ def _get_kwargs( component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppComponent | StderrErrResponse]: """get a component + Return a component by id. + Args: component_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppComponent | StderrErrResponse | None: """get a component + Return a component by id. + Args: component_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppComponent | StderrErrResponse]: """get a component + Return a component by id. + Args: component_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppComponent | StderrErrResponse | None: """get a component + Return a component by id. + Args: component_id (str): diff --git a/nuon/api/components/get_component_build.py b/nuon/api/components/get_component_build.py index 06236c23..d80b0c14 100644 --- a/nuon/api/components/get_component_build.py +++ b/nuon/api/components/get_component_build.py @@ -15,6 +15,7 @@ def _get_kwargs( component_id: str, build_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}/builds/{build_id}".format( diff --git a/nuon/api/components/get_component_builds.py b/nuon/api/components/get_component_builds.py index ef5e90d4..4361deaa 100644 --- a/nuon/api/components/get_component_builds.py +++ b/nuon/api/components/get_component_builds.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["component_id"] = component_id @@ -107,6 +108,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentBuild]]: """get builds for components + Returns all builds for the provided component. + Args: component_id (str | Unset): app_id (str | Unset): @@ -148,6 +151,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentBuild] | None: """get builds for components + Returns all builds for the provided component. + Args: component_id (str | Unset): app_id (str | Unset): @@ -184,6 +189,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentBuild]]: """get builds for components + Returns all builds for the provided component. + Args: component_id (str | Unset): app_id (str | Unset): @@ -223,6 +230,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentBuild] | None: """get builds for components + Returns all builds for the provided component. + Args: component_id (str | Unset): app_id (str | Unset): diff --git a/nuon/api/components/get_component_config.py b/nuon/api/components/get_component_config.py index 04fc9782..45ebb96f 100644 --- a/nuon/api/components/get_component_config.py +++ b/nuon/api/components/get_component_config.py @@ -15,6 +15,7 @@ def _get_kwargs( component_id: str, config_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}/configs/{config_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get a config for a component + Return a component configuration by id. + Args: component_id (str): config_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get a config for a component + Return a component configuration by id. + Args: component_id (str): config_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get a config for a component + Return a component configuration by id. + Args: component_id (str): config_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get a config for a component + Return a component configuration by id. + Args: component_id (str): config_id (str): diff --git a/nuon/api/components/get_component_configs.py b/nuon/api/components/get_component_configs.py index 5a6b1d17..01eaec5a 100644 --- a/nuon/api/components/get_component_configs.py +++ b/nuon/api/components/get_component_configs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentConfigConnection]]: """get all configs for a component + Returns all configurations for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentConfigConnection] | None: """get all configs for a component + Returns all configurations for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentConfigConnection]]: """get all configs for a component + Returns all configurations for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentConfigConnection] | None: """get all configs for a component + Returns all configurations for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/components/get_component_dependencies.py b/nuon/api/components/get_component_dependencies.py index 2eac251d..a355cfa6 100644 --- a/nuon/api/components/get_component_dependencies.py +++ b/nuon/api/components/get_component_dependencies.py @@ -14,6 +14,7 @@ def _get_kwargs( component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}/dependencies".format( @@ -86,6 +87,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get a component's dependencies + Returns all dependencies for the provided component. + Args: component_id (str): @@ -115,6 +118,8 @@ def sync( ) -> StderrErrResponse | list[AppComponent] | None: """get a component's dependencies + Returns all dependencies for the provided component. + Args: component_id (str): @@ -139,6 +144,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get a component's dependencies + Returns all dependencies for the provided component. + Args: component_id (str): @@ -166,6 +173,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponent] | None: """get a component's dependencies + Returns all dependencies for the provided component. + Args: component_id (str): diff --git a/nuon/api/components/get_component_dependents.py b/nuon/api/components/get_component_dependents.py index ba6d26d1..d16cbe14 100644 --- a/nuon/api/components/get_component_dependents.py +++ b/nuon/api/components/get_component_dependents.py @@ -14,6 +14,7 @@ def _get_kwargs( component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}/dependents".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[ServiceComponentChildren | StderrErrResponse]: """get a component's children + Returns all components that depend on the provided component. + Args: component_id (str): @@ -110,6 +113,8 @@ def sync( ) -> ServiceComponentChildren | StderrErrResponse | None: """get a component's children + Returns all components that depend on the provided component. + Args: component_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[ServiceComponentChildren | StderrErrResponse]: """get a component's children + Returns all components that depend on the provided component. + Args: component_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> ServiceComponentChildren | StderrErrResponse | None: """get a component's children + Returns all components that depend on the provided component. + Args: component_id (str): diff --git a/nuon/api/components/get_component_latest_build.py b/nuon/api/components/get_component_latest_build.py index 66f708bc..3994076a 100644 --- a/nuon/api/components/get_component_latest_build.py +++ b/nuon/api/components/get_component_latest_build.py @@ -14,6 +14,7 @@ def _get_kwargs( component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}/builds/latest".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """get latest build for a component + Returns the most recent build for the provided component. + Args: component_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppComponentBuild | StderrErrResponse | None: """get latest build for a component + Returns the most recent build for the provided component. + Args: component_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppComponentBuild | StderrErrResponse]: """get latest build for a component + Returns the most recent build for the provided component. + Args: component_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppComponentBuild | StderrErrResponse | None: """get latest build for a component + Returns the most recent build for the provided component. + Args: component_id (str): diff --git a/nuon/api/components/get_component_latest_config.py b/nuon/api/components/get_component_latest_config.py index 413a114d..fc0f1adb 100644 --- a/nuon/api/components/get_component_latest_config.py +++ b/nuon/api/components/get_component_latest_config.py @@ -14,6 +14,7 @@ def _get_kwargs( component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/components/{component_id}/configs/latest".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get latest config for a component + Returns the most recent config for the provided component. + Args: component_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get latest config for a component + Returns the most recent config for the provided component. + Args: component_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppComponentConfigConnection | StderrErrResponse]: """get latest config for a component + Returns the most recent config for the provided component. + Args: component_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppComponentConfigConnection | StderrErrResponse | None: """get latest config for a component + Returns the most recent config for the provided component. + Args: component_id (str): diff --git a/nuon/api/components/get_org_components.py b/nuon/api/components/get_org_components.py index a85fb9c9..6d47e69d 100644 --- a/nuon/api/components/get_org_components.py +++ b/nuon/api/components/get_org_components.py @@ -17,6 +17,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["component_ids"] = component_ids @@ -103,6 +104,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get all components for an org + Returns all components for the provided organization. + Args: component_ids (str | Unset): offset (int | Unset): Default: 0. @@ -141,6 +144,8 @@ def sync( ) -> StderrErrResponse | list[AppComponent] | None: """get all components for an org + Returns all components for the provided organization. + Args: component_ids (str | Unset): offset (int | Unset): Default: 0. @@ -174,6 +179,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponent]]: """get all components for an org + Returns all components for the provided organization. + Args: component_ids (str | Unset): offset (int | Unset): Default: 0. @@ -210,6 +217,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponent] | None: """get all components for an org + Returns all components for the provided organization. + Args: component_ids (str | Unset): offset (int | Unset): Default: 0. diff --git a/nuon/api/components/update_app_component.py b/nuon/api/components/update_app_component.py index 80ce7046..744b5e5b 100644 --- a/nuon/api/components/update_app_component.py +++ b/nuon/api/components/update_app_component.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppComponent | StderrErrResponse]: """update a component + Update a component's configuration. + Args: app_id (str): component_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppComponent | StderrErrResponse | None: """update a component + Update a component's configuration. + Args: app_id (str): component_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppComponent | StderrErrResponse]: """update a component + Update a component's configuration. + Args: app_id (str): component_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppComponent | StderrErrResponse | None: """update a component + Update a component's configuration. + Args: app_id (str): component_id (str): diff --git a/nuon/api/components/update_component.py b/nuon/api/components/update_component.py index 040c59a5..b9ba33d0 100644 --- a/nuon/api/components/update_component.py +++ b/nuon/api/components/update_component.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppComponent | StderrErrResponse]: """update a component + Update a component's configuration. + Args: component_id (str): body (ServiceUpdateComponentRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppComponent | StderrErrResponse | None: """update a component + Update a component's configuration. + Args: component_id (str): body (ServiceUpdateComponentRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppComponent | StderrErrResponse]: """update a component + Update a component's configuration. + Args: component_id (str): body (ServiceUpdateComponentRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppComponent | StderrErrResponse | None: """update a component + Update a component's configuration. + Args: component_id (str): body (ServiceUpdateComponentRequest): diff --git a/nuon/api/general/create_waitlist.py b/nuon/api/general/create_waitlist.py index d150292d..23f93967 100644 --- a/nuon/api/general/create_waitlist.py +++ b/nuon/api/general/create_waitlist.py @@ -57,6 +57,8 @@ def sync_detailed( ) -> Response[AppWaitlist]: """Allow user to be added to an org waitlist. + Add an entry to the waitlist. + Args: body (ServiceWaitlistRequest): @@ -86,6 +88,8 @@ def sync( ) -> AppWaitlist | None: """Allow user to be added to an org waitlist. + Add an entry to the waitlist. + Args: body (ServiceWaitlistRequest): @@ -110,6 +114,8 @@ async def asyncio_detailed( ) -> Response[AppWaitlist]: """Allow user to be added to an org waitlist. + Add an entry to the waitlist. + Args: body (ServiceWaitlistRequest): @@ -137,6 +143,8 @@ async def asyncio( ) -> AppWaitlist | None: """Allow user to be added to an org waitlist. + Add an entry to the waitlist. + Args: body (ServiceWaitlistRequest): diff --git a/nuon/api/general/get_cli_config.py b/nuon/api/general/get_cli_config.py index 99a7bd5c..e6349d2a 100644 --- a/nuon/api/general/get_cli_config.py +++ b/nuon/api/general/get_cli_config.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/general/cli-config", @@ -75,6 +76,8 @@ def sync_detailed( ) -> Response[ServiceCLIConfig | StderrErrResponse]: """Get config for cli + Returns CLI configuration and settings. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -98,6 +101,8 @@ def sync( ) -> ServiceCLIConfig | StderrErrResponse | None: """Get config for cli + Returns CLI configuration and settings. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -117,6 +122,8 @@ async def asyncio_detailed( ) -> Response[ServiceCLIConfig | StderrErrResponse]: """Get config for cli + Returns CLI configuration and settings. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -138,6 +145,8 @@ async def asyncio( ) -> ServiceCLIConfig | StderrErrResponse | None: """Get config for cli + Returns CLI configuration and settings. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/general/get_cloud_platform_regions.py b/nuon/api/general/get_cloud_platform_regions.py index 9b6af9cc..7f9d97bd 100644 --- a/nuon/api/general/get_cloud_platform_regions.py +++ b/nuon/api/general/get_cloud_platform_regions.py @@ -14,6 +14,7 @@ def _get_kwargs( cloud_platform: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/general/cloud-platform/{cloud_platform}/regions".format( diff --git a/nuon/api/general/get_config_schema.py b/nuon/api/general/get_config_schema.py index 10633ba7..fdf539cf 100644 --- a/nuon/api/general/get_config_schema.py +++ b/nuon/api/general/get_config_schema.py @@ -5,7 +5,6 @@ from ... import errors from ...client import AuthenticatedClient, Client -from ...models.get_config_schema_response_200 import GetConfigSchemaResponse200 from ...models.stderr_err_response import StderrErrResponse from ...types import UNSET, Response, Unset @@ -14,6 +13,7 @@ def _get_kwargs( *, type_: str | Unset = UNSET, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["type"] = type_ @@ -31,10 +31,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> GetConfigSchemaResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: if response.status_code == 200: - response_200 = GetConfigSchemaResponse200.from_dict(response.json()) - + response_200 = response.json() return response_200 if response.status_code == 400: @@ -70,7 +69,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[GetConfigSchemaResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -83,7 +82,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, type_: str | Unset = UNSET, -) -> Response[GetConfigSchemaResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: r"""Get jsonschema for config file Return jsonschemas for Nuon configs. These can be used in frontmatter in most editors that have a @@ -117,7 +116,7 @@ def sync_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetConfigSchemaResponse200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -135,7 +134,7 @@ def sync( *, client: AuthenticatedClient | Client, type_: str | Unset = UNSET, -) -> GetConfigSchemaResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: r"""Get jsonschema for config file Return jsonschemas for Nuon configs. These can be used in frontmatter in most editors that have a @@ -169,7 +168,7 @@ def sync( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetConfigSchemaResponse200 | StderrErrResponse + Any | StderrErrResponse """ return sync_detailed( @@ -182,7 +181,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, type_: str | Unset = UNSET, -) -> Response[GetConfigSchemaResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: r"""Get jsonschema for config file Return jsonschemas for Nuon configs. These can be used in frontmatter in most editors that have a @@ -216,7 +215,7 @@ async def asyncio_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetConfigSchemaResponse200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -232,7 +231,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, type_: str | Unset = UNSET, -) -> GetConfigSchemaResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: r"""Get jsonschema for config file Return jsonschemas for Nuon configs. These can be used in frontmatter in most editors that have a @@ -266,7 +265,7 @@ async def asyncio( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetConfigSchemaResponse200 | StderrErrResponse + Any | StderrErrResponse """ return ( diff --git a/nuon/api/general/get_current_user.py b/nuon/api/general/get_current_user.py index c5bc192e..3a01e8b4 100644 --- a/nuon/api/general/get_current_user.py +++ b/nuon/api/general/get_current_user.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/general/current-user", @@ -75,6 +76,8 @@ def sync_detailed( ) -> Response[AppAccount | StderrErrResponse]: """Get current user + Returns the current authenticated user account. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -98,6 +101,8 @@ def sync( ) -> AppAccount | StderrErrResponse | None: """Get current user + Returns the current authenticated user account. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -117,6 +122,8 @@ async def asyncio_detailed( ) -> Response[AppAccount | StderrErrResponse]: """Get current user + Returns the current authenticated user account. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -138,6 +145,8 @@ async def asyncio( ) -> AppAccount | StderrErrResponse | None: """Get current user + Returns the current authenticated user account. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/installs/cancel_install_workflow.py b/nuon/api/installs/cancel_install_workflow.py index 552019e8..896ec00c 100644 --- a/nuon/api/installs/cancel_install_workflow.py +++ b/nuon/api/installs/cancel_install_workflow.py @@ -13,6 +13,7 @@ def _get_kwargs( install_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "post", "url": "/v1/install-workflows/{install_workflow_id}/cancel".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """cancel an ongoing install workflow + Cancel a running workflow execution. + Args: install_workflow_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """cancel an ongoing install workflow + Cancel a running workflow execution. + Args: install_workflow_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """cancel an ongoing install workflow + Cancel a running workflow execution. + Args: install_workflow_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """cancel an ongoing install workflow + Cancel a running workflow execution. + Args: install_workflow_id (str): diff --git a/nuon/api/installs/cancel_workflow.py b/nuon/api/installs/cancel_workflow.py index f60230c4..3031ec21 100644 --- a/nuon/api/installs/cancel_workflow.py +++ b/nuon/api/installs/cancel_workflow.py @@ -13,6 +13,7 @@ def _get_kwargs( workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "post", "url": "/v1/workflows/{workflow_id}/cancel".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """cancel an ongoing workflow + Cancel a running workflow execution. + Args: workflow_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """cancel an ongoing workflow + Cancel a running workflow execution. + Args: workflow_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """cancel an ongoing workflow + Cancel a running workflow execution. + Args: workflow_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """cancel an ongoing workflow + Cancel a running workflow execution. + Args: workflow_id (str): diff --git a/nuon/api/installs/create_install.py b/nuon/api/installs/create_install.py index 4364776f..cfac6d9b 100644 --- a/nuon/api/installs/create_install.py +++ b/nuon/api/installs/create_install.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppInstall | StderrErrResponse]: """create an app install + Create a new install for an app. + Args: app_id (str): body (ServiceCreateInstallRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppInstall | StderrErrResponse | None: """create an app install + Create a new install for an app. + Args: app_id (str): body (ServiceCreateInstallRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppInstall | StderrErrResponse]: """create an app install + Create a new install for an app. + Args: app_id (str): body (ServiceCreateInstallRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppInstall | StderrErrResponse | None: """create an app install + Create a new install for an app. + Args: app_id (str): body (ServiceCreateInstallRequest): diff --git a/nuon/api/installs/create_install_component_deploy.py b/nuon/api/installs/create_install_component_deploy.py index f1fda23f..43477eb7 100644 --- a/nuon/api/installs/create_install_component_deploy.py +++ b/nuon/api/installs/create_install_component_deploy.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): component_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppInstallDeploy | StderrErrResponse | None: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): component_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): component_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppInstallDeploy | StderrErrResponse | None: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): component_id (str): diff --git a/nuon/api/installs/create_install_config.py b/nuon/api/installs/create_install_config.py index 7ca59afc..55be53b0 100644 --- a/nuon/api/installs/create_install_config.py +++ b/nuon/api/installs/create_install_config.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppInstallConfig | StderrErrResponse]: """create an install config + Create a configuration for an install. + Args: install_id (str): body (ServiceCreateInstallConfigRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppInstallConfig | StderrErrResponse | None: """create an install config + Create a configuration for an install. + Args: install_id (str): body (ServiceCreateInstallConfigRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppInstallConfig | StderrErrResponse]: """create an install config + Create a configuration for an install. + Args: install_id (str): body (ServiceCreateInstallConfigRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppInstallConfig | StderrErrResponse | None: """create an install config + Create a configuration for an install. + Args: install_id (str): body (ServiceCreateInstallConfigRequest): diff --git a/nuon/api/installs/create_install_deploy.py b/nuon/api/installs/create_install_deploy.py index 34d1ea26..f2ba5e10 100644 --- a/nuon/api/installs/create_install_deploy.py +++ b/nuon/api/installs/create_install_deploy.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): body (ServiceCreateInstallDeployRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppInstallDeploy | StderrErrResponse | None: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): body (ServiceCreateInstallDeployRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): body (ServiceCreateInstallDeployRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppInstallDeploy | StderrErrResponse | None: """deploy a build to an install + Create a new deployment for an install. + Args: install_id (str): body (ServiceCreateInstallDeployRequest): diff --git a/nuon/api/installs/create_install_inputs.py b/nuon/api/installs/create_install_inputs.py index b90e68b7..01f76acc 100644 --- a/nuon/api/installs/create_install_inputs.py +++ b/nuon/api/installs/create_install_inputs.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppInstallInputs | StderrErrResponse]: """create install inputs + Create input values for an install. + Args: install_id (str): body (ServiceCreateInstallInputsRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppInstallInputs | StderrErrResponse | None: """create install inputs + Create input values for an install. + Args: install_id (str): body (ServiceCreateInstallInputsRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppInstallInputs | StderrErrResponse]: """create install inputs + Create input values for an install. + Args: install_id (str): body (ServiceCreateInstallInputsRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppInstallInputs | StderrErrResponse | None: """create install inputs + Create input values for an install. + Args: install_id (str): body (ServiceCreateInstallInputsRequest): diff --git a/nuon/api/installs/create_install_v2.py b/nuon/api/installs/create_install_v2.py index 43af4670..a5ff2089 100644 --- a/nuon/api/installs/create_install_v2.py +++ b/nuon/api/installs/create_install_v2.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppInstall | StderrErrResponse]: """create an app install + Create a new install for an app. + Args: body (ServiceCreateInstallV2Request): @@ -116,6 +118,8 @@ def sync( ) -> AppInstall | StderrErrResponse | None: """create an app install + Create a new install for an app. + Args: body (ServiceCreateInstallV2Request): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppInstall | StderrErrResponse]: """create an app install + Create a new install for an app. + Args: body (ServiceCreateInstallV2Request): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppInstall | StderrErrResponse | None: """create an app install + Create a new install for an app. + Args: body (ServiceCreateInstallV2Request): diff --git a/nuon/api/installs/delete_install.py b/nuon/api/installs/delete_install.py index afdbf489..e5103ac7 100644 --- a/nuon/api/installs/delete_install.py +++ b/nuon/api/installs/delete_install.py @@ -13,6 +13,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/installs/{install_id}".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """delete an install + Delete an install. + Args: install_id (str): @@ -108,6 +111,8 @@ def sync( ) -> StderrErrResponse | bool | None: """delete an install + Delete an install. + Args: install_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """delete an install + Delete an install. + Args: install_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """delete an install + Delete an install. + Args: install_id (str): diff --git a/nuon/api/installs/deprovision_install_sandbox.py b/nuon/api/installs/deprovision_install_sandbox.py index d3a1e991..a2b39d59 100644 --- a/nuon/api/installs/deprovision_install_sandbox.py +++ b/nuon/api/installs/deprovision_install_sandbox.py @@ -90,6 +90,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | str]: """deprovision an install + Deprovision a sandbox environment for an install. + Args: install_id (str): body (ServiceDeprovisionInstallSandboxRequest): @@ -122,6 +124,8 @@ def sync( ) -> StderrErrResponse | str | None: """deprovision an install + Deprovision a sandbox environment for an install. + Args: install_id (str): body (ServiceDeprovisionInstallSandboxRequest): @@ -149,6 +153,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | str]: """deprovision an install + Deprovision a sandbox environment for an install. + Args: install_id (str): body (ServiceDeprovisionInstallSandboxRequest): @@ -179,6 +185,8 @@ async def asyncio( ) -> StderrErrResponse | str | None: """deprovision an install + Deprovision a sandbox environment for an install. + Args: install_id (str): body (ServiceDeprovisionInstallSandboxRequest): diff --git a/nuon/api/installs/forget_install_component.py b/nuon/api/installs/forget_install_component.py new file mode 100644 index 00000000..740b0bc1 --- /dev/null +++ b/nuon/api/installs/forget_install_component.py @@ -0,0 +1,424 @@ +from http import HTTPStatus +from typing import Any, cast +from urllib.parse import quote + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.service_forget_install_component_request import ServiceForgetInstallComponentRequest +from ...models.stderr_err_response import StderrErrResponse +from ...types import Response + + +def _get_kwargs( + install_id: str, + component_id: str, + *, + body: ServiceForgetInstallComponentRequest, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + + _kwargs: dict[str, Any] = { + "method": "post", + "url": "/v1/installs/{install_id}/components/{component_id}/forget".format( + install_id=quote(str(install_id), safe=""), + component_id=quote(str(component_id), safe=""), + ), + } + + _kwargs["json"] = body.to_dict() + + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> StderrErrResponse | bool | None: + if response.status_code == 200: + response_200 = cast(bool, response.json()) + return response_200 + + if response.status_code == 400: + response_400 = StderrErrResponse.from_dict(response.json()) + + return response_400 + + if response.status_code == 404: + response_404 = StderrErrResponse.from_dict(response.json()) + + return response_404 + + if response.status_code == 500: + response_500 = StderrErrResponse.from_dict(response.json()) + + return response_500 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[StderrErrResponse | bool]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + install_id: str, + component_id: str, + *, + client: AuthenticatedClient, + body: ServiceForgetInstallComponentRequest, +) -> Response[StderrErrResponse | bool]: + """forget an install component + + # Forget Install Component + + Permanently forget (soft delete) an install component from the system. This operation marks the + install component as deleted while preserving the record for audit purposes. + + ## Use Cases + + - Remove a component that is no longer needed from an install + - Clean up failed or orphaned install components + - Prepare for reinstalling a component from scratch + + ## Important Notes + + - This is a **soft delete** operation - the record is marked as deleted but remains in the database + - The component will no longer appear in API responses or dashboard views + - Associated resources (terraform state, deploys, etc.) are preserved via soft delete + - This operation is **irreversible** via the API + - To restore, database-level operations would be required + + ## Prerequisites + + - Install must exist and belong to the authenticated organization + - Component must exist for the specified install + - User must have appropriate permissions for the install's organization + - Component must be removed from the app configuration (sync required) + + ## Behavior + + 1. Validates install exists and belongs to org + 2. Validates install component exists + 3. Validates component is not in the app configuration + 4. Soft deletes the install component record + 5. Cascades soft delete to associated resources (via GORM associations) + 6. Sends event loop signal for any cleanup workflows + 7. Returns success response + + ## Validation + + Before forgetting an install component, the system validates that the component no longer exists in + the app configuration. If the component is still in the app config, the request will fail with a + user-friendly error message. + + **To resolve this error:** + + 1. Remove the component from your `nuon.yaml` file + 2. Run `nuon apps sync` to update the app configuration + 3. Retry the forget operation + + ## Related Endpoints + + - `DELETE /v1/installs/{install_id}` - Delete entire install + - `POST /v1/installs/{install_id}/forget` - Forget entire install + - `POST /v1/installs/{install_id}/components/{component_id}/teardown` - Teardown component + infrastructure + + Args: + install_id (str): + component_id (str): + body (ServiceForgetInstallComponentRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[StderrErrResponse | bool] + """ + + kwargs = _get_kwargs( + install_id=install_id, + component_id=component_id, + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + install_id: str, + component_id: str, + *, + client: AuthenticatedClient, + body: ServiceForgetInstallComponentRequest, +) -> StderrErrResponse | bool | None: + """forget an install component + + # Forget Install Component + + Permanently forget (soft delete) an install component from the system. This operation marks the + install component as deleted while preserving the record for audit purposes. + + ## Use Cases + + - Remove a component that is no longer needed from an install + - Clean up failed or orphaned install components + - Prepare for reinstalling a component from scratch + + ## Important Notes + + - This is a **soft delete** operation - the record is marked as deleted but remains in the database + - The component will no longer appear in API responses or dashboard views + - Associated resources (terraform state, deploys, etc.) are preserved via soft delete + - This operation is **irreversible** via the API + - To restore, database-level operations would be required + + ## Prerequisites + + - Install must exist and belong to the authenticated organization + - Component must exist for the specified install + - User must have appropriate permissions for the install's organization + - Component must be removed from the app configuration (sync required) + + ## Behavior + + 1. Validates install exists and belongs to org + 2. Validates install component exists + 3. Validates component is not in the app configuration + 4. Soft deletes the install component record + 5. Cascades soft delete to associated resources (via GORM associations) + 6. Sends event loop signal for any cleanup workflows + 7. Returns success response + + ## Validation + + Before forgetting an install component, the system validates that the component no longer exists in + the app configuration. If the component is still in the app config, the request will fail with a + user-friendly error message. + + **To resolve this error:** + + 1. Remove the component from your `nuon.yaml` file + 2. Run `nuon apps sync` to update the app configuration + 3. Retry the forget operation + + ## Related Endpoints + + - `DELETE /v1/installs/{install_id}` - Delete entire install + - `POST /v1/installs/{install_id}/forget` - Forget entire install + - `POST /v1/installs/{install_id}/components/{component_id}/teardown` - Teardown component + infrastructure + + Args: + install_id (str): + component_id (str): + body (ServiceForgetInstallComponentRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + StderrErrResponse | bool + """ + + return sync_detailed( + install_id=install_id, + component_id=component_id, + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + install_id: str, + component_id: str, + *, + client: AuthenticatedClient, + body: ServiceForgetInstallComponentRequest, +) -> Response[StderrErrResponse | bool]: + """forget an install component + + # Forget Install Component + + Permanently forget (soft delete) an install component from the system. This operation marks the + install component as deleted while preserving the record for audit purposes. + + ## Use Cases + + - Remove a component that is no longer needed from an install + - Clean up failed or orphaned install components + - Prepare for reinstalling a component from scratch + + ## Important Notes + + - This is a **soft delete** operation - the record is marked as deleted but remains in the database + - The component will no longer appear in API responses or dashboard views + - Associated resources (terraform state, deploys, etc.) are preserved via soft delete + - This operation is **irreversible** via the API + - To restore, database-level operations would be required + + ## Prerequisites + + - Install must exist and belong to the authenticated organization + - Component must exist for the specified install + - User must have appropriate permissions for the install's organization + - Component must be removed from the app configuration (sync required) + + ## Behavior + + 1. Validates install exists and belongs to org + 2. Validates install component exists + 3. Validates component is not in the app configuration + 4. Soft deletes the install component record + 5. Cascades soft delete to associated resources (via GORM associations) + 6. Sends event loop signal for any cleanup workflows + 7. Returns success response + + ## Validation + + Before forgetting an install component, the system validates that the component no longer exists in + the app configuration. If the component is still in the app config, the request will fail with a + user-friendly error message. + + **To resolve this error:** + + 1. Remove the component from your `nuon.yaml` file + 2. Run `nuon apps sync` to update the app configuration + 3. Retry the forget operation + + ## Related Endpoints + + - `DELETE /v1/installs/{install_id}` - Delete entire install + - `POST /v1/installs/{install_id}/forget` - Forget entire install + - `POST /v1/installs/{install_id}/components/{component_id}/teardown` - Teardown component + infrastructure + + Args: + install_id (str): + component_id (str): + body (ServiceForgetInstallComponentRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[StderrErrResponse | bool] + """ + + kwargs = _get_kwargs( + install_id=install_id, + component_id=component_id, + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + install_id: str, + component_id: str, + *, + client: AuthenticatedClient, + body: ServiceForgetInstallComponentRequest, +) -> StderrErrResponse | bool | None: + """forget an install component + + # Forget Install Component + + Permanently forget (soft delete) an install component from the system. This operation marks the + install component as deleted while preserving the record for audit purposes. + + ## Use Cases + + - Remove a component that is no longer needed from an install + - Clean up failed or orphaned install components + - Prepare for reinstalling a component from scratch + + ## Important Notes + + - This is a **soft delete** operation - the record is marked as deleted but remains in the database + - The component will no longer appear in API responses or dashboard views + - Associated resources (terraform state, deploys, etc.) are preserved via soft delete + - This operation is **irreversible** via the API + - To restore, database-level operations would be required + + ## Prerequisites + + - Install must exist and belong to the authenticated organization + - Component must exist for the specified install + - User must have appropriate permissions for the install's organization + - Component must be removed from the app configuration (sync required) + + ## Behavior + + 1. Validates install exists and belongs to org + 2. Validates install component exists + 3. Validates component is not in the app configuration + 4. Soft deletes the install component record + 5. Cascades soft delete to associated resources (via GORM associations) + 6. Sends event loop signal for any cleanup workflows + 7. Returns success response + + ## Validation + + Before forgetting an install component, the system validates that the component no longer exists in + the app configuration. If the component is still in the app config, the request will fail with a + user-friendly error message. + + **To resolve this error:** + + 1. Remove the component from your `nuon.yaml` file + 2. Run `nuon apps sync` to update the app configuration + 3. Retry the forget operation + + ## Related Endpoints + + - `DELETE /v1/installs/{install_id}` - Delete entire install + - `POST /v1/installs/{install_id}/forget` - Forget entire install + - `POST /v1/installs/{install_id}/components/{component_id}/teardown` - Teardown component + infrastructure + + Args: + install_id (str): + component_id (str): + body (ServiceForgetInstallComponentRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + StderrErrResponse | bool + """ + + return ( + await asyncio_detailed( + install_id=install_id, + component_id=component_id, + client=client, + body=body, + ) + ).parsed diff --git a/nuon/api/installs/generate_cli_install_config.py b/nuon/api/installs/generate_cli_install_config.py index 33bfbc50..1add6de9 100644 --- a/nuon/api/installs/generate_cli_install_config.py +++ b/nuon/api/installs/generate_cli_install_config.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/generate-cli-install-config".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[File | StderrErrResponse]: """generate an install config to be used with CLI + Generate CLI configuration for an install. + Args: install_id (str): @@ -110,6 +113,8 @@ def sync( ) -> File | StderrErrResponse | None: """generate an install config to be used with CLI + Generate CLI configuration for an install. + Args: install_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[File | StderrErrResponse]: """generate an install config to be used with CLI + Generate CLI configuration for an install. + Args: install_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> File | StderrErrResponse | None: """generate an install config to be used with CLI + Generate CLI configuration for an install. + Args: install_id (str): diff --git a/nuon/api/installs/generate_terraform_installer_config.py b/nuon/api/installs/generate_terraform_installer_config.py index c825b25b..269341bc 100644 --- a/nuon/api/installs/generate_terraform_installer_config.py +++ b/nuon/api/installs/generate_terraform_installer_config.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/generate-terraform-installer-config".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[File | StderrErrResponse]: """generate a Terraform installer config + Generate terraform configuration for an installer. + Args: install_id (str): @@ -110,6 +113,8 @@ def sync( ) -> File | StderrErrResponse | None: """generate a Terraform installer config + Generate terraform configuration for an installer. + Args: install_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[File | StderrErrResponse]: """generate a Terraform installer config + Generate terraform configuration for an installer. + Args: install_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> File | StderrErrResponse | None: """generate a Terraform installer config + Generate terraform configuration for an installer. + Args: install_id (str): diff --git a/nuon/api/installs/get_app_installs.py b/nuon/api/installs/get_app_installs.py index 77b69ac2..cd3ff9ef 100644 --- a/nuon/api/installs/get_app_installs.py +++ b/nuon/api/installs/get_app_installs.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["q"] = q @@ -108,6 +109,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstall]]: """get all installs for an app + Returns all installs for the provided app. + Args: app_id (str): q (str | Unset): @@ -149,6 +152,8 @@ def sync( ) -> StderrErrResponse | list[AppInstall] | None: """get all installs for an app + Returns all installs for the provided app. + Args: app_id (str): q (str | Unset): @@ -185,6 +190,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstall]]: """get all installs for an app + Returns all installs for the provided app. + Args: app_id (str): q (str | Unset): @@ -224,6 +231,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstall] | None: """get all installs for an app + Returns all installs for the provided app. + Args: app_id (str): q (str | Unset): diff --git a/nuon/api/installs/get_current_install_inputs.py b/nuon/api/installs/get_current_install_inputs.py index 12a0ebd6..b4aa650a 100644 --- a/nuon/api/installs/get_current_install_inputs.py +++ b/nuon/api/installs/get_current_install_inputs.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/inputs/current".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppInstallInputs | StderrErrResponse]: """get an installs current inputs + Returns input values for an install. + Args: install_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppInstallInputs | StderrErrResponse | None: """get an installs current inputs + Returns input values for an install. + Args: install_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppInstallInputs | StderrErrResponse]: """get an installs current inputs + Returns input values for an install. + Args: install_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppInstallInputs | StderrErrResponse | None: """get an installs current inputs + Returns input values for an install. + Args: install_id (str): diff --git a/nuon/api/installs/get_drifted_objects.py b/nuon/api/installs/get_drifted_objects.py index 6f59e0ab..e290c40e 100644 --- a/nuon/api/installs/get_drifted_objects.py +++ b/nuon/api/installs/get_drifted_objects.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/drifted-objects".format( @@ -86,6 +87,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppDriftedObject]]: """get drifted objects for an install + Returns all drifted objects for an install. + Args: install_id (str): @@ -115,6 +118,8 @@ def sync( ) -> StderrErrResponse | list[AppDriftedObject] | None: """get drifted objects for an install + Returns all drifted objects for an install. + Args: install_id (str): @@ -139,6 +144,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppDriftedObject]]: """get drifted objects for an install + Returns all drifted objects for an install. + Args: install_id (str): @@ -166,6 +173,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppDriftedObject] | None: """get drifted objects for an install + Returns all drifted objects for an install. + Args: install_id (str): diff --git a/nuon/api/installs/get_install.py b/nuon/api/installs/get_install.py index cdd23506..fe9a9d1b 100644 --- a/nuon/api/installs/get_install.py +++ b/nuon/api/installs/get_install.py @@ -16,6 +16,7 @@ def _get_kwargs( *, include_drifted_objects: bool | Unset = False, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["include_drifted_objects"] = include_drifted_objects @@ -91,10 +92,7 @@ def sync_detailed( ) -> Response[AppInstall | StderrErrResponse]: """get an install - Forget an install that has been deleted outside of nuon. - - This should only be used in cases where an install was broken in an unordinary way and needs to be - manually deleted so the parent resources can be deleted. + Return an install by id. Args: install_id (str): @@ -128,10 +126,7 @@ def sync( ) -> AppInstall | StderrErrResponse | None: """get an install - Forget an install that has been deleted outside of nuon. - - This should only be used in cases where an install was broken in an unordinary way and needs to be - manually deleted so the parent resources can be deleted. + Return an install by id. Args: install_id (str): @@ -160,10 +155,7 @@ async def asyncio_detailed( ) -> Response[AppInstall | StderrErrResponse]: """get an install - Forget an install that has been deleted outside of nuon. - - This should only be used in cases where an install was broken in an unordinary way and needs to be - manually deleted so the parent resources can be deleted. + Return an install by id. Args: install_id (str): @@ -195,10 +187,7 @@ async def asyncio( ) -> AppInstall | StderrErrResponse | None: """get an install - Forget an install that has been deleted outside of nuon. - - This should only be used in cases where an install was broken in an unordinary way and needs to be - manually deleted so the parent resources can be deleted. + Return an install by id. Args: install_id (str): diff --git a/nuon/api/installs/get_install_action.py b/nuon/api/installs/get_install_action.py index 9817a4da..0dfcf416 100644 --- a/nuon/api/installs/get_install_action.py +++ b/nuon/api/installs/get_install_action.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, action_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/actions/{action_id}".format( diff --git a/nuon/api/installs/get_install_action_workflow.py b/nuon/api/installs/get_install_action_workflow.py index a670ae09..51f757a3 100644 --- a/nuon/api/installs/get_install_action_workflow.py +++ b/nuon/api/installs/get_install_action_workflow.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, action_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/action-workflows/{action_workflow_id}".format( diff --git a/nuon/api/installs/get_install_action_workflows.py b/nuon/api/installs/get_install_action_workflows.py index 83226acd..05186618 100644 --- a/nuon/api/installs/get_install_action_workflows.py +++ b/nuon/api/installs/get_install_action_workflows.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/installs/get_install_actions.py b/nuon/api/installs/get_install_actions.py index e0f2c86f..c4c9ac09 100644 --- a/nuon/api/installs/get_install_actions.py +++ b/nuon/api/installs/get_install_actions.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/installs/get_install_audit_logs.py b/nuon/api/installs/get_install_audit_logs.py index 4f6bace3..9799f4a8 100644 --- a/nuon/api/installs/get_install_audit_logs.py +++ b/nuon/api/installs/get_install_audit_logs.py @@ -17,6 +17,7 @@ def _get_kwargs( start: str, end: str, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["start"] = start @@ -100,6 +101,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallAuditLog]]: """get install audit logs + Returns audit logs for an install. + Args: install_id (str): start (str): @@ -135,6 +138,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallAuditLog] | None: """get install audit logs + Returns audit logs for an install. + Args: install_id (str): start (str): @@ -165,6 +170,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallAuditLog]]: """get install audit logs + Returns audit logs for an install. + Args: install_id (str): start (str): @@ -198,6 +205,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallAuditLog] | None: """get install audit logs + Returns audit logs for an install. + Args: install_id (str): start (str): diff --git a/nuon/api/installs/get_install_component.py b/nuon/api/installs/get_install_component.py index 05c1117d..65ce3e2d 100644 --- a/nuon/api/installs/get_install_component.py +++ b/nuon/api/installs/get_install_component.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/components/{component_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppInstallComponent | StderrErrResponse]: """get an install component + Return an install component by id. + Args: install_id (str): component_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppInstallComponent | StderrErrResponse | None: """get an install component + Return an install component by id. + Args: install_id (str): component_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppInstallComponent | StderrErrResponse]: """get an install component + Return an install component by id. + Args: install_id (str): component_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppInstallComponent | StderrErrResponse | None: """get an install component + Return an install component by id. + Args: install_id (str): component_id (str): diff --git a/nuon/api/installs/get_install_component_deploy.py b/nuon/api/installs/get_install_component_deploy.py index 060d6d0c..ef7d2f09 100644 --- a/nuon/api/installs/get_install_component_deploy.py +++ b/nuon/api/installs/get_install_component_deploy.py @@ -16,6 +16,7 @@ def _get_kwargs( component_id: str, deploy_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/components/{component_id}/deploys/{deploy_id}".format( @@ -87,6 +88,8 @@ def sync_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): component_id (str): @@ -122,6 +125,8 @@ def sync( ) -> AppInstallDeploy | StderrErrResponse | None: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): component_id (str): @@ -152,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): component_id (str): @@ -185,6 +192,8 @@ async def asyncio( ) -> AppInstallDeploy | StderrErrResponse | None: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): component_id (str): diff --git a/nuon/api/installs/get_install_component_deploys.py b/nuon/api/installs/get_install_component_deploys.py index 1d8c5374..bb7936c2 100644 --- a/nuon/api/installs/get_install_component_deploys.py +++ b/nuon/api/installs/get_install_component_deploys.py @@ -19,6 +19,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -107,6 +108,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallDeploy]]: """get an install components deploys + Returns all deployments for an install component. + Args: install_id (str): component_id (str): @@ -148,6 +151,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallDeploy] | None: """get an install components deploys + Returns all deployments for an install component. + Args: install_id (str): component_id (str): @@ -184,6 +189,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallDeploy]]: """get an install components deploys + Returns all deployments for an install component. + Args: install_id (str): component_id (str): @@ -223,6 +230,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallDeploy] | None: """get an install components deploys + Returns all deployments for an install component. + Args: install_id (str): component_id (str): diff --git a/nuon/api/installs/get_install_component_latest_deploy.py b/nuon/api/installs/get_install_component_latest_deploy.py index 81de0299..231a9a9a 100644 --- a/nuon/api/installs/get_install_component_latest_deploy.py +++ b/nuon/api/installs/get_install_component_latest_deploy.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/components/{component_id}/deploys/latest".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get the latest deploy for an install component + Returns the most recent deployment for an install component. + Args: install_id (str): component_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppInstallDeploy | StderrErrResponse | None: """get the latest deploy for an install component + Returns the most recent deployment for an install component. + Args: install_id (str): component_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get the latest deploy for an install component + Returns the most recent deployment for an install component. + Args: install_id (str): component_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppInstallDeploy | StderrErrResponse | None: """get the latest deploy for an install component + Returns the most recent deployment for an install component. + Args: install_id (str): component_id (str): diff --git a/nuon/api/installs/get_install_component_outputs.py b/nuon/api/installs/get_install_component_outputs.py index 686e61e7..89405fd9 100644 --- a/nuon/api/installs/get_install_component_outputs.py +++ b/nuon/api/installs/get_install_component_outputs.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, component_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/components/{component_id}/outputs".format( diff --git a/nuon/api/installs/get_install_components.py b/nuon/api/installs/get_install_components.py index f1c5fe5f..3210a493 100644 --- a/nuon/api/installs/get_install_components.py +++ b/nuon/api/installs/get_install_components.py @@ -19,6 +19,7 @@ def _get_kwargs( offset: int | Unset = 0, limit: int | Unset = 10, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["types"] = types @@ -108,6 +109,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallComponent]]: """get an installs components + Returns all components for an install. + Args: install_id (str): types (str | Unset): @@ -149,6 +152,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallComponent] | None: """get an installs components + Returns all components for an install. + Args: install_id (str): types (str | Unset): @@ -185,6 +190,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallComponent]]: """get an installs components + Returns all components for an install. + Args: install_id (str): types (str | Unset): @@ -224,6 +231,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallComponent] | None: """get an installs components + Returns all components for an install. + Args: install_id (str): types (str | Unset): diff --git a/nuon/api/installs/get_install_components_deploys.py b/nuon/api/installs/get_install_components_deploys.py index d4e1350d..3459d4cb 100644 --- a/nuon/api/installs/get_install_components_deploys.py +++ b/nuon/api/installs/get_install_components_deploys.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallDeploy]]: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallDeploy] | None: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallDeploy]]: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallDeploy] | None: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/installs/get_install_deploy.py b/nuon/api/installs/get_install_deploy.py index 1d205060..e63af75a 100644 --- a/nuon/api/installs/get_install_deploy.py +++ b/nuon/api/installs/get_install_deploy.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, deploy_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/deploys/{deploy_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): deploy_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppInstallDeploy | StderrErrResponse | None: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): deploy_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): deploy_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppInstallDeploy | StderrErrResponse | None: """get an install deploy + Return a deployment for an install by id. + Args: install_id (str): deploy_id (str): diff --git a/nuon/api/installs/get_install_deploys.py b/nuon/api/installs/get_install_deploys.py index 3ec36f8e..f9a6db4e 100644 --- a/nuon/api/installs/get_install_deploys.py +++ b/nuon/api/installs/get_install_deploys.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallDeploy]]: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallDeploy] | None: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallDeploy]]: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallDeploy] | None: """get all deploys to an install + Returns all deployments for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/installs/get_install_event.py b/nuon/api/installs/get_install_event.py index 692aa370..af588d1b 100644 --- a/nuon/api/installs/get_install_event.py +++ b/nuon/api/installs/get_install_event.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, event_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/events/{event_id}".format( diff --git a/nuon/api/installs/get_install_events.py b/nuon/api/installs/get_install_events.py index 1b81d2e8..3cd63d15 100644 --- a/nuon/api/installs/get_install_events.py +++ b/nuon/api/installs/get_install_events.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/installs/get_install_inputs.py b/nuon/api/installs/get_install_inputs.py index 1a7f4d27..8310ce2e 100644 --- a/nuon/api/installs/get_install_inputs.py +++ b/nuon/api/installs/get_install_inputs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallInputs]]: """get an installs inputs + Returns input values for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallInputs] | None: """get an installs inputs + Returns input values for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallInputs]]: """get an installs inputs + Returns input values for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallInputs] | None: """get an installs inputs + Returns input values for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/installs/get_install_latest_deploy.py b/nuon/api/installs/get_install_latest_deploy.py index c3ba8ad2..7861098c 100644 --- a/nuon/api/installs/get_install_latest_deploy.py +++ b/nuon/api/installs/get_install_latest_deploy.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/deploys/latest".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get an install's latest deploy + Returns the most recent deployment for an install. + Args: install_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppInstallDeploy | StderrErrResponse | None: """get an install's latest deploy + Returns the most recent deployment for an install. + Args: install_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppInstallDeploy | StderrErrResponse]: """get an install's latest deploy + Returns the most recent deployment for an install. + Args: install_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppInstallDeploy | StderrErrResponse | None: """get an install's latest deploy + Returns the most recent deployment for an install. + Args: install_id (str): diff --git a/nuon/api/installs/get_install_readme.py b/nuon/api/installs/get_install_readme.py index 62dbec7b..a99a909f 100644 --- a/nuon/api/installs/get_install_readme.py +++ b/nuon/api/installs/get_install_readme.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/readme".format( diff --git a/nuon/api/installs/get_install_runner_group.py b/nuon/api/installs/get_install_runner_group.py index 66139e14..98388cff 100644 --- a/nuon/api/installs/get_install_runner_group.py +++ b/nuon/api/installs/get_install_runner_group.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/runner-group".format( diff --git a/nuon/api/installs/get_install_sandbox_run.py b/nuon/api/installs/get_install_sandbox_run.py index 5b46b838..e43b977b 100644 --- a/nuon/api/installs/get_install_sandbox_run.py +++ b/nuon/api/installs/get_install_sandbox_run.py @@ -14,6 +14,7 @@ def _get_kwargs( run_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/sandbox-runs/{run_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppInstallSandboxRun | StderrErrResponse]: """get an install sandbox run + Return a sandbox run for an install by id. + Args: run_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppInstallSandboxRun | StderrErrResponse | None: """get an install sandbox run + Return a sandbox run for an install by id. + Args: run_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppInstallSandboxRun | StderrErrResponse]: """get an install sandbox run + Return a sandbox run for an install by id. + Args: run_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppInstallSandboxRun | StderrErrResponse | None: """get an install sandbox run + Return a sandbox run for an install by id. + Args: run_id (str): diff --git a/nuon/api/installs/get_install_sandbox_run_v2.py b/nuon/api/installs/get_install_sandbox_run_v2.py index dc613be4..7f8005ae 100644 --- a/nuon/api/installs/get_install_sandbox_run_v2.py +++ b/nuon/api/installs/get_install_sandbox_run_v2.py @@ -15,6 +15,7 @@ def _get_kwargs( install_id: str, run_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/sandbox-runs/{run_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppInstallSandboxRun | StderrErrResponse]: """get an install sandbox run + Return a sandbox run for an install by id. + Args: install_id (str): run_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppInstallSandboxRun | StderrErrResponse | None: """get an install sandbox run + Return a sandbox run for an install by id. + Args: install_id (str): run_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppInstallSandboxRun | StderrErrResponse]: """get an install sandbox run + Return a sandbox run for an install by id. + Args: install_id (str): run_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppInstallSandboxRun | StderrErrResponse | None: """get an install sandbox run + Return a sandbox run for an install by id. + Args: install_id (str): run_id (str): diff --git a/nuon/api/installs/get_install_sandbox_runs.py b/nuon/api/installs/get_install_sandbox_runs.py index c9d06d29..9cb0e16c 100644 --- a/nuon/api/installs/get_install_sandbox_runs.py +++ b/nuon/api/installs/get_install_sandbox_runs.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallSandboxRun]]: """get an installs sandbox runs + Returns all sandbox runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallSandboxRun] | None: """get an installs sandbox runs + Returns all sandbox runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallSandboxRun]]: """get an installs sandbox runs + Returns all sandbox runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallSandboxRun] | None: """get an installs sandbox runs + Returns all sandbox runs for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/installs/get_install_stack.py b/nuon/api/installs/get_install_stack.py index 3871fecf..c752a029 100644 --- a/nuon/api/installs/get_install_stack.py +++ b/nuon/api/installs/get_install_stack.py @@ -14,6 +14,7 @@ def _get_kwargs( stack_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/stacks/{stack_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppInstallStack | StderrErrResponse]: """get an install stack by stack ID + Returns the deployment stack for an install. + Args: stack_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppInstallStack | StderrErrResponse | None: """get an install stack by stack ID + Returns the deployment stack for an install. + Args: stack_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppInstallStack | StderrErrResponse]: """get an install stack by stack ID + Returns the deployment stack for an install. + Args: stack_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppInstallStack | StderrErrResponse | None: """get an install stack by stack ID + Returns the deployment stack for an install. + Args: stack_id (str): diff --git a/nuon/api/installs/get_install_stack_by_install_id.py b/nuon/api/installs/get_install_stack_by_install_id.py index 492bd184..bd7ee843 100644 --- a/nuon/api/installs/get_install_stack_by_install_id.py +++ b/nuon/api/installs/get_install_stack_by_install_id.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/stack".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppInstallStack | StderrErrResponse]: """get an install stack by install ID + Returns the deployment stack for an install. + Args: install_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppInstallStack | StderrErrResponse | None: """get an install stack by install ID + Returns the deployment stack for an install. + Args: install_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppInstallStack | StderrErrResponse]: """get an install stack by install ID + Returns the deployment stack for an install. + Args: install_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppInstallStack | StderrErrResponse | None: """get an install stack by install ID + Returns the deployment stack for an install. + Args: install_id (str): diff --git a/nuon/api/installs/get_install_stack_runs.py b/nuon/api/installs/get_install_stack_runs.py index 50790cbb..23608d06 100644 --- a/nuon/api/installs/get_install_stack_runs.py +++ b/nuon/api/installs/get_install_stack_runs.py @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/stack-runs".format( diff --git a/nuon/api/installs/get_install_state.py b/nuon/api/installs/get_install_state.py index 6bd01011..7d724866 100644 --- a/nuon/api/installs/get_install_state.py +++ b/nuon/api/installs/get_install_state.py @@ -6,7 +6,7 @@ from ... import errors from ...client import AuthenticatedClient, Client -from ...models.github_com_powertoolsdev_mono_pkg_types_state_state import GithubComPowertoolsdevMonoPkgTypesStateState +from ...models.github_com_nuonco_nuon_pkg_types_state_state import GithubComNuoncoNuonPkgTypesStateState from ...models.stderr_err_response import StderrErrResponse from ...types import Response @@ -14,6 +14,7 @@ def _get_kwargs( install_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/installs/{install_id}/state".format( @@ -26,9 +27,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse | None: +) -> GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse | None: if response.status_code == 200: - response_200 = GithubComPowertoolsdevMonoPkgTypesStateState.from_dict(response.json()) + response_200 = GithubComNuoncoNuonPkgTypesStateState.from_dict(response.json()) return response_200 @@ -65,7 +66,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse]: +) -> Response[GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -78,9 +79,11 @@ def sync_detailed( install_id: str, *, client: AuthenticatedClient, -) -> Response[GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse]: +) -> Response[GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse]: """Get the current state of an install. + Returns the current state for an install. + Args: install_id (str): @@ -89,7 +92,7 @@ def sync_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse] + Response[GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse] """ kwargs = _get_kwargs( @@ -107,9 +110,11 @@ def sync( install_id: str, *, client: AuthenticatedClient, -) -> GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse | None: +) -> GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse | None: """Get the current state of an install. + Returns the current state for an install. + Args: install_id (str): @@ -118,7 +123,7 @@ def sync( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse + GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse """ return sync_detailed( @@ -131,9 +136,11 @@ async def asyncio_detailed( install_id: str, *, client: AuthenticatedClient, -) -> Response[GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse]: +) -> Response[GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse]: """Get the current state of an install. + Returns the current state for an install. + Args: install_id (str): @@ -142,7 +149,7 @@ async def asyncio_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse] + Response[GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse] """ kwargs = _get_kwargs( @@ -158,9 +165,11 @@ async def asyncio( install_id: str, *, client: AuthenticatedClient, -) -> GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse | None: +) -> GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse | None: """Get the current state of an install. + Returns the current state for an install. + Args: install_id (str): @@ -169,7 +178,7 @@ async def asyncio( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GithubComPowertoolsdevMonoPkgTypesStateState | StderrErrResponse + GithubComNuoncoNuonPkgTypesStateState | StderrErrResponse """ return ( diff --git a/nuon/api/installs/get_install_state_history.py b/nuon/api/installs/get_install_state_history.py index e49f9b35..ba3230b6 100644 --- a/nuon/api/installs/get_install_state_history.py +++ b/nuon/api/installs/get_install_state_history.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstallState]]: """Get install state history. + Returns the state history for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppInstallState] | None: """Get install state history. + Returns the state history for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstallState]]: """Get install state history. + Returns the state history for an install. + Args: install_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstallState] | None: """Get install state history. + Returns the state history for an install. + Args: install_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/installs/get_install_workflow.py b/nuon/api/installs/get_install_workflow.py index 85eef389..9ef77e11 100644 --- a/nuon/api/installs/get_install_workflow.py +++ b/nuon/api/installs/get_install_workflow.py @@ -14,6 +14,7 @@ def _get_kwargs( install_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/install-workflows/{install_workflow_id}".format( diff --git a/nuon/api/installs/get_install_workflow_step.py b/nuon/api/installs/get_install_workflow_step.py index b0588587..f0aab377 100644 --- a/nuon/api/installs/get_install_workflow_step.py +++ b/nuon/api/installs/get_install_workflow_step.py @@ -15,6 +15,7 @@ def _get_kwargs( install_workflow_id: str, install_workflow_step_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/install-workflows/{install_workflow_id}/steps/{install_workflow_step_id}".format( diff --git a/nuon/api/installs/get_install_workflow_step_approval.py b/nuon/api/installs/get_install_workflow_step_approval.py index efd1c1cc..addcf492 100644 --- a/nuon/api/installs/get_install_workflow_step_approval.py +++ b/nuon/api/installs/get_install_workflow_step_approval.py @@ -16,6 +16,7 @@ def _get_kwargs( install_workflow_step_id: str, approval_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/install-workflows/{install_workflow_id}/steps/{install_workflow_step_id}/approvals/{approval_id}".format( @@ -87,6 +88,8 @@ def sync_detailed( ) -> Response[AppWorkflowStepApproval | StderrErrResponse]: """get an install workflow step approval + Return a workflow step approval by id. + Args: install_workflow_id (str): install_workflow_step_id (str): @@ -122,6 +125,8 @@ def sync( ) -> AppWorkflowStepApproval | StderrErrResponse | None: """get an install workflow step approval + Return a workflow step approval by id. + Args: install_workflow_id (str): install_workflow_step_id (str): @@ -152,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppWorkflowStepApproval | StderrErrResponse]: """get an install workflow step approval + Return a workflow step approval by id. + Args: install_workflow_id (str): install_workflow_step_id (str): @@ -185,6 +192,8 @@ async def asyncio( ) -> AppWorkflowStepApproval | StderrErrResponse | None: """get an install workflow step approval + Return a workflow step approval by id. + Args: install_workflow_id (str): install_workflow_step_id (str): diff --git a/nuon/api/installs/get_install_workflow_steps.py b/nuon/api/installs/get_install_workflow_steps.py index 098c645a..f1e88358 100644 --- a/nuon/api/installs/get_install_workflow_steps.py +++ b/nuon/api/installs/get_install_workflow_steps.py @@ -14,6 +14,7 @@ def _get_kwargs( install_workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/install-workflows/{install_workflow_id}/steps".format( diff --git a/nuon/api/installs/get_org_installs.py b/nuon/api/installs/get_org_installs.py index d15a914e..cf75cff6 100644 --- a/nuon/api/installs/get_org_installs.py +++ b/nuon/api/installs/get_org_installs.py @@ -17,6 +17,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -103,6 +104,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppInstall]]: """get all installs for an org + Returns all installs for the provided organization. + Args: offset (int | Unset): Default: 0. q (str | Unset): @@ -141,6 +144,8 @@ def sync( ) -> StderrErrResponse | list[AppInstall] | None: """get all installs for an org + Returns all installs for the provided organization. + Args: offset (int | Unset): Default: 0. q (str | Unset): @@ -174,6 +179,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppInstall]]: """get all installs for an org + Returns all installs for the provided organization. + Args: offset (int | Unset): Default: 0. q (str | Unset): @@ -210,6 +217,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppInstall] | None: """get all installs for an org + Returns all installs for the provided organization. + Args: offset (int | Unset): Default: 0. q (str | Unset): diff --git a/nuon/api/installs/get_workflow.py b/nuon/api/installs/get_workflow.py index 0d2c5207..0ecf110a 100644 --- a/nuon/api/installs/get_workflow.py +++ b/nuon/api/installs/get_workflow.py @@ -14,6 +14,7 @@ def _get_kwargs( workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/workflows/{workflow_id}".format( diff --git a/nuon/api/installs/get_workflow_step.py b/nuon/api/installs/get_workflow_step.py index 21db9afb..c0f02234 100644 --- a/nuon/api/installs/get_workflow_step.py +++ b/nuon/api/installs/get_workflow_step.py @@ -15,6 +15,7 @@ def _get_kwargs( workflow_id: str, step_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/workflows/{workflow_id}/steps/{step_id}".format( diff --git a/nuon/api/installs/get_workflow_step_approval.py b/nuon/api/installs/get_workflow_step_approval.py index 26c60d99..ea4f25e4 100644 --- a/nuon/api/installs/get_workflow_step_approval.py +++ b/nuon/api/installs/get_workflow_step_approval.py @@ -16,6 +16,7 @@ def _get_kwargs( step_id: str, approval_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/workflows/{workflow_id}/steps/{step_id}/approvals/{approval_id}".format( @@ -87,6 +88,8 @@ def sync_detailed( ) -> Response[AppWorkflowStepApproval | StderrErrResponse]: """get an workflow step approval + Return a workflow step approval by id. + Args: workflow_id (str): step_id (str): @@ -122,6 +125,8 @@ def sync( ) -> AppWorkflowStepApproval | StderrErrResponse | None: """get an workflow step approval + Return a workflow step approval by id. + Args: workflow_id (str): step_id (str): @@ -152,6 +157,8 @@ async def asyncio_detailed( ) -> Response[AppWorkflowStepApproval | StderrErrResponse]: """get an workflow step approval + Return a workflow step approval by id. + Args: workflow_id (str): step_id (str): @@ -185,6 +192,8 @@ async def asyncio( ) -> AppWorkflowStepApproval | StderrErrResponse | None: """get an workflow step approval + Return a workflow step approval by id. + Args: workflow_id (str): step_id (str): diff --git a/nuon/api/installs/get_workflow_step_approval_contents.py b/nuon/api/installs/get_workflow_step_approval_contents.py index 148cf3d5..ed3ce342 100644 --- a/nuon/api/installs/get_workflow_step_approval_contents.py +++ b/nuon/api/installs/get_workflow_step_approval_contents.py @@ -6,7 +6,6 @@ from ... import errors from ...client import AuthenticatedClient, Client -from ...models.get_workflow_step_approval_contents_response_200 import GetWorkflowStepApprovalContentsResponse200 from ...models.stderr_err_response import StderrErrResponse from ...types import Response @@ -16,6 +15,7 @@ def _get_kwargs( step_id: str, approval_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/workflows/{workflow_id}/steps/{step_id}/approvals/{approval_id}/contents".format( @@ -30,10 +30,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: if response.status_code == 200: - response_200 = GetWorkflowStepApprovalContentsResponse200.from_dict(response.json()) - + response_200 = response.json() return response_200 if response.status_code == 400: @@ -69,7 +68,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -84,7 +83,7 @@ def sync_detailed( approval_id: str, *, client: AuthenticatedClient, -) -> Response[GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: """get a workflow step approval contents Return the contents of a json plan for an approval (compressed). @@ -99,7 +98,7 @@ def sync_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -121,7 +120,7 @@ def sync( approval_id: str, *, client: AuthenticatedClient, -) -> GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: """get a workflow step approval contents Return the contents of a json plan for an approval (compressed). @@ -136,7 +135,7 @@ def sync( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse + Any | StderrErrResponse """ return sync_detailed( @@ -153,7 +152,7 @@ async def asyncio_detailed( approval_id: str, *, client: AuthenticatedClient, -) -> Response[GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: """get a workflow step approval contents Return the contents of a json plan for an approval (compressed). @@ -168,7 +167,7 @@ async def asyncio_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -188,7 +187,7 @@ async def asyncio( approval_id: str, *, client: AuthenticatedClient, -) -> GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: """get a workflow step approval contents Return the contents of a json plan for an approval (compressed). @@ -203,7 +202,7 @@ async def asyncio( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetWorkflowStepApprovalContentsResponse200 | StderrErrResponse + Any | StderrErrResponse """ return ( diff --git a/nuon/api/installs/get_workflow_steps.py b/nuon/api/installs/get_workflow_steps.py index 3c729d45..9bfb085b 100644 --- a/nuon/api/installs/get_workflow_steps.py +++ b/nuon/api/installs/get_workflow_steps.py @@ -14,6 +14,7 @@ def _get_kwargs( workflow_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/workflows/{workflow_id}/steps".format( diff --git a/nuon/api/installs/get_workflows.py b/nuon/api/installs/get_workflows.py index 7941b0a7..2a0323e9 100644 --- a/nuon/api/installs/get_workflows.py +++ b/nuon/api/installs/get_workflows.py @@ -22,6 +22,7 @@ def _get_kwargs( created_at_gte: str | Unset = UNSET, created_at_lte: str | Unset = UNSET, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/installs/retry_owner_workflow_by_id.py b/nuon/api/installs/retry_owner_workflow_by_id.py index c95de912..66cdbe42 100644 --- a/nuon/api/installs/retry_owner_workflow_by_id.py +++ b/nuon/api/installs/retry_owner_workflow_by_id.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[ServiceRetryWorkflowByIDResponse | StderrErrResponse]: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): body (ServiceRetryWorkflowByIDRequest): @@ -124,6 +126,8 @@ def sync( ) -> ServiceRetryWorkflowByIDResponse | StderrErrResponse | None: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): body (ServiceRetryWorkflowByIDRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[ServiceRetryWorkflowByIDResponse | StderrErrResponse]: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): body (ServiceRetryWorkflowByIDRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> ServiceRetryWorkflowByIDResponse | StderrErrResponse | None: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): body (ServiceRetryWorkflowByIDRequest): diff --git a/nuon/api/installs/retry_workflow.py b/nuon/api/installs/retry_workflow.py index c5f8d255..7f6ece09 100644 --- a/nuon/api/installs/retry_workflow.py +++ b/nuon/api/installs/retry_workflow.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[ServiceRetryWorkflowResponse | StderrErrResponse]: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a failed workflow execution. + Args: install_id (str): body (ServiceRetryWorkflowRequest): @@ -124,6 +126,8 @@ def sync( ) -> ServiceRetryWorkflowResponse | StderrErrResponse | None: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a failed workflow execution. + Args: install_id (str): body (ServiceRetryWorkflowRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[ServiceRetryWorkflowResponse | StderrErrResponse]: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a failed workflow execution. + Args: install_id (str): body (ServiceRetryWorkflowRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> ServiceRetryWorkflowResponse | StderrErrResponse | None: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a failed workflow execution. + Args: install_id (str): body (ServiceRetryWorkflowRequest): diff --git a/nuon/api/installs/retry_workflow_step.py b/nuon/api/installs/retry_workflow_step.py index ad9ddea9..ffa9e91d 100644 --- a/nuon/api/installs/retry_workflow_step.py +++ b/nuon/api/installs/retry_workflow_step.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[ServiceRetryWorkflowByIDResponse | StderrErrResponse]: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): step_id (str): @@ -130,6 +132,8 @@ def sync( ) -> ServiceRetryWorkflowByIDResponse | StderrErrResponse | None: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): step_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[ServiceRetryWorkflowByIDResponse | StderrErrResponse]: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): step_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> ServiceRetryWorkflowByIDResponse | StderrErrResponse | None: """rerun the workflow steps starting from input step id, can be used to retry a failed step + Retry a workflow execution by id. + Args: workflow_id (str): step_id (str): diff --git a/nuon/api/installs/teardown_install_component.py b/nuon/api/installs/teardown_install_component.py index cafdc342..1b52d17f 100644 --- a/nuon/api/installs/teardown_install_component.py +++ b/nuon/api/installs/teardown_install_component.py @@ -94,6 +94,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | str]: """teardown an install component + Teardown and remove an install component's resources. + Args: install_id (str): component_id (str): @@ -129,6 +131,8 @@ def sync( ) -> StderrErrResponse | str | None: """teardown an install component + Teardown and remove an install component's resources. + Args: install_id (str): component_id (str): @@ -159,6 +163,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | str]: """teardown an install component + Teardown and remove an install component's resources. + Args: install_id (str): component_id (str): @@ -192,6 +198,8 @@ async def asyncio( ) -> StderrErrResponse | str | None: """teardown an install component + Teardown and remove an install component's resources. + Args: install_id (str): component_id (str): diff --git a/nuon/api/installs/update_install.py b/nuon/api/installs/update_install.py index 2797b223..0d6d7983 100644 --- a/nuon/api/installs/update_install.py +++ b/nuon/api/installs/update_install.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppInstall | StderrErrResponse]: """update an install + Update an install's settings. + Args: install_id (str): body (ServiceUpdateInstallRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppInstall | StderrErrResponse | None: """update an install + Update an install's settings. + Args: install_id (str): body (ServiceUpdateInstallRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppInstall | StderrErrResponse]: """update an install + Update an install's settings. + Args: install_id (str): body (ServiceUpdateInstallRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppInstall | StderrErrResponse | None: """update an install + Update an install's settings. + Args: install_id (str): body (ServiceUpdateInstallRequest): diff --git a/nuon/api/installs/update_install_config.py b/nuon/api/installs/update_install_config.py index b6f2f1a0..7b9e84a0 100644 --- a/nuon/api/installs/update_install_config.py +++ b/nuon/api/installs/update_install_config.py @@ -95,6 +95,8 @@ def sync_detailed( ) -> Response[AppInstallConfig | StderrErrResponse]: """update an install config + Update an install's configuration. + Args: install_id (str): config_id (str): @@ -130,6 +132,8 @@ def sync( ) -> AppInstallConfig | StderrErrResponse | None: """update an install config + Update an install's configuration. + Args: install_id (str): config_id (str): @@ -160,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppInstallConfig | StderrErrResponse]: """update an install config + Update an install's configuration. + Args: install_id (str): config_id (str): @@ -193,6 +199,8 @@ async def asyncio( ) -> AppInstallConfig | StderrErrResponse | None: """update an install config + Update an install's configuration. + Args: install_id (str): config_id (str): diff --git a/nuon/api/installs/update_install_inputs.py b/nuon/api/installs/update_install_inputs.py index c272c20c..38652e42 100644 --- a/nuon/api/installs/update_install_inputs.py +++ b/nuon/api/installs/update_install_inputs.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppInstallInputs | StderrErrResponse]: """Updates install input config for app + Update input values for an install. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppInstallInputs | StderrErrResponse | None: """Updates install input config for app + Update input values for an install. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppInstallInputs | StderrErrResponse]: """Updates install input config for app + Update input values for an install. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppInstallInputs | StderrErrResponse | None: """Updates install input config for app + Update input values for an install. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): diff --git a/nuon/api/installs/update_install_workflow.py b/nuon/api/installs/update_install_workflow.py index 64a9e992..73b5ace5 100644 --- a/nuon/api/installs/update_install_workflow.py +++ b/nuon/api/installs/update_install_workflow.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppWorkflow | StderrErrResponse]: """update an install workflow + Update a workflow configuration. + Args: install_workflow_id (str): body (ServiceUpdateWorkflowRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppWorkflow | StderrErrResponse | None: """update an install workflow + Update a workflow configuration. + Args: install_workflow_id (str): body (ServiceUpdateWorkflowRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppWorkflow | StderrErrResponse]: """update an install workflow + Update a workflow configuration. + Args: install_workflow_id (str): body (ServiceUpdateWorkflowRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppWorkflow | StderrErrResponse | None: """update an install workflow + Update a workflow configuration. + Args: install_workflow_id (str): body (ServiceUpdateWorkflowRequest): diff --git a/nuon/api/installs/update_workflow.py b/nuon/api/installs/update_workflow.py index e3f1e6d3..44ef8c95 100644 --- a/nuon/api/installs/update_workflow.py +++ b/nuon/api/installs/update_workflow.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppWorkflow | StderrErrResponse]: """update a workflow + Update a workflow configuration. + Args: workflow_id (str): body (ServiceUpdateWorkflowRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppWorkflow | StderrErrResponse | None: """update a workflow + Update a workflow configuration. + Args: workflow_id (str): body (ServiceUpdateWorkflowRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppWorkflow | StderrErrResponse]: """update a workflow + Update a workflow configuration. + Args: workflow_id (str): body (ServiceUpdateWorkflowRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppWorkflow | StderrErrResponse | None: """update a workflow + Update a workflow configuration. + Args: workflow_id (str): body (ServiceUpdateWorkflowRequest): diff --git a/nuon/api/orgs/add_user.py b/nuon/api/orgs/add_user.py index 7ff3a903..7a1ea1da 100644 --- a/nuon/api/orgs/add_user.py +++ b/nuon/api/orgs/add_user.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppAccount | StderrErrResponse]: """Add a user to the current org + Add a user to an organization. + Args: body (ServiceCreateOrgUserRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppAccount | StderrErrResponse | None: """Add a user to the current org + Add a user to an organization. + Args: body (ServiceCreateOrgUserRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppAccount | StderrErrResponse]: """Add a user to the current org + Add a user to an organization. + Args: body (ServiceCreateOrgUserRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppAccount | StderrErrResponse | None: """Add a user to the current org + Add a user to an organization. + Args: body (ServiceCreateOrgUserRequest): diff --git a/nuon/api/orgs/create_org.py b/nuon/api/orgs/create_org.py index 5fcb53a5..eae4b0c8 100644 --- a/nuon/api/orgs/create_org.py +++ b/nuon/api/orgs/create_org.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppOrg | StderrErrResponse]: """create a new org + Create a new organization. + Args: body (ServiceCreateOrgRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppOrg | StderrErrResponse | None: """create a new org + Create a new organization. + Args: body (ServiceCreateOrgRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppOrg | StderrErrResponse]: """create a new org + Create a new organization. + Args: body (ServiceCreateOrgRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppOrg | StderrErrResponse | None: """create a new org + Create a new organization. + Args: body (ServiceCreateOrgRequest): diff --git a/nuon/api/orgs/delete_org.py b/nuon/api/orgs/delete_org.py index 8e3c4475..fee11cb1 100644 --- a/nuon/api/orgs/delete_org.py +++ b/nuon/api/orgs/delete_org.py @@ -10,6 +10,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/orgs/current", @@ -73,6 +74,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | bool]: """Delete an org + Delete an organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -96,6 +99,8 @@ def sync( ) -> StderrErrResponse | bool | None: """Delete an org + Delete an organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -115,6 +120,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | bool]: """Delete an org + Delete an organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -136,6 +143,8 @@ async def asyncio( ) -> StderrErrResponse | bool | None: """Delete an org + Delete an organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/orgs/get_current_org_features.py b/nuon/api/orgs/get_current_org_features.py new file mode 100644 index 00000000..9b0fe229 --- /dev/null +++ b/nuon/api/orgs/get_current_org_features.py @@ -0,0 +1,204 @@ +from http import HTTPStatus +from typing import Any + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.get_current_org_features_response_200 import GetCurrentOrgFeaturesResponse200 +from ...types import Response + + +def _get_kwargs() -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/v1/orgs/current/features", + } + + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> GetCurrentOrgFeaturesResponse200 | None: + if response.status_code == 200: + response_200 = GetCurrentOrgFeaturesResponse200.from_dict(response.json()) + + return response_200 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[GetCurrentOrgFeaturesResponse200]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, +) -> Response[GetCurrentOrgFeaturesResponse200]: + r"""get current org's feature flags + + Get the current organization's feature flag values. + + Returns a map of feature flag names to their enabled/disabled status for the authenticated + organization. + + This endpoint shows which features are currently enabled or disabled for your organization, unlike + `/v1/orgs/features` which returns all available features with their descriptions. + + Example response: + ```json + { + \"api-pagination\": true, + \"org-dashboard\": false, + \"org-runner\": true, + \"stratus-layout\": true, + \"user-managed-features\": false + } + ``` + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[GetCurrentOrgFeaturesResponse200] + """ + + kwargs = _get_kwargs() + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, +) -> GetCurrentOrgFeaturesResponse200 | None: + r"""get current org's feature flags + + Get the current organization's feature flag values. + + Returns a map of feature flag names to their enabled/disabled status for the authenticated + organization. + + This endpoint shows which features are currently enabled or disabled for your organization, unlike + `/v1/orgs/features` which returns all available features with their descriptions. + + Example response: + ```json + { + \"api-pagination\": true, + \"org-dashboard\": false, + \"org-runner\": true, + \"stratus-layout\": true, + \"user-managed-features\": false + } + ``` + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + GetCurrentOrgFeaturesResponse200 + """ + + return sync_detailed( + client=client, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, +) -> Response[GetCurrentOrgFeaturesResponse200]: + r"""get current org's feature flags + + Get the current organization's feature flag values. + + Returns a map of feature flag names to their enabled/disabled status for the authenticated + organization. + + This endpoint shows which features are currently enabled or disabled for your organization, unlike + `/v1/orgs/features` which returns all available features with their descriptions. + + Example response: + ```json + { + \"api-pagination\": true, + \"org-dashboard\": false, + \"org-runner\": true, + \"stratus-layout\": true, + \"user-managed-features\": false + } + ``` + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[GetCurrentOrgFeaturesResponse200] + """ + + kwargs = _get_kwargs() + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, +) -> GetCurrentOrgFeaturesResponse200 | None: + r"""get current org's feature flags + + Get the current organization's feature flag values. + + Returns a map of feature flag names to their enabled/disabled status for the authenticated + organization. + + This endpoint shows which features are currently enabled or disabled for your organization, unlike + `/v1/orgs/features` which returns all available features with their descriptions. + + Example response: + ```json + { + \"api-pagination\": true, + \"org-dashboard\": false, + \"org-runner\": true, + \"stratus-layout\": true, + \"user-managed-features\": false + } + ``` + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + GetCurrentOrgFeaturesResponse200 + """ + + return ( + await asyncio_detailed( + client=client, + ) + ).parsed diff --git a/nuon/api/orgs/get_org.py b/nuon/api/orgs/get_org.py index c85d6372..f47611f6 100644 --- a/nuon/api/orgs/get_org.py +++ b/nuon/api/orgs/get_org.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/orgs/current", @@ -75,6 +76,8 @@ def sync_detailed( ) -> Response[AppOrg | StderrErrResponse]: """Get an org + Return an organization by id. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -98,6 +101,8 @@ def sync( ) -> AppOrg | StderrErrResponse | None: """Get an org + Return an organization by id. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -117,6 +122,8 @@ async def asyncio_detailed( ) -> Response[AppOrg | StderrErrResponse]: """Get an org + Return an organization by id. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -138,6 +145,8 @@ async def asyncio( ) -> AppOrg | StderrErrResponse | None: """Get an org + Return an organization by id. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/orgs/get_org_acounts.py b/nuon/api/orgs/get_org_acounts.py index 9cb1cb57..8f97d1b0 100644 --- a/nuon/api/orgs/get_org_acounts.py +++ b/nuon/api/orgs/get_org_acounts.py @@ -16,6 +16,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -94,6 +95,8 @@ def sync_detailed( ) -> Response[AppAccount | StderrErrResponse]: """Get user accounts for current org + Return an organization by id. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. @@ -129,6 +132,8 @@ def sync( ) -> AppAccount | StderrErrResponse | None: """Get user accounts for current org + Return an organization by id. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. @@ -159,6 +164,8 @@ async def asyncio_detailed( ) -> Response[AppAccount | StderrErrResponse]: """Get user accounts for current org + Return an organization by id. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. @@ -192,6 +199,8 @@ async def asyncio( ) -> AppAccount | StderrErrResponse | None: """Get user accounts for current org + Return an organization by id. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. diff --git a/nuon/api/orgs/get_org_features.py b/nuon/api/orgs/get_org_features.py new file mode 100644 index 00000000..50024a0a --- /dev/null +++ b/nuon/api/orgs/get_org_features.py @@ -0,0 +1,165 @@ +from http import HTTPStatus +from typing import Any + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.app_org_feature_info import AppOrgFeatureInfo +from ...types import Response + + +def _get_kwargs() -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/v1/orgs/features", + } + + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> list[AppOrgFeatureInfo] | None: + if response.status_code == 200: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = AppOrgFeatureInfo.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[list[AppOrgFeatureInfo]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, +) -> Response[list[AppOrgFeatureInfo]]: + """get available org features + + Get all available organization feature flags with their descriptions. + + This endpoint returns a list of all feature flags that can be enabled or disabled for organizations, + along with detailed descriptions of what each feature provides. + + Feature flags control access to specific platform capabilities and can be managed by administrators + through the admin API endpoints. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[list[AppOrgFeatureInfo]] + """ + + kwargs = _get_kwargs() + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, +) -> list[AppOrgFeatureInfo] | None: + """get available org features + + Get all available organization feature flags with their descriptions. + + This endpoint returns a list of all feature flags that can be enabled or disabled for organizations, + along with detailed descriptions of what each feature provides. + + Feature flags control access to specific platform capabilities and can be managed by administrators + through the admin API endpoints. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + list[AppOrgFeatureInfo] + """ + + return sync_detailed( + client=client, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, +) -> Response[list[AppOrgFeatureInfo]]: + """get available org features + + Get all available organization feature flags with their descriptions. + + This endpoint returns a list of all feature flags that can be enabled or disabled for organizations, + along with detailed descriptions of what each feature provides. + + Feature flags control access to specific platform capabilities and can be managed by administrators + through the admin API endpoints. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[list[AppOrgFeatureInfo]] + """ + + kwargs = _get_kwargs() + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, +) -> list[AppOrgFeatureInfo] | None: + """get available org features + + Get all available organization feature flags with their descriptions. + + This endpoint returns a list of all feature flags that can be enabled or disabled for organizations, + along with detailed descriptions of what each feature provides. + + Feature flags control access to specific platform capabilities and can be managed by administrators + through the admin API endpoints. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + list[AppOrgFeatureInfo] + """ + + return ( + await asyncio_detailed( + client=client, + ) + ).parsed diff --git a/nuon/api/orgs/get_org_invites.py b/nuon/api/orgs/get_org_invites.py index 036a5bac..620130be 100644 --- a/nuon/api/orgs/get_org_invites.py +++ b/nuon/api/orgs/get_org_invites.py @@ -16,6 +16,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/orgs/get_org_runner_group.py b/nuon/api/orgs/get_org_runner_group.py index 6b84f4d4..bfe3850e 100644 --- a/nuon/api/orgs/get_org_runner_group.py +++ b/nuon/api/orgs/get_org_runner_group.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/orgs/current/runner-group", diff --git a/nuon/api/orgs/get_org_stats.py b/nuon/api/orgs/get_org_stats.py index d5159d90..04f2b421 100644 --- a/nuon/api/orgs/get_org_stats.py +++ b/nuon/api/orgs/get_org_stats.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/orgs/current/stats", @@ -75,6 +76,8 @@ def sync_detailed( ) -> Response[AppOrg | StderrErrResponse]: """Get an org + Returns statistics for the provided organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -98,6 +101,8 @@ def sync( ) -> AppOrg | StderrErrResponse | None: """Get an org + Returns statistics for the provided organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -117,6 +122,8 @@ async def asyncio_detailed( ) -> Response[AppOrg | StderrErrResponse]: """Get an org + Returns statistics for the provided organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -138,6 +145,8 @@ async def asyncio( ) -> AppOrg | StderrErrResponse | None: """Get an org + Returns statistics for the provided organization. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/orgs/get_orgs.py b/nuon/api/orgs/get_orgs.py index a86fca0f..9d34a161 100644 --- a/nuon/api/orgs/get_orgs.py +++ b/nuon/api/orgs/get_orgs.py @@ -17,6 +17,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["q"] = q @@ -103,6 +104,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppOrg]]: """Return current user's orgs + Returns all organizations for the authenticated user. + Args: q (str | Unset): offset (int | Unset): Default: 0. @@ -141,6 +144,8 @@ def sync( ) -> StderrErrResponse | list[AppOrg] | None: """Return current user's orgs + Returns all organizations for the authenticated user. + Args: q (str | Unset): offset (int | Unset): Default: 0. @@ -174,6 +179,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppOrg]]: """Return current user's orgs + Returns all organizations for the authenticated user. + Args: q (str | Unset): offset (int | Unset): Default: 0. @@ -210,6 +217,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppOrg] | None: """Return current user's orgs + Returns all organizations for the authenticated user. + Args: q (str | Unset): offset (int | Unset): Default: 0. diff --git a/nuon/api/orgs/update_org.py b/nuon/api/orgs/update_org.py index 15554bc6..109e29da 100644 --- a/nuon/api/orgs/update_org.py +++ b/nuon/api/orgs/update_org.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppOrg | StderrErrResponse]: """Update current org + Update an organization's settings. + Args: body (ServiceUpdateOrgRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppOrg | StderrErrResponse | None: """Update current org + Update an organization's settings. + Args: body (ServiceUpdateOrgRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppOrg | StderrErrResponse]: """Update current org + Update an organization's settings. + Args: body (ServiceUpdateOrgRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppOrg | StderrErrResponse | None: """Update current org + Update an organization's settings. + Args: body (ServiceUpdateOrgRequest): diff --git a/nuon/api/orgs/update_org_features.py b/nuon/api/orgs/update_org_features.py new file mode 100644 index 00000000..dd77afad --- /dev/null +++ b/nuon/api/orgs/update_org_features.py @@ -0,0 +1,258 @@ +from http import HTTPStatus +from typing import Any + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.app_org import AppOrg +from ...models.service_update_org_features_request import ServiceUpdateOrgFeaturesRequest +from ...models.stderr_err_response import StderrErrResponse +from ...types import Response + + +def _get_kwargs( + *, + body: ServiceUpdateOrgFeaturesRequest, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + + _kwargs: dict[str, Any] = { + "method": "patch", + "url": "/v1/orgs/current/features", + } + + _kwargs["json"] = body.to_dict() + + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> AppOrg | StderrErrResponse | None: + if response.status_code == 200: + response_200 = AppOrg.from_dict(response.json()) + + return response_200 + + if response.status_code == 403: + response_403 = StderrErrResponse.from_dict(response.json()) + + return response_403 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[AppOrg | StderrErrResponse]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: ServiceUpdateOrgFeaturesRequest, +) -> Response[AppOrg | StderrErrResponse]: + r"""update org features (requires user-managed-features flag) + + Update feature flags for your current organization. + + This endpoint allows organization users to manage feature flags, but requires the `user-managed- + features` flag to be enabled for the organization. The `user-managed-features` flag itself cannot be + modified through this endpoint and can only be enabled/disabled by administrators. + + **Requirements:** + - The `user-managed-features` flag must be enabled for your organization + - You cannot toggle the `user-managed-features` flag through this endpoint (admin-only) + + **Example Request:** + ```json + { + \"features\": { + \"api-pagination\": true, + \"install-delete\": false + } + } + ``` + + The request will update only the specified feature flags. Features not included in the request will + retain their current values. + + Args: + body (ServiceUpdateOrgFeaturesRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[AppOrg | StderrErrResponse] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: ServiceUpdateOrgFeaturesRequest, +) -> AppOrg | StderrErrResponse | None: + r"""update org features (requires user-managed-features flag) + + Update feature flags for your current organization. + + This endpoint allows organization users to manage feature flags, but requires the `user-managed- + features` flag to be enabled for the organization. The `user-managed-features` flag itself cannot be + modified through this endpoint and can only be enabled/disabled by administrators. + + **Requirements:** + - The `user-managed-features` flag must be enabled for your organization + - You cannot toggle the `user-managed-features` flag through this endpoint (admin-only) + + **Example Request:** + ```json + { + \"features\": { + \"api-pagination\": true, + \"install-delete\": false + } + } + ``` + + The request will update only the specified feature flags. Features not included in the request will + retain their current values. + + Args: + body (ServiceUpdateOrgFeaturesRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + AppOrg | StderrErrResponse + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: ServiceUpdateOrgFeaturesRequest, +) -> Response[AppOrg | StderrErrResponse]: + r"""update org features (requires user-managed-features flag) + + Update feature flags for your current organization. + + This endpoint allows organization users to manage feature flags, but requires the `user-managed- + features` flag to be enabled for the organization. The `user-managed-features` flag itself cannot be + modified through this endpoint and can only be enabled/disabled by administrators. + + **Requirements:** + - The `user-managed-features` flag must be enabled for your organization + - You cannot toggle the `user-managed-features` flag through this endpoint (admin-only) + + **Example Request:** + ```json + { + \"features\": { + \"api-pagination\": true, + \"install-delete\": false + } + } + ``` + + The request will update only the specified feature flags. Features not included in the request will + retain their current values. + + Args: + body (ServiceUpdateOrgFeaturesRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[AppOrg | StderrErrResponse] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: ServiceUpdateOrgFeaturesRequest, +) -> AppOrg | StderrErrResponse | None: + r"""update org features (requires user-managed-features flag) + + Update feature flags for your current organization. + + This endpoint allows organization users to manage feature flags, but requires the `user-managed- + features` flag to be enabled for the organization. The `user-managed-features` flag itself cannot be + modified through this endpoint and can only be enabled/disabled by administrators. + + **Requirements:** + - The `user-managed-features` flag must be enabled for your organization + - You cannot toggle the `user-managed-features` flag through this endpoint (admin-only) + + **Example Request:** + ```json + { + \"features\": { + \"api-pagination\": true, + \"install-delete\": false + } + } + ``` + + The request will update only the specified feature flags. Features not included in the request will + retain their current values. + + Args: + body (ServiceUpdateOrgFeaturesRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + AppOrg | StderrErrResponse + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/nuon/api/releases/create_component_release.py b/nuon/api/releases/create_component_release.py index c737da57..1e2e2d29 100644 --- a/nuon/api/releases/create_component_release.py +++ b/nuon/api/releases/create_component_release.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppComponentRelease | StderrErrResponse]: """create a release + Create a release for a component. + Args: component_id (str): body (ServiceCreateComponentReleaseRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppComponentRelease | StderrErrResponse | None: """create a release + Create a release for a component. + Args: component_id (str): body (ServiceCreateComponentReleaseRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppComponentRelease | StderrErrResponse]: """create a release + Create a release for a component. + Args: component_id (str): body (ServiceCreateComponentReleaseRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppComponentRelease | StderrErrResponse | None: """create a release + Create a release for a component. + Args: component_id (str): body (ServiceCreateComponentReleaseRequest): diff --git a/nuon/api/releases/get_app_releases.py b/nuon/api/releases/get_app_releases.py index 5b184629..79ce6354 100644 --- a/nuon/api/releases/get_app_releases.py +++ b/nuon/api/releases/get_app_releases.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentRelease]]: """get all releases for an app + Returns all releases for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentRelease] | None: """get all releases for an app + Returns all releases for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentRelease]]: """get all releases for an app + Returns all releases for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentRelease] | None: """get all releases for an app + Returns all releases for the provided app. + Args: app_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/releases/get_component_releases.py b/nuon/api/releases/get_component_releases.py index 1b45be30..f9ad066f 100644 --- a/nuon/api/releases/get_component_releases.py +++ b/nuon/api/releases/get_component_releases.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentRelease]]: """get all releases for a component + Returns all releases for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentRelease] | None: """get all releases for a component + Returns all releases for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentRelease]]: """get all releases for a component + Returns all releases for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentRelease] | None: """get all releases for a component + Returns all releases for the provided component. + Args: component_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/releases/get_release.py b/nuon/api/releases/get_release.py index f46b5eda..fa0bb510 100644 --- a/nuon/api/releases/get_release.py +++ b/nuon/api/releases/get_release.py @@ -14,6 +14,7 @@ def _get_kwargs( release_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/releases/{release_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppComponentRelease | StderrErrResponse]: """get a release + Return a release by id. + Args: release_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppComponentRelease | StderrErrResponse | None: """get a release + Return a release by id. + Args: release_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppComponentRelease | StderrErrResponse]: """get a release + Return a release by id. + Args: release_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppComponentRelease | StderrErrResponse | None: """get a release + Return a release by id. + Args: release_id (str): diff --git a/nuon/api/releases/get_release_steps.py b/nuon/api/releases/get_release_steps.py index ee0a9262..b5e182bd 100644 --- a/nuon/api/releases/get_release_steps.py +++ b/nuon/api/releases/get_release_steps.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppComponentReleaseStep]]: """get a release's steps + Return a release by id. + Args: release_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppComponentReleaseStep] | None: """get a release's steps + Return a release by id. + Args: release_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppComponentReleaseStep]]: """get a release's steps + Return a release by id. + Args: release_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppComponentReleaseStep] | None: """get a release's steps + Return a release by id. + Args: release_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/runners/create_terraform_workspace.py b/nuon/api/runners/create_terraform_workspace.py index 31e8301c..d567abf5 100644 --- a/nuon/api/runners/create_terraform_workspace.py +++ b/nuon/api/runners/create_terraform_workspace.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppTerraformWorkspace | StderrErrResponse]: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppTerraformWorkspace | StderrErrResponse | None: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppTerraformWorkspace | StderrErrResponse]: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppTerraformWorkspace | StderrErrResponse | None: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): diff --git a/nuon/api/runners/create_terraform_workspace_v2.py b/nuon/api/runners/create_terraform_workspace_v2.py index 8ead6a7a..52d213b1 100644 --- a/nuon/api/runners/create_terraform_workspace_v2.py +++ b/nuon/api/runners/create_terraform_workspace_v2.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppTerraformWorkspace | StderrErrResponse]: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppTerraformWorkspace | StderrErrResponse | None: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppTerraformWorkspace | StderrErrResponse]: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppTerraformWorkspace | StderrErrResponse | None: """create terraform workspace + Create a terraform workspace. + Args: body (ServiceCreateTerraformWorkspaceRequest): diff --git a/nuon/api/runners/delete_terraform_workspace.py b/nuon/api/runners/delete_terraform_workspace.py index c7585d48..eef5b178 100644 --- a/nuon/api/runners/delete_terraform_workspace.py +++ b/nuon/api/runners/delete_terraform_workspace.py @@ -14,6 +14,7 @@ def _get_kwargs( workspace_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/terraform-workspaces/{workspace_id}".format( @@ -86,6 +87,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspace]]: """delete terraform workspace + Delete a terraform workspace. + Args: workspace_id (str): @@ -115,6 +118,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspace] | None: """delete terraform workspace + Delete a terraform workspace. + Args: workspace_id (str): @@ -139,6 +144,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspace]]: """delete terraform workspace + Delete a terraform workspace. + Args: workspace_id (str): @@ -166,6 +173,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspace] | None: """delete terraform workspace + Delete a terraform workspace. + Args: workspace_id (str): diff --git a/nuon/api/runners/fetch_runner_token_mng.py b/nuon/api/runners/fetch_runner_token_mng.py new file mode 100644 index 00000000..298d5ba7 --- /dev/null +++ b/nuon/api/runners/fetch_runner_token_mng.py @@ -0,0 +1,200 @@ +from http import HTTPStatus +from typing import Any, cast +from urllib.parse import quote + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.service_mng_fetch_token_request import ServiceMngFetchTokenRequest +from ...models.stderr_err_response import StderrErrResponse +from ...types import Response + + +def _get_kwargs( + runner_id: str, + *, + body: ServiceMngFetchTokenRequest, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + + _kwargs: dict[str, Any] = { + "method": "post", + "url": "/v1/runners/{runner_id}/mng/fetch-token".format( + runner_id=quote(str(runner_id), safe=""), + ), + } + + _kwargs["json"] = body.to_dict() + + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> StderrErrResponse | bool | None: + if response.status_code == 201: + response_201 = cast(bool, response.json()) + return response_201 + + if response.status_code == 400: + response_400 = StderrErrResponse.from_dict(response.json()) + + return response_400 + + if response.status_code == 401: + response_401 = StderrErrResponse.from_dict(response.json()) + + return response_401 + + if response.status_code == 403: + response_403 = StderrErrResponse.from_dict(response.json()) + + return response_403 + + if response.status_code == 404: + response_404 = StderrErrResponse.from_dict(response.json()) + + return response_404 + + if response.status_code == 500: + response_500 = StderrErrResponse.from_dict(response.json()) + + return response_500 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[StderrErrResponse | bool]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + runner_id: str, + *, + client: AuthenticatedClient, + body: ServiceMngFetchTokenRequest, +) -> Response[StderrErrResponse | bool]: + """fetch authentication token for an install runner via the mng process + + Args: + runner_id (str): + body (ServiceMngFetchTokenRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[StderrErrResponse | bool] + """ + + kwargs = _get_kwargs( + runner_id=runner_id, + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + runner_id: str, + *, + client: AuthenticatedClient, + body: ServiceMngFetchTokenRequest, +) -> StderrErrResponse | bool | None: + """fetch authentication token for an install runner via the mng process + + Args: + runner_id (str): + body (ServiceMngFetchTokenRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + StderrErrResponse | bool + """ + + return sync_detailed( + runner_id=runner_id, + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + runner_id: str, + *, + client: AuthenticatedClient, + body: ServiceMngFetchTokenRequest, +) -> Response[StderrErrResponse | bool]: + """fetch authentication token for an install runner via the mng process + + Args: + runner_id (str): + body (ServiceMngFetchTokenRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[StderrErrResponse | bool] + """ + + kwargs = _get_kwargs( + runner_id=runner_id, + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + runner_id: str, + *, + client: AuthenticatedClient, + body: ServiceMngFetchTokenRequest, +) -> StderrErrResponse | bool | None: + """fetch authentication token for an install runner via the mng process + + Args: + runner_id (str): + body (ServiceMngFetchTokenRequest): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + StderrErrResponse | bool + """ + + return ( + await asyncio_detailed( + runner_id=runner_id, + client=client, + body=body, + ) + ).parsed diff --git a/nuon/api/runners/get_latest_runner_heart_beat.py b/nuon/api/runners/get_latest_runner_heart_beat.py index 0b969a74..b16426e5 100644 --- a/nuon/api/runners/get_latest_runner_heart_beat.py +++ b/nuon/api/runners/get_latest_runner_heart_beat.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/{runner_id}/heart-beats/latest".format( diff --git a/nuon/api/runners/get_log_stream.py b/nuon/api/runners/get_log_stream.py index 843f902a..1dffa64f 100644 --- a/nuon/api/runners/get_log_stream.py +++ b/nuon/api/runners/get_log_stream.py @@ -14,6 +14,7 @@ def _get_kwargs( log_stream_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/log-streams/{log_stream_id}".format( diff --git a/nuon/api/runners/get_runner_card_details.py b/nuon/api/runners/get_runner_card_details.py index 05ed9421..af00960a 100644 --- a/nuon/api/runners/get_runner_card_details.py +++ b/nuon/api/runners/get_runner_card_details.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/{runner_id}/card-details".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[ServiceRunnerCardDetailsResponse | StderrErrResponse]: """get runner card details + Returns runner card details for monitoring and status. + Args: runner_id (str): @@ -110,6 +113,8 @@ def sync( ) -> ServiceRunnerCardDetailsResponse | StderrErrResponse | None: """get runner card details + Returns runner card details for monitoring and status. + Args: runner_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[ServiceRunnerCardDetailsResponse | StderrErrResponse]: """get runner card details + Returns runner card details for monitoring and status. + Args: runner_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> ServiceRunnerCardDetailsResponse | StderrErrResponse | None: """get runner card details + Returns runner card details for monitoring and status. + Args: runner_id (str): diff --git a/nuon/api/runners/get_runner_connect_status.py b/nuon/api/runners/get_runner_connect_status.py index 33e035e3..9ea60bb5 100644 --- a/nuon/api/runners/get_runner_connect_status.py +++ b/nuon/api/runners/get_runner_connect_status.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/{runner_id}/connected".format( diff --git a/nuon/api/runners/get_runner_job.py b/nuon/api/runners/get_runner_job.py index af46d0d2..168ea320 100644 --- a/nuon/api/runners/get_runner_job.py +++ b/nuon/api/runners/get_runner_job.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_job_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runner-jobs/{runner_job_id}".format( diff --git a/nuon/api/runners/get_runner_job_composite_plan.py b/nuon/api/runners/get_runner_job_composite_plan.py index e04ddedb..04402615 100644 --- a/nuon/api/runners/get_runner_job_composite_plan.py +++ b/nuon/api/runners/get_runner_job_composite_plan.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_job_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runner-jobs/{runner_job_id}/composite-plan".format( diff --git a/nuon/api/runners/get_runner_job_plan.py b/nuon/api/runners/get_runner_job_plan.py index df0efbea..616c459f 100644 --- a/nuon/api/runners/get_runner_job_plan.py +++ b/nuon/api/runners/get_runner_job_plan.py @@ -13,6 +13,7 @@ def _get_kwargs( runner_job_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runner-jobs/{runner_job_id}/plan".format( diff --git a/nuon/api/runners/get_runner_job_plan_v2.py b/nuon/api/runners/get_runner_job_plan_v2.py index 746056bc..cb673f93 100644 --- a/nuon/api/runners/get_runner_job_plan_v2.py +++ b/nuon/api/runners/get_runner_job_plan_v2.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_id: str, job_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runner/{runner_id}/jobs/{job_id}/plan".format( diff --git a/nuon/api/runners/get_runner_job_v2.py b/nuon/api/runners/get_runner_job_v2.py index dfdd0e43..98142ade 100644 --- a/nuon/api/runners/get_runner_job_v2.py +++ b/nuon/api/runners/get_runner_job_v2.py @@ -15,6 +15,7 @@ def _get_kwargs( runner_id: str, job_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/{runner_id}/jobs/{job_id}".format( diff --git a/nuon/api/runners/get_runner_jobs.py b/nuon/api/runners/get_runner_jobs.py index d1b91b54..9d5c8126 100644 --- a/nuon/api/runners/get_runner_jobs.py +++ b/nuon/api/runners/get_runner_jobs.py @@ -22,6 +22,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["group"] = group diff --git a/nuon/api/runners/get_runner_latest_heart_beat.py b/nuon/api/runners/get_runner_latest_heart_beat.py index 6385b107..8a89f4ba 100644 --- a/nuon/api/runners/get_runner_latest_heart_beat.py +++ b/nuon/api/runners/get_runner_latest_heart_beat.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/{runner_id}/latest-heart-beat".format( diff --git a/nuon/api/runners/get_runner_settings.py b/nuon/api/runners/get_runner_settings.py index 4df3441d..75cb7f97 100644 --- a/nuon/api/runners/get_runner_settings.py +++ b/nuon/api/runners/get_runner_settings.py @@ -14,6 +14,7 @@ def _get_kwargs( runner_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/{runner_id}/settings".format( diff --git a/nuon/api/runners/get_terraform_current_state_data.py b/nuon/api/runners/get_terraform_current_state_data.py index 155e8ce4..83f0b818 100644 --- a/nuon/api/runners/get_terraform_current_state_data.py +++ b/nuon/api/runners/get_terraform_current_state_data.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-backend", @@ -75,6 +76,8 @@ def sync_detailed( ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """get current terraform + Returns the current terraform state. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -98,6 +101,8 @@ def sync( ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """get current terraform + Returns the current terraform state. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -117,6 +122,8 @@ async def asyncio_detailed( ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """get current terraform + Returns the current terraform state. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -138,6 +145,8 @@ async def asyncio( ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """get current terraform + Returns the current terraform state. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/runners/get_terraform_states.py b/nuon/api/runners/get_terraform_states.py index 2c3e3abe..24f6a797 100644 --- a/nuon/api/runners/get_terraform_states.py +++ b/nuon/api/runners/get_terraform_states.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceState]]: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspaceState] | None: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceState]]: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspaceState] | None: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/runners/get_terraform_states_v2.py b/nuon/api/runners/get_terraform_states_v2.py index 22cfe7aa..dc9b78d5 100644 --- a/nuon/api/runners/get_terraform_states_v2.py +++ b/nuon/api/runners/get_terraform_states_v2.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceState]]: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspaceState] | None: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceState]]: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspaceState] | None: """get terraform states + Returns terraform states for an install. + Args: workspace_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/runners/get_terraform_workspace.py b/nuon/api/runners/get_terraform_workspace.py index 74eb9ed4..7936bbe4 100644 --- a/nuon/api/runners/get_terraform_workspace.py +++ b/nuon/api/runners/get_terraform_workspace.py @@ -14,6 +14,7 @@ def _get_kwargs( workspace_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-workspaces/{workspace_id}".format( @@ -86,6 +87,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspace]]: """get terraform workspace + Return a terraform workspace by id. + Args: workspace_id (str): @@ -115,6 +118,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspace] | None: """get terraform workspace + Return a terraform workspace by id. + Args: workspace_id (str): @@ -139,6 +144,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspace]]: """get terraform workspace + Return a terraform workspace by id. + Args: workspace_id (str): @@ -166,6 +173,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspace] | None: """get terraform workspace + Return a terraform workspace by id. + Args: workspace_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_lock.py b/nuon/api/runners/get_terraform_workspace_lock.py index ad67c50f..2a33d96a 100644 --- a/nuon/api/runners/get_terraform_workspace_lock.py +++ b/nuon/api/runners/get_terraform_workspace_lock.py @@ -14,6 +14,7 @@ def _get_kwargs( workspace_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-workspaces/{workspace_id}/lock".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppTerraformWorkspaceLock | StderrErrResponse]: """get terraform workspace lock + Returns the lock status for a terraform workspace. + Args: workspace_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppTerraformWorkspaceLock | StderrErrResponse | None: """get terraform workspace lock + Returns the lock status for a terraform workspace. + Args: workspace_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppTerraformWorkspaceLock | StderrErrResponse]: """get terraform workspace lock + Returns the lock status for a terraform workspace. + Args: workspace_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppTerraformWorkspaceLock | StderrErrResponse | None: """get terraform workspace lock + Returns the lock status for a terraform workspace. + Args: workspace_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_state_by_id.py b/nuon/api/runners/get_terraform_workspace_state_by_id.py index 818e9eee..a8f220a7 100644 --- a/nuon/api/runners/get_terraform_workspace_state_by_id.py +++ b/nuon/api/runners/get_terraform_workspace_state_by_id.py @@ -15,6 +15,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/terraform-workspace/{workspace_id}/states/{state_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_state_by_idv2.py b/nuon/api/runners/get_terraform_workspace_state_by_idv2.py index 6c8bc374..6fc237c8 100644 --- a/nuon/api/runners/get_terraform_workspace_state_by_idv2.py +++ b/nuon/api/runners/get_terraform_workspace_state_by_idv2.py @@ -15,6 +15,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-workspaces/{workspace_id}/states/{state_id}".format( @@ -84,6 +85,8 @@ def sync_detailed( ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): @@ -116,6 +119,8 @@ def sync( ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): @@ -143,6 +148,8 @@ async def asyncio_detailed( ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): @@ -173,6 +180,8 @@ async def asyncio( ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """get terraform state by ID + Return a terraform state by id. + Args: workspace_id (str): state_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_state_json_resources.py b/nuon/api/runners/get_terraform_workspace_state_json_resources.py index 25f1e59e..59e6625e 100644 --- a/nuon/api/runners/get_terraform_workspace_state_json_resources.py +++ b/nuon/api/runners/get_terraform_workspace_state_json_resources.py @@ -6,9 +6,6 @@ from ... import errors from ...client import AuthenticatedClient, Client -from ...models.get_terraform_workspace_state_json_resources_response_200 import ( - GetTerraformWorkspaceStateJSONResourcesResponse200, -) from ...models.stderr_err_response import StderrErrResponse from ...types import Response @@ -17,6 +14,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/terraform-workspace/{workspace_id}/state-json/{state_id}/resources".format( @@ -30,10 +28,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: if response.status_code == 200: - response_200 = GetTerraformWorkspaceStateJSONResourcesResponse200.from_dict(response.json()) - + response_200 = response.json() return response_200 if response.status_code == 400: @@ -69,7 +66,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -83,9 +80,11 @@ def sync_detailed( state_id: str, *, client: AuthenticatedClient, -) -> Response[GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -95,7 +94,7 @@ def sync_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -115,9 +114,11 @@ def sync( state_id: str, *, client: AuthenticatedClient, -) -> GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -127,7 +128,7 @@ def sync( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse + Any | StderrErrResponse """ return sync_detailed( @@ -142,9 +143,11 @@ async def asyncio_detailed( state_id: str, *, client: AuthenticatedClient, -) -> Response[GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -154,7 +157,7 @@ async def asyncio_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -172,9 +175,11 @@ async def asyncio( state_id: str, *, client: AuthenticatedClient, -) -> GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -184,7 +189,7 @@ async def asyncio( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetTerraformWorkspaceStateJSONResourcesResponse200 | StderrErrResponse + Any | StderrErrResponse """ return ( diff --git a/nuon/api/runners/get_terraform_workspace_state_json_resources_v2.py b/nuon/api/runners/get_terraform_workspace_state_json_resources_v2.py index ec9aa990..7bf5b498 100644 --- a/nuon/api/runners/get_terraform_workspace_state_json_resources_v2.py +++ b/nuon/api/runners/get_terraform_workspace_state_json_resources_v2.py @@ -6,9 +6,6 @@ from ... import errors from ...client import AuthenticatedClient, Client -from ...models.get_terraform_workspace_state_json_resources_v2_response_200 import ( - GetTerraformWorkspaceStateJSONResourcesV2Response200, -) from ...models.stderr_err_response import StderrErrResponse from ...types import Response @@ -17,6 +14,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-workspace/{workspace_id}/state-json/{state_id}/resources".format( @@ -30,10 +28,9 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: if response.status_code == 200: - response_200 = GetTerraformWorkspaceStateJSONResourcesV2Response200.from_dict(response.json()) - + response_200 = response.json() return response_200 if response.status_code == 400: @@ -69,7 +66,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -83,9 +80,11 @@ def sync_detailed( state_id: str, *, client: AuthenticatedClient, -) -> Response[GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -95,7 +94,7 @@ def sync_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -115,9 +114,11 @@ def sync( state_id: str, *, client: AuthenticatedClient, -) -> GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -127,7 +128,7 @@ def sync( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse + Any | StderrErrResponse """ return sync_detailed( @@ -142,9 +143,11 @@ async def asyncio_detailed( state_id: str, *, client: AuthenticatedClient, -) -> Response[GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse]: +) -> Response[Any | StderrErrResponse]: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -154,7 +157,7 @@ async def asyncio_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse] + Response[Any | StderrErrResponse] """ kwargs = _get_kwargs( @@ -172,9 +175,11 @@ async def asyncio( state_id: str, *, client: AuthenticatedClient, -) -> GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse | None: +) -> Any | StderrErrResponse | None: r"""get terraform state resources. This output is similar to \"terraform state list\" + Returns terraform state resources in JSON format. + Args: workspace_id (str): state_id (str): @@ -184,7 +189,7 @@ async def asyncio( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - GetTerraformWorkspaceStateJSONResourcesV2Response200 | StderrErrResponse + Any | StderrErrResponse """ return ( diff --git a/nuon/api/runners/get_terraform_workspace_state_resources.py b/nuon/api/runners/get_terraform_workspace_state_resources.py index 53eb465d..1d8574b2 100644 --- a/nuon/api/runners/get_terraform_workspace_state_resources.py +++ b/nuon/api/runners/get_terraform_workspace_state_resources.py @@ -15,6 +15,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/terraform-workspace/{workspace_id}/states/{state_id}/resources".format( @@ -89,6 +90,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformStateResource]]: """get terraform state resources + Returns resources within a terraform state. + Args: workspace_id (str): state_id (str): @@ -121,6 +124,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformStateResource] | None: """get terraform state resources + Returns resources within a terraform state. + Args: workspace_id (str): state_id (str): @@ -148,6 +153,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformStateResource]]: """get terraform state resources + Returns resources within a terraform state. + Args: workspace_id (str): state_id (str): @@ -178,6 +185,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformStateResource] | None: """get terraform state resources + Returns resources within a terraform state. + Args: workspace_id (str): state_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_states_json.py b/nuon/api/runners/get_terraform_workspace_states_json.py index 8603bf9e..c44fdd36 100644 --- a/nuon/api/runners/get_terraform_workspace_states_json.py +++ b/nuon/api/runners/get_terraform_workspace_states_json.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceStateJSON]]: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspaceStateJSON] | None: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceStateJSON]]: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspaceStateJSON] | None: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/runners/get_terraform_workspace_states_json_by_id.py b/nuon/api/runners/get_terraform_workspace_states_json_by_id.py index 20acab17..b7a9a423 100644 --- a/nuon/api/runners/get_terraform_workspace_states_json_by_id.py +++ b/nuon/api/runners/get_terraform_workspace_states_json_by_id.py @@ -17,6 +17,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/runners/terraform-workspace/{workspace_id}/state-json/{state_id}".format( @@ -86,6 +87,8 @@ def sync_detailed( ) -> Response[GetTerraformWorkspaceStatesJSONByIDResponse200 | StderrErrResponse]: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): @@ -118,6 +121,8 @@ def sync( ) -> GetTerraformWorkspaceStatesJSONByIDResponse200 | StderrErrResponse | None: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): @@ -145,6 +150,8 @@ async def asyncio_detailed( ) -> Response[GetTerraformWorkspaceStatesJSONByIDResponse200 | StderrErrResponse]: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): @@ -175,6 +182,8 @@ async def asyncio( ) -> GetTerraformWorkspaceStatesJSONByIDResponse200 | StderrErrResponse | None: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_states_json_by_idv2.py b/nuon/api/runners/get_terraform_workspace_states_json_by_idv2.py index 2911f7fe..42b24377 100644 --- a/nuon/api/runners/get_terraform_workspace_states_json_by_idv2.py +++ b/nuon/api/runners/get_terraform_workspace_states_json_by_idv2.py @@ -17,6 +17,7 @@ def _get_kwargs( workspace_id: str, state_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-workspaces/{workspace_id}/state-json/{state_id}".format( @@ -86,6 +87,8 @@ def sync_detailed( ) -> Response[GetTerraformWorkspaceStatesJSONByIDV2Response200 | StderrErrResponse]: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): @@ -118,6 +121,8 @@ def sync( ) -> GetTerraformWorkspaceStatesJSONByIDV2Response200 | StderrErrResponse | None: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): @@ -145,6 +150,8 @@ async def asyncio_detailed( ) -> Response[GetTerraformWorkspaceStatesJSONByIDV2Response200 | StderrErrResponse]: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): @@ -175,6 +182,8 @@ async def asyncio( ) -> GetTerraformWorkspaceStatesJSONByIDV2Response200 | StderrErrResponse | None: r"""get terraform state json by id. This output is same as \"terraform show --json\" + Return a terraform state in JSON format by id. + Args: workspace_id (str): state_id (str): diff --git a/nuon/api/runners/get_terraform_workspace_states_jsonv2.py b/nuon/api/runners/get_terraform_workspace_states_jsonv2.py index 6fb5ecd9..61b5157a 100644 --- a/nuon/api/runners/get_terraform_workspace_states_jsonv2.py +++ b/nuon/api/runners/get_terraform_workspace_states_jsonv2.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -104,6 +105,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceStateJSON]]: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -142,6 +145,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspaceStateJSON] | None: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -175,6 +180,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspaceStateJSON]]: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. @@ -211,6 +218,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspaceStateJSON] | None: """get terraform states json + Returns terraform states in JSON format. + Args: workspace_id (str): offset (int | Unset): Default: 0. diff --git a/nuon/api/runners/get_terraform_workspaces.py b/nuon/api/runners/get_terraform_workspaces.py index 93461c31..05f3f525 100644 --- a/nuon/api/runners/get_terraform_workspaces.py +++ b/nuon/api/runners/get_terraform_workspaces.py @@ -11,6 +11,7 @@ def _get_kwargs() -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/terraform-workspaces", @@ -80,6 +81,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspace]]: """get terraform workspaces + Returns all terraform workspaces. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -103,6 +106,8 @@ def sync( ) -> StderrErrResponse | list[AppTerraformWorkspace] | None: """get terraform workspaces + Returns all terraform workspaces. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -122,6 +127,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppTerraformWorkspace]]: """get terraform workspaces + Returns all terraform workspaces. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. @@ -143,6 +150,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppTerraformWorkspace] | None: """get terraform workspaces + Returns all terraform workspaces. + Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout. diff --git a/nuon/api/runners/lock_terraform_workspace.py b/nuon/api/runners/lock_terraform_workspace.py index b0fa0b7f..7c14222b 100644 --- a/nuon/api/runners/lock_terraform_workspace.py +++ b/nuon/api/runners/lock_terraform_workspace.py @@ -7,7 +7,6 @@ from ... import errors from ...client import AuthenticatedClient, Client from ...models.app_terraform_workspace_state import AppTerraformWorkspaceState -from ...models.lock_terraform_workspace_body import LockTerraformWorkspaceBody from ...models.stderr_err_response import StderrErrResponse from ...types import UNSET, Response, Unset @@ -15,7 +14,7 @@ def _get_kwargs( workspace_id: str, *, - body: LockTerraformWorkspaceBody, + body: Any, job_id: str | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} @@ -34,7 +33,7 @@ def _get_kwargs( "params": params, } - _kwargs["json"] = body.to_dict() + _kwargs["json"] = body headers["Content-Type"] = "application/json" @@ -96,15 +95,17 @@ def sync_detailed( workspace_id: str, *, client: AuthenticatedClient, - body: LockTerraformWorkspaceBody, + body: Any, job_id: str | Unset = UNSET, ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """lock terraform state + Lock a terraform workspace to prevent concurrent modifications. + Args: workspace_id (str): job_id (str | Unset): - body (LockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,15 +132,17 @@ def sync( workspace_id: str, *, client: AuthenticatedClient, - body: LockTerraformWorkspaceBody, + body: Any, job_id: str | Unset = UNSET, ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """lock terraform state + Lock a terraform workspace to prevent concurrent modifications. + Args: workspace_id (str): job_id (str | Unset): - body (LockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -161,15 +164,17 @@ async def asyncio_detailed( workspace_id: str, *, client: AuthenticatedClient, - body: LockTerraformWorkspaceBody, + body: Any, job_id: str | Unset = UNSET, ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """lock terraform state + Lock a terraform workspace to prevent concurrent modifications. + Args: workspace_id (str): job_id (str | Unset): - body (LockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -194,15 +199,17 @@ async def asyncio( workspace_id: str, *, client: AuthenticatedClient, - body: LockTerraformWorkspaceBody, + body: Any, job_id: str | Unset = UNSET, ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """lock terraform state + Lock a terraform workspace to prevent concurrent modifications. + Args: workspace_id (str): job_id (str | Unset): - body (LockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/nuon/api/runners/unlock_terraform_workspace.py b/nuon/api/runners/unlock_terraform_workspace.py index a0ae26bc..8ba3bcc9 100644 --- a/nuon/api/runners/unlock_terraform_workspace.py +++ b/nuon/api/runners/unlock_terraform_workspace.py @@ -8,14 +8,13 @@ from ...client import AuthenticatedClient, Client from ...models.app_terraform_workspace_state import AppTerraformWorkspaceState from ...models.stderr_err_response import StderrErrResponse -from ...models.unlock_terraform_workspace_body import UnlockTerraformWorkspaceBody from ...types import Response def _get_kwargs( workspace_id: str, *, - body: UnlockTerraformWorkspaceBody, + body: Any, ) -> dict[str, Any]: headers: dict[str, Any] = {} @@ -26,7 +25,7 @@ def _get_kwargs( ), } - _kwargs["json"] = body.to_dict() + _kwargs["json"] = body headers["Content-Type"] = "application/json" @@ -88,13 +87,15 @@ def sync_detailed( workspace_id: str, *, client: AuthenticatedClient, - body: UnlockTerraformWorkspaceBody, + body: Any, ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """unlock terraform workspace + Unlock a terraform workspace. + Args: workspace_id (str): - body (UnlockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,13 +121,15 @@ def sync( workspace_id: str, *, client: AuthenticatedClient, - body: UnlockTerraformWorkspaceBody, + body: Any, ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """unlock terraform workspace + Unlock a terraform workspace. + Args: workspace_id (str): - body (UnlockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,13 +150,15 @@ async def asyncio_detailed( workspace_id: str, *, client: AuthenticatedClient, - body: UnlockTerraformWorkspaceBody, + body: Any, ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """unlock terraform workspace + Unlock a terraform workspace. + Args: workspace_id (str): - body (UnlockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -177,13 +182,15 @@ async def asyncio( workspace_id: str, *, client: AuthenticatedClient, - body: UnlockTerraformWorkspaceBody, + body: Any, ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """unlock terraform workspace + Unlock a terraform workspace. + Args: workspace_id (str): - body (UnlockTerraformWorkspaceBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/nuon/api/runners/update_runner_settings.py b/nuon/api/runners/update_runner_settings.py index 2434698b..4dfe4f03 100644 --- a/nuon/api/runners/update_runner_settings.py +++ b/nuon/api/runners/update_runner_settings.py @@ -92,6 +92,8 @@ def sync_detailed( ) -> Response[AppRunnerJobExecution | StderrErrResponse]: """update a runner's settings via its runner settings group + Update runner settings and configuration. + Args: runner_id (str): body (ServiceUpdateRunnerSettingsRequest): @@ -124,6 +126,8 @@ def sync( ) -> AppRunnerJobExecution | StderrErrResponse | None: """update a runner's settings via its runner settings group + Update runner settings and configuration. + Args: runner_id (str): body (ServiceUpdateRunnerSettingsRequest): @@ -151,6 +155,8 @@ async def asyncio_detailed( ) -> Response[AppRunnerJobExecution | StderrErrResponse]: """update a runner's settings via its runner settings group + Update runner settings and configuration. + Args: runner_id (str): body (ServiceUpdateRunnerSettingsRequest): @@ -181,6 +187,8 @@ async def asyncio( ) -> AppRunnerJobExecution | StderrErrResponse | None: """update a runner's settings via its runner settings group + Update runner settings and configuration. + Args: runner_id (str): body (ServiceUpdateRunnerSettingsRequest): diff --git a/nuon/api/runners/update_terraform_state.py b/nuon/api/runners/update_terraform_state.py index 9e13f592..6dee9403 100644 --- a/nuon/api/runners/update_terraform_state.py +++ b/nuon/api/runners/update_terraform_state.py @@ -7,13 +7,12 @@ from ...client import AuthenticatedClient, Client from ...models.app_terraform_workspace_state import AppTerraformWorkspaceState from ...models.stderr_err_response import StderrErrResponse -from ...models.update_terraform_state_body import UpdateTerraformStateBody from ...types import Response def _get_kwargs( *, - body: UpdateTerraformStateBody, + body: Any, ) -> dict[str, Any]: headers: dict[str, Any] = {} @@ -22,7 +21,7 @@ def _get_kwargs( "url": "/v1/terraform-backend", } - _kwargs["json"] = body.to_dict() + _kwargs["json"] = body headers["Content-Type"] = "application/json" @@ -83,12 +82,14 @@ def _build_response( def sync_detailed( *, client: AuthenticatedClient, - body: UpdateTerraformStateBody, + body: Any, ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """update terraform state + Update a terraform state. + Args: - body (UpdateTerraformStateBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -112,12 +113,14 @@ def sync_detailed( def sync( *, client: AuthenticatedClient, - body: UpdateTerraformStateBody, + body: Any, ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """update terraform state + Update a terraform state. + Args: - body (UpdateTerraformStateBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -136,12 +139,14 @@ def sync( async def asyncio_detailed( *, client: AuthenticatedClient, - body: UpdateTerraformStateBody, + body: Any, ) -> Response[AppTerraformWorkspaceState | StderrErrResponse]: """update terraform state + Update a terraform state. + Args: - body (UpdateTerraformStateBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -163,12 +168,14 @@ async def asyncio_detailed( async def asyncio( *, client: AuthenticatedClient, - body: UpdateTerraformStateBody, + body: Any, ) -> AppTerraformWorkspaceState | StderrErrResponse | None: """update terraform state + Update a terraform state. + Args: - body (UpdateTerraformStateBody): + body (Any): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/nuon/api/runnersrunner/get_runner_job_executions.py b/nuon/api/runnersrunner/get_runner_job_executions.py index 79399ed4..19ca456d 100644 --- a/nuon/api/runnersrunner/get_runner_job_executions.py +++ b/nuon/api/runnersrunner/get_runner_job_executions.py @@ -18,6 +18,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset diff --git a/nuon/api/vcs/check_vcs_connection_status.py b/nuon/api/vcs/check_vcs_connection_status.py new file mode 100644 index 00000000..d4198cf6 --- /dev/null +++ b/nuon/api/vcs/check_vcs_connection_status.py @@ -0,0 +1,281 @@ +from http import HTTPStatus +from typing import Any +from urllib.parse import quote + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.service_vcs_connection_status_response import ServiceVCSConnectionStatusResponse +from ...models.stderr_err_response import StderrErrResponse +from ...types import Response + + +def _get_kwargs( + connection_id: str, +) -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/v1/vcs/connections/{connection_id}/check-status".format( + connection_id=quote(str(connection_id), safe=""), + ), + } + + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ServiceVCSConnectionStatusResponse | StderrErrResponse | None: + if response.status_code == 200: + response_200 = ServiceVCSConnectionStatusResponse.from_dict(response.json()) + + return response_200 + + if response.status_code == 400: + response_400 = StderrErrResponse.from_dict(response.json()) + + return response_400 + + if response.status_code == 401: + response_401 = StderrErrResponse.from_dict(response.json()) + + return response_401 + + if response.status_code == 403: + response_403 = StderrErrResponse.from_dict(response.json()) + + return response_403 + + if response.status_code == 404: + response_404 = StderrErrResponse.from_dict(response.json()) + + return response_404 + + if response.status_code == 500: + response_500 = StderrErrResponse.from_dict(response.json()) + + return response_500 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ServiceVCSConnectionStatusResponse | StderrErrResponse]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + connection_id: str, + *, + client: AuthenticatedClient, +) -> Response[ServiceVCSConnectionStatusResponse | StderrErrResponse]: + """check the real-time status of a VCS connection + + Check the real-time status of a VCS (GitHub App) connection. + + This endpoint queries GitHub's API directly to fetch the current installation status, including: + - Active/Suspended state + - Account information + - Permissions + - Suspension details (if applicable) + + **Important**: This endpoint always fetches fresh data from GitHub (no caching) to ensure accurate + status information. + + ## Response Status Values + + - `active`: The GitHub App installation is active and functioning + - `suspended`: The installation has been suspended (see `suspended_at` and `suspended_by` for + details) + - `unknown`: Unable to determine status (GitHub API error - see `error` field) + + ## Use Cases + + - Troubleshooting connection issues + - Monitoring installation health + - Detecting suspended or revoked installations + - Validating permissions before operations + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[ServiceVCSConnectionStatusResponse | StderrErrResponse] + """ + + kwargs = _get_kwargs( + connection_id=connection_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + connection_id: str, + *, + client: AuthenticatedClient, +) -> ServiceVCSConnectionStatusResponse | StderrErrResponse | None: + """check the real-time status of a VCS connection + + Check the real-time status of a VCS (GitHub App) connection. + + This endpoint queries GitHub's API directly to fetch the current installation status, including: + - Active/Suspended state + - Account information + - Permissions + - Suspension details (if applicable) + + **Important**: This endpoint always fetches fresh data from GitHub (no caching) to ensure accurate + status information. + + ## Response Status Values + + - `active`: The GitHub App installation is active and functioning + - `suspended`: The installation has been suspended (see `suspended_at` and `suspended_by` for + details) + - `unknown`: Unable to determine status (GitHub API error - see `error` field) + + ## Use Cases + + - Troubleshooting connection issues + - Monitoring installation health + - Detecting suspended or revoked installations + - Validating permissions before operations + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + ServiceVCSConnectionStatusResponse | StderrErrResponse + """ + + return sync_detailed( + connection_id=connection_id, + client=client, + ).parsed + + +async def asyncio_detailed( + connection_id: str, + *, + client: AuthenticatedClient, +) -> Response[ServiceVCSConnectionStatusResponse | StderrErrResponse]: + """check the real-time status of a VCS connection + + Check the real-time status of a VCS (GitHub App) connection. + + This endpoint queries GitHub's API directly to fetch the current installation status, including: + - Active/Suspended state + - Account information + - Permissions + - Suspension details (if applicable) + + **Important**: This endpoint always fetches fresh data from GitHub (no caching) to ensure accurate + status information. + + ## Response Status Values + + - `active`: The GitHub App installation is active and functioning + - `suspended`: The installation has been suspended (see `suspended_at` and `suspended_by` for + details) + - `unknown`: Unable to determine status (GitHub API error - see `error` field) + + ## Use Cases + + - Troubleshooting connection issues + - Monitoring installation health + - Detecting suspended or revoked installations + - Validating permissions before operations + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[ServiceVCSConnectionStatusResponse | StderrErrResponse] + """ + + kwargs = _get_kwargs( + connection_id=connection_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + connection_id: str, + *, + client: AuthenticatedClient, +) -> ServiceVCSConnectionStatusResponse | StderrErrResponse | None: + """check the real-time status of a VCS connection + + Check the real-time status of a VCS (GitHub App) connection. + + This endpoint queries GitHub's API directly to fetch the current installation status, including: + - Active/Suspended state + - Account information + - Permissions + - Suspension details (if applicable) + + **Important**: This endpoint always fetches fresh data from GitHub (no caching) to ensure accurate + status information. + + ## Response Status Values + + - `active`: The GitHub App installation is active and functioning + - `suspended`: The installation has been suspended (see `suspended_at` and `suspended_by` for + details) + - `unknown`: Unable to determine status (GitHub API error - see `error` field) + + ## Use Cases + + - Troubleshooting connection issues + - Monitoring installation health + - Detecting suspended or revoked installations + - Validating permissions before operations + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + ServiceVCSConnectionStatusResponse | StderrErrResponse + """ + + return ( + await asyncio_detailed( + connection_id=connection_id, + client=client, + ) + ).parsed diff --git a/nuon/api/vcs/create_vcs_connection.py b/nuon/api/vcs/create_vcs_connection.py index 8825e508..c448092b 100644 --- a/nuon/api/vcs/create_vcs_connection.py +++ b/nuon/api/vcs/create_vcs_connection.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppVCSConnection | StderrErrResponse]: """create a vcs connection for Github + Create a VCS connection for version control integration. + Args: body (ServiceCreateConnectionRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppVCSConnection | StderrErrResponse | None: """create a vcs connection for Github + Create a VCS connection for version control integration. + Args: body (ServiceCreateConnectionRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppVCSConnection | StderrErrResponse]: """create a vcs connection for Github + Create a VCS connection for version control integration. + Args: body (ServiceCreateConnectionRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppVCSConnection | StderrErrResponse | None: """create a vcs connection for Github + Create a VCS connection for version control integration. + Args: body (ServiceCreateConnectionRequest): diff --git a/nuon/api/vcs/create_vcs_connection_callback.py b/nuon/api/vcs/create_vcs_connection_callback.py index f3fe1714..393b9eec 100644 --- a/nuon/api/vcs/create_vcs_connection_callback.py +++ b/nuon/api/vcs/create_vcs_connection_callback.py @@ -87,6 +87,8 @@ def sync_detailed( ) -> Response[AppVCSConnection | StderrErrResponse]: """public connection to create a vcs connection via a callback + Handle VCS connection callback for OAuth flow. + Args: body (ServiceCreateConnectionCallbackRequest): @@ -116,6 +118,8 @@ def sync( ) -> AppVCSConnection | StderrErrResponse | None: """public connection to create a vcs connection via a callback + Handle VCS connection callback for OAuth flow. + Args: body (ServiceCreateConnectionCallbackRequest): @@ -140,6 +144,8 @@ async def asyncio_detailed( ) -> Response[AppVCSConnection | StderrErrResponse]: """public connection to create a vcs connection via a callback + Handle VCS connection callback for OAuth flow. + Args: body (ServiceCreateConnectionCallbackRequest): @@ -167,6 +173,8 @@ async def asyncio( ) -> AppVCSConnection | StderrErrResponse | None: """public connection to create a vcs connection via a callback + Handle VCS connection callback for OAuth flow. + Args: body (ServiceCreateConnectionCallbackRequest): diff --git a/nuon/api/vcs/delete_vcs_connection.py b/nuon/api/vcs/delete_vcs_connection.py index 0dbd11c5..6bca3187 100644 --- a/nuon/api/vcs/delete_vcs_connection.py +++ b/nuon/api/vcs/delete_vcs_connection.py @@ -13,6 +13,7 @@ def _get_kwargs( connection_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "delete", "url": "/v1/vcs/connections/{connection_id}".format( @@ -79,6 +80,8 @@ def sync_detailed( ) -> Response[Any | StderrErrResponse]: """Deletes a VCS connection + Delete a VCS connection. + Args: connection_id (str): @@ -108,6 +111,8 @@ def sync( ) -> Any | StderrErrResponse | None: """Deletes a VCS connection + Delete a VCS connection. + Args: connection_id (str): @@ -132,6 +137,8 @@ async def asyncio_detailed( ) -> Response[Any | StderrErrResponse]: """Deletes a VCS connection + Delete a VCS connection. + Args: connection_id (str): @@ -159,6 +166,8 @@ async def asyncio( ) -> Any | StderrErrResponse | None: """Deletes a VCS connection + Delete a VCS connection. + Args: connection_id (str): diff --git a/nuon/api/vcs/get_org_vcs_connections.py b/nuon/api/vcs/get_org_vcs_connections.py index bcce403d..34f5b052 100644 --- a/nuon/api/vcs/get_org_vcs_connections.py +++ b/nuon/api/vcs/get_org_vcs_connections.py @@ -16,6 +16,7 @@ def _get_kwargs( limit: int | Unset = 10, page: int | Unset = 0, ) -> dict[str, Any]: + params: dict[str, Any] = {} params["offset"] = offset @@ -99,6 +100,8 @@ def sync_detailed( ) -> Response[StderrErrResponse | list[AppVCSConnection]]: """get vcs connection for an org + Returns all VCS connections for the provided organization. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. @@ -134,6 +137,8 @@ def sync( ) -> StderrErrResponse | list[AppVCSConnection] | None: """get vcs connection for an org + Returns all VCS connections for the provided organization. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. @@ -164,6 +169,8 @@ async def asyncio_detailed( ) -> Response[StderrErrResponse | list[AppVCSConnection]]: """get vcs connection for an org + Returns all VCS connections for the provided organization. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. @@ -197,6 +204,8 @@ async def asyncio( ) -> StderrErrResponse | list[AppVCSConnection] | None: """get vcs connection for an org + Returns all VCS connections for the provided organization. + Args: offset (int | Unset): Default: 0. limit (int | Unset): Default: 10. diff --git a/nuon/api/vcs/get_vcs_connection.py b/nuon/api/vcs/get_vcs_connection.py index aa112afb..2f4be92a 100644 --- a/nuon/api/vcs/get_vcs_connection.py +++ b/nuon/api/vcs/get_vcs_connection.py @@ -14,6 +14,7 @@ def _get_kwargs( connection_id: str, ) -> dict[str, Any]: + _kwargs: dict[str, Any] = { "method": "get", "url": "/v1/vcs/connections/{connection_id}".format( @@ -81,6 +82,8 @@ def sync_detailed( ) -> Response[AppVCSConnection | StderrErrResponse]: """returns a vcs connection for an org + Return a VCS connection by id. + Args: connection_id (str): @@ -110,6 +113,8 @@ def sync( ) -> AppVCSConnection | StderrErrResponse | None: """returns a vcs connection for an org + Return a VCS connection by id. + Args: connection_id (str): @@ -134,6 +139,8 @@ async def asyncio_detailed( ) -> Response[AppVCSConnection | StderrErrResponse]: """returns a vcs connection for an org + Return a VCS connection by id. + Args: connection_id (str): @@ -161,6 +168,8 @@ async def asyncio( ) -> AppVCSConnection | StderrErrResponse | None: """returns a vcs connection for an org + Return a VCS connection by id. + Args: connection_id (str): diff --git a/nuon/api/vcs/get_vcs_connections_connection_id_repos.py b/nuon/api/vcs/get_vcs_connections_connection_id_repos.py new file mode 100644 index 00000000..1fd3345c --- /dev/null +++ b/nuon/api/vcs/get_vcs_connections_connection_id_repos.py @@ -0,0 +1,189 @@ +from http import HTTPStatus +from typing import Any +from urllib.parse import quote + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.service_vcs_connection_repos_response import ServiceVCSConnectionReposResponse +from ...models.stderr_err_response import StderrErrResponse +from ...types import Response + + +def _get_kwargs( + connection_id: str, +) -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/vcs/connections/{connection_id}/repos".format( + connection_id=quote(str(connection_id), safe=""), + ), + } + + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ServiceVCSConnectionReposResponse | StderrErrResponse | None: + if response.status_code == 200: + response_200 = ServiceVCSConnectionReposResponse.from_dict(response.json()) + + return response_200 + + if response.status_code == 400: + response_400 = StderrErrResponse.from_dict(response.json()) + + return response_400 + + if response.status_code == 401: + response_401 = StderrErrResponse.from_dict(response.json()) + + return response_401 + + if response.status_code == 403: + response_403 = StderrErrResponse.from_dict(response.json()) + + return response_403 + + if response.status_code == 404: + response_404 = StderrErrResponse.from_dict(response.json()) + + return response_404 + + if response.status_code == 500: + response_500 = StderrErrResponse.from_dict(response.json()) + + return response_500 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ServiceVCSConnectionReposResponse | StderrErrResponse]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + connection_id: str, + *, + client: AuthenticatedClient, +) -> Response[ServiceVCSConnectionReposResponse | StderrErrResponse]: + """List VCS connection repositories + + Lists all repositories accessible by a GitHub App installation (VCS connection) + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[ServiceVCSConnectionReposResponse | StderrErrResponse] + """ + + kwargs = _get_kwargs( + connection_id=connection_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + connection_id: str, + *, + client: AuthenticatedClient, +) -> ServiceVCSConnectionReposResponse | StderrErrResponse | None: + """List VCS connection repositories + + Lists all repositories accessible by a GitHub App installation (VCS connection) + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + ServiceVCSConnectionReposResponse | StderrErrResponse + """ + + return sync_detailed( + connection_id=connection_id, + client=client, + ).parsed + + +async def asyncio_detailed( + connection_id: str, + *, + client: AuthenticatedClient, +) -> Response[ServiceVCSConnectionReposResponse | StderrErrResponse]: + """List VCS connection repositories + + Lists all repositories accessible by a GitHub App installation (VCS connection) + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[ServiceVCSConnectionReposResponse | StderrErrResponse] + """ + + kwargs = _get_kwargs( + connection_id=connection_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + connection_id: str, + *, + client: AuthenticatedClient, +) -> ServiceVCSConnectionReposResponse | StderrErrResponse | None: + """List VCS connection repositories + + Lists all repositories accessible by a GitHub App installation (VCS connection) + + Args: + connection_id (str): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + ServiceVCSConnectionReposResponse | StderrErrResponse + """ + + return ( + await asyncio_detailed( + connection_id=connection_id, + client=client, + ) + ).parsed diff --git a/nuon/models/__init__.py b/nuon/models/__init__.py index 6ee576e4..947130e1 100644 --- a/nuon/models/__init__.py +++ b/nuon/models/__init__.py @@ -23,6 +23,7 @@ from .app_app_links import AppAppLinks from .app_app_permissions_config import AppAppPermissionsConfig from .app_app_policies_config import AppAppPoliciesConfig +from .app_app_policy_config import AppAppPolicyConfig from .app_app_runner_config import AppAppRunnerConfig from .app_app_runner_config_env_vars import AppAppRunnerConfigEnvVars from .app_app_runner_config_helm_driver_type import AppAppRunnerConfigHelmDriverType @@ -104,6 +105,7 @@ from .app_job_component_config_env_vars import AppJobComponentConfigEnvVars from .app_json_map import AppJSONMap from .app_kubernetes_manifest_component_config import AppKubernetesManifestComponentConfig +from .app_kustomize_config import AppKustomizeConfig from .app_latest_runner_heart_beat import AppLatestRunnerHeartBeat from .app_log_stream import AppLogStream from .app_log_stream_attrs import AppLogStreamAttrs @@ -112,6 +114,7 @@ from .app_oci_artifact_annotations import AppOCIArtifactAnnotations from .app_operation_status import AppOperationStatus from .app_org import AppOrg +from .app_org_feature_info import AppOrgFeatureInfo from .app_org_invite import AppOrgInvite from .app_org_invite_status import AppOrgInviteStatus from .app_org_links import AppOrgLinks @@ -122,6 +125,7 @@ from .app_policy import AppPolicy from .app_policy_name import AppPolicyName from .app_policy_permissions import AppPolicyPermissions +from .app_provider_type import AppProviderType from .app_public_git_vcs_config import AppPublicGitVCSConfig from .app_role import AppRole from .app_role_type import AppRoleType @@ -156,7 +160,6 @@ from .app_sandbox_run_type import AppSandboxRunType from .app_stack_type import AppStackType from .app_status import AppStatus -from .app_step_error_behavior import AppStepErrorBehavior from .app_terraform_lock import AppTerraformLock from .app_terraform_module_component_config import AppTerraformModuleComponentConfig from .app_terraform_module_component_config_env_vars import AppTerraformModuleComponentConfigEnvVars @@ -187,6 +190,7 @@ from .app_workflow_step_policy_validation import AppWorkflowStepPolicyValidation from .app_workflow_step_response_type import AppWorkflowStepResponseType from .app_workflow_type import AppWorkflowType +from .config_app_policy_engine import ConfigAppPolicyEngine from .config_app_policy_type import ConfigAppPolicyType from .config_helm_repo_config import ConfigHelmRepoConfig from .configs_oci_registry_auth import ConfigsOCIRegistryAuth @@ -197,32 +201,26 @@ from .credentials_static_credentials import CredentialsStaticCredentials from .generics_null_time import GenericsNullTime from .get_app_config_template_type import GetAppConfigTemplateType -from .get_config_schema_response_200 import GetConfigSchemaResponse200 +from .get_current_org_features_response_200 import GetCurrentOrgFeaturesResponse200 from .get_install_component_outputs_response_200 import GetInstallComponentOutputsResponse200 -from .get_terraform_workspace_state_json_resources_response_200 import ( - GetTerraformWorkspaceStateJSONResourcesResponse200, -) -from .get_terraform_workspace_state_json_resources_v2_response_200 import ( - GetTerraformWorkspaceStateJSONResourcesV2Response200, -) from .get_terraform_workspace_states_json_by_id_response_200 import GetTerraformWorkspaceStatesJSONByIDResponse200 from .get_terraform_workspace_states_json_by_idv2_response_200 import GetTerraformWorkspaceStatesJSONByIDV2Response200 -from .get_workflow_step_approval_contents_response_200 import GetWorkflowStepApprovalContentsResponse200 -from .github_com_powertoolsdev_mono_pkg_aws_credentials_config import GithubComPowertoolsdevMonoPkgAwsCredentialsConfig -from .github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, -) -from .github_com_powertoolsdev_mono_pkg_types_state_state import GithubComPowertoolsdevMonoPkgTypesStateState -from .github_com_powertoolsdev_mono_pkg_types_state_state_components import ( - GithubComPowertoolsdevMonoPkgTypesStateStateComponents, -) +from .github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig +from .github_com_nuonco_nuon_pkg_azure_credentials_config import GithubComNuoncoNuonPkgAzureCredentialsConfig +from .github_com_nuonco_nuon_pkg_types_state_state import GithubComNuoncoNuonPkgTypesStateState +from .github_com_nuonco_nuon_pkg_types_state_state_components import GithubComNuoncoNuonPkgTypesStateStateComponents +from .github_match import GithubMatch +from .github_plan import GithubPlan +from .github_text_match import GithubTextMatch +from .github_timestamp import GithubTimestamp +from .github_user import GithubUser +from .github_user_permissions import GithubUserPermissions from .helpers_create_install_config_params import HelpersCreateInstallConfigParams from .helpers_install_metadata import HelpersInstallMetadata from .iam_static_credentials import IamStaticCredentials from .iam_two_step_config import IamTwoStepConfig from .kube_cluster_info import KubeClusterInfo from .kube_cluster_info_env_vars import KubeClusterInfoEnvVars -from .lock_terraform_workspace_body import LockTerraformWorkspaceBody from .outputs_secret_sync_output import OutputsSecretSyncOutput from .permissions_permission import PermissionsPermission from .permissions_set import PermissionsSet @@ -241,16 +239,21 @@ from .plantypes_deploy_plan import PlantypesDeployPlan from .plantypes_docker_build_plan import PlantypesDockerBuildPlan from .plantypes_docker_build_plan_build_args import PlantypesDockerBuildPlanBuildArgs +from .plantypes_fetch_image_metadata_plan import PlantypesFetchImageMetadataPlan from .plantypes_git_source import PlantypesGitSource from .plantypes_helm_build_plan import PlantypesHelmBuildPlan from .plantypes_helm_build_plan_labels import PlantypesHelmBuildPlanLabels from .plantypes_helm_deploy_plan import PlantypesHelmDeployPlan from .plantypes_helm_sandbox_mode import PlantypesHelmSandboxMode from .plantypes_helm_value import PlantypesHelmValue +from .plantypes_kubernetes_manifest_build_plan import PlantypesKubernetesManifestBuildPlan +from .plantypes_kubernetes_manifest_build_plan_labels import PlantypesKubernetesManifestBuildPlanLabels from .plantypes_kubernetes_manifest_deploy_plan import PlantypesKubernetesManifestDeployPlan from .plantypes_kubernetes_sandbox_mode import PlantypesKubernetesSandboxMode from .plantypes_kubernetes_secret_sync import PlantypesKubernetesSecretSync +from .plantypes_kustomize_build_config import PlantypesKustomizeBuildConfig from .plantypes_noop_deploy_plan import PlantypesNoopDeployPlan +from .plantypes_oci_artifact_reference import PlantypesOCIArtifactReference from .plantypes_sandbox_mode import PlantypesSandboxMode from .plantypes_sandbox_mode_outputs import PlantypesSandboxModeOutputs from .plantypes_sandbox_run_plan import PlantypesSandboxRunPlan @@ -280,6 +283,8 @@ from .service_app_input_request import ServiceAppInputRequest from .service_app_policy_config import ServiceAppPolicyConfig from .service_app_secret_config import ServiceAppSecretConfig +from .service_auth_me_identity import ServiceAuthMeIdentity +from .service_auth_me_response import ServiceAuthMeResponse from .service_aws_ecr_image_config_request import ServiceAwsECRImageConfigRequest from .service_build_all_components_request import ServiceBuildAllComponentsRequest from .service_cancel_runner_job_request import ServiceCancelRunnerJobRequest @@ -369,11 +374,14 @@ from .service_deprovision_install_request import ServiceDeprovisionInstallRequest from .service_deprovision_install_sandbox_request import ServiceDeprovisionInstallSandboxRequest from .service_force_shutdown_request import ServiceForceShutdownRequest +from .service_forget_install_component_request import ServiceForgetInstallComponentRequest from .service_forget_install_request import ServiceForgetInstallRequest from .service_graceful_shutdown_request import ServiceGracefulShutdownRequest from .service_helm_repo_config_request import ServiceHelmRepoConfigRequest from .service_install_phone_home_request import ServiceInstallPhoneHomeRequest +from .service_kustomize_config_request import ServiceKustomizeConfigRequest from .service_latest_runner_heart_beats import ServiceLatestRunnerHeartBeats +from .service_mng_fetch_token_request import ServiceMngFetchTokenRequest from .service_mng_shut_down_request import ServiceMngShutDownRequest from .service_mng_update_request import ServiceMngUpdateRequest from .service_mng_vm_shut_down_request import ServiceMngVMShutDownRequest @@ -404,10 +412,18 @@ from .service_update_install_inputs_request import ServiceUpdateInstallInputsRequest from .service_update_install_inputs_request_inputs import ServiceUpdateInstallInputsRequestInputs from .service_update_install_request import ServiceUpdateInstallRequest +from .service_update_org_features_request import ServiceUpdateOrgFeaturesRequest +from .service_update_org_features_request_features import ServiceUpdateOrgFeaturesRequestFeatures from .service_update_org_request import ServiceUpdateOrgRequest from .service_update_runner_settings_request import ServiceUpdateRunnerSettingsRequest from .service_update_user_journey_step_request import ServiceUpdateUserJourneyStepRequest +from .service_update_user_journey_step_request_metadata import ServiceUpdateUserJourneyStepRequestMetadata from .service_update_workflow_request import ServiceUpdateWorkflowRequest +from .service_vcs_connection_account import ServiceVCSConnectionAccount +from .service_vcs_connection_repo import ServiceVCSConnectionRepo +from .service_vcs_connection_repos_response import ServiceVCSConnectionReposResponse +from .service_vcs_connection_status_response import ServiceVCSConnectionStatusResponse +from .service_vcs_connection_status_response_permissions import ServiceVCSConnectionStatusResponsePermissions from .service_waitlist_request import ServiceWaitlistRequest from .state_action_workflow_state import StateActionWorkflowState from .state_action_workflow_state_outputs import StateActionWorkflowStateOutputs @@ -432,8 +448,6 @@ from .state_secrets_state import StateSecretsState from .stderr_err_response import StderrErrResponse from .types_string_bool_map import TypesStringBoolMap -from .unlock_terraform_workspace_body import UnlockTerraformWorkspaceBody -from .update_terraform_state_body import UpdateTerraformStateBody __all__ = ( "AppAccount", @@ -459,6 +473,7 @@ "AppAppLinks", "AppAppPermissionsConfig", "AppAppPoliciesConfig", + "AppAppPolicyConfig", "AppAppRunnerConfig", "AppAppRunnerConfigEnvVars", "AppAppRunnerConfigHelmDriverType", @@ -540,6 +555,7 @@ "AppJobComponentConfigEnvVars", "AppJSONMap", "AppKubernetesManifestComponentConfig", + "AppKustomizeConfig", "AppLatestRunnerHeartBeat", "AppLogStream", "AppLogStreamAttrs", @@ -548,6 +564,7 @@ "AppOCIArtifactAnnotations", "AppOperationStatus", "AppOrg", + "AppOrgFeatureInfo", "AppOrgInvite", "AppOrgInviteStatus", "AppOrgLinks", @@ -558,6 +575,7 @@ "AppPolicy", "AppPolicyName", "AppPolicyPermissions", + "AppProviderType", "AppPublicGitVCSConfig", "AppRole", "AppRoleType", @@ -590,7 +608,6 @@ "AppSandboxRunType", "AppStackType", "AppStatus", - "AppStepErrorBehavior", "AppTerraformLock", "AppTerraformModuleComponentConfig", "AppTerraformModuleComponentConfigEnvVars", @@ -621,6 +638,7 @@ "AppWorkflowStepPolicyValidation", "AppWorkflowStepResponseType", "AppWorkflowType", + "ConfigAppPolicyEngine", "ConfigAppPolicyType", "ConfigHelmRepoConfig", "ConfigsOCIRegistryAuth", @@ -631,24 +649,26 @@ "CredentialsStaticCredentials", "GenericsNullTime", "GetAppConfigTemplateType", - "GetConfigSchemaResponse200", + "GetCurrentOrgFeaturesResponse200", "GetInstallComponentOutputsResponse200", - "GetTerraformWorkspaceStateJSONResourcesResponse200", - "GetTerraformWorkspaceStateJSONResourcesV2Response200", "GetTerraformWorkspaceStatesJSONByIDResponse200", "GetTerraformWorkspaceStatesJSONByIDV2Response200", - "GetWorkflowStepApprovalContentsResponse200", - "GithubComPowertoolsdevMonoPkgAwsCredentialsConfig", - "GithubComPowertoolsdevMonoPkgAzureCredentialsConfig", - "GithubComPowertoolsdevMonoPkgTypesStateState", - "GithubComPowertoolsdevMonoPkgTypesStateStateComponents", + "GithubComNuoncoNuonPkgAwsCredentialsConfig", + "GithubComNuoncoNuonPkgAzureCredentialsConfig", + "GithubComNuoncoNuonPkgTypesStateState", + "GithubComNuoncoNuonPkgTypesStateStateComponents", + "GithubMatch", + "GithubPlan", + "GithubTextMatch", + "GithubTimestamp", + "GithubUser", + "GithubUserPermissions", "HelpersCreateInstallConfigParams", "HelpersInstallMetadata", "IamStaticCredentials", "IamTwoStepConfig", "KubeClusterInfo", "KubeClusterInfoEnvVars", - "LockTerraformWorkspaceBody", "OutputsSecretSyncOutput", "PermissionsPermission", "PermissionsSet", @@ -665,16 +685,21 @@ "PlantypesDeployPlan", "PlantypesDockerBuildPlan", "PlantypesDockerBuildPlanBuildArgs", + "PlantypesFetchImageMetadataPlan", "PlantypesGitSource", "PlantypesHelmBuildPlan", "PlantypesHelmBuildPlanLabels", "PlantypesHelmDeployPlan", "PlantypesHelmSandboxMode", "PlantypesHelmValue", + "PlantypesKubernetesManifestBuildPlan", + "PlantypesKubernetesManifestBuildPlanLabels", "PlantypesKubernetesManifestDeployPlan", "PlantypesKubernetesSandboxMode", "PlantypesKubernetesSecretSync", + "PlantypesKustomizeBuildConfig", "PlantypesNoopDeployPlan", + "PlantypesOCIArtifactReference", "PlantypesSandboxMode", "PlantypesSandboxModeOutputs", "PlantypesSandboxRunPlan", @@ -704,6 +729,8 @@ "ServiceAppInputRequest", "ServiceAppPolicyConfig", "ServiceAppSecretConfig", + "ServiceAuthMeIdentity", + "ServiceAuthMeResponse", "ServiceAwsECRImageConfigRequest", "ServiceBuildAllComponentsRequest", "ServiceCancelRunnerJobRequest", @@ -779,11 +806,14 @@ "ServiceDeprovisionInstallRequest", "ServiceDeprovisionInstallSandboxRequest", "ServiceForceShutdownRequest", + "ServiceForgetInstallComponentRequest", "ServiceForgetInstallRequest", "ServiceGracefulShutdownRequest", "ServiceHelmRepoConfigRequest", "ServiceInstallPhoneHomeRequest", + "ServiceKustomizeConfigRequest", "ServiceLatestRunnerHeartBeats", + "ServiceMngFetchTokenRequest", "ServiceMngShutDownRequest", "ServiceMngUpdateRequest", "ServiceMngVMShutDownRequest", @@ -814,10 +844,18 @@ "ServiceUpdateInstallInputsRequest", "ServiceUpdateInstallInputsRequestInputs", "ServiceUpdateInstallRequest", + "ServiceUpdateOrgFeaturesRequest", + "ServiceUpdateOrgFeaturesRequestFeatures", "ServiceUpdateOrgRequest", "ServiceUpdateRunnerSettingsRequest", "ServiceUpdateUserJourneyStepRequest", + "ServiceUpdateUserJourneyStepRequestMetadata", "ServiceUpdateWorkflowRequest", + "ServiceVCSConnectionAccount", + "ServiceVCSConnectionRepo", + "ServiceVCSConnectionReposResponse", + "ServiceVCSConnectionStatusResponse", + "ServiceVCSConnectionStatusResponsePermissions", "ServiceWaitlistRequest", "StateActionsState", "StateActionsStateWorkflows", @@ -842,6 +880,4 @@ "StateSecretsState", "StderrErrResponse", "TypesStringBoolMap", - "UnlockTerraformWorkspaceBody", - "UpdateTerraformStateBody", ) diff --git a/nuon/models/app_account_type.py b/nuon/models/app_account_type.py index f9865241..49e8f1df 100644 --- a/nuon/models/app_account_type.py +++ b/nuon/models/app_account_type.py @@ -2,6 +2,7 @@ class AppAccountType(str, Enum): + AUTH = "auth" AUTH0 = "auth0" CANARY = "canary" INTEGRATION = "integration" diff --git a/nuon/models/app_action_workflow_step_config_env_vars.py b/nuon/models/app_action_workflow_step_config_env_vars.py index 07f1acfd..dea959cc 100644 --- a/nuon/models/app_action_workflow_step_config_env_vars.py +++ b/nuon/models/app_action_workflow_step_config_env_vars.py @@ -16,6 +16,7 @@ class AppActionWorkflowStepConfigEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_app_links.py b/nuon/models/app_app_links.py index 6d08bc6d..cf80be8e 100644 --- a/nuon/models/app_app_links.py +++ b/nuon/models/app_app_links.py @@ -16,6 +16,7 @@ class AppAppLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_app_policies_config.py b/nuon/models/app_app_policies_config.py index 11b7f360..afca81db 100644 --- a/nuon/models/app_app_policies_config.py +++ b/nuon/models/app_app_policies_config.py @@ -1,13 +1,17 @@ from __future__ import annotations from collections.abc import Mapping -from typing import Any, TypeVar +from typing import TYPE_CHECKING, Any, TypeVar from attrs import define as _attrs_define from attrs import field as _attrs_field from ..types import UNSET, Unset +if TYPE_CHECKING: + from ..models.app_app_policy_config import AppAppPolicyConfig + + T = TypeVar("T", bound="AppAppPoliciesConfig") @@ -21,6 +25,7 @@ class AppAppPoliciesConfig: created_by_id (str | Unset): id (str | Unset): org_id (str | Unset): + policies (list[AppAppPolicyConfig] | Unset): updated_at (str | Unset): """ @@ -30,6 +35,7 @@ class AppAppPoliciesConfig: created_by_id: str | Unset = UNSET id: str | Unset = UNSET org_id: str | Unset = UNSET + policies: list[AppAppPolicyConfig] | Unset = UNSET updated_at: str | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -46,6 +52,13 @@ def to_dict(self) -> dict[str, Any]: org_id = self.org_id + policies: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.policies, Unset): + policies = [] + for policies_item_data in self.policies: + policies_item = policies_item_data.to_dict() + policies.append(policies_item) + updated_at = self.updated_at field_dict: dict[str, Any] = {} @@ -63,6 +76,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["id"] = id if org_id is not UNSET: field_dict["org_id"] = org_id + if policies is not UNSET: + field_dict["policies"] = policies if updated_at is not UNSET: field_dict["updated_at"] = updated_at @@ -70,6 +85,8 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.app_app_policy_config import AppAppPolicyConfig + d = dict(src_dict) app_config_id = d.pop("app_config_id", UNSET) @@ -83,6 +100,15 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: org_id = d.pop("org_id", UNSET) + _policies = d.pop("policies", UNSET) + policies: list[AppAppPolicyConfig] | Unset = UNSET + if _policies is not UNSET: + policies = [] + for policies_item_data in _policies: + policies_item = AppAppPolicyConfig.from_dict(policies_item_data) + + policies.append(policies_item) + updated_at = d.pop("updated_at", UNSET) app_app_policies_config = cls( @@ -92,6 +118,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: created_by_id=created_by_id, id=id, org_id=org_id, + policies=policies, updated_at=updated_at, ) diff --git a/nuon/models/app_app_policy_config.py b/nuon/models/app_app_policy_config.py new file mode 100644 index 00000000..d84a5b93 --- /dev/null +++ b/nuon/models/app_app_policy_config.py @@ -0,0 +1,178 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..models.config_app_policy_engine import ConfigAppPolicyEngine +from ..models.config_app_policy_type import ConfigAppPolicyType +from ..types import UNSET, Unset + +T = TypeVar("T", bound="AppAppPolicyConfig") + + +@_attrs_define +class AppAppPolicyConfig: + """ + Attributes: + app_config_id (str | Unset): + app_id (str | Unset): + app_policies_config (str | Unset): + components (list[str] | Unset): + contents (str | Unset): + created_at (str | Unset): + created_by_id (str | Unset): + engine (ConfigAppPolicyEngine | Unset): + id (str | Unset): + org_id (str | Unset): + type_ (ConfigAppPolicyType | Unset): + updated_at (str | Unset): + """ + + app_config_id: str | Unset = UNSET + app_id: str | Unset = UNSET + app_policies_config: str | Unset = UNSET + components: list[str] | Unset = UNSET + contents: str | Unset = UNSET + created_at: str | Unset = UNSET + created_by_id: str | Unset = UNSET + engine: ConfigAppPolicyEngine | Unset = UNSET + id: str | Unset = UNSET + org_id: str | Unset = UNSET + type_: ConfigAppPolicyType | Unset = UNSET + updated_at: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + app_config_id = self.app_config_id + + app_id = self.app_id + + app_policies_config = self.app_policies_config + + components: list[str] | Unset = UNSET + if not isinstance(self.components, Unset): + components = self.components + + contents = self.contents + + created_at = self.created_at + + created_by_id = self.created_by_id + + engine: str | Unset = UNSET + if not isinstance(self.engine, Unset): + engine = self.engine.value + + id = self.id + + org_id = self.org_id + + type_: str | Unset = UNSET + if not isinstance(self.type_, Unset): + type_ = self.type_.value + + updated_at = self.updated_at + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if app_config_id is not UNSET: + field_dict["app_config_id"] = app_config_id + if app_id is not UNSET: + field_dict["app_id"] = app_id + if app_policies_config is not UNSET: + field_dict["app_policies_config"] = app_policies_config + if components is not UNSET: + field_dict["components"] = components + if contents is not UNSET: + field_dict["contents"] = contents + if created_at is not UNSET: + field_dict["created_at"] = created_at + if created_by_id is not UNSET: + field_dict["created_by_id"] = created_by_id + if engine is not UNSET: + field_dict["engine"] = engine + if id is not UNSET: + field_dict["id"] = id + if org_id is not UNSET: + field_dict["org_id"] = org_id + if type_ is not UNSET: + field_dict["type"] = type_ + if updated_at is not UNSET: + field_dict["updated_at"] = updated_at + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + app_config_id = d.pop("app_config_id", UNSET) + + app_id = d.pop("app_id", UNSET) + + app_policies_config = d.pop("app_policies_config", UNSET) + + components = cast(list[str], d.pop("components", UNSET)) + + contents = d.pop("contents", UNSET) + + created_at = d.pop("created_at", UNSET) + + created_by_id = d.pop("created_by_id", UNSET) + + _engine = d.pop("engine", UNSET) + engine: ConfigAppPolicyEngine | Unset + if isinstance(_engine, Unset): + engine = UNSET + else: + engine = ConfigAppPolicyEngine(_engine) + + id = d.pop("id", UNSET) + + org_id = d.pop("org_id", UNSET) + + _type_ = d.pop("type", UNSET) + type_: ConfigAppPolicyType | Unset + if isinstance(_type_, Unset): + type_ = UNSET + else: + type_ = ConfigAppPolicyType(_type_) + + updated_at = d.pop("updated_at", UNSET) + + app_app_policy_config = cls( + app_config_id=app_config_id, + app_id=app_id, + app_policies_config=app_policies_config, + components=components, + contents=contents, + created_at=created_at, + created_by_id=created_by_id, + engine=engine, + id=id, + org_id=org_id, + type_=type_, + updated_at=updated_at, + ) + + app_app_policy_config.additional_properties = d + return app_app_policy_config + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/app_app_runner_config_env_vars.py b/nuon/models/app_app_runner_config_env_vars.py index f11b17ca..37756a74 100644 --- a/nuon/models/app_app_runner_config_env_vars.py +++ b/nuon/models/app_app_runner_config_env_vars.py @@ -16,6 +16,7 @@ class AppAppRunnerConfigEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_app_sandbox_config_env_vars.py b/nuon/models/app_app_sandbox_config_env_vars.py index 92f021b0..655ac75f 100644 --- a/nuon/models/app_app_sandbox_config_env_vars.py +++ b/nuon/models/app_app_sandbox_config_env_vars.py @@ -16,6 +16,7 @@ class AppAppSandboxConfigEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_app_sandbox_config_variables.py b/nuon/models/app_app_sandbox_config_variables.py index c85b47ff..1faf3a9b 100644 --- a/nuon/models/app_app_sandbox_config_variables.py +++ b/nuon/models/app_app_sandbox_config_variables.py @@ -16,6 +16,7 @@ class AppAppSandboxConfigVariables: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_aws_stack_outputs_break_glass_role_arns.py b/nuon/models/app_aws_stack_outputs_break_glass_role_arns.py index 02650d43..5feec5f7 100644 --- a/nuon/models/app_aws_stack_outputs_break_glass_role_arns.py +++ b/nuon/models/app_aws_stack_outputs_break_glass_role_arns.py @@ -16,6 +16,7 @@ class AppAWSStackOutputsBreakGlassRoleArns: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_aws_stack_outputs_install_inputs.py b/nuon/models/app_aws_stack_outputs_install_inputs.py index 0a3ccaaf..ac5a1500 100644 --- a/nuon/models/app_aws_stack_outputs_install_inputs.py +++ b/nuon/models/app_aws_stack_outputs_install_inputs.py @@ -16,6 +16,7 @@ class AppAWSStackOutputsInstallInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_component.py b/nuon/models/app_component.py index 8ebbbc50..bb0bd8ab 100644 --- a/nuon/models/app_component.py +++ b/nuon/models/app_component.py @@ -10,6 +10,7 @@ from ..types import UNSET, Unset if TYPE_CHECKING: + from ..models.app_component_build import AppComponentBuild from ..models.app_component_links import AppComponentLinks @@ -26,6 +27,7 @@ class AppComponent: created_by_id (str | Unset): dependencies (list[str] | Unset): id (str | Unset): + latest_build (AppComponentBuild | Unset): links (AppComponentLinks | Unset): name (str | Unset): resolved_var_name (str | Unset): @@ -42,6 +44,7 @@ class AppComponent: created_by_id: str | Unset = UNSET dependencies: list[str] | Unset = UNSET id: str | Unset = UNSET + latest_build: AppComponentBuild | Unset = UNSET links: AppComponentLinks | Unset = UNSET name: str | Unset = UNSET resolved_var_name: str | Unset = UNSET @@ -67,6 +70,10 @@ def to_dict(self) -> dict[str, Any]: id = self.id + latest_build: dict[str, Any] | Unset = UNSET + if not isinstance(self.latest_build, Unset): + latest_build = self.latest_build.to_dict() + links: dict[str, Any] | Unset = UNSET if not isinstance(self.links, Unset): links = self.links.to_dict() @@ -102,6 +109,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["dependencies"] = dependencies if id is not UNSET: field_dict["id"] = id + if latest_build is not UNSET: + field_dict["latest_build"] = latest_build if links is not UNSET: field_dict["links"] = links if name is not UNSET: @@ -123,6 +132,7 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.app_component_build import AppComponentBuild from ..models.app_component_links import AppComponentLinks d = dict(src_dict) @@ -138,6 +148,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: id = d.pop("id", UNSET) + _latest_build = d.pop("latest_build", UNSET) + latest_build: AppComponentBuild | Unset + if isinstance(_latest_build, Unset): + latest_build = UNSET + else: + latest_build = AppComponentBuild.from_dict(_latest_build) + _links = d.pop("links", UNSET) links: AppComponentLinks | Unset if isinstance(_links, Unset): @@ -171,6 +188,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: created_by_id=created_by_id, dependencies=dependencies, id=id, + latest_build=latest_build, links=links, name=name, resolved_var_name=resolved_var_name, diff --git a/nuon/models/app_component_config_connection.py b/nuon/models/app_component_config_connection.py index da911e77..987cbc9e 100644 --- a/nuon/models/app_component_config_connection.py +++ b/nuon/models/app_component_config_connection.py @@ -28,12 +28,14 @@ class AppComponentConfigConnection: Attributes: app_config_id (str | Unset): app_config_version (int | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h"). Max 1h. checksum (str | Unset): component_dependency_ids (list[str] | Unset): component_id (str | Unset): component_name (str | Unset): created_at (str | Unset): created_by_id (str | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h"). Max 1h. docker_build (AppDockerBuildComponentConfig | Unset): drift_schedule (str | Unset): external_image (AppExternalImageComponentConfig | Unset): @@ -51,12 +53,14 @@ class AppComponentConfigConnection: app_config_id: str | Unset = UNSET app_config_version: int | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET component_dependency_ids: list[str] | Unset = UNSET component_id: str | Unset = UNSET component_name: str | Unset = UNSET created_at: str | Unset = UNSET created_by_id: str | Unset = UNSET + deploy_timeout: str | Unset = UNSET docker_build: AppDockerBuildComponentConfig | Unset = UNSET drift_schedule: str | Unset = UNSET external_image: AppExternalImageComponentConfig | Unset = UNSET @@ -77,6 +81,8 @@ def to_dict(self) -> dict[str, Any]: app_config_version = self.app_config_version + build_timeout = self.build_timeout + checksum = self.checksum component_dependency_ids: list[str] | Unset = UNSET @@ -91,6 +97,8 @@ def to_dict(self) -> dict[str, Any]: created_by_id = self.created_by_id + deploy_timeout = self.deploy_timeout + docker_build: dict[str, Any] | Unset = UNSET if not isinstance(self.docker_build, Unset): docker_build = self.docker_build.to_dict() @@ -145,6 +153,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["app_config_id"] = app_config_id if app_config_version is not UNSET: field_dict["app_config_version"] = app_config_version + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum if component_dependency_ids is not UNSET: @@ -157,6 +167,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["created_at"] = created_at if created_by_id is not UNSET: field_dict["created_by_id"] = created_by_id + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if docker_build is not UNSET: field_dict["docker_build"] = docker_build if drift_schedule is not UNSET: @@ -201,6 +213,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: app_config_version = d.pop("app_config_version", UNSET) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) component_dependency_ids = cast(list[str], d.pop("component_dependency_ids", UNSET)) @@ -213,6 +227,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: created_by_id = d.pop("created_by_id", UNSET) + deploy_timeout = d.pop("deploy_timeout", UNSET) + _docker_build = d.pop("docker_build", UNSET) docker_build: AppDockerBuildComponentConfig | Unset if isinstance(_docker_build, Unset): @@ -284,12 +300,14 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: app_component_config_connection = cls( app_config_id=app_config_id, app_config_version=app_config_version, + build_timeout=build_timeout, checksum=checksum, component_dependency_ids=component_dependency_ids, component_id=component_id, component_name=component_name, created_at=created_at, created_by_id=created_by_id, + deploy_timeout=deploy_timeout, docker_build=docker_build, drift_schedule=drift_schedule, external_image=external_image, diff --git a/nuon/models/app_component_links.py b/nuon/models/app_component_links.py index 11698bb5..9ab5837e 100644 --- a/nuon/models/app_component_links.py +++ b/nuon/models/app_component_links.py @@ -16,6 +16,7 @@ class AppComponentLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_composite_status_metadata.py b/nuon/models/app_composite_status_metadata.py index ea2c10e3..643baa7c 100644 --- a/nuon/models/app_composite_status_metadata.py +++ b/nuon/models/app_composite_status_metadata.py @@ -16,6 +16,7 @@ class AppCompositeStatusMetadata: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_docker_build_component_config_env_vars.py b/nuon/models/app_docker_build_component_config_env_vars.py index 352131b8..1bae6f79 100644 --- a/nuon/models/app_docker_build_component_config_env_vars.py +++ b/nuon/models/app_docker_build_component_config_env_vars.py @@ -16,6 +16,7 @@ class AppDockerBuildComponentConfigEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_helm_component_config_values.py b/nuon/models/app_helm_component_config_values.py index f86cdd49..f7d9b931 100644 --- a/nuon/models/app_helm_component_config_values.py +++ b/nuon/models/app_helm_component_config_values.py @@ -16,6 +16,7 @@ class AppHelmComponentConfigValues: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_helm_config_values.py b/nuon/models/app_helm_config_values.py index c12a783d..7f6fbb71 100644 --- a/nuon/models/app_helm_config_values.py +++ b/nuon/models/app_helm_config_values.py @@ -16,6 +16,7 @@ class AppHelmConfigValues: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_action_workflow_run_outputs.py b/nuon/models/app_install_action_workflow_run_outputs.py index b2e1f9c4..9246ac57 100644 --- a/nuon/models/app_install_action_workflow_run_outputs.py +++ b/nuon/models/app_install_action_workflow_run_outputs.py @@ -16,6 +16,7 @@ class AppInstallActionWorkflowRunOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_action_workflow_run_run_env_vars.py b/nuon/models/app_install_action_workflow_run_run_env_vars.py index c7ee98c0..45a170d9 100644 --- a/nuon/models/app_install_action_workflow_run_run_env_vars.py +++ b/nuon/models/app_install_action_workflow_run_run_env_vars.py @@ -16,6 +16,7 @@ class AppInstallActionWorkflowRunRunEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_component_links.py b/nuon/models/app_install_component_links.py index 9792cbdf..b1e27ada 100644 --- a/nuon/models/app_install_component_links.py +++ b/nuon/models/app_install_component_links.py @@ -16,6 +16,7 @@ class AppInstallComponentLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_component_statuses.py b/nuon/models/app_install_component_statuses.py index caa051d3..6c296482 100644 --- a/nuon/models/app_install_component_statuses.py +++ b/nuon/models/app_install_component_statuses.py @@ -16,6 +16,7 @@ class AppInstallComponentStatuses: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_deploy_outputs.py b/nuon/models/app_install_deploy_outputs.py index eb9e531f..c901ac71 100644 --- a/nuon/models/app_install_deploy_outputs.py +++ b/nuon/models/app_install_deploy_outputs.py @@ -16,6 +16,7 @@ class AppInstallDeployOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_event_payload.py b/nuon/models/app_install_event_payload.py index 4ce5ee0a..0117a7ff 100644 --- a/nuon/models/app_install_event_payload.py +++ b/nuon/models/app_install_event_payload.py @@ -16,6 +16,7 @@ class AppInstallEventPayload: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_inputs_redacted_values.py b/nuon/models/app_install_inputs_redacted_values.py index f80a7a6e..d6c68197 100644 --- a/nuon/models/app_install_inputs_redacted_values.py +++ b/nuon/models/app_install_inputs_redacted_values.py @@ -16,6 +16,7 @@ class AppInstallInputsRedactedValues: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_inputs_values.py b/nuon/models/app_install_inputs_values.py index 1024f23f..b83264b2 100644 --- a/nuon/models/app_install_inputs_values.py +++ b/nuon/models/app_install_inputs_values.py @@ -16,6 +16,7 @@ class AppInstallInputsValues: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_links.py b/nuon/models/app_install_links.py index ee8f16ce..bdc51e5d 100644 --- a/nuon/models/app_install_links.py +++ b/nuon/models/app_install_links.py @@ -16,6 +16,7 @@ class AppInstallLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_metadata.py b/nuon/models/app_install_metadata.py index 7351da3b..c8506ada 100644 --- a/nuon/models/app_install_metadata.py +++ b/nuon/models/app_install_metadata.py @@ -16,6 +16,7 @@ class AppInstallMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_sandbox_run_outputs.py b/nuon/models/app_install_sandbox_run_outputs.py index 60a8e6f6..e2097f60 100644 --- a/nuon/models/app_install_sandbox_run_outputs.py +++ b/nuon/models/app_install_sandbox_run_outputs.py @@ -16,6 +16,7 @@ class AppInstallSandboxRunOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_stack_outputs_data.py b/nuon/models/app_install_stack_outputs_data.py index 1478e5fa..2431a798 100644 --- a/nuon/models/app_install_stack_outputs_data.py +++ b/nuon/models/app_install_stack_outputs_data.py @@ -16,6 +16,7 @@ class AppInstallStackOutputsData: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_stack_outputs_data_contents.py b/nuon/models/app_install_stack_outputs_data_contents.py index 9848e83f..7b401e7a 100644 --- a/nuon/models/app_install_stack_outputs_data_contents.py +++ b/nuon/models/app_install_stack_outputs_data_contents.py @@ -16,6 +16,7 @@ class AppInstallStackOutputsDataContents: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_stack_version_run_data.py b/nuon/models/app_install_stack_version_run_data.py index a4d12b69..2214a4e5 100644 --- a/nuon/models/app_install_stack_version_run_data.py +++ b/nuon/models/app_install_stack_version_run_data.py @@ -16,6 +16,7 @@ class AppInstallStackVersionRunData: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_install_stack_version_run_data_contents.py b/nuon/models/app_install_stack_version_run_data_contents.py index cfec833e..0777d8f9 100644 --- a/nuon/models/app_install_stack_version_run_data_contents.py +++ b/nuon/models/app_install_stack_version_run_data_contents.py @@ -16,6 +16,7 @@ class AppInstallStackVersionRunDataContents: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_job_component_config_env_vars.py b/nuon/models/app_job_component_config_env_vars.py index bc86b155..0cf89367 100644 --- a/nuon/models/app_job_component_config_env_vars.py +++ b/nuon/models/app_job_component_config_env_vars.py @@ -16,6 +16,7 @@ class AppJobComponentConfigEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_json_map.py b/nuon/models/app_json_map.py index 3d9e3b83..59472e48 100644 --- a/nuon/models/app_json_map.py +++ b/nuon/models/app_json_map.py @@ -16,6 +16,7 @@ class AppJSONMap: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_kubernetes_manifest_component_config.py b/nuon/models/app_kubernetes_manifest_component_config.py index f81355e2..97bc575c 100644 --- a/nuon/models/app_kubernetes_manifest_component_config.py +++ b/nuon/models/app_kubernetes_manifest_component_config.py @@ -1,13 +1,19 @@ from __future__ import annotations from collections.abc import Mapping -from typing import Any, TypeVar +from typing import TYPE_CHECKING, Any, TypeVar from attrs import define as _attrs_define from attrs import field as _attrs_field from ..types import UNSET, Unset +if TYPE_CHECKING: + from ..models.app_connected_github_vcs_config import AppConnectedGithubVCSConfig + from ..models.app_kustomize_config import AppKustomizeConfig + from ..models.app_public_git_vcs_config import AppPublicGitVCSConfig + + T = TypeVar("T", bound="AppKubernetesManifestComponentConfig") @@ -16,36 +22,54 @@ class AppKubernetesManifestComponentConfig: """ Attributes: component_config_connection_id (str | Unset): value + connected_github_vcs_config (AppConnectedGithubVCSConfig | Unset): created_at (str | Unset): created_by_id (str | Unset): id (str | Unset): - manifest (str | Unset): + kustomize (AppKustomizeConfig | Unset): + manifest (str | Unset): Primary fields - used for inline manifests (fully supported) namespace (str | Unset): + public_git_vcs_config (AppPublicGitVCSConfig | Unset): updated_at (str | Unset): """ component_config_connection_id: str | Unset = UNSET + connected_github_vcs_config: AppConnectedGithubVCSConfig | Unset = UNSET created_at: str | Unset = UNSET created_by_id: str | Unset = UNSET id: str | Unset = UNSET + kustomize: AppKustomizeConfig | Unset = UNSET manifest: str | Unset = UNSET namespace: str | Unset = UNSET + public_git_vcs_config: AppPublicGitVCSConfig | Unset = UNSET updated_at: str | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: component_config_connection_id = self.component_config_connection_id + connected_github_vcs_config: dict[str, Any] | Unset = UNSET + if not isinstance(self.connected_github_vcs_config, Unset): + connected_github_vcs_config = self.connected_github_vcs_config.to_dict() + created_at = self.created_at created_by_id = self.created_by_id id = self.id + kustomize: dict[str, Any] | Unset = UNSET + if not isinstance(self.kustomize, Unset): + kustomize = self.kustomize.to_dict() + manifest = self.manifest namespace = self.namespace + public_git_vcs_config: dict[str, Any] | Unset = UNSET + if not isinstance(self.public_git_vcs_config, Unset): + public_git_vcs_config = self.public_git_vcs_config.to_dict() + updated_at = self.updated_at field_dict: dict[str, Any] = {} @@ -53,16 +77,22 @@ def to_dict(self) -> dict[str, Any]: field_dict.update({}) if component_config_connection_id is not UNSET: field_dict["component_config_connection_id"] = component_config_connection_id + if connected_github_vcs_config is not UNSET: + field_dict["connected_github_vcs_config"] = connected_github_vcs_config if created_at is not UNSET: field_dict["created_at"] = created_at if created_by_id is not UNSET: field_dict["created_by_id"] = created_by_id if id is not UNSET: field_dict["id"] = id + if kustomize is not UNSET: + field_dict["kustomize"] = kustomize if manifest is not UNSET: field_dict["manifest"] = manifest if namespace is not UNSET: field_dict["namespace"] = namespace + if public_git_vcs_config is not UNSET: + field_dict["public_git_vcs_config"] = public_git_vcs_config if updated_at is not UNSET: field_dict["updated_at"] = updated_at @@ -70,28 +100,56 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.app_connected_github_vcs_config import AppConnectedGithubVCSConfig + from ..models.app_kustomize_config import AppKustomizeConfig + from ..models.app_public_git_vcs_config import AppPublicGitVCSConfig + d = dict(src_dict) component_config_connection_id = d.pop("component_config_connection_id", UNSET) + _connected_github_vcs_config = d.pop("connected_github_vcs_config", UNSET) + connected_github_vcs_config: AppConnectedGithubVCSConfig | Unset + if isinstance(_connected_github_vcs_config, Unset): + connected_github_vcs_config = UNSET + else: + connected_github_vcs_config = AppConnectedGithubVCSConfig.from_dict(_connected_github_vcs_config) + created_at = d.pop("created_at", UNSET) created_by_id = d.pop("created_by_id", UNSET) id = d.pop("id", UNSET) + _kustomize = d.pop("kustomize", UNSET) + kustomize: AppKustomizeConfig | Unset + if isinstance(_kustomize, Unset): + kustomize = UNSET + else: + kustomize = AppKustomizeConfig.from_dict(_kustomize) + manifest = d.pop("manifest", UNSET) namespace = d.pop("namespace", UNSET) + _public_git_vcs_config = d.pop("public_git_vcs_config", UNSET) + public_git_vcs_config: AppPublicGitVCSConfig | Unset + if isinstance(_public_git_vcs_config, Unset): + public_git_vcs_config = UNSET + else: + public_git_vcs_config = AppPublicGitVCSConfig.from_dict(_public_git_vcs_config) + updated_at = d.pop("updated_at", UNSET) app_kubernetes_manifest_component_config = cls( component_config_connection_id=component_config_connection_id, + connected_github_vcs_config=connected_github_vcs_config, created_at=created_at, created_by_id=created_by_id, id=id, + kustomize=kustomize, manifest=manifest, namespace=namespace, + public_git_vcs_config=public_git_vcs_config, updated_at=updated_at, ) diff --git a/nuon/models/app_kustomize_config.py b/nuon/models/app_kustomize_config.py new file mode 100644 index 00000000..46ff8743 --- /dev/null +++ b/nuon/models/app_kustomize_config.py @@ -0,0 +1,90 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="AppKustomizeConfig") + + +@_attrs_define +class AppKustomizeConfig: + """ + Attributes: + enable_helm (bool | Unset): Enable Helm chart inflation during kustomize build + load_restrictor (str | Unset): Load restrictor: "none" or "rootOnly" (default: "rootOnly") + patches (list[str] | Unset): Additional patch files to apply after kustomize build + path (str | Unset): Path to kustomization directory (relative to source root) + """ + + enable_helm: bool | Unset = UNSET + load_restrictor: str | Unset = UNSET + patches: list[str] | Unset = UNSET + path: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + enable_helm = self.enable_helm + + load_restrictor = self.load_restrictor + + patches: list[str] | Unset = UNSET + if not isinstance(self.patches, Unset): + patches = self.patches + + path = self.path + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if enable_helm is not UNSET: + field_dict["enable_helm"] = enable_helm + if load_restrictor is not UNSET: + field_dict["load_restrictor"] = load_restrictor + if patches is not UNSET: + field_dict["patches"] = patches + if path is not UNSET: + field_dict["path"] = path + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + enable_helm = d.pop("enable_helm", UNSET) + + load_restrictor = d.pop("load_restrictor", UNSET) + + patches = cast(list[str], d.pop("patches", UNSET)) + + path = d.pop("path", UNSET) + + app_kustomize_config = cls( + enable_helm=enable_helm, + load_restrictor=load_restrictor, + patches=patches, + path=path, + ) + + app_kustomize_config.additional_properties = d + return app_kustomize_config + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/app_log_stream_attrs.py b/nuon/models/app_log_stream_attrs.py index d1cc47f7..3235ec21 100644 --- a/nuon/models/app_log_stream_attrs.py +++ b/nuon/models/app_log_stream_attrs.py @@ -16,6 +16,7 @@ class AppLogStreamAttrs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_oci_artifact_annotations.py b/nuon/models/app_oci_artifact_annotations.py index e032d149..a0d97e0a 100644 --- a/nuon/models/app_oci_artifact_annotations.py +++ b/nuon/models/app_oci_artifact_annotations.py @@ -16,6 +16,7 @@ class AppOCIArtifactAnnotations: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_org_feature_info.py b/nuon/models/app_org_feature_info.py new file mode 100644 index 00000000..435b2149 --- /dev/null +++ b/nuon/models/app_org_feature_info.py @@ -0,0 +1,70 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="AppOrgFeatureInfo") + + +@_attrs_define +class AppOrgFeatureInfo: + """ + Attributes: + description (str | Unset): + name (str | Unset): + """ + + description: str | Unset = UNSET + name: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + description = self.description + + name = self.name + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if description is not UNSET: + field_dict["description"] = description + if name is not UNSET: + field_dict["name"] = name + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + description = d.pop("description", UNSET) + + name = d.pop("name", UNSET) + + app_org_feature_info = cls( + description=description, + name=name, + ) + + app_org_feature_info.additional_properties = d + return app_org_feature_info + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/app_org_links.py b/nuon/models/app_org_links.py index 1d499fca..420cb0d1 100644 --- a/nuon/models/app_org_links.py +++ b/nuon/models/app_org_links.py @@ -16,6 +16,7 @@ class AppOrgLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_otel_log_record_log_attributes.py b/nuon/models/app_otel_log_record_log_attributes.py index 7a285cce..f9bb9eb0 100644 --- a/nuon/models/app_otel_log_record_log_attributes.py +++ b/nuon/models/app_otel_log_record_log_attributes.py @@ -16,6 +16,7 @@ class AppOtelLogRecordLogAttributes: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_otel_log_record_resource_attributes.py b/nuon/models/app_otel_log_record_resource_attributes.py index 154d5379..0f0dd79c 100644 --- a/nuon/models/app_otel_log_record_resource_attributes.py +++ b/nuon/models/app_otel_log_record_resource_attributes.py @@ -16,6 +16,7 @@ class AppOtelLogRecordResourceAttributes: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_otel_log_record_scope_attributes.py b/nuon/models/app_otel_log_record_scope_attributes.py index 1a2bee81..1af48e2b 100644 --- a/nuon/models/app_otel_log_record_scope_attributes.py +++ b/nuon/models/app_otel_log_record_scope_attributes.py @@ -16,6 +16,7 @@ class AppOtelLogRecordScopeAttributes: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_policy_permissions.py b/nuon/models/app_policy_permissions.py index 6554f224..b5d81216 100644 --- a/nuon/models/app_policy_permissions.py +++ b/nuon/models/app_policy_permissions.py @@ -16,6 +16,7 @@ class AppPolicyPermissions: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_provider_type.py b/nuon/models/app_provider_type.py new file mode 100644 index 00000000..c301ee0f --- /dev/null +++ b/nuon/models/app_provider_type.py @@ -0,0 +1,10 @@ +from enum import Enum + + +class AppProviderType(str, Enum): + GITHUB = "github" + GOOGLE = "google" + OIDC = "oidc" + + def __str__(self) -> str: + return str(self.value) diff --git a/nuon/models/app_runner_group_settings_aws_tags.py b/nuon/models/app_runner_group_settings_aws_tags.py index 4f8e6a0c..d459a34c 100644 --- a/nuon/models/app_runner_group_settings_aws_tags.py +++ b/nuon/models/app_runner_group_settings_aws_tags.py @@ -16,6 +16,7 @@ class AppRunnerGroupSettingsAwsTags: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_group_settings_metadata.py b/nuon/models/app_runner_group_settings_metadata.py index 8f240f22..6caac979 100644 --- a/nuon/models/app_runner_group_settings_metadata.py +++ b/nuon/models/app_runner_group_settings_metadata.py @@ -16,6 +16,7 @@ class AppRunnerGroupSettingsMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_job_execution_metadata.py b/nuon/models/app_runner_job_execution_metadata.py index a702869e..edc28d59 100644 --- a/nuon/models/app_runner_job_execution_metadata.py +++ b/nuon/models/app_runner_job_execution_metadata.py @@ -16,6 +16,7 @@ class AppRunnerJobExecutionMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_job_execution_outputs_outputs.py b/nuon/models/app_runner_job_execution_outputs_outputs.py index 4218e900..df018e4a 100644 --- a/nuon/models/app_runner_job_execution_outputs_outputs.py +++ b/nuon/models/app_runner_job_execution_outputs_outputs.py @@ -24,6 +24,7 @@ class AppRunnerJobExecutionOutputsOutputs: ) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.to_dict() diff --git a/nuon/models/app_runner_job_execution_outputs_outputs_additional_property.py b/nuon/models/app_runner_job_execution_outputs_outputs_additional_property.py index 0788834e..99f3b79c 100644 --- a/nuon/models/app_runner_job_execution_outputs_outputs_additional_property.py +++ b/nuon/models/app_runner_job_execution_outputs_outputs_additional_property.py @@ -16,6 +16,7 @@ class AppRunnerJobExecutionOutputsOutputsAdditionalProperty: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_job_execution_result_error_metadata.py b/nuon/models/app_runner_job_execution_result_error_metadata.py index c1652bd9..91549ad7 100644 --- a/nuon/models/app_runner_job_execution_result_error_metadata.py +++ b/nuon/models/app_runner_job_execution_result_error_metadata.py @@ -16,6 +16,7 @@ class AppRunnerJobExecutionResultErrorMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_job_metadata.py b/nuon/models/app_runner_job_metadata.py index b7ec3c7a..bd274c64 100644 --- a/nuon/models/app_runner_job_metadata.py +++ b/nuon/models/app_runner_job_metadata.py @@ -16,6 +16,7 @@ class AppRunnerJobMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_job_outputs.py b/nuon/models/app_runner_job_outputs.py index c1bed9a6..3f055ec7 100644 --- a/nuon/models/app_runner_job_outputs.py +++ b/nuon/models/app_runner_job_outputs.py @@ -16,6 +16,7 @@ class AppRunnerJobOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_runner_job_type.py b/nuon/models/app_runner_job_type.py index 5554d910..55404b23 100644 --- a/nuon/models/app_runner_job_type.py +++ b/nuon/models/app_runner_job_type.py @@ -5,11 +5,14 @@ class AppRunnerJobType(str, Enum): ACTIONS_WORKFLOW = "actions-workflow" CONTAINER_IMAGE_BUILD = "container-image-build" DOCKER_BUILD = "docker-build" + FETCH_IMAGE_METADATA = "fetch-image-metadata" HEALTH_CHECK = "health-check" HELM_CHART_BUILD = "helm-chart-build" HELM_CHART_DEPLOY = "helm-chart-deploy" JOB_DEPLOY = "job-deploy" + KUBERNETES_MANIFEST_BUILD = "kubernetes-manifest-build" KUBERNETES_MANIFEST_DEPLOY = "kubernetes-manifest-deploy" + MNG_FETCH_TOKEN = "mng-fetch-token" MNG_RUNNER_RESTART = "mng-runner-restart" MNG_RUNNER_UPDATE_VERSION = "mng-runner-update-version" MNG_SHUT_DOWN = "mng-shut-down" diff --git a/nuon/models/app_terraform_module_component_config_env_vars.py b/nuon/models/app_terraform_module_component_config_env_vars.py index a63dcfad..e1f7cc73 100644 --- a/nuon/models/app_terraform_module_component_config_env_vars.py +++ b/nuon/models/app_terraform_module_component_config_env_vars.py @@ -16,6 +16,7 @@ class AppTerraformModuleComponentConfigEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_terraform_module_component_config_variables.py b/nuon/models/app_terraform_module_component_config_variables.py index 839e0437..99c3f2da 100644 --- a/nuon/models/app_terraform_module_component_config_variables.py +++ b/nuon/models/app_terraform_module_component_config_variables.py @@ -16,6 +16,7 @@ class AppTerraformModuleComponentConfigVariables: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_terraform_state_instance_attributes.py b/nuon/models/app_terraform_state_instance_attributes.py index 238bbcfe..f570ddc6 100644 --- a/nuon/models/app_terraform_state_instance_attributes.py +++ b/nuon/models/app_terraform_state_instance_attributes.py @@ -16,6 +16,7 @@ class AppTerraformStateInstanceAttributes: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_user_journey_step_metadata.py b/nuon/models/app_user_journey_step_metadata.py index ec6a719d..58c34583 100644 --- a/nuon/models/app_user_journey_step_metadata.py +++ b/nuon/models/app_user_journey_step_metadata.py @@ -16,6 +16,7 @@ class AppUserJourneyStepMetadata: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_workflow.py b/nuon/models/app_workflow.py index e1fc0ccf..f92fd59e 100644 --- a/nuon/models/app_workflow.py +++ b/nuon/models/app_workflow.py @@ -7,7 +7,6 @@ from attrs import field as _attrs_field from ..models.app_install_approval_option import AppInstallApprovalOption -from ..models.app_step_error_behavior import AppStepErrorBehavior from ..models.app_workflow_type import AppWorkflowType from ..types import UNSET, Unset @@ -48,7 +47,7 @@ class AppWorkflow: plan_only (bool | Unset): started_at (str | Unset): status (AppCompositeStatus | Unset): - step_error_behavior (AppStepErrorBehavior | Unset): + step_error_behavior (str | Unset): DEPRECATED: for now we always abort on step errors steps (list[AppWorkflowStep] | Unset): steps represent each piece of the workflow type_ (AppWorkflowType | Unset): updated_at (str | Unset): @@ -73,7 +72,7 @@ class AppWorkflow: plan_only: bool | Unset = UNSET started_at: str | Unset = UNSET status: AppCompositeStatus | Unset = UNSET - step_error_behavior: AppStepErrorBehavior | Unset = UNSET + step_error_behavior: str | Unset = UNSET steps: list[AppWorkflowStep] | Unset = UNSET type_: AppWorkflowType | Unset = UNSET updated_at: str | Unset = UNSET @@ -143,9 +142,7 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.status, Unset): status = self.status.to_dict() - step_error_behavior: str | Unset = UNSET - if not isinstance(self.step_error_behavior, Unset): - step_error_behavior = self.step_error_behavior.value + step_error_behavior = self.step_error_behavior steps: list[dict[str, Any]] | Unset = UNSET if not isinstance(self.steps, Unset): @@ -310,12 +307,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: status = AppCompositeStatus.from_dict(_status) - _step_error_behavior = d.pop("step_error_behavior", UNSET) - step_error_behavior: AppStepErrorBehavior | Unset - if isinstance(_step_error_behavior, Unset): - step_error_behavior = UNSET - else: - step_error_behavior = AppStepErrorBehavior(_step_error_behavior) + step_error_behavior = d.pop("step_error_behavior", UNSET) _steps = d.pop("steps", UNSET) steps: list[AppWorkflowStep] | Unset = UNSET diff --git a/nuon/models/app_workflow_links.py b/nuon/models/app_workflow_links.py index 0df5a9ff..319f8704 100644 --- a/nuon/models/app_workflow_links.py +++ b/nuon/models/app_workflow_links.py @@ -16,6 +16,7 @@ class AppWorkflowLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_workflow_metadata.py b/nuon/models/app_workflow_metadata.py index c922797d..645fd28b 100644 --- a/nuon/models/app_workflow_metadata.py +++ b/nuon/models/app_workflow_metadata.py @@ -16,6 +16,7 @@ class AppWorkflowMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_workflow_step_approval_response.py b/nuon/models/app_workflow_step_approval_response.py index 5f17cf78..672b26b0 100644 --- a/nuon/models/app_workflow_step_approval_response.py +++ b/nuon/models/app_workflow_step_approval_response.py @@ -16,6 +16,7 @@ class AppWorkflowStepApprovalResponse: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_workflow_step_links.py b/nuon/models/app_workflow_step_links.py index e358fc35..83f09871 100644 --- a/nuon/models/app_workflow_step_links.py +++ b/nuon/models/app_workflow_step_links.py @@ -16,6 +16,7 @@ class AppWorkflowStepLinks: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_workflow_step_metadata.py b/nuon/models/app_workflow_step_metadata.py index d4f2d064..2666948c 100644 --- a/nuon/models/app_workflow_step_metadata.py +++ b/nuon/models/app_workflow_step_metadata.py @@ -16,6 +16,7 @@ class AppWorkflowStepMetadata: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/app_step_error_behavior.py b/nuon/models/config_app_policy_engine.py similarity index 51% rename from nuon/models/app_step_error_behavior.py rename to nuon/models/config_app_policy_engine.py index 2c772910..e97f3cd8 100644 --- a/nuon/models/app_step_error_behavior.py +++ b/nuon/models/config_app_policy_engine.py @@ -1,8 +1,9 @@ from enum import Enum -class AppStepErrorBehavior(str, Enum): - ABORT = "abort" +class ConfigAppPolicyEngine(str, Enum): + KYVERNO = "kyverno" + OPA = "opa" def __str__(self) -> str: return str(self.value) diff --git a/nuon/models/config_app_policy_type.py b/nuon/models/config_app_policy_type.py index cd9151fd..166da25d 100644 --- a/nuon/models/config_app_policy_type.py +++ b/nuon/models/config_app_policy_type.py @@ -2,10 +2,13 @@ class ConfigAppPolicyType(str, Enum): + CONTAINER_IMAGE = "container_image" + DOCKER_BUILD = "docker_build" + HELM_CHART = "helm_chart" KUBERNETES_CLUSTER = "kubernetes_cluster" - RUNNER_JOB_ACTION_WORKFLOW = "runner_job_action_workflow" - RUNNER_JOB_HELM_DEPLOY = "runner_job_helm_deploy" - RUNNER_JOB_TERRAFORM_DEPLOY = "runner_job_terraform_deploy" + KUBERNETES_MANIFEST = "kubernetes_manifest" + SANDBOX = "sandbox" + TERRAFORM_MODULE = "terraform_module" def __str__(self) -> str: return str(self.value) diff --git a/nuon/models/configs_oci_registry_repository.py b/nuon/models/configs_oci_registry_repository.py index ce3f7e95..ec041f3b 100644 --- a/nuon/models/configs_oci_registry_repository.py +++ b/nuon/models/configs_oci_registry_repository.py @@ -11,11 +11,9 @@ if TYPE_CHECKING: from ..models.configs_oci_registry_auth import ConfigsOCIRegistryAuth - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) @@ -26,8 +24,8 @@ class ConfigsOCIRegistryRepository: """ Attributes: - acrauth (GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset): - ecrauth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): + acrauth (GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset): + ecrauth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): login_server (str | Unset): ociauth (ConfigsOCIRegistryAuth | Unset): plugin (str | Unset): @@ -37,8 +35,8 @@ class ConfigsOCIRegistryRepository: provided. """ - acrauth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset = UNSET - ecrauth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET + acrauth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset = UNSET + ecrauth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET login_server: str | Unset = UNSET ociauth: ConfigsOCIRegistryAuth | Unset = UNSET plugin: str | Unset = UNSET @@ -97,27 +95,27 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.configs_oci_registry_auth import ConfigsOCIRegistryAuth - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) d = dict(src_dict) _acrauth = d.pop("acrauth", UNSET) - acrauth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset + acrauth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset if isinstance(_acrauth, Unset): acrauth = UNSET else: - acrauth = GithubComPowertoolsdevMonoPkgAzureCredentialsConfig.from_dict(_acrauth) + acrauth = GithubComNuoncoNuonPkgAzureCredentialsConfig.from_dict(_acrauth) _ecrauth = d.pop("ecrauth", UNSET) - ecrauth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + ecrauth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_ecrauth, Unset): ecrauth = UNSET else: - ecrauth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_ecrauth) + ecrauth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_ecrauth) login_server = d.pop("loginServer", UNSET) diff --git a/nuon/models/update_terraform_state_body.py b/nuon/models/get_current_org_features_response_200.py similarity index 65% rename from nuon/models/update_terraform_state_body.py rename to nuon/models/get_current_org_features_response_200.py index 30367ee8..5858f742 100644 --- a/nuon/models/update_terraform_state_body.py +++ b/nuon/models/get_current_org_features_response_200.py @@ -6,16 +6,17 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="UpdateTerraformStateBody") +T = TypeVar("T", bound="GetCurrentOrgFeaturesResponse200") @_attrs_define -class UpdateTerraformStateBody: +class GetCurrentOrgFeaturesResponse200: """ """ - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + additional_properties: dict[str, bool] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -24,19 +25,19 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - update_terraform_state_body = cls() + get_current_org_features_response_200 = cls() - update_terraform_state_body.additional_properties = d - return update_terraform_state_body + get_current_org_features_response_200.additional_properties = d + return get_current_org_features_response_200 @property def additional_keys(self) -> list[str]: return list(self.additional_properties.keys()) - def __getitem__(self, key: str) -> Any: + def __getitem__(self, key: str) -> bool: return self.additional_properties[key] - def __setitem__(self, key: str, value: Any) -> None: + def __setitem__(self, key: str, value: bool) -> None: self.additional_properties[key] = value def __delitem__(self, key: str) -> None: diff --git a/nuon/models/get_install_component_outputs_response_200.py b/nuon/models/get_install_component_outputs_response_200.py index f366de42..b3632a97 100644 --- a/nuon/models/get_install_component_outputs_response_200.py +++ b/nuon/models/get_install_component_outputs_response_200.py @@ -16,6 +16,7 @@ class GetInstallComponentOutputsResponse200: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/get_terraform_workspace_states_json_by_id_response_200.py b/nuon/models/get_terraform_workspace_states_json_by_id_response_200.py index 3bbcd3a8..f30db199 100644 --- a/nuon/models/get_terraform_workspace_states_json_by_id_response_200.py +++ b/nuon/models/get_terraform_workspace_states_json_by_id_response_200.py @@ -16,6 +16,7 @@ class GetTerraformWorkspaceStatesJSONByIDResponse200: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/get_terraform_workspace_states_json_by_idv2_response_200.py b/nuon/models/get_terraform_workspace_states_json_by_idv2_response_200.py index 304fef5e..6a87a988 100644 --- a/nuon/models/get_terraform_workspace_states_json_by_idv2_response_200.py +++ b/nuon/models/get_terraform_workspace_states_json_by_idv2_response_200.py @@ -16,6 +16,7 @@ class GetTerraformWorkspaceStatesJSONByIDV2Response200: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/github_com_powertoolsdev_mono_pkg_aws_credentials_config.py b/nuon/models/github_com_nuonco_nuon_pkg_aws_credentials_config.py similarity index 91% rename from nuon/models/github_com_powertoolsdev_mono_pkg_aws_credentials_config.py rename to nuon/models/github_com_nuonco_nuon_pkg_aws_credentials_config.py index 95d5e186..a196579e 100644 --- a/nuon/models/github_com_powertoolsdev_mono_pkg_aws_credentials_config.py +++ b/nuon/models/github_com_nuonco_nuon_pkg_aws_credentials_config.py @@ -13,11 +13,11 @@ from ..models.credentials_static_credentials import CredentialsStaticCredentials -T = TypeVar("T", bound="GithubComPowertoolsdevMonoPkgAwsCredentialsConfig") +T = TypeVar("T", bound="GithubComNuoncoNuonPkgAwsCredentialsConfig") @_attrs_define -class GithubComPowertoolsdevMonoPkgAwsCredentialsConfig: +class GithubComNuoncoNuonPkgAwsCredentialsConfig: """ Attributes: assume_role (CredentialsAssumeRoleConfig | Unset): @@ -100,7 +100,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: use_default = d.pop("use_default", UNSET) - github_com_powertoolsdev_mono_pkg_aws_credentials_config = cls( + github_com_nuonco_nuon_pkg_aws_credentials_config = cls( assume_role=assume_role, cache_id=cache_id, profile=profile, @@ -109,8 +109,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: use_default=use_default, ) - github_com_powertoolsdev_mono_pkg_aws_credentials_config.additional_properties = d - return github_com_powertoolsdev_mono_pkg_aws_credentials_config + github_com_nuonco_nuon_pkg_aws_credentials_config.additional_properties = d + return github_com_nuonco_nuon_pkg_aws_credentials_config @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/github_com_powertoolsdev_mono_pkg_azure_credentials_config.py b/nuon/models/github_com_nuonco_nuon_pkg_azure_credentials_config.py similarity index 87% rename from nuon/models/github_com_powertoolsdev_mono_pkg_azure_credentials_config.py rename to nuon/models/github_com_nuonco_nuon_pkg_azure_credentials_config.py index 62fd14ef..219a6bf3 100644 --- a/nuon/models/github_com_powertoolsdev_mono_pkg_azure_credentials_config.py +++ b/nuon/models/github_com_nuonco_nuon_pkg_azure_credentials_config.py @@ -12,11 +12,11 @@ from ..models.credentials_service_principal_credentials import CredentialsServicePrincipalCredentials -T = TypeVar("T", bound="GithubComPowertoolsdevMonoPkgAzureCredentialsConfig") +T = TypeVar("T", bound="GithubComNuoncoNuonPkgAzureCredentialsConfig") @_attrs_define -class GithubComPowertoolsdevMonoPkgAzureCredentialsConfig: +class GithubComNuoncoNuonPkgAzureCredentialsConfig: """ Attributes: service_principal (CredentialsServicePrincipalCredentials | Unset): @@ -58,13 +58,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: use_default = d.pop("use_default", UNSET) - github_com_powertoolsdev_mono_pkg_azure_credentials_config = cls( + github_com_nuonco_nuon_pkg_azure_credentials_config = cls( service_principal=service_principal, use_default=use_default, ) - github_com_powertoolsdev_mono_pkg_azure_credentials_config.additional_properties = d - return github_com_powertoolsdev_mono_pkg_azure_credentials_config + github_com_nuonco_nuon_pkg_azure_credentials_config.additional_properties = d + return github_com_nuonco_nuon_pkg_azure_credentials_config @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state.py b/nuon/models/github_com_nuonco_nuon_pkg_types_state_state.py similarity index 90% rename from nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state.py rename to nuon/models/github_com_nuonco_nuon_pkg_types_state_state.py index 9114576d..c2fda2a6 100644 --- a/nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state.py +++ b/nuon/models/github_com_nuonco_nuon_pkg_types_state_state.py @@ -9,8 +9,8 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_types_state_state_components import ( - GithubComPowertoolsdevMonoPkgTypesStateStateComponents, + from ..models.github_com_nuonco_nuon_pkg_types_state_state_components import ( + GithubComNuoncoNuonPkgTypesStateStateComponents, ) from ..models.state_actions_state import StateActionsState from ..models.state_app_state import StateAppState @@ -25,17 +25,17 @@ from ..models.state_secrets_state import StateSecretsState -T = TypeVar("T", bound="GithubComPowertoolsdevMonoPkgTypesStateState") +T = TypeVar("T", bound="GithubComNuoncoNuonPkgTypesStateState") @_attrs_define -class GithubComPowertoolsdevMonoPkgTypesStateState: +class GithubComNuoncoNuonPkgTypesStateState: """ Attributes: actions (StateActionsState | Unset): app (StateAppState | Unset): cloud_account (StateCloudAccount | Unset): - components (GithubComPowertoolsdevMonoPkgTypesStateStateComponents | Unset): + components (GithubComNuoncoNuonPkgTypesStateStateComponents | Unset): domain (StateDomainState | Unset): id (str | Unset): inputs (StateInputsState | Unset): @@ -52,7 +52,7 @@ class GithubComPowertoolsdevMonoPkgTypesStateState: actions: StateActionsState | Unset = UNSET app: StateAppState | Unset = UNSET cloud_account: StateCloudAccount | Unset = UNSET - components: GithubComPowertoolsdevMonoPkgTypesStateStateComponents | Unset = UNSET + components: GithubComNuoncoNuonPkgTypesStateStateComponents | Unset = UNSET domain: StateDomainState | Unset = UNSET id: str | Unset = UNSET inputs: StateInputsState | Unset = UNSET @@ -159,8 +159,8 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_types_state_state_components import ( - GithubComPowertoolsdevMonoPkgTypesStateStateComponents, + from ..models.github_com_nuonco_nuon_pkg_types_state_state_components import ( + GithubComNuoncoNuonPkgTypesStateStateComponents, ) from ..models.state_actions_state import StateActionsState from ..models.state_app_state import StateAppState @@ -197,11 +197,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: cloud_account = StateCloudAccount.from_dict(_cloud_account) _components = d.pop("components", UNSET) - components: GithubComPowertoolsdevMonoPkgTypesStateStateComponents | Unset + components: GithubComNuoncoNuonPkgTypesStateStateComponents | Unset if isinstance(_components, Unset): components = UNSET else: - components = GithubComPowertoolsdevMonoPkgTypesStateStateComponents.from_dict(_components) + components = GithubComNuoncoNuonPkgTypesStateStateComponents.from_dict(_components) _domain = d.pop("domain", UNSET) domain: StateDomainState | Unset @@ -265,7 +265,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: stale_at = d.pop("stale_at", UNSET) - github_com_powertoolsdev_mono_pkg_types_state_state = cls( + github_com_nuonco_nuon_pkg_types_state_state = cls( actions=actions, app=app, cloud_account=cloud_account, @@ -283,8 +283,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: stale_at=stale_at, ) - github_com_powertoolsdev_mono_pkg_types_state_state.additional_properties = d - return github_com_powertoolsdev_mono_pkg_types_state_state + github_com_nuonco_nuon_pkg_types_state_state.additional_properties = d + return github_com_nuonco_nuon_pkg_types_state_state @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/lock_terraform_workspace_body.py b/nuon/models/github_com_nuonco_nuon_pkg_types_state_state_components.py similarity index 74% rename from nuon/models/lock_terraform_workspace_body.py rename to nuon/models/github_com_nuonco_nuon_pkg_types_state_state_components.py index 5c9e1529..af056bba 100644 --- a/nuon/models/lock_terraform_workspace_body.py +++ b/nuon/models/github_com_nuonco_nuon_pkg_types_state_state_components.py @@ -6,16 +6,17 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="LockTerraformWorkspaceBody") +T = TypeVar("T", bound="GithubComNuoncoNuonPkgTypesStateStateComponents") @_attrs_define -class LockTerraformWorkspaceBody: +class GithubComNuoncoNuonPkgTypesStateStateComponents: """ """ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -24,10 +25,10 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - lock_terraform_workspace_body = cls() + github_com_nuonco_nuon_pkg_types_state_state_components = cls() - lock_terraform_workspace_body.additional_properties = d - return lock_terraform_workspace_body + github_com_nuonco_nuon_pkg_types_state_state_components.additional_properties = d + return github_com_nuonco_nuon_pkg_types_state_state_components @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state_components.py b/nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state_components.py deleted file mode 100644 index 8102fc6f..00000000 --- a/nuon/models/github_com_powertoolsdev_mono_pkg_types_state_state_components.py +++ /dev/null @@ -1,46 +0,0 @@ -from __future__ import annotations - -from collections.abc import Mapping -from typing import Any, TypeVar - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -T = TypeVar("T", bound="GithubComPowertoolsdevMonoPkgTypesStateStateComponents") - - -@_attrs_define -class GithubComPowertoolsdevMonoPkgTypesStateStateComponents: - """ """ - - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) - - def to_dict(self) -> dict[str, Any]: - field_dict: dict[str, Any] = {} - field_dict.update(self.additional_properties) - - return field_dict - - @classmethod - def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - d = dict(src_dict) - github_com_powertoolsdev_mono_pkg_types_state_state_components = cls() - - github_com_powertoolsdev_mono_pkg_types_state_state_components.additional_properties = d - return github_com_powertoolsdev_mono_pkg_types_state_state_components - - @property - def additional_keys(self) -> list[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/nuon/models/github_match.py b/nuon/models/github_match.py new file mode 100644 index 00000000..aba76f48 --- /dev/null +++ b/nuon/models/github_match.py @@ -0,0 +1,72 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="GithubMatch") + + +@_attrs_define +class GithubMatch: + """ + Attributes: + indices (list[int] | Unset): + text (str | Unset): + """ + + indices: list[int] | Unset = UNSET + text: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + indices: list[int] | Unset = UNSET + if not isinstance(self.indices, Unset): + indices = self.indices + + text = self.text + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if indices is not UNSET: + field_dict["indices"] = indices + if text is not UNSET: + field_dict["text"] = text + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + indices = cast(list[int], d.pop("indices", UNSET)) + + text = d.pop("text", UNSET) + + github_match = cls( + indices=indices, + text=text, + ) + + github_match.additional_properties = d + return github_match + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/github_plan.py b/nuon/models/github_plan.py new file mode 100644 index 00000000..263128e9 --- /dev/null +++ b/nuon/models/github_plan.py @@ -0,0 +1,106 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="GithubPlan") + + +@_attrs_define +class GithubPlan: + """ + Attributes: + collaborators (int | Unset): + filled_seats (int | Unset): + name (str | Unset): + private_repos (int | Unset): + seats (int | Unset): + space (int | Unset): + """ + + collaborators: int | Unset = UNSET + filled_seats: int | Unset = UNSET + name: str | Unset = UNSET + private_repos: int | Unset = UNSET + seats: int | Unset = UNSET + space: int | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + collaborators = self.collaborators + + filled_seats = self.filled_seats + + name = self.name + + private_repos = self.private_repos + + seats = self.seats + + space = self.space + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if collaborators is not UNSET: + field_dict["collaborators"] = collaborators + if filled_seats is not UNSET: + field_dict["filled_seats"] = filled_seats + if name is not UNSET: + field_dict["name"] = name + if private_repos is not UNSET: + field_dict["private_repos"] = private_repos + if seats is not UNSET: + field_dict["seats"] = seats + if space is not UNSET: + field_dict["space"] = space + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + collaborators = d.pop("collaborators", UNSET) + + filled_seats = d.pop("filled_seats", UNSET) + + name = d.pop("name", UNSET) + + private_repos = d.pop("private_repos", UNSET) + + seats = d.pop("seats", UNSET) + + space = d.pop("space", UNSET) + + github_plan = cls( + collaborators=collaborators, + filled_seats=filled_seats, + name=name, + private_repos=private_repos, + seats=seats, + space=space, + ) + + github_plan.additional_properties = d + return github_plan + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/github_text_match.py b/nuon/models/github_text_match.py new file mode 100644 index 00000000..db4a3c4d --- /dev/null +++ b/nuon/models/github_text_match.py @@ -0,0 +1,115 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.github_match import GithubMatch + + +T = TypeVar("T", bound="GithubTextMatch") + + +@_attrs_define +class GithubTextMatch: + """ + Attributes: + fragment (str | Unset): + matches (list[GithubMatch] | Unset): + object_type (str | Unset): + object_url (str | Unset): + property_ (str | Unset): + """ + + fragment: str | Unset = UNSET + matches: list[GithubMatch] | Unset = UNSET + object_type: str | Unset = UNSET + object_url: str | Unset = UNSET + property_: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + fragment = self.fragment + + matches: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.matches, Unset): + matches = [] + for matches_item_data in self.matches: + matches_item = matches_item_data.to_dict() + matches.append(matches_item) + + object_type = self.object_type + + object_url = self.object_url + + property_ = self.property_ + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if fragment is not UNSET: + field_dict["fragment"] = fragment + if matches is not UNSET: + field_dict["matches"] = matches + if object_type is not UNSET: + field_dict["object_type"] = object_type + if object_url is not UNSET: + field_dict["object_url"] = object_url + if property_ is not UNSET: + field_dict["property"] = property_ + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.github_match import GithubMatch + + d = dict(src_dict) + fragment = d.pop("fragment", UNSET) + + _matches = d.pop("matches", UNSET) + matches: list[GithubMatch] | Unset = UNSET + if _matches is not UNSET: + matches = [] + for matches_item_data in _matches: + matches_item = GithubMatch.from_dict(matches_item_data) + + matches.append(matches_item) + + object_type = d.pop("object_type", UNSET) + + object_url = d.pop("object_url", UNSET) + + property_ = d.pop("property", UNSET) + + github_text_match = cls( + fragment=fragment, + matches=matches, + object_type=object_type, + object_url=object_url, + property_=property_, + ) + + github_text_match.additional_properties = d + return github_text_match + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/get_terraform_workspace_state_json_resources_response_200.py b/nuon/models/github_timestamp.py similarity index 65% rename from nuon/models/get_terraform_workspace_state_json_resources_response_200.py rename to nuon/models/github_timestamp.py index 11d2ebe5..3fd0bc37 100644 --- a/nuon/models/get_terraform_workspace_state_json_resources_response_200.py +++ b/nuon/models/github_timestamp.py @@ -6,28 +6,43 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="GetTerraformWorkspaceStateJSONResourcesResponse200") +from ..types import UNSET, Unset + +T = TypeVar("T", bound="GithubTimestamp") @_attrs_define -class GetTerraformWorkspaceStateJSONResourcesResponse200: - """ """ +class GithubTimestamp: + """ + Attributes: + time_time (str | Unset): + """ + time_time: str | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + time_time = self.time_time + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) + field_dict.update({}) + if time_time is not UNSET: + field_dict["time.Time"] = time_time return field_dict @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - get_terraform_workspace_state_json_resources_response_200 = cls() + time_time = d.pop("time.Time", UNSET) + + github_timestamp = cls( + time_time=time_time, + ) - get_terraform_workspace_state_json_resources_response_200.additional_properties = d - return get_terraform_workspace_state_json_resources_response_200 + github_timestamp.additional_properties = d + return github_timestamp @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/github_user.py b/nuon/models/github_user.py new file mode 100644 index 00000000..97b8fec9 --- /dev/null +++ b/nuon/models/github_user.py @@ -0,0 +1,511 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.github_plan import GithubPlan + from ..models.github_text_match import GithubTextMatch + from ..models.github_timestamp import GithubTimestamp + from ..models.github_user_permissions import GithubUserPermissions + + +T = TypeVar("T", bound="GithubUser") + + +@_attrs_define +class GithubUser: + """ + Attributes: + avatar_url (str | Unset): + bio (str | Unset): + blog (str | Unset): + collaborators (int | Unset): + company (str | Unset): + created_at (GithubTimestamp | Unset): + disk_usage (int | Unset): + email (str | Unset): + events_url (str | Unset): + followers (int | Unset): + followers_url (str | Unset): + following (int | Unset): + following_url (str | Unset): + gists_url (str | Unset): + gravatar_id (str | Unset): + hireable (bool | Unset): + html_url (str | Unset): + id (int | Unset): + ldap_dn (str | Unset): + location (str | Unset): + login (str | Unset): + name (str | Unset): + node_id (str | Unset): + organizations_url (str | Unset): + owned_private_repos (int | Unset): + permissions (GithubUserPermissions | Unset): Permissions and RoleName identify the permissions and role that a + user has on a given + repository. These are only populated when calling Repositories.ListCollaborators. + plan (GithubPlan | Unset): + private_gists (int | Unset): + public_gists (int | Unset): + public_repos (int | Unset): + received_events_url (str | Unset): + repos_url (str | Unset): + role_name (str | Unset): + site_admin (bool | Unset): + starred_url (str | Unset): + subscriptions_url (str | Unset): + suspended_at (GithubTimestamp | Unset): + text_matches (list[GithubTextMatch] | Unset): TextMatches is only populated from search results that request + text matches + See: search.go and https://docs.github.com/en/rest/search/#text-match-metadata + total_private_repos (int | Unset): + twitter_username (str | Unset): + two_factor_authentication (bool | Unset): + type_ (str | Unset): + updated_at (GithubTimestamp | Unset): + url (str | Unset): API URLs + """ + + avatar_url: str | Unset = UNSET + bio: str | Unset = UNSET + blog: str | Unset = UNSET + collaborators: int | Unset = UNSET + company: str | Unset = UNSET + created_at: GithubTimestamp | Unset = UNSET + disk_usage: int | Unset = UNSET + email: str | Unset = UNSET + events_url: str | Unset = UNSET + followers: int | Unset = UNSET + followers_url: str | Unset = UNSET + following: int | Unset = UNSET + following_url: str | Unset = UNSET + gists_url: str | Unset = UNSET + gravatar_id: str | Unset = UNSET + hireable: bool | Unset = UNSET + html_url: str | Unset = UNSET + id: int | Unset = UNSET + ldap_dn: str | Unset = UNSET + location: str | Unset = UNSET + login: str | Unset = UNSET + name: str | Unset = UNSET + node_id: str | Unset = UNSET + organizations_url: str | Unset = UNSET + owned_private_repos: int | Unset = UNSET + permissions: GithubUserPermissions | Unset = UNSET + plan: GithubPlan | Unset = UNSET + private_gists: int | Unset = UNSET + public_gists: int | Unset = UNSET + public_repos: int | Unset = UNSET + received_events_url: str | Unset = UNSET + repos_url: str | Unset = UNSET + role_name: str | Unset = UNSET + site_admin: bool | Unset = UNSET + starred_url: str | Unset = UNSET + subscriptions_url: str | Unset = UNSET + suspended_at: GithubTimestamp | Unset = UNSET + text_matches: list[GithubTextMatch] | Unset = UNSET + total_private_repos: int | Unset = UNSET + twitter_username: str | Unset = UNSET + two_factor_authentication: bool | Unset = UNSET + type_: str | Unset = UNSET + updated_at: GithubTimestamp | Unset = UNSET + url: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + avatar_url = self.avatar_url + + bio = self.bio + + blog = self.blog + + collaborators = self.collaborators + + company = self.company + + created_at: dict[str, Any] | Unset = UNSET + if not isinstance(self.created_at, Unset): + created_at = self.created_at.to_dict() + + disk_usage = self.disk_usage + + email = self.email + + events_url = self.events_url + + followers = self.followers + + followers_url = self.followers_url + + following = self.following + + following_url = self.following_url + + gists_url = self.gists_url + + gravatar_id = self.gravatar_id + + hireable = self.hireable + + html_url = self.html_url + + id = self.id + + ldap_dn = self.ldap_dn + + location = self.location + + login = self.login + + name = self.name + + node_id = self.node_id + + organizations_url = self.organizations_url + + owned_private_repos = self.owned_private_repos + + permissions: dict[str, Any] | Unset = UNSET + if not isinstance(self.permissions, Unset): + permissions = self.permissions.to_dict() + + plan: dict[str, Any] | Unset = UNSET + if not isinstance(self.plan, Unset): + plan = self.plan.to_dict() + + private_gists = self.private_gists + + public_gists = self.public_gists + + public_repos = self.public_repos + + received_events_url = self.received_events_url + + repos_url = self.repos_url + + role_name = self.role_name + + site_admin = self.site_admin + + starred_url = self.starred_url + + subscriptions_url = self.subscriptions_url + + suspended_at: dict[str, Any] | Unset = UNSET + if not isinstance(self.suspended_at, Unset): + suspended_at = self.suspended_at.to_dict() + + text_matches: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.text_matches, Unset): + text_matches = [] + for text_matches_item_data in self.text_matches: + text_matches_item = text_matches_item_data.to_dict() + text_matches.append(text_matches_item) + + total_private_repos = self.total_private_repos + + twitter_username = self.twitter_username + + two_factor_authentication = self.two_factor_authentication + + type_ = self.type_ + + updated_at: dict[str, Any] | Unset = UNSET + if not isinstance(self.updated_at, Unset): + updated_at = self.updated_at.to_dict() + + url = self.url + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if avatar_url is not UNSET: + field_dict["avatar_url"] = avatar_url + if bio is not UNSET: + field_dict["bio"] = bio + if blog is not UNSET: + field_dict["blog"] = blog + if collaborators is not UNSET: + field_dict["collaborators"] = collaborators + if company is not UNSET: + field_dict["company"] = company + if created_at is not UNSET: + field_dict["created_at"] = created_at + if disk_usage is not UNSET: + field_dict["disk_usage"] = disk_usage + if email is not UNSET: + field_dict["email"] = email + if events_url is not UNSET: + field_dict["events_url"] = events_url + if followers is not UNSET: + field_dict["followers"] = followers + if followers_url is not UNSET: + field_dict["followers_url"] = followers_url + if following is not UNSET: + field_dict["following"] = following + if following_url is not UNSET: + field_dict["following_url"] = following_url + if gists_url is not UNSET: + field_dict["gists_url"] = gists_url + if gravatar_id is not UNSET: + field_dict["gravatar_id"] = gravatar_id + if hireable is not UNSET: + field_dict["hireable"] = hireable + if html_url is not UNSET: + field_dict["html_url"] = html_url + if id is not UNSET: + field_dict["id"] = id + if ldap_dn is not UNSET: + field_dict["ldap_dn"] = ldap_dn + if location is not UNSET: + field_dict["location"] = location + if login is not UNSET: + field_dict["login"] = login + if name is not UNSET: + field_dict["name"] = name + if node_id is not UNSET: + field_dict["node_id"] = node_id + if organizations_url is not UNSET: + field_dict["organizations_url"] = organizations_url + if owned_private_repos is not UNSET: + field_dict["owned_private_repos"] = owned_private_repos + if permissions is not UNSET: + field_dict["permissions"] = permissions + if plan is not UNSET: + field_dict["plan"] = plan + if private_gists is not UNSET: + field_dict["private_gists"] = private_gists + if public_gists is not UNSET: + field_dict["public_gists"] = public_gists + if public_repos is not UNSET: + field_dict["public_repos"] = public_repos + if received_events_url is not UNSET: + field_dict["received_events_url"] = received_events_url + if repos_url is not UNSET: + field_dict["repos_url"] = repos_url + if role_name is not UNSET: + field_dict["role_name"] = role_name + if site_admin is not UNSET: + field_dict["site_admin"] = site_admin + if starred_url is not UNSET: + field_dict["starred_url"] = starred_url + if subscriptions_url is not UNSET: + field_dict["subscriptions_url"] = subscriptions_url + if suspended_at is not UNSET: + field_dict["suspended_at"] = suspended_at + if text_matches is not UNSET: + field_dict["text_matches"] = text_matches + if total_private_repos is not UNSET: + field_dict["total_private_repos"] = total_private_repos + if twitter_username is not UNSET: + field_dict["twitter_username"] = twitter_username + if two_factor_authentication is not UNSET: + field_dict["two_factor_authentication"] = two_factor_authentication + if type_ is not UNSET: + field_dict["type"] = type_ + if updated_at is not UNSET: + field_dict["updated_at"] = updated_at + if url is not UNSET: + field_dict["url"] = url + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.github_plan import GithubPlan + from ..models.github_text_match import GithubTextMatch + from ..models.github_timestamp import GithubTimestamp + from ..models.github_user_permissions import GithubUserPermissions + + d = dict(src_dict) + avatar_url = d.pop("avatar_url", UNSET) + + bio = d.pop("bio", UNSET) + + blog = d.pop("blog", UNSET) + + collaborators = d.pop("collaborators", UNSET) + + company = d.pop("company", UNSET) + + _created_at = d.pop("created_at", UNSET) + created_at: GithubTimestamp | Unset + if isinstance(_created_at, Unset): + created_at = UNSET + else: + created_at = GithubTimestamp.from_dict(_created_at) + + disk_usage = d.pop("disk_usage", UNSET) + + email = d.pop("email", UNSET) + + events_url = d.pop("events_url", UNSET) + + followers = d.pop("followers", UNSET) + + followers_url = d.pop("followers_url", UNSET) + + following = d.pop("following", UNSET) + + following_url = d.pop("following_url", UNSET) + + gists_url = d.pop("gists_url", UNSET) + + gravatar_id = d.pop("gravatar_id", UNSET) + + hireable = d.pop("hireable", UNSET) + + html_url = d.pop("html_url", UNSET) + + id = d.pop("id", UNSET) + + ldap_dn = d.pop("ldap_dn", UNSET) + + location = d.pop("location", UNSET) + + login = d.pop("login", UNSET) + + name = d.pop("name", UNSET) + + node_id = d.pop("node_id", UNSET) + + organizations_url = d.pop("organizations_url", UNSET) + + owned_private_repos = d.pop("owned_private_repos", UNSET) + + _permissions = d.pop("permissions", UNSET) + permissions: GithubUserPermissions | Unset + if isinstance(_permissions, Unset): + permissions = UNSET + else: + permissions = GithubUserPermissions.from_dict(_permissions) + + _plan = d.pop("plan", UNSET) + plan: GithubPlan | Unset + if isinstance(_plan, Unset): + plan = UNSET + else: + plan = GithubPlan.from_dict(_plan) + + private_gists = d.pop("private_gists", UNSET) + + public_gists = d.pop("public_gists", UNSET) + + public_repos = d.pop("public_repos", UNSET) + + received_events_url = d.pop("received_events_url", UNSET) + + repos_url = d.pop("repos_url", UNSET) + + role_name = d.pop("role_name", UNSET) + + site_admin = d.pop("site_admin", UNSET) + + starred_url = d.pop("starred_url", UNSET) + + subscriptions_url = d.pop("subscriptions_url", UNSET) + + _suspended_at = d.pop("suspended_at", UNSET) + suspended_at: GithubTimestamp | Unset + if isinstance(_suspended_at, Unset): + suspended_at = UNSET + else: + suspended_at = GithubTimestamp.from_dict(_suspended_at) + + _text_matches = d.pop("text_matches", UNSET) + text_matches: list[GithubTextMatch] | Unset = UNSET + if _text_matches is not UNSET: + text_matches = [] + for text_matches_item_data in _text_matches: + text_matches_item = GithubTextMatch.from_dict(text_matches_item_data) + + text_matches.append(text_matches_item) + + total_private_repos = d.pop("total_private_repos", UNSET) + + twitter_username = d.pop("twitter_username", UNSET) + + two_factor_authentication = d.pop("two_factor_authentication", UNSET) + + type_ = d.pop("type", UNSET) + + _updated_at = d.pop("updated_at", UNSET) + updated_at: GithubTimestamp | Unset + if isinstance(_updated_at, Unset): + updated_at = UNSET + else: + updated_at = GithubTimestamp.from_dict(_updated_at) + + url = d.pop("url", UNSET) + + github_user = cls( + avatar_url=avatar_url, + bio=bio, + blog=blog, + collaborators=collaborators, + company=company, + created_at=created_at, + disk_usage=disk_usage, + email=email, + events_url=events_url, + followers=followers, + followers_url=followers_url, + following=following, + following_url=following_url, + gists_url=gists_url, + gravatar_id=gravatar_id, + hireable=hireable, + html_url=html_url, + id=id, + ldap_dn=ldap_dn, + location=location, + login=login, + name=name, + node_id=node_id, + organizations_url=organizations_url, + owned_private_repos=owned_private_repos, + permissions=permissions, + plan=plan, + private_gists=private_gists, + public_gists=public_gists, + public_repos=public_repos, + received_events_url=received_events_url, + repos_url=repos_url, + role_name=role_name, + site_admin=site_admin, + starred_url=starred_url, + subscriptions_url=subscriptions_url, + suspended_at=suspended_at, + text_matches=text_matches, + total_private_repos=total_private_repos, + twitter_username=twitter_username, + two_factor_authentication=two_factor_authentication, + type_=type_, + updated_at=updated_at, + url=url, + ) + + github_user.additional_properties = d + return github_user + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/get_terraform_workspace_state_json_resources_v2_response_200.py b/nuon/models/github_user_permissions.py similarity index 59% rename from nuon/models/get_terraform_workspace_state_json_resources_v2_response_200.py rename to nuon/models/github_user_permissions.py index 54fe373a..b15f2e9c 100644 --- a/nuon/models/get_terraform_workspace_state_json_resources_v2_response_200.py +++ b/nuon/models/github_user_permissions.py @@ -6,16 +6,20 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="GetTerraformWorkspaceStateJSONResourcesV2Response200") +T = TypeVar("T", bound="GithubUserPermissions") @_attrs_define -class GetTerraformWorkspaceStateJSONResourcesV2Response200: - """ """ +class GithubUserPermissions: + """Permissions and RoleName identify the permissions and role that a user has on a given + repository. These are only populated when calling Repositories.ListCollaborators. - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + """ + + additional_properties: dict[str, bool] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -24,19 +28,19 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - get_terraform_workspace_state_json_resources_v2_response_200 = cls() + github_user_permissions = cls() - get_terraform_workspace_state_json_resources_v2_response_200.additional_properties = d - return get_terraform_workspace_state_json_resources_v2_response_200 + github_user_permissions.additional_properties = d + return github_user_permissions @property def additional_keys(self) -> list[str]: return list(self.additional_properties.keys()) - def __getitem__(self, key: str) -> Any: + def __getitem__(self, key: str) -> bool: return self.additional_properties[key] - def __setitem__(self, key: str, value: Any) -> None: + def __setitem__(self, key: str, value: bool) -> None: self.additional_properties[key] = value def __delitem__(self, key: str) -> None: diff --git a/nuon/models/kube_cluster_info.py b/nuon/models/kube_cluster_info.py index 2ae16896..df4aeb60 100644 --- a/nuon/models/kube_cluster_info.py +++ b/nuon/models/kube_cluster_info.py @@ -9,11 +9,9 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) from ..models.kube_cluster_info_env_vars import KubeClusterInfoEnvVars @@ -25,8 +23,8 @@ class KubeClusterInfo: """ Attributes: - aws_auth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): - azure_auth (GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset): + aws_auth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): + azure_auth (GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset): ca_data (str | Unset): CAData is the base64 encoded public certificate endpoint (str | Unset): Endpoint is the URL of the k8s api server env_vars (KubeClusterInfoEnvVars | Unset): @@ -40,8 +38,8 @@ class KubeClusterInfo: NOTE(JM): we are deprecating this """ - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset = UNSET + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset = UNSET ca_data: str | Unset = UNSET endpoint: str | Unset = UNSET env_vars: KubeClusterInfoEnvVars | Unset = UNSET @@ -102,28 +100,28 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) from ..models.kube_cluster_info_env_vars import KubeClusterInfoEnvVars d = dict(src_dict) _aws_auth = d.pop("aws_auth", UNSET) - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_aws_auth, Unset): aws_auth = UNSET else: - aws_auth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_aws_auth) + aws_auth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_aws_auth) _azure_auth = d.pop("azure_auth", UNSET) - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset if isinstance(_azure_auth, Unset): azure_auth = UNSET else: - azure_auth = GithubComPowertoolsdevMonoPkgAzureCredentialsConfig.from_dict(_azure_auth) + azure_auth = GithubComNuoncoNuonPkgAzureCredentialsConfig.from_dict(_azure_auth) ca_data = d.pop("ca_data", UNSET) diff --git a/nuon/models/kube_cluster_info_env_vars.py b/nuon/models/kube_cluster_info_env_vars.py index 75f7486c..09b101e9 100644 --- a/nuon/models/kube_cluster_info_env_vars.py +++ b/nuon/models/kube_cluster_info_env_vars.py @@ -16,6 +16,7 @@ class KubeClusterInfoEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/permissions_set.py b/nuon/models/permissions_set.py index 41bcf7c5..cf065cea 100644 --- a/nuon/models/permissions_set.py +++ b/nuon/models/permissions_set.py @@ -18,6 +18,7 @@ class PermissionsSet: additional_properties: dict[str, PermissionsPermission] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.value diff --git a/nuon/models/plantypes_action_workflow_run_plan.py b/nuon/models/plantypes_action_workflow_run_plan.py index 58861852..4129af8f 100644 --- a/nuon/models/plantypes_action_workflow_run_plan.py +++ b/nuon/models/plantypes_action_workflow_run_plan.py @@ -9,9 +9,7 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig from ..models.kube_cluster_info import KubeClusterInfo from ..models.plantypes_action_workflow_run_plan_attrs import PlantypesActionWorkflowRunPlanAttrs from ..models.plantypes_action_workflow_run_plan_builtin_env_vars import ( @@ -32,7 +30,7 @@ class PlantypesActionWorkflowRunPlan: """ Attributes: attrs (PlantypesActionWorkflowRunPlanAttrs | Unset): - aws_auth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): + aws_auth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): builtin_env_vars (PlantypesActionWorkflowRunPlanBuiltinEnvVars | Unset): cluster_info (KubeClusterInfo | Unset): id (str | Unset): @@ -43,7 +41,7 @@ class PlantypesActionWorkflowRunPlan: """ attrs: PlantypesActionWorkflowRunPlanAttrs | Unset = UNSET - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET builtin_env_vars: PlantypesActionWorkflowRunPlanBuiltinEnvVars | Unset = UNSET cluster_info: KubeClusterInfo | Unset = UNSET id: str | Unset = UNSET @@ -115,8 +113,8 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) from ..models.kube_cluster_info import KubeClusterInfo from ..models.plantypes_action_workflow_run_plan_attrs import PlantypesActionWorkflowRunPlanAttrs @@ -138,11 +136,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: attrs = PlantypesActionWorkflowRunPlanAttrs.from_dict(_attrs) _aws_auth = d.pop("aws_auth", UNSET) - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_aws_auth, Unset): aws_auth = UNSET else: - aws_auth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_aws_auth) + aws_auth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_aws_auth) _builtin_env_vars = d.pop("builtin_env_vars", UNSET) builtin_env_vars: PlantypesActionWorkflowRunPlanBuiltinEnvVars | Unset diff --git a/nuon/models/plantypes_action_workflow_run_plan_attrs.py b/nuon/models/plantypes_action_workflow_run_plan_attrs.py index 94c85085..d869d436 100644 --- a/nuon/models/plantypes_action_workflow_run_plan_attrs.py +++ b/nuon/models/plantypes_action_workflow_run_plan_attrs.py @@ -16,6 +16,7 @@ class PlantypesActionWorkflowRunPlanAttrs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_action_workflow_run_plan_builtin_env_vars.py b/nuon/models/plantypes_action_workflow_run_plan_builtin_env_vars.py index f0861155..6d4581b6 100644 --- a/nuon/models/plantypes_action_workflow_run_plan_builtin_env_vars.py +++ b/nuon/models/plantypes_action_workflow_run_plan_builtin_env_vars.py @@ -16,6 +16,7 @@ class PlantypesActionWorkflowRunPlanBuiltinEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_action_workflow_run_plan_override_env_vars.py b/nuon/models/plantypes_action_workflow_run_plan_override_env_vars.py index e7631248..79c3a3ce 100644 --- a/nuon/models/plantypes_action_workflow_run_plan_override_env_vars.py +++ b/nuon/models/plantypes_action_workflow_run_plan_override_env_vars.py @@ -16,6 +16,7 @@ class PlantypesActionWorkflowRunPlanOverrideEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_action_workflow_run_step_plan_attrs.py b/nuon/models/plantypes_action_workflow_run_step_plan_attrs.py index 927a690d..6b624e7a 100644 --- a/nuon/models/plantypes_action_workflow_run_step_plan_attrs.py +++ b/nuon/models/plantypes_action_workflow_run_step_plan_attrs.py @@ -16,6 +16,7 @@ class PlantypesActionWorkflowRunStepPlanAttrs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_action_workflow_run_step_plan_interpolated_env_vars.py b/nuon/models/plantypes_action_workflow_run_step_plan_interpolated_env_vars.py index 909ad0e4..4c0911c4 100644 --- a/nuon/models/plantypes_action_workflow_run_step_plan_interpolated_env_vars.py +++ b/nuon/models/plantypes_action_workflow_run_step_plan_interpolated_env_vars.py @@ -16,6 +16,7 @@ class PlantypesActionWorkflowRunStepPlanInterpolatedEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_build_plan.py b/nuon/models/plantypes_build_plan.py index 0ee0b60d..82785cd2 100644 --- a/nuon/models/plantypes_build_plan.py +++ b/nuon/models/plantypes_build_plan.py @@ -14,6 +14,7 @@ from ..models.plantypes_docker_build_plan import PlantypesDockerBuildPlan from ..models.plantypes_git_source import PlantypesGitSource from ..models.plantypes_helm_build_plan import PlantypesHelmBuildPlan + from ..models.plantypes_kubernetes_manifest_build_plan import PlantypesKubernetesManifestBuildPlan from ..models.plantypes_sandbox_mode import PlantypesSandboxMode from ..models.plantypes_terraform_build_plan import PlantypesTerraformBuildPlan @@ -33,6 +34,7 @@ class PlantypesBuildPlan: docker_build_plan (PlantypesDockerBuildPlan | Unset): git_source (PlantypesGitSource | Unset): helm_build_plan (PlantypesHelmBuildPlan | Unset): + kubernetes_manifest_build_plan (PlantypesKubernetesManifestBuildPlan | Unset): sandbox_mode (PlantypesSandboxMode | Unset): terraform_build_plan (PlantypesTerraformBuildPlan | Unset): """ @@ -45,6 +47,7 @@ class PlantypesBuildPlan: docker_build_plan: PlantypesDockerBuildPlan | Unset = UNSET git_source: PlantypesGitSource | Unset = UNSET helm_build_plan: PlantypesHelmBuildPlan | Unset = UNSET + kubernetes_manifest_build_plan: PlantypesKubernetesManifestBuildPlan | Unset = UNSET sandbox_mode: PlantypesSandboxMode | Unset = UNSET terraform_build_plan: PlantypesTerraformBuildPlan | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -74,6 +77,10 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.helm_build_plan, Unset): helm_build_plan = self.helm_build_plan.to_dict() + kubernetes_manifest_build_plan: dict[str, Any] | Unset = UNSET + if not isinstance(self.kubernetes_manifest_build_plan, Unset): + kubernetes_manifest_build_plan = self.kubernetes_manifest_build_plan.to_dict() + sandbox_mode: dict[str, Any] | Unset = UNSET if not isinstance(self.sandbox_mode, Unset): sandbox_mode = self.sandbox_mode.to_dict() @@ -102,6 +109,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["git_source"] = git_source if helm_build_plan is not UNSET: field_dict["helm_build_plan"] = helm_build_plan + if kubernetes_manifest_build_plan is not UNSET: + field_dict["kubernetes_manifest_build_plan"] = kubernetes_manifest_build_plan if sandbox_mode is not UNSET: field_dict["sandbox_mode"] = sandbox_mode if terraform_build_plan is not UNSET: @@ -116,6 +125,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.plantypes_docker_build_plan import PlantypesDockerBuildPlan from ..models.plantypes_git_source import PlantypesGitSource from ..models.plantypes_helm_build_plan import PlantypesHelmBuildPlan + from ..models.plantypes_kubernetes_manifest_build_plan import PlantypesKubernetesManifestBuildPlan from ..models.plantypes_sandbox_mode import PlantypesSandboxMode from ..models.plantypes_terraform_build_plan import PlantypesTerraformBuildPlan @@ -156,6 +166,15 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: helm_build_plan = PlantypesHelmBuildPlan.from_dict(_helm_build_plan) + _kubernetes_manifest_build_plan = d.pop("kubernetes_manifest_build_plan", UNSET) + kubernetes_manifest_build_plan: PlantypesKubernetesManifestBuildPlan | Unset + if isinstance(_kubernetes_manifest_build_plan, Unset): + kubernetes_manifest_build_plan = UNSET + else: + kubernetes_manifest_build_plan = PlantypesKubernetesManifestBuildPlan.from_dict( + _kubernetes_manifest_build_plan + ) + _sandbox_mode = d.pop("sandbox_mode", UNSET) sandbox_mode: PlantypesSandboxMode | Unset if isinstance(_sandbox_mode, Unset): @@ -179,6 +198,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: docker_build_plan=docker_build_plan, git_source=git_source, helm_build_plan=helm_build_plan, + kubernetes_manifest_build_plan=kubernetes_manifest_build_plan, sandbox_mode=sandbox_mode, terraform_build_plan=terraform_build_plan, ) diff --git a/nuon/models/plantypes_composite_plan.py b/nuon/models/plantypes_composite_plan.py index 3611c6c7..f7c0eb5e 100644 --- a/nuon/models/plantypes_composite_plan.py +++ b/nuon/models/plantypes_composite_plan.py @@ -12,6 +12,7 @@ from ..models.plantypes_action_workflow_run_plan import PlantypesActionWorkflowRunPlan from ..models.plantypes_build_plan import PlantypesBuildPlan from ..models.plantypes_deploy_plan import PlantypesDeployPlan + from ..models.plantypes_fetch_image_metadata_plan import PlantypesFetchImageMetadataPlan from ..models.plantypes_sandbox_run_plan import PlantypesSandboxRunPlan from ..models.plantypes_sync_oci_plan import PlantypesSyncOCIPlan from ..models.plantypes_sync_secrets_plan import PlantypesSyncSecretsPlan @@ -27,6 +28,7 @@ class PlantypesCompositePlan: action_workflow_run_plan (PlantypesActionWorkflowRunPlan | Unset): build_plan (PlantypesBuildPlan | Unset): deploy_plan (PlantypesDeployPlan | Unset): + fetch_image_metadata_plan (PlantypesFetchImageMetadataPlan | Unset): sandbox_run_plan (PlantypesSandboxRunPlan | Unset): sync_oci_plan (PlantypesSyncOCIPlan | Unset): sync_secrets_plan (PlantypesSyncSecretsPlan | Unset): @@ -35,6 +37,7 @@ class PlantypesCompositePlan: action_workflow_run_plan: PlantypesActionWorkflowRunPlan | Unset = UNSET build_plan: PlantypesBuildPlan | Unset = UNSET deploy_plan: PlantypesDeployPlan | Unset = UNSET + fetch_image_metadata_plan: PlantypesFetchImageMetadataPlan | Unset = UNSET sandbox_run_plan: PlantypesSandboxRunPlan | Unset = UNSET sync_oci_plan: PlantypesSyncOCIPlan | Unset = UNSET sync_secrets_plan: PlantypesSyncSecretsPlan | Unset = UNSET @@ -53,6 +56,10 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.deploy_plan, Unset): deploy_plan = self.deploy_plan.to_dict() + fetch_image_metadata_plan: dict[str, Any] | Unset = UNSET + if not isinstance(self.fetch_image_metadata_plan, Unset): + fetch_image_metadata_plan = self.fetch_image_metadata_plan.to_dict() + sandbox_run_plan: dict[str, Any] | Unset = UNSET if not isinstance(self.sandbox_run_plan, Unset): sandbox_run_plan = self.sandbox_run_plan.to_dict() @@ -74,6 +81,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["build_plan"] = build_plan if deploy_plan is not UNSET: field_dict["deploy_plan"] = deploy_plan + if fetch_image_metadata_plan is not UNSET: + field_dict["fetch_image_metadata_plan"] = fetch_image_metadata_plan if sandbox_run_plan is not UNSET: field_dict["sandbox_run_plan"] = sandbox_run_plan if sync_oci_plan is not UNSET: @@ -88,6 +97,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.plantypes_action_workflow_run_plan import PlantypesActionWorkflowRunPlan from ..models.plantypes_build_plan import PlantypesBuildPlan from ..models.plantypes_deploy_plan import PlantypesDeployPlan + from ..models.plantypes_fetch_image_metadata_plan import PlantypesFetchImageMetadataPlan from ..models.plantypes_sandbox_run_plan import PlantypesSandboxRunPlan from ..models.plantypes_sync_oci_plan import PlantypesSyncOCIPlan from ..models.plantypes_sync_secrets_plan import PlantypesSyncSecretsPlan @@ -114,6 +124,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: deploy_plan = PlantypesDeployPlan.from_dict(_deploy_plan) + _fetch_image_metadata_plan = d.pop("fetch_image_metadata_plan", UNSET) + fetch_image_metadata_plan: PlantypesFetchImageMetadataPlan | Unset + if isinstance(_fetch_image_metadata_plan, Unset): + fetch_image_metadata_plan = UNSET + else: + fetch_image_metadata_plan = PlantypesFetchImageMetadataPlan.from_dict(_fetch_image_metadata_plan) + _sandbox_run_plan = d.pop("sandbox_run_plan", UNSET) sandbox_run_plan: PlantypesSandboxRunPlan | Unset if isinstance(_sandbox_run_plan, Unset): @@ -139,6 +156,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: action_workflow_run_plan=action_workflow_run_plan, build_plan=build_plan, deploy_plan=deploy_plan, + fetch_image_metadata_plan=fetch_image_metadata_plan, sandbox_run_plan=sandbox_run_plan, sync_oci_plan=sync_oci_plan, sync_secrets_plan=sync_secrets_plan, diff --git a/nuon/models/plantypes_docker_build_plan_build_args.py b/nuon/models/plantypes_docker_build_plan_build_args.py index 9576b707..0cd1793e 100644 --- a/nuon/models/plantypes_docker_build_plan_build_args.py +++ b/nuon/models/plantypes_docker_build_plan_build_args.py @@ -16,6 +16,7 @@ class PlantypesDockerBuildPlanBuildArgs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_fetch_image_metadata_plan.py b/nuon/models/plantypes_fetch_image_metadata_plan.py new file mode 100644 index 00000000..a88bd0aa --- /dev/null +++ b/nuon/models/plantypes_fetch_image_metadata_plan.py @@ -0,0 +1,122 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.configs_oci_registry_repository import ConfigsOCIRegistryRepository + from ..models.plantypes_sandbox_mode import PlantypesSandboxMode + + +T = TypeVar("T", bound="PlantypesFetchImageMetadataPlan") + + +@_attrs_define +class PlantypesFetchImageMetadataPlan: + """ + Attributes: + registry (ConfigsOCIRegistryRepository): + tag (str): Tag is the image tag to fetch metadata for + include_attestation_layers (bool | Unset): + include_attestation_manifests (bool | Unset): + include_index (bool | Unset): Options for metadata fetching + sandbox_mode (PlantypesSandboxMode | Unset): + """ + + registry: ConfigsOCIRegistryRepository + tag: str + include_attestation_layers: bool | Unset = UNSET + include_attestation_manifests: bool | Unset = UNSET + include_index: bool | Unset = UNSET + sandbox_mode: PlantypesSandboxMode | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + registry = self.registry.to_dict() + + tag = self.tag + + include_attestation_layers = self.include_attestation_layers + + include_attestation_manifests = self.include_attestation_manifests + + include_index = self.include_index + + sandbox_mode: dict[str, Any] | Unset = UNSET + if not isinstance(self.sandbox_mode, Unset): + sandbox_mode = self.sandbox_mode.to_dict() + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "registry": registry, + "tag": tag, + } + ) + if include_attestation_layers is not UNSET: + field_dict["include_attestation_layers"] = include_attestation_layers + if include_attestation_manifests is not UNSET: + field_dict["include_attestation_manifests"] = include_attestation_manifests + if include_index is not UNSET: + field_dict["include_index"] = include_index + if sandbox_mode is not UNSET: + field_dict["sandbox_mode"] = sandbox_mode + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.configs_oci_registry_repository import ConfigsOCIRegistryRepository + from ..models.plantypes_sandbox_mode import PlantypesSandboxMode + + d = dict(src_dict) + registry = ConfigsOCIRegistryRepository.from_dict(d.pop("registry")) + + tag = d.pop("tag") + + include_attestation_layers = d.pop("include_attestation_layers", UNSET) + + include_attestation_manifests = d.pop("include_attestation_manifests", UNSET) + + include_index = d.pop("include_index", UNSET) + + _sandbox_mode = d.pop("sandbox_mode", UNSET) + sandbox_mode: PlantypesSandboxMode | Unset + if isinstance(_sandbox_mode, Unset): + sandbox_mode = UNSET + else: + sandbox_mode = PlantypesSandboxMode.from_dict(_sandbox_mode) + + plantypes_fetch_image_metadata_plan = cls( + registry=registry, + tag=tag, + include_attestation_layers=include_attestation_layers, + include_attestation_manifests=include_attestation_manifests, + include_index=include_index, + sandbox_mode=sandbox_mode, + ) + + plantypes_fetch_image_metadata_plan.additional_properties = d + return plantypes_fetch_image_metadata_plan + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/plantypes_helm_build_plan_labels.py b/nuon/models/plantypes_helm_build_plan_labels.py index 37b7ec57..60da783b 100644 --- a/nuon/models/plantypes_helm_build_plan_labels.py +++ b/nuon/models/plantypes_helm_build_plan_labels.py @@ -16,6 +16,7 @@ class PlantypesHelmBuildPlanLabels: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_kubernetes_manifest_build_plan.py b/nuon/models/plantypes_kubernetes_manifest_build_plan.py new file mode 100644 index 00000000..27bc6d0f --- /dev/null +++ b/nuon/models/plantypes_kubernetes_manifest_build_plan.py @@ -0,0 +1,121 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.plantypes_kubernetes_manifest_build_plan_labels import PlantypesKubernetesManifestBuildPlanLabels + from ..models.plantypes_kustomize_build_config import PlantypesKustomizeBuildConfig + + +T = TypeVar("T", bound="PlantypesKubernetesManifestBuildPlan") + + +@_attrs_define +class PlantypesKubernetesManifestBuildPlan: + """ + Attributes: + inline_manifest (str | Unset): InlineManifest contains the raw manifest YAML (for inline source type) + kustomize_config (PlantypesKustomizeBuildConfig | Unset): + kustomize_path (str | Unset): KustomizePath is the path to the kustomization directory (for kustomize source + type) + Relative to the repository root + labels (PlantypesKubernetesManifestBuildPlanLabels | Unset): Labels for the OCI artifact + source_type (str | Unset): SourceType indicates how manifests are sourced: "inline" or "kustomize" + """ + + inline_manifest: str | Unset = UNSET + kustomize_config: PlantypesKustomizeBuildConfig | Unset = UNSET + kustomize_path: str | Unset = UNSET + labels: PlantypesKubernetesManifestBuildPlanLabels | Unset = UNSET + source_type: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + inline_manifest = self.inline_manifest + + kustomize_config: dict[str, Any] | Unset = UNSET + if not isinstance(self.kustomize_config, Unset): + kustomize_config = self.kustomize_config.to_dict() + + kustomize_path = self.kustomize_path + + labels: dict[str, Any] | Unset = UNSET + if not isinstance(self.labels, Unset): + labels = self.labels.to_dict() + + source_type = self.source_type + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if inline_manifest is not UNSET: + field_dict["inline_manifest"] = inline_manifest + if kustomize_config is not UNSET: + field_dict["kustomize_config"] = kustomize_config + if kustomize_path is not UNSET: + field_dict["kustomize_path"] = kustomize_path + if labels is not UNSET: + field_dict["labels"] = labels + if source_type is not UNSET: + field_dict["source_type"] = source_type + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.plantypes_kubernetes_manifest_build_plan_labels import PlantypesKubernetesManifestBuildPlanLabels + from ..models.plantypes_kustomize_build_config import PlantypesKustomizeBuildConfig + + d = dict(src_dict) + inline_manifest = d.pop("inline_manifest", UNSET) + + _kustomize_config = d.pop("kustomize_config", UNSET) + kustomize_config: PlantypesKustomizeBuildConfig | Unset + if isinstance(_kustomize_config, Unset): + kustomize_config = UNSET + else: + kustomize_config = PlantypesKustomizeBuildConfig.from_dict(_kustomize_config) + + kustomize_path = d.pop("kustomize_path", UNSET) + + _labels = d.pop("labels", UNSET) + labels: PlantypesKubernetesManifestBuildPlanLabels | Unset + if isinstance(_labels, Unset): + labels = UNSET + else: + labels = PlantypesKubernetesManifestBuildPlanLabels.from_dict(_labels) + + source_type = d.pop("source_type", UNSET) + + plantypes_kubernetes_manifest_build_plan = cls( + inline_manifest=inline_manifest, + kustomize_config=kustomize_config, + kustomize_path=kustomize_path, + labels=labels, + source_type=source_type, + ) + + plantypes_kubernetes_manifest_build_plan.additional_properties = d + return plantypes_kubernetes_manifest_build_plan + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/plantypes_kubernetes_manifest_build_plan_labels.py b/nuon/models/plantypes_kubernetes_manifest_build_plan_labels.py new file mode 100644 index 00000000..4377292c --- /dev/null +++ b/nuon/models/plantypes_kubernetes_manifest_build_plan_labels.py @@ -0,0 +1,47 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="PlantypesKubernetesManifestBuildPlanLabels") + + +@_attrs_define +class PlantypesKubernetesManifestBuildPlanLabels: + """Labels for the OCI artifact""" + + additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + plantypes_kubernetes_manifest_build_plan_labels = cls() + + plantypes_kubernetes_manifest_build_plan_labels.additional_properties = d + return plantypes_kubernetes_manifest_build_plan_labels + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> str: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: str) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/plantypes_kubernetes_manifest_deploy_plan.py b/nuon/models/plantypes_kubernetes_manifest_deploy_plan.py index c03cda8c..49a37061 100644 --- a/nuon/models/plantypes_kubernetes_manifest_deploy_plan.py +++ b/nuon/models/plantypes_kubernetes_manifest_deploy_plan.py @@ -10,6 +10,7 @@ if TYPE_CHECKING: from ..models.kube_cluster_info import KubeClusterInfo + from ..models.plantypes_oci_artifact_reference import PlantypesOCIArtifactReference T = TypeVar("T", bound="PlantypesKubernetesManifestDeployPlan") @@ -20,13 +21,17 @@ class PlantypesKubernetesManifestDeployPlan: """ Attributes: cluster_info (KubeClusterInfo | Unset): - manifest (str | Unset): + manifest (str | Unset): Manifest is populated at runtime from the OCI artifact. + This field is no longer set during plan creation - it's populated by the runner + after pulling the OCI artifact during Initialize(). namespace (str | Unset): + oci_artifact (PlantypesOCIArtifactReference | Unset): """ cluster_info: KubeClusterInfo | Unset = UNSET manifest: str | Unset = UNSET namespace: str | Unset = UNSET + oci_artifact: PlantypesOCIArtifactReference | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: @@ -38,6 +43,10 @@ def to_dict(self) -> dict[str, Any]: namespace = self.namespace + oci_artifact: dict[str, Any] | Unset = UNSET + if not isinstance(self.oci_artifact, Unset): + oci_artifact = self.oci_artifact.to_dict() + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) @@ -47,12 +56,15 @@ def to_dict(self) -> dict[str, Any]: field_dict["manifest"] = manifest if namespace is not UNSET: field_dict["namespace"] = namespace + if oci_artifact is not UNSET: + field_dict["oci_artifact"] = oci_artifact return field_dict @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.kube_cluster_info import KubeClusterInfo + from ..models.plantypes_oci_artifact_reference import PlantypesOCIArtifactReference d = dict(src_dict) _cluster_info = d.pop("cluster_info", UNSET) @@ -66,10 +78,18 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: namespace = d.pop("namespace", UNSET) + _oci_artifact = d.pop("oci_artifact", UNSET) + oci_artifact: PlantypesOCIArtifactReference | Unset + if isinstance(_oci_artifact, Unset): + oci_artifact = UNSET + else: + oci_artifact = PlantypesOCIArtifactReference.from_dict(_oci_artifact) + plantypes_kubernetes_manifest_deploy_plan = cls( cluster_info=cluster_info, manifest=manifest, namespace=namespace, + oci_artifact=oci_artifact, ) plantypes_kubernetes_manifest_deploy_plan.additional_properties = d diff --git a/nuon/models/plantypes_kustomize_build_config.py b/nuon/models/plantypes_kustomize_build_config.py new file mode 100644 index 00000000..b63c186e --- /dev/null +++ b/nuon/models/plantypes_kustomize_build_config.py @@ -0,0 +1,81 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="PlantypesKustomizeBuildConfig") + + +@_attrs_define +class PlantypesKustomizeBuildConfig: + """ + Attributes: + enable_helm (bool | Unset): EnableHelm enables Helm chart inflation during kustomize build + load_restrictor (str | Unset): LoadRestrictor controls file loading: "none" or "rootOnly" (default) + patches (list[str] | Unset): Patches are additional patch files to apply after kustomize build + """ + + enable_helm: bool | Unset = UNSET + load_restrictor: str | Unset = UNSET + patches: list[str] | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + enable_helm = self.enable_helm + + load_restrictor = self.load_restrictor + + patches: list[str] | Unset = UNSET + if not isinstance(self.patches, Unset): + patches = self.patches + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if enable_helm is not UNSET: + field_dict["enable_helm"] = enable_helm + if load_restrictor is not UNSET: + field_dict["load_restrictor"] = load_restrictor + if patches is not UNSET: + field_dict["patches"] = patches + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + enable_helm = d.pop("enable_helm", UNSET) + + load_restrictor = d.pop("load_restrictor", UNSET) + + patches = cast(list[str], d.pop("patches", UNSET)) + + plantypes_kustomize_build_config = cls( + enable_helm=enable_helm, + load_restrictor=load_restrictor, + patches=patches, + ) + + plantypes_kustomize_build_config.additional_properties = d + return plantypes_kustomize_build_config + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/plantypes_noop_deploy_plan.py b/nuon/models/plantypes_noop_deploy_plan.py index 26caea1d..b3f47543 100644 --- a/nuon/models/plantypes_noop_deploy_plan.py +++ b/nuon/models/plantypes_noop_deploy_plan.py @@ -16,6 +16,7 @@ class PlantypesNoopDeployPlan: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_oci_artifact_reference.py b/nuon/models/plantypes_oci_artifact_reference.py new file mode 100644 index 00000000..6563141a --- /dev/null +++ b/nuon/models/plantypes_oci_artifact_reference.py @@ -0,0 +1,79 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="PlantypesOCIArtifactReference") + + +@_attrs_define +class PlantypesOCIArtifactReference: + """ + Attributes: + digest (str | Unset): Digest is the immutable artifact digest (e.g., sha256:abc123...) + tag (str | Unset): Tag is the artifact tag (typically the build ID) + url (str | Unset): URL is the full artifact URL (e.g., registry.nuon.co/org_id/app_id) + """ + + digest: str | Unset = UNSET + tag: str | Unset = UNSET + url: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + digest = self.digest + + tag = self.tag + + url = self.url + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if digest is not UNSET: + field_dict["digest"] = digest + if tag is not UNSET: + field_dict["tag"] = tag + if url is not UNSET: + field_dict["url"] = url + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + digest = d.pop("digest", UNSET) + + tag = d.pop("tag", UNSET) + + url = d.pop("url", UNSET) + + plantypes_oci_artifact_reference = cls( + digest=digest, + tag=tag, + url=url, + ) + + plantypes_oci_artifact_reference.additional_properties = d + return plantypes_oci_artifact_reference + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/plantypes_sandbox_mode_outputs.py b/nuon/models/plantypes_sandbox_mode_outputs.py index b24024a8..d40612d6 100644 --- a/nuon/models/plantypes_sandbox_mode_outputs.py +++ b/nuon/models/plantypes_sandbox_mode_outputs.py @@ -16,6 +16,7 @@ class PlantypesSandboxModeOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_sandbox_run_plan.py b/nuon/models/plantypes_sandbox_run_plan.py index b9d13944..71618a36 100644 --- a/nuon/models/plantypes_sandbox_run_plan.py +++ b/nuon/models/plantypes_sandbox_run_plan.py @@ -9,15 +9,11 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_types_state_state import ( - GithubComPowertoolsdevMonoPkgTypesStateState, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) + from ..models.github_com_nuonco_nuon_pkg_types_state_state import GithubComNuoncoNuonPkgTypesStateState from ..models.plantypes_git_source import PlantypesGitSource from ..models.plantypes_sandbox_mode import PlantypesSandboxMode from ..models.plantypes_sandbox_run_plan_env_vars import PlantypesSandboxRunPlanEnvVars @@ -40,8 +36,8 @@ class PlantypesSandboxRunPlan: apply_plan_contents (str | Unset): The following field is for applying a plan that is already saved apply_plan_display (list[int] | Unset): This field is for storing a human legible plan or corollary representation - aws_auth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): - azure_auth (GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset): + aws_auth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): + azure_auth (GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset): env_vars (PlantypesSandboxRunPlanEnvVars | Unset): git_source (PlantypesGitSource | Unset): hooks (PlantypesTerraformDeployHooks | Unset): @@ -49,7 +45,7 @@ class PlantypesSandboxRunPlan: local_archive (PlantypesTerraformLocalArchive | Unset): policies (PlantypesSandboxRunPlanPolicies | Unset): sandbox_mode (PlantypesSandboxMode | Unset): - state (GithubComPowertoolsdevMonoPkgTypesStateState | Unset): + state (GithubComNuoncoNuonPkgTypesStateState | Unset): terraform_backend (PlantypesTerraformBackend | Unset): vars_ (PlantypesSandboxRunPlanVars | Unset): vars_files (list[str] | Unset): @@ -59,8 +55,8 @@ class PlantypesSandboxRunPlan: app_id: str | Unset = UNSET apply_plan_contents: str | Unset = UNSET apply_plan_display: list[int] | Unset = UNSET - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset = UNSET + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset = UNSET env_vars: PlantypesSandboxRunPlanEnvVars | Unset = UNSET git_source: PlantypesGitSource | Unset = UNSET hooks: PlantypesTerraformDeployHooks | Unset = UNSET @@ -68,7 +64,7 @@ class PlantypesSandboxRunPlan: local_archive: PlantypesTerraformLocalArchive | Unset = UNSET policies: PlantypesSandboxRunPlanPolicies | Unset = UNSET sandbox_mode: PlantypesSandboxMode | Unset = UNSET - state: GithubComPowertoolsdevMonoPkgTypesStateState | Unset = UNSET + state: GithubComNuoncoNuonPkgTypesStateState | Unset = UNSET terraform_backend: PlantypesTerraformBackend | Unset = UNSET vars_: PlantypesSandboxRunPlanVars | Unset = UNSET vars_files: list[str] | Unset = UNSET @@ -177,15 +173,13 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) - from ..models.github_com_powertoolsdev_mono_pkg_types_state_state import ( - GithubComPowertoolsdevMonoPkgTypesStateState, + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) + from ..models.github_com_nuonco_nuon_pkg_types_state_state import GithubComNuoncoNuonPkgTypesStateState from ..models.plantypes_git_source import PlantypesGitSource from ..models.plantypes_sandbox_mode import PlantypesSandboxMode from ..models.plantypes_sandbox_run_plan_env_vars import PlantypesSandboxRunPlanEnvVars @@ -205,18 +199,18 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: apply_plan_display = cast(list[int], d.pop("apply_plan_display", UNSET)) _aws_auth = d.pop("aws_auth", UNSET) - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_aws_auth, Unset): aws_auth = UNSET else: - aws_auth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_aws_auth) + aws_auth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_aws_auth) _azure_auth = d.pop("azure_auth", UNSET) - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset if isinstance(_azure_auth, Unset): azure_auth = UNSET else: - azure_auth = GithubComPowertoolsdevMonoPkgAzureCredentialsConfig.from_dict(_azure_auth) + azure_auth = GithubComNuoncoNuonPkgAzureCredentialsConfig.from_dict(_azure_auth) _env_vars = d.pop("env_vars", UNSET) env_vars: PlantypesSandboxRunPlanEnvVars | Unset @@ -263,11 +257,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: sandbox_mode = PlantypesSandboxMode.from_dict(_sandbox_mode) _state = d.pop("state", UNSET) - state: GithubComPowertoolsdevMonoPkgTypesStateState | Unset + state: GithubComNuoncoNuonPkgTypesStateState | Unset if isinstance(_state, Unset): state = UNSET else: - state = GithubComPowertoolsdevMonoPkgTypesStateState.from_dict(_state) + state = GithubComNuoncoNuonPkgTypesStateState.from_dict(_state) _terraform_backend = d.pop("terraform_backend", UNSET) terraform_backend: PlantypesTerraformBackend | Unset diff --git a/nuon/models/plantypes_sandbox_run_plan_env_vars.py b/nuon/models/plantypes_sandbox_run_plan_env_vars.py index d47b59aa..98a3638d 100644 --- a/nuon/models/plantypes_sandbox_run_plan_env_vars.py +++ b/nuon/models/plantypes_sandbox_run_plan_env_vars.py @@ -16,6 +16,7 @@ class PlantypesSandboxRunPlanEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_sandbox_run_plan_policies.py b/nuon/models/plantypes_sandbox_run_plan_policies.py index 5078e9ee..d972d4c3 100644 --- a/nuon/models/plantypes_sandbox_run_plan_policies.py +++ b/nuon/models/plantypes_sandbox_run_plan_policies.py @@ -16,6 +16,7 @@ class PlantypesSandboxRunPlanPolicies: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_sandbox_run_plan_vars.py b/nuon/models/plantypes_sandbox_run_plan_vars.py index 2c442cfb..748aada2 100644 --- a/nuon/models/plantypes_sandbox_run_plan_vars.py +++ b/nuon/models/plantypes_sandbox_run_plan_vars.py @@ -16,6 +16,7 @@ class PlantypesSandboxRunPlanVars: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_sync_secrets_plan.py b/nuon/models/plantypes_sync_secrets_plan.py index caba4f7e..5544f21c 100644 --- a/nuon/models/plantypes_sync_secrets_plan.py +++ b/nuon/models/plantypes_sync_secrets_plan.py @@ -9,11 +9,9 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) from ..models.kube_cluster_info import KubeClusterInfo from ..models.plantypes_kubernetes_secret_sync import PlantypesKubernetesSecretSync @@ -27,15 +25,15 @@ class PlantypesSyncSecretsPlan: """ Attributes: - aws_auth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): - azure_auth (GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset): + aws_auth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): + azure_auth (GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset): cluster_info (KubeClusterInfo | Unset): kubernetes_secrets (list[PlantypesKubernetesSecretSync] | Unset): sandbox_mode (PlantypesSandboxMode | Unset): """ - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset = UNSET + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset = UNSET cluster_info: KubeClusterInfo | Unset = UNSET kubernetes_secrets: list[PlantypesKubernetesSecretSync] | Unset = UNSET sandbox_mode: PlantypesSandboxMode | Unset = UNSET @@ -83,11 +81,11 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) from ..models.kube_cluster_info import KubeClusterInfo from ..models.plantypes_kubernetes_secret_sync import PlantypesKubernetesSecretSync @@ -95,18 +93,18 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) _aws_auth = d.pop("aws_auth", UNSET) - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_aws_auth, Unset): aws_auth = UNSET else: - aws_auth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_aws_auth) + aws_auth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_aws_auth) _azure_auth = d.pop("azure_auth", UNSET) - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset if isinstance(_azure_auth, Unset): azure_auth = UNSET else: - azure_auth = GithubComPowertoolsdevMonoPkgAzureCredentialsConfig.from_dict(_azure_auth) + azure_auth = GithubComNuoncoNuonPkgAzureCredentialsConfig.from_dict(_azure_auth) _cluster_info = d.pop("cluster_info", UNSET) cluster_info: KubeClusterInfo | Unset diff --git a/nuon/models/plantypes_terraform_build_plan_labels.py b/nuon/models/plantypes_terraform_build_plan_labels.py index 8d7ab081..052c4a3a 100644 --- a/nuon/models/plantypes_terraform_build_plan_labels.py +++ b/nuon/models/plantypes_terraform_build_plan_labels.py @@ -16,6 +16,7 @@ class PlantypesTerraformBuildPlanLabels: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_terraform_deploy_hooks.py b/nuon/models/plantypes_terraform_deploy_hooks.py index 5765b51c..4a49eaa1 100644 --- a/nuon/models/plantypes_terraform_deploy_hooks.py +++ b/nuon/models/plantypes_terraform_deploy_hooks.py @@ -9,9 +9,7 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig from ..models.plantypes_terraform_deploy_hooks_env_vars import PlantypesTerraformDeployHooksEnvVars @@ -24,12 +22,12 @@ class PlantypesTerraformDeployHooks: Attributes: enabled (bool | Unset): env_vars (PlantypesTerraformDeployHooksEnvVars | Unset): - run_auth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): + run_auth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): """ enabled: bool | Unset = UNSET env_vars: PlantypesTerraformDeployHooksEnvVars | Unset = UNSET - run_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET + run_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: @@ -57,8 +55,8 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) from ..models.plantypes_terraform_deploy_hooks_env_vars import PlantypesTerraformDeployHooksEnvVars @@ -73,11 +71,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: env_vars = PlantypesTerraformDeployHooksEnvVars.from_dict(_env_vars) _run_auth = d.pop("runAuth", UNSET) - run_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + run_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_run_auth, Unset): run_auth = UNSET else: - run_auth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_run_auth) + run_auth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_run_auth) plantypes_terraform_deploy_hooks = cls( enabled=enabled, diff --git a/nuon/models/plantypes_terraform_deploy_hooks_env_vars.py b/nuon/models/plantypes_terraform_deploy_hooks_env_vars.py index 71c8a932..cc329516 100644 --- a/nuon/models/plantypes_terraform_deploy_hooks_env_vars.py +++ b/nuon/models/plantypes_terraform_deploy_hooks_env_vars.py @@ -16,6 +16,7 @@ class PlantypesTerraformDeployHooksEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_terraform_deploy_plan.py b/nuon/models/plantypes_terraform_deploy_plan.py index f143bc36..af2bf8e9 100644 --- a/nuon/models/plantypes_terraform_deploy_plan.py +++ b/nuon/models/plantypes_terraform_deploy_plan.py @@ -9,15 +9,11 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_types_state_state import ( - GithubComPowertoolsdevMonoPkgTypesStateState, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import GithubComNuoncoNuonPkgAwsCredentialsConfig + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) + from ..models.github_com_nuonco_nuon_pkg_types_state_state import GithubComNuoncoNuonPkgTypesStateState from ..models.kube_cluster_info import KubeClusterInfo from ..models.plantypes_terraform_backend import PlantypesTerraformBackend from ..models.plantypes_terraform_deploy_hooks import PlantypesTerraformDeployHooks @@ -33,27 +29,27 @@ class PlantypesTerraformDeployPlan: """ Attributes: - aws_auth (GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset): - azure_auth (GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset): + aws_auth (GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset): + azure_auth (GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset): cluster_info (KubeClusterInfo | Unset): env_vars (PlantypesTerraformDeployPlanEnvVars | Unset): hooks (PlantypesTerraformDeployHooks | Unset): plan_json (list[int] | Unset): policies (PlantypesTerraformDeployPlanPolicies | Unset): - state (GithubComPowertoolsdevMonoPkgTypesStateState | Unset): + state (GithubComNuoncoNuonPkgTypesStateState | Unset): terraform_backend (PlantypesTerraformBackend | Unset): vars_ (PlantypesTerraformDeployPlanVars | Unset): vars_files (list[str] | Unset): """ - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset = UNSET - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset = UNSET + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset = UNSET + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset = UNSET cluster_info: KubeClusterInfo | Unset = UNSET env_vars: PlantypesTerraformDeployPlanEnvVars | Unset = UNSET hooks: PlantypesTerraformDeployHooks | Unset = UNSET plan_json: list[int] | Unset = UNSET policies: PlantypesTerraformDeployPlanPolicies | Unset = UNSET - state: GithubComPowertoolsdevMonoPkgTypesStateState | Unset = UNSET + state: GithubComNuoncoNuonPkgTypesStateState | Unset = UNSET terraform_backend: PlantypesTerraformBackend | Unset = UNSET vars_: PlantypesTerraformDeployPlanVars | Unset = UNSET vars_files: list[str] | Unset = UNSET @@ -134,15 +130,13 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.github_com_powertoolsdev_mono_pkg_aws_credentials_config import ( - GithubComPowertoolsdevMonoPkgAwsCredentialsConfig, - ) - from ..models.github_com_powertoolsdev_mono_pkg_azure_credentials_config import ( - GithubComPowertoolsdevMonoPkgAzureCredentialsConfig, + from ..models.github_com_nuonco_nuon_pkg_aws_credentials_config import ( + GithubComNuoncoNuonPkgAwsCredentialsConfig, ) - from ..models.github_com_powertoolsdev_mono_pkg_types_state_state import ( - GithubComPowertoolsdevMonoPkgTypesStateState, + from ..models.github_com_nuonco_nuon_pkg_azure_credentials_config import ( + GithubComNuoncoNuonPkgAzureCredentialsConfig, ) + from ..models.github_com_nuonco_nuon_pkg_types_state_state import GithubComNuoncoNuonPkgTypesStateState from ..models.kube_cluster_info import KubeClusterInfo from ..models.plantypes_terraform_backend import PlantypesTerraformBackend from ..models.plantypes_terraform_deploy_hooks import PlantypesTerraformDeployHooks @@ -152,18 +146,18 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) _aws_auth = d.pop("aws_auth", UNSET) - aws_auth: GithubComPowertoolsdevMonoPkgAwsCredentialsConfig | Unset + aws_auth: GithubComNuoncoNuonPkgAwsCredentialsConfig | Unset if isinstance(_aws_auth, Unset): aws_auth = UNSET else: - aws_auth = GithubComPowertoolsdevMonoPkgAwsCredentialsConfig.from_dict(_aws_auth) + aws_auth = GithubComNuoncoNuonPkgAwsCredentialsConfig.from_dict(_aws_auth) _azure_auth = d.pop("azure_auth", UNSET) - azure_auth: GithubComPowertoolsdevMonoPkgAzureCredentialsConfig | Unset + azure_auth: GithubComNuoncoNuonPkgAzureCredentialsConfig | Unset if isinstance(_azure_auth, Unset): azure_auth = UNSET else: - azure_auth = GithubComPowertoolsdevMonoPkgAzureCredentialsConfig.from_dict(_azure_auth) + azure_auth = GithubComNuoncoNuonPkgAzureCredentialsConfig.from_dict(_azure_auth) _cluster_info = d.pop("cluster_info", UNSET) cluster_info: KubeClusterInfo | Unset @@ -196,11 +190,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: policies = PlantypesTerraformDeployPlanPolicies.from_dict(_policies) _state = d.pop("state", UNSET) - state: GithubComPowertoolsdevMonoPkgTypesStateState | Unset + state: GithubComNuoncoNuonPkgTypesStateState | Unset if isinstance(_state, Unset): state = UNSET else: - state = GithubComPowertoolsdevMonoPkgTypesStateState.from_dict(_state) + state = GithubComNuoncoNuonPkgTypesStateState.from_dict(_state) _terraform_backend = d.pop("terraform_backend", UNSET) terraform_backend: PlantypesTerraformBackend | Unset diff --git a/nuon/models/plantypes_terraform_deploy_plan_env_vars.py b/nuon/models/plantypes_terraform_deploy_plan_env_vars.py index fc85e17f..945898b6 100644 --- a/nuon/models/plantypes_terraform_deploy_plan_env_vars.py +++ b/nuon/models/plantypes_terraform_deploy_plan_env_vars.py @@ -16,6 +16,7 @@ class PlantypesTerraformDeployPlanEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_terraform_deploy_plan_policies.py b/nuon/models/plantypes_terraform_deploy_plan_policies.py index 77b3b2d7..67e66c60 100644 --- a/nuon/models/plantypes_terraform_deploy_plan_policies.py +++ b/nuon/models/plantypes_terraform_deploy_plan_policies.py @@ -16,6 +16,7 @@ class PlantypesTerraformDeployPlanPolicies: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/plantypes_terraform_deploy_plan_vars.py b/nuon/models/plantypes_terraform_deploy_plan_vars.py index bc015708..47f0bdc9 100644 --- a/nuon/models/plantypes_terraform_deploy_plan_vars.py +++ b/nuon/models/plantypes_terraform_deploy_plan_vars.py @@ -16,6 +16,7 @@ class PlantypesTerraformDeployPlanVars: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_app_policy_config.py b/nuon/models/service_app_policy_config.py index 197ccda8..b3a88805 100644 --- a/nuon/models/service_app_policy_config.py +++ b/nuon/models/service_app_policy_config.py @@ -1,12 +1,14 @@ from __future__ import annotations from collections.abc import Mapping -from typing import Any, TypeVar +from typing import Any, TypeVar, cast from attrs import define as _attrs_define from attrs import field as _attrs_field +from ..models.config_app_policy_engine import ConfigAppPolicyEngine from ..models.config_app_policy_type import ConfigAppPolicyType +from ..types import UNSET, Unset T = TypeVar("T", bound="ServiceAppPolicyConfig") @@ -17,10 +19,14 @@ class ServiceAppPolicyConfig: Attributes: contents (str): type_ (ConfigAppPolicyType): + components (list[str] | Unset): + engine (ConfigAppPolicyEngine | Unset): """ contents: str type_: ConfigAppPolicyType + components: list[str] | Unset = UNSET + engine: ConfigAppPolicyEngine | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: @@ -28,6 +34,14 @@ def to_dict(self) -> dict[str, Any]: type_ = self.type_.value + components: list[str] | Unset = UNSET + if not isinstance(self.components, Unset): + components = self.components + + engine: str | Unset = UNSET + if not isinstance(self.engine, Unset): + engine = self.engine.value + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update( @@ -36,6 +50,10 @@ def to_dict(self) -> dict[str, Any]: "type": type_, } ) + if components is not UNSET: + field_dict["components"] = components + if engine is not UNSET: + field_dict["engine"] = engine return field_dict @@ -46,9 +64,20 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: type_ = ConfigAppPolicyType(d.pop("type")) + components = cast(list[str], d.pop("components", UNSET)) + + _engine = d.pop("engine", UNSET) + engine: ConfigAppPolicyEngine | Unset + if isinstance(_engine, Unset): + engine = UNSET + else: + engine = ConfigAppPolicyEngine(_engine) + service_app_policy_config = cls( contents=contents, type_=type_, + components=components, + engine=engine, ) service_app_policy_config.additional_properties = d diff --git a/nuon/models/service_auth_me_identity.py b/nuon/models/service_auth_me_identity.py new file mode 100644 index 00000000..25378469 --- /dev/null +++ b/nuon/models/service_auth_me_identity.py @@ -0,0 +1,87 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..models.app_provider_type import AppProviderType +from ..types import UNSET, Unset + +T = TypeVar("T", bound="ServiceAuthMeIdentity") + + +@_attrs_define +class ServiceAuthMeIdentity: + """ + Attributes: + name (str | Unset): + picture (str | Unset): + provider_type (AppProviderType | Unset): + """ + + name: str | Unset = UNSET + picture: str | Unset = UNSET + provider_type: AppProviderType | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + name = self.name + + picture = self.picture + + provider_type: str | Unset = UNSET + if not isinstance(self.provider_type, Unset): + provider_type = self.provider_type.value + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if name is not UNSET: + field_dict["name"] = name + if picture is not UNSET: + field_dict["picture"] = picture + if provider_type is not UNSET: + field_dict["provider_type"] = provider_type + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + name = d.pop("name", UNSET) + + picture = d.pop("picture", UNSET) + + _provider_type = d.pop("provider_type", UNSET) + provider_type: AppProviderType | Unset + if isinstance(_provider_type, Unset): + provider_type = UNSET + else: + provider_type = AppProviderType(_provider_type) + + service_auth_me_identity = cls( + name=name, + picture=picture, + provider_type=provider_type, + ) + + service_auth_me_identity.additional_properties = d + return service_auth_me_identity + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_auth_me_response.py b/nuon/models/service_auth_me_response.py new file mode 100644 index 00000000..23fdad55 --- /dev/null +++ b/nuon/models/service_auth_me_response.py @@ -0,0 +1,216 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..models.app_account_type import AppAccountType +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.app_role import AppRole + from ..models.app_user_journey import AppUserJourney + from ..models.permissions_set import PermissionsSet + from ..models.service_auth_me_identity import ServiceAuthMeIdentity + + +T = TypeVar("T", bound="ServiceAuthMeResponse") + + +@_attrs_define +class ServiceAuthMeResponse: + """ + Attributes: + account_type (AppAccountType | Unset): + created_at (str | Unset): + email (str | Unset): + id (str | Unset): + identities (list[ServiceAuthMeIdentity] | Unset): + org_ids (list[str] | Unset): ReadOnly Fields + permissions (PermissionsSet | Unset): + roles (list[AppRole] | Unset): + subject (str | Unset): + updated_at (str | Unset): + user_journeys (list[AppUserJourney] | Unset): + """ + + account_type: AppAccountType | Unset = UNSET + created_at: str | Unset = UNSET + email: str | Unset = UNSET + id: str | Unset = UNSET + identities: list[ServiceAuthMeIdentity] | Unset = UNSET + org_ids: list[str] | Unset = UNSET + permissions: PermissionsSet | Unset = UNSET + roles: list[AppRole] | Unset = UNSET + subject: str | Unset = UNSET + updated_at: str | Unset = UNSET + user_journeys: list[AppUserJourney] | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + account_type: str | Unset = UNSET + if not isinstance(self.account_type, Unset): + account_type = self.account_type.value + + created_at = self.created_at + + email = self.email + + id = self.id + + identities: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.identities, Unset): + identities = [] + for identities_item_data in self.identities: + identities_item = identities_item_data.to_dict() + identities.append(identities_item) + + org_ids: list[str] | Unset = UNSET + if not isinstance(self.org_ids, Unset): + org_ids = self.org_ids + + permissions: dict[str, Any] | Unset = UNSET + if not isinstance(self.permissions, Unset): + permissions = self.permissions.to_dict() + + roles: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.roles, Unset): + roles = [] + for roles_item_data in self.roles: + roles_item = roles_item_data.to_dict() + roles.append(roles_item) + + subject = self.subject + + updated_at = self.updated_at + + user_journeys: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.user_journeys, Unset): + user_journeys = [] + for user_journeys_item_data in self.user_journeys: + user_journeys_item = user_journeys_item_data.to_dict() + user_journeys.append(user_journeys_item) + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if account_type is not UNSET: + field_dict["account_type"] = account_type + if created_at is not UNSET: + field_dict["created_at"] = created_at + if email is not UNSET: + field_dict["email"] = email + if id is not UNSET: + field_dict["id"] = id + if identities is not UNSET: + field_dict["identities"] = identities + if org_ids is not UNSET: + field_dict["org_ids"] = org_ids + if permissions is not UNSET: + field_dict["permissions"] = permissions + if roles is not UNSET: + field_dict["roles"] = roles + if subject is not UNSET: + field_dict["subject"] = subject + if updated_at is not UNSET: + field_dict["updated_at"] = updated_at + if user_journeys is not UNSET: + field_dict["user_journeys"] = user_journeys + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.app_role import AppRole + from ..models.app_user_journey import AppUserJourney + from ..models.permissions_set import PermissionsSet + from ..models.service_auth_me_identity import ServiceAuthMeIdentity + + d = dict(src_dict) + _account_type = d.pop("account_type", UNSET) + account_type: AppAccountType | Unset + if isinstance(_account_type, Unset): + account_type = UNSET + else: + account_type = AppAccountType(_account_type) + + created_at = d.pop("created_at", UNSET) + + email = d.pop("email", UNSET) + + id = d.pop("id", UNSET) + + _identities = d.pop("identities", UNSET) + identities: list[ServiceAuthMeIdentity] | Unset = UNSET + if _identities is not UNSET: + identities = [] + for identities_item_data in _identities: + identities_item = ServiceAuthMeIdentity.from_dict(identities_item_data) + + identities.append(identities_item) + + org_ids = cast(list[str], d.pop("org_ids", UNSET)) + + _permissions = d.pop("permissions", UNSET) + permissions: PermissionsSet | Unset + if isinstance(_permissions, Unset): + permissions = UNSET + else: + permissions = PermissionsSet.from_dict(_permissions) + + _roles = d.pop("roles", UNSET) + roles: list[AppRole] | Unset = UNSET + if _roles is not UNSET: + roles = [] + for roles_item_data in _roles: + roles_item = AppRole.from_dict(roles_item_data) + + roles.append(roles_item) + + subject = d.pop("subject", UNSET) + + updated_at = d.pop("updated_at", UNSET) + + _user_journeys = d.pop("user_journeys", UNSET) + user_journeys: list[AppUserJourney] | Unset = UNSET + if _user_journeys is not UNSET: + user_journeys = [] + for user_journeys_item_data in _user_journeys: + user_journeys_item = AppUserJourney.from_dict(user_journeys_item_data) + + user_journeys.append(user_journeys_item) + + service_auth_me_response = cls( + account_type=account_type, + created_at=created_at, + email=email, + id=id, + identities=identities, + org_ids=org_ids, + permissions=permissions, + roles=roles, + subject=subject, + updated_at=updated_at, + user_journeys=user_journeys, + ) + + service_auth_me_response.additional_properties = d + return service_auth_me_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_build_all_components_request.py b/nuon/models/service_build_all_components_request.py index c558b6ca..cc3621cd 100644 --- a/nuon/models/service_build_all_components_request.py +++ b/nuon/models/service_build_all_components_request.py @@ -16,6 +16,7 @@ class ServiceBuildAllComponentsRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_cancel_runner_job_request.py b/nuon/models/service_cancel_runner_job_request.py index e1feea24..ca7af32b 100644 --- a/nuon/models/service_cancel_runner_job_request.py +++ b/nuon/models/service_cancel_runner_job_request.py @@ -16,6 +16,7 @@ class ServiceCancelRunnerJobRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_cli_config.py b/nuon/models/service_cli_config.py index c31bebc1..681c9b13 100644 --- a/nuon/models/service_cli_config.py +++ b/nuon/models/service_cli_config.py @@ -19,12 +19,16 @@ class ServiceCLIConfig: auth_client_id (str | Unset): auth_domain (str | Unset): dashboard_url (str | Unset): + nuon_auth_enabled (bool | Unset): + root_domain (str | Unset): """ auth_audience: str | Unset = UNSET auth_client_id: str | Unset = UNSET auth_domain: str | Unset = UNSET dashboard_url: str | Unset = UNSET + nuon_auth_enabled: bool | Unset = UNSET + root_domain: str | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: @@ -36,6 +40,10 @@ def to_dict(self) -> dict[str, Any]: dashboard_url = self.dashboard_url + nuon_auth_enabled = self.nuon_auth_enabled + + root_domain = self.root_domain + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) @@ -47,6 +55,10 @@ def to_dict(self) -> dict[str, Any]: field_dict["auth_domain"] = auth_domain if dashboard_url is not UNSET: field_dict["dashboard_url"] = dashboard_url + if nuon_auth_enabled is not UNSET: + field_dict["nuon_auth_enabled"] = nuon_auth_enabled + if root_domain is not UNSET: + field_dict["root_domain"] = root_domain return field_dict @@ -61,11 +73,17 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: dashboard_url = d.pop("dashboard_url", UNSET) + nuon_auth_enabled = d.pop("nuon_auth_enabled", UNSET) + + root_domain = d.pop("root_domain", UNSET) + service_cli_config = cls( auth_audience=auth_audience, auth_client_id=auth_client_id, auth_domain=auth_domain, dashboard_url=dashboard_url, + nuon_auth_enabled=nuon_auth_enabled, + root_domain=root_domain, ) service_cli_config.additional_properties = d diff --git a/nuon/models/service_create_action_workflow_config_step_request_env_vars.py b/nuon/models/service_create_action_workflow_config_step_request_env_vars.py index 6ffacaf0..e53b4257 100644 --- a/nuon/models/service_create_action_workflow_config_step_request_env_vars.py +++ b/nuon/models/service_create_action_workflow_config_step_request_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateActionWorkflowConfigStepRequestEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_app_input_config_request_groups.py b/nuon/models/service_create_app_input_config_request_groups.py index 07357baa..3dfdad3c 100644 --- a/nuon/models/service_create_app_input_config_request_groups.py +++ b/nuon/models/service_create_app_input_config_request_groups.py @@ -20,6 +20,7 @@ class ServiceCreateAppInputConfigRequestGroups: additional_properties: dict[str, ServiceAppGroupRequest] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.to_dict() diff --git a/nuon/models/service_create_app_input_config_request_inputs.py b/nuon/models/service_create_app_input_config_request_inputs.py index f25b272f..db39b943 100644 --- a/nuon/models/service_create_app_input_config_request_inputs.py +++ b/nuon/models/service_create_app_input_config_request_inputs.py @@ -20,6 +20,7 @@ class ServiceCreateAppInputConfigRequestInputs: additional_properties: dict[str, ServiceAppInputRequest] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.to_dict() diff --git a/nuon/models/service_create_app_runner_config_request_env_vars.py b/nuon/models/service_create_app_runner_config_request_env_vars.py index f6e2041b..c9a09214 100644 --- a/nuon/models/service_create_app_runner_config_request_env_vars.py +++ b/nuon/models/service_create_app_runner_config_request_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateAppRunnerConfigRequestEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_app_sandbox_config_request_env_vars.py b/nuon/models/service_create_app_sandbox_config_request_env_vars.py index a7d20edc..037130ef 100644 --- a/nuon/models/service_create_app_sandbox_config_request_env_vars.py +++ b/nuon/models/service_create_app_sandbox_config_request_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateAppSandboxConfigRequestEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_app_sandbox_config_request_variables.py b/nuon/models/service_create_app_sandbox_config_request_variables.py index a8fc8dfe..3977eeee 100644 --- a/nuon/models/service_create_app_sandbox_config_request_variables.py +++ b/nuon/models/service_create_app_sandbox_config_request_variables.py @@ -16,6 +16,7 @@ class ServiceCreateAppSandboxConfigRequestVariables: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) 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 f31da697..6052d05d 100644 --- a/nuon/models/service_create_docker_build_component_config_request.py +++ b/nuon/models/service_create_docker_build_component_config_request.py @@ -26,9 +26,11 @@ class ServiceCreateDockerBuildComponentConfigRequest: dockerfile (str): app_config_id (str | Unset): build_args (list[str] | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h") checksum (str | Unset): connected_github_vcs_config (ServiceConnectedGithubVCSConfigRequest | Unset): dependencies (list[str] | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h") env_vars (ServiceCreateDockerBuildComponentConfigRequestEnvVars | Unset): public_git_vcs_config (ServicePublicGitVCSConfigRequest | Unset): references (list[str] | Unset): @@ -38,9 +40,11 @@ class ServiceCreateDockerBuildComponentConfigRequest: dockerfile: str app_config_id: str | Unset = UNSET build_args: list[str] | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET connected_github_vcs_config: ServiceConnectedGithubVCSConfigRequest | Unset = UNSET dependencies: list[str] | Unset = UNSET + deploy_timeout: str | Unset = UNSET env_vars: ServiceCreateDockerBuildComponentConfigRequestEnvVars | Unset = UNSET public_git_vcs_config: ServicePublicGitVCSConfigRequest | Unset = UNSET references: list[str] | Unset = UNSET @@ -56,6 +60,8 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.build_args, Unset): build_args = self.build_args + build_timeout = self.build_timeout + checksum = self.checksum connected_github_vcs_config: dict[str, Any] | Unset = UNSET @@ -66,6 +72,8 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.dependencies, Unset): dependencies = self.dependencies + deploy_timeout = self.deploy_timeout + env_vars: dict[str, Any] | Unset = UNSET if not isinstance(self.env_vars, Unset): env_vars = self.env_vars.to_dict() @@ -91,12 +99,16 @@ def to_dict(self) -> dict[str, Any]: field_dict["app_config_id"] = app_config_id if build_args is not UNSET: field_dict["build_args"] = build_args + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum if connected_github_vcs_config is not UNSET: field_dict["connected_github_vcs_config"] = connected_github_vcs_config if dependencies is not UNSET: field_dict["dependencies"] = dependencies + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if env_vars is not UNSET: field_dict["env_vars"] = env_vars if public_git_vcs_config is not UNSET: @@ -123,6 +135,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: build_args = cast(list[str], d.pop("build_args", UNSET)) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) _connected_github_vcs_config = d.pop("connected_github_vcs_config", UNSET) @@ -134,6 +148,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: dependencies = cast(list[str], d.pop("dependencies", UNSET)) + deploy_timeout = d.pop("deploy_timeout", UNSET) + _env_vars = d.pop("env_vars", UNSET) env_vars: ServiceCreateDockerBuildComponentConfigRequestEnvVars | Unset if isinstance(_env_vars, Unset): @@ -156,9 +172,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: dockerfile=dockerfile, app_config_id=app_config_id, build_args=build_args, + build_timeout=build_timeout, checksum=checksum, connected_github_vcs_config=connected_github_vcs_config, dependencies=dependencies, + deploy_timeout=deploy_timeout, env_vars=env_vars, public_git_vcs_config=public_git_vcs_config, references=references, diff --git a/nuon/models/service_create_docker_build_component_config_request_env_vars.py b/nuon/models/service_create_docker_build_component_config_request_env_vars.py index cb9b8f1a..652432e2 100644 --- a/nuon/models/service_create_docker_build_component_config_request_env_vars.py +++ b/nuon/models/service_create_docker_build_component_config_request_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateDockerBuildComponentConfigRequestEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) 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 217e1128..8b5cfd93 100644 --- a/nuon/models/service_create_external_image_component_config_request.py +++ b/nuon/models/service_create_external_image_component_config_request.py @@ -23,8 +23,10 @@ class ServiceCreateExternalImageComponentConfigRequest: tag (str): app_config_id (str | Unset): aws_ecr_image_config (ServiceAwsECRImageConfigRequest | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h") checksum (str | Unset): dependencies (list[str] | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h") references (list[str] | Unset): """ @@ -32,8 +34,10 @@ class ServiceCreateExternalImageComponentConfigRequest: tag: str app_config_id: str | Unset = UNSET aws_ecr_image_config: ServiceAwsECRImageConfigRequest | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET dependencies: list[str] | Unset = UNSET + deploy_timeout: str | Unset = UNSET references: list[str] | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -48,12 +52,16 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.aws_ecr_image_config, Unset): aws_ecr_image_config = self.aws_ecr_image_config.to_dict() + build_timeout = self.build_timeout + checksum = self.checksum dependencies: list[str] | Unset = UNSET if not isinstance(self.dependencies, Unset): dependencies = self.dependencies + deploy_timeout = self.deploy_timeout + references: list[str] | Unset = UNSET if not isinstance(self.references, Unset): references = self.references @@ -70,10 +78,14 @@ def to_dict(self) -> dict[str, Any]: field_dict["app_config_id"] = app_config_id if aws_ecr_image_config is not UNSET: field_dict["aws_ecr_image_config"] = aws_ecr_image_config + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum if dependencies is not UNSET: field_dict["dependencies"] = dependencies + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if references is not UNSET: field_dict["references"] = references @@ -97,10 +109,14 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: aws_ecr_image_config = ServiceAwsECRImageConfigRequest.from_dict(_aws_ecr_image_config) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) dependencies = cast(list[str], d.pop("dependencies", UNSET)) + deploy_timeout = d.pop("deploy_timeout", UNSET) + references = cast(list[str], d.pop("references", UNSET)) service_create_external_image_component_config_request = cls( @@ -108,8 +124,10 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: tag=tag, app_config_id=app_config_id, aws_ecr_image_config=aws_ecr_image_config, + build_timeout=build_timeout, checksum=checksum, dependencies=dependencies, + deploy_timeout=deploy_timeout, references=references, ) diff --git a/nuon/models/service_create_helm_component_config_request.py b/nuon/models/service_create_helm_component_config_request.py index bf89479b..6aff4cbc 100644 --- a/nuon/models/service_create_helm_component_config_request.py +++ b/nuon/models/service_create_helm_component_config_request.py @@ -27,9 +27,11 @@ class ServiceCreateHelmComponentConfigRequest: chart_name (str): values (ServiceCreateHelmComponentConfigRequestValues): app_config_id (str | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h") checksum (str | Unset): connected_github_vcs_config (ServiceConnectedGithubVCSConfigRequest | Unset): dependencies (list[str] | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h") drift_schedule (str | Unset): helm_repo_config (ServiceHelmRepoConfigRequest | Unset): namespace (str | Unset): @@ -43,9 +45,11 @@ class ServiceCreateHelmComponentConfigRequest: chart_name: str values: ServiceCreateHelmComponentConfigRequestValues app_config_id: str | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET connected_github_vcs_config: ServiceConnectedGithubVCSConfigRequest | Unset = UNSET dependencies: list[str] | Unset = UNSET + deploy_timeout: str | Unset = UNSET drift_schedule: str | Unset = UNSET helm_repo_config: ServiceHelmRepoConfigRequest | Unset = UNSET namespace: str | Unset = UNSET @@ -63,6 +67,8 @@ def to_dict(self) -> dict[str, Any]: app_config_id = self.app_config_id + build_timeout = self.build_timeout + checksum = self.checksum connected_github_vcs_config: dict[str, Any] | Unset = UNSET @@ -73,6 +79,8 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.dependencies, Unset): dependencies = self.dependencies + deploy_timeout = self.deploy_timeout + drift_schedule = self.drift_schedule helm_repo_config: dict[str, Any] | Unset = UNSET @@ -107,12 +115,16 @@ def to_dict(self) -> dict[str, Any]: ) if app_config_id is not UNSET: field_dict["app_config_id"] = app_config_id + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum if connected_github_vcs_config is not UNSET: field_dict["connected_github_vcs_config"] = connected_github_vcs_config if dependencies is not UNSET: field_dict["dependencies"] = dependencies + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if drift_schedule is not UNSET: field_dict["drift_schedule"] = drift_schedule if helm_repo_config is not UNSET: @@ -148,6 +160,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: app_config_id = d.pop("app_config_id", UNSET) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) _connected_github_vcs_config = d.pop("connected_github_vcs_config", UNSET) @@ -159,6 +173,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: dependencies = cast(list[str], d.pop("dependencies", UNSET)) + deploy_timeout = d.pop("deploy_timeout", UNSET) + drift_schedule = d.pop("drift_schedule", UNSET) _helm_repo_config = d.pop("helm_repo_config", UNSET) @@ -189,9 +205,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: chart_name=chart_name, values=values, app_config_id=app_config_id, + build_timeout=build_timeout, checksum=checksum, connected_github_vcs_config=connected_github_vcs_config, dependencies=dependencies, + deploy_timeout=deploy_timeout, drift_schedule=drift_schedule, helm_repo_config=helm_repo_config, namespace=namespace, diff --git a/nuon/models/service_create_helm_component_config_request_values.py b/nuon/models/service_create_helm_component_config_request_values.py index 6f2c4876..1da3f1a2 100644 --- a/nuon/models/service_create_helm_component_config_request_values.py +++ b/nuon/models/service_create_helm_component_config_request_values.py @@ -16,6 +16,7 @@ class ServiceCreateHelmComponentConfigRequestValues: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_install_action_workflow_run_request_run_env_vars.py b/nuon/models/service_create_install_action_workflow_run_request_run_env_vars.py index 94e7e2db..1043f40a 100644 --- a/nuon/models/service_create_install_action_workflow_run_request_run_env_vars.py +++ b/nuon/models/service_create_install_action_workflow_run_request_run_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateInstallActionWorkflowRunRequestRunEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_install_inputs_request_inputs.py b/nuon/models/service_create_install_inputs_request_inputs.py index f20e4880..78404950 100644 --- a/nuon/models/service_create_install_inputs_request_inputs.py +++ b/nuon/models/service_create_install_inputs_request_inputs.py @@ -16,6 +16,7 @@ class ServiceCreateInstallInputsRequestInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_install_request_inputs.py b/nuon/models/service_create_install_request_inputs.py index 7997b6ef..1f1a6807 100644 --- a/nuon/models/service_create_install_request_inputs.py +++ b/nuon/models/service_create_install_request_inputs.py @@ -16,6 +16,7 @@ class ServiceCreateInstallRequestInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_install_v2_request_inputs.py b/nuon/models/service_create_install_v2_request_inputs.py index 44a7df08..aa278534 100644 --- a/nuon/models/service_create_install_v2_request_inputs.py +++ b/nuon/models/service_create_install_v2_request_inputs.py @@ -16,6 +16,7 @@ class ServiceCreateInstallV2RequestInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_job_component_config_request.py b/nuon/models/service_create_job_component_config_request.py index 196f2124..0c3d00db 100644 --- a/nuon/models/service_create_job_component_config_request.py +++ b/nuon/models/service_create_job_component_config_request.py @@ -25,8 +25,10 @@ class ServiceCreateJobComponentConfigRequest: tag (str): app_config_id (str | Unset): args (list[str] | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h") checksum (str | Unset): cmd (list[str] | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h") env_vars (ServiceCreateJobComponentConfigRequestEnvVars | Unset): references (list[str] | Unset): """ @@ -35,8 +37,10 @@ class ServiceCreateJobComponentConfigRequest: tag: str app_config_id: str | Unset = UNSET args: list[str] | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET cmd: list[str] | Unset = UNSET + deploy_timeout: str | Unset = UNSET env_vars: ServiceCreateJobComponentConfigRequestEnvVars | Unset = UNSET references: list[str] | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -52,12 +56,16 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.args, Unset): args = self.args + build_timeout = self.build_timeout + checksum = self.checksum cmd: list[str] | Unset = UNSET if not isinstance(self.cmd, Unset): cmd = self.cmd + deploy_timeout = self.deploy_timeout + env_vars: dict[str, Any] | Unset = UNSET if not isinstance(self.env_vars, Unset): env_vars = self.env_vars.to_dict() @@ -78,10 +86,14 @@ def to_dict(self) -> dict[str, Any]: field_dict["app_config_id"] = app_config_id if args is not UNSET: field_dict["args"] = args + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum if cmd is not UNSET: field_dict["cmd"] = cmd + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if env_vars is not UNSET: field_dict["env_vars"] = env_vars if references is not UNSET: @@ -104,10 +116,14 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: args = cast(list[str], d.pop("args", UNSET)) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) cmd = cast(list[str], d.pop("cmd", UNSET)) + deploy_timeout = d.pop("deploy_timeout", UNSET) + _env_vars = d.pop("env_vars", UNSET) env_vars: ServiceCreateJobComponentConfigRequestEnvVars | Unset if isinstance(_env_vars, Unset): @@ -122,8 +138,10 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: tag=tag, app_config_id=app_config_id, args=args, + build_timeout=build_timeout, checksum=checksum, cmd=cmd, + deploy_timeout=deploy_timeout, env_vars=env_vars, references=references, ) diff --git a/nuon/models/service_create_job_component_config_request_env_vars.py b/nuon/models/service_create_job_component_config_request_env_vars.py index 58f26001..ebac3745 100644 --- a/nuon/models/service_create_job_component_config_request_env_vars.py +++ b/nuon/models/service_create_job_component_config_request_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateJobComponentConfigRequestEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_kubernetes_manifest_component_config_request.py b/nuon/models/service_create_kubernetes_manifest_component_config_request.py index ae507c44..1da464c5 100644 --- a/nuon/models/service_create_kubernetes_manifest_component_config_request.py +++ b/nuon/models/service_create_kubernetes_manifest_component_config_request.py @@ -1,13 +1,19 @@ from __future__ import annotations from collections.abc import Mapping -from typing import Any, TypeVar, cast +from typing import TYPE_CHECKING, Any, TypeVar, cast from attrs import define as _attrs_define from attrs import field as _attrs_field from ..types import UNSET, Unset +if TYPE_CHECKING: + from ..models.service_connected_github_vcs_config_request import ServiceConnectedGithubVCSConfigRequest + from ..models.service_kustomize_config_request import ServiceKustomizeConfigRequest + from ..models.service_public_git_vcs_config_request import ServicePublicGitVCSConfigRequest + + T = TypeVar("T", bound="ServiceCreateKubernetesManifestComponentConfigRequest") @@ -16,38 +22,64 @@ class ServiceCreateKubernetesManifestComponentConfigRequest: """ Attributes: app_config_id (str | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h") checksum (str | Unset): + connected_github_vcs_config (ServiceConnectedGithubVCSConfigRequest | Unset): dependencies (list[str] | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h") drift_schedule (str | Unset): - manifest (str | Unset): + kustomize (ServiceKustomizeConfigRequest | Unset): + manifest (str | Unset): Inline manifest (mutually exclusive with Kustomize) namespace (str | Unset): + public_git_vcs_config (ServicePublicGitVCSConfigRequest | Unset): references (list[str] | Unset): """ app_config_id: str | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET + connected_github_vcs_config: ServiceConnectedGithubVCSConfigRequest | Unset = UNSET dependencies: list[str] | Unset = UNSET + deploy_timeout: str | Unset = UNSET drift_schedule: str | Unset = UNSET + kustomize: ServiceKustomizeConfigRequest | Unset = UNSET manifest: str | Unset = UNSET namespace: str | Unset = UNSET + public_git_vcs_config: ServicePublicGitVCSConfigRequest | Unset = UNSET references: list[str] | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: app_config_id = self.app_config_id + build_timeout = self.build_timeout + checksum = self.checksum + connected_github_vcs_config: dict[str, Any] | Unset = UNSET + if not isinstance(self.connected_github_vcs_config, Unset): + connected_github_vcs_config = self.connected_github_vcs_config.to_dict() + dependencies: list[str] | Unset = UNSET if not isinstance(self.dependencies, Unset): dependencies = self.dependencies + deploy_timeout = self.deploy_timeout + drift_schedule = self.drift_schedule + kustomize: dict[str, Any] | Unset = UNSET + if not isinstance(self.kustomize, Unset): + kustomize = self.kustomize.to_dict() + manifest = self.manifest namespace = self.namespace + public_git_vcs_config: dict[str, Any] | Unset = UNSET + if not isinstance(self.public_git_vcs_config, Unset): + public_git_vcs_config = self.public_git_vcs_config.to_dict() + references: list[str] | Unset = UNSET if not isinstance(self.references, Unset): references = self.references @@ -57,16 +89,26 @@ def to_dict(self) -> dict[str, Any]: field_dict.update({}) if app_config_id is not UNSET: field_dict["app_config_id"] = app_config_id + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum + if connected_github_vcs_config is not UNSET: + field_dict["connected_github_vcs_config"] = connected_github_vcs_config if dependencies is not UNSET: field_dict["dependencies"] = dependencies + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if drift_schedule is not UNSET: field_dict["drift_schedule"] = drift_schedule + if kustomize is not UNSET: + field_dict["kustomize"] = kustomize if manifest is not UNSET: field_dict["manifest"] = manifest if namespace is not UNSET: field_dict["namespace"] = namespace + if public_git_vcs_config is not UNSET: + field_dict["public_git_vcs_config"] = public_git_vcs_config if references is not UNSET: field_dict["references"] = references @@ -74,28 +116,62 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.service_connected_github_vcs_config_request import ServiceConnectedGithubVCSConfigRequest + from ..models.service_kustomize_config_request import ServiceKustomizeConfigRequest + from ..models.service_public_git_vcs_config_request import ServicePublicGitVCSConfigRequest + d = dict(src_dict) app_config_id = d.pop("app_config_id", UNSET) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) + _connected_github_vcs_config = d.pop("connected_github_vcs_config", UNSET) + connected_github_vcs_config: ServiceConnectedGithubVCSConfigRequest | Unset + if isinstance(_connected_github_vcs_config, Unset): + connected_github_vcs_config = UNSET + else: + connected_github_vcs_config = ServiceConnectedGithubVCSConfigRequest.from_dict(_connected_github_vcs_config) + dependencies = cast(list[str], d.pop("dependencies", UNSET)) + deploy_timeout = d.pop("deploy_timeout", UNSET) + drift_schedule = d.pop("drift_schedule", UNSET) + _kustomize = d.pop("kustomize", UNSET) + kustomize: ServiceKustomizeConfigRequest | Unset + if isinstance(_kustomize, Unset): + kustomize = UNSET + else: + kustomize = ServiceKustomizeConfigRequest.from_dict(_kustomize) + manifest = d.pop("manifest", UNSET) namespace = d.pop("namespace", UNSET) + _public_git_vcs_config = d.pop("public_git_vcs_config", UNSET) + public_git_vcs_config: ServicePublicGitVCSConfigRequest | Unset + if isinstance(_public_git_vcs_config, Unset): + public_git_vcs_config = UNSET + else: + public_git_vcs_config = ServicePublicGitVCSConfigRequest.from_dict(_public_git_vcs_config) + references = cast(list[str], d.pop("references", UNSET)) service_create_kubernetes_manifest_component_config_request = cls( app_config_id=app_config_id, + build_timeout=build_timeout, checksum=checksum, + connected_github_vcs_config=connected_github_vcs_config, dependencies=dependencies, + deploy_timeout=deploy_timeout, drift_schedule=drift_schedule, + kustomize=kustomize, manifest=manifest, namespace=namespace, + public_git_vcs_config=public_git_vcs_config, references=references, ) 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 e46a51c9..5ada8721 100644 --- a/nuon/models/service_create_terraform_module_component_config_request.py +++ b/nuon/models/service_create_terraform_module_component_config_request.py @@ -29,9 +29,11 @@ class ServiceCreateTerraformModuleComponentConfigRequest: env_vars (ServiceCreateTerraformModuleComponentConfigRequestEnvVars): variables (ServiceCreateTerraformModuleComponentConfigRequestVariables): app_config_id (str | Unset): + build_timeout (str | Unset): Duration string for build operations (e.g., "30m", "1h") checksum (str | Unset): connected_github_vcs_config (ServiceConnectedGithubVCSConfigRequest | Unset): dependencies (list[str] | Unset): + deploy_timeout (str | Unset): Duration string for deploy operations (e.g., "30m", "1h") drift_schedule (str | Unset): public_git_vcs_config (ServicePublicGitVCSConfigRequest | Unset): references (list[str] | Unset): @@ -42,9 +44,11 @@ class ServiceCreateTerraformModuleComponentConfigRequest: env_vars: ServiceCreateTerraformModuleComponentConfigRequestEnvVars variables: ServiceCreateTerraformModuleComponentConfigRequestVariables app_config_id: str | Unset = UNSET + build_timeout: str | Unset = UNSET checksum: str | Unset = UNSET connected_github_vcs_config: ServiceConnectedGithubVCSConfigRequest | Unset = UNSET dependencies: list[str] | Unset = UNSET + deploy_timeout: str | Unset = UNSET drift_schedule: str | Unset = UNSET public_git_vcs_config: ServicePublicGitVCSConfigRequest | Unset = UNSET references: list[str] | Unset = UNSET @@ -59,6 +63,8 @@ def to_dict(self) -> dict[str, Any]: app_config_id = self.app_config_id + build_timeout = self.build_timeout + checksum = self.checksum connected_github_vcs_config: dict[str, Any] | Unset = UNSET @@ -69,6 +75,8 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.dependencies, Unset): dependencies = self.dependencies + deploy_timeout = self.deploy_timeout + drift_schedule = self.drift_schedule public_git_vcs_config: dict[str, Any] | Unset = UNSET @@ -95,12 +103,16 @@ def to_dict(self) -> dict[str, Any]: ) if app_config_id is not UNSET: field_dict["app_config_id"] = app_config_id + if build_timeout is not UNSET: + field_dict["build_timeout"] = build_timeout if checksum is not UNSET: field_dict["checksum"] = checksum if connected_github_vcs_config is not UNSET: field_dict["connected_github_vcs_config"] = connected_github_vcs_config if dependencies is not UNSET: field_dict["dependencies"] = dependencies + if deploy_timeout is not UNSET: + field_dict["deploy_timeout"] = deploy_timeout if drift_schedule is not UNSET: field_dict["drift_schedule"] = drift_schedule if public_git_vcs_config is not UNSET: @@ -132,6 +144,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: app_config_id = d.pop("app_config_id", UNSET) + build_timeout = d.pop("build_timeout", UNSET) + checksum = d.pop("checksum", UNSET) _connected_github_vcs_config = d.pop("connected_github_vcs_config", UNSET) @@ -143,6 +157,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: dependencies = cast(list[str], d.pop("dependencies", UNSET)) + deploy_timeout = d.pop("deploy_timeout", UNSET) + drift_schedule = d.pop("drift_schedule", UNSET) _public_git_vcs_config = d.pop("public_git_vcs_config", UNSET) @@ -162,9 +178,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: env_vars=env_vars, variables=variables, app_config_id=app_config_id, + build_timeout=build_timeout, checksum=checksum, connected_github_vcs_config=connected_github_vcs_config, dependencies=dependencies, + deploy_timeout=deploy_timeout, drift_schedule=drift_schedule, public_git_vcs_config=public_git_vcs_config, references=references, diff --git a/nuon/models/service_create_terraform_module_component_config_request_env_vars.py b/nuon/models/service_create_terraform_module_component_config_request_env_vars.py index c813fabf..ca10c338 100644 --- a/nuon/models/service_create_terraform_module_component_config_request_env_vars.py +++ b/nuon/models/service_create_terraform_module_component_config_request_env_vars.py @@ -16,6 +16,7 @@ class ServiceCreateTerraformModuleComponentConfigRequestEnvVars: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_create_terraform_module_component_config_request_variables.py b/nuon/models/service_create_terraform_module_component_config_request_variables.py index ca09a1f1..3314757e 100644 --- a/nuon/models/service_create_terraform_module_component_config_request_variables.py +++ b/nuon/models/service_create_terraform_module_component_config_request_variables.py @@ -16,6 +16,7 @@ class ServiceCreateTerraformModuleComponentConfigRequestVariables: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_force_shutdown_request.py b/nuon/models/service_force_shutdown_request.py index e6129044..c36a4625 100644 --- a/nuon/models/service_force_shutdown_request.py +++ b/nuon/models/service_force_shutdown_request.py @@ -16,6 +16,7 @@ class ServiceForceShutdownRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/get_config_schema_response_200.py b/nuon/models/service_forget_install_component_request.py similarity index 78% rename from nuon/models/get_config_schema_response_200.py rename to nuon/models/service_forget_install_component_request.py index 971c5e1f..20a461c8 100644 --- a/nuon/models/get_config_schema_response_200.py +++ b/nuon/models/service_forget_install_component_request.py @@ -6,16 +6,17 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="GetConfigSchemaResponse200") +T = TypeVar("T", bound="ServiceForgetInstallComponentRequest") @_attrs_define -class GetConfigSchemaResponse200: +class ServiceForgetInstallComponentRequest: """ """ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -24,10 +25,10 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - get_config_schema_response_200 = cls() + service_forget_install_component_request = cls() - get_config_schema_response_200.additional_properties = d - return get_config_schema_response_200 + service_forget_install_component_request.additional_properties = d + return service_forget_install_component_request @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/service_forget_install_request.py b/nuon/models/service_forget_install_request.py index 3d100ff2..255a4789 100644 --- a/nuon/models/service_forget_install_request.py +++ b/nuon/models/service_forget_install_request.py @@ -16,6 +16,7 @@ class ServiceForgetInstallRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_graceful_shutdown_request.py b/nuon/models/service_graceful_shutdown_request.py index e094b730..f20eccd6 100644 --- a/nuon/models/service_graceful_shutdown_request.py +++ b/nuon/models/service_graceful_shutdown_request.py @@ -16,6 +16,7 @@ class ServiceGracefulShutdownRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_install_phone_home_request.py b/nuon/models/service_install_phone_home_request.py index af5d169d..93f6bbf0 100644 --- a/nuon/models/service_install_phone_home_request.py +++ b/nuon/models/service_install_phone_home_request.py @@ -16,6 +16,7 @@ class ServiceInstallPhoneHomeRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_kustomize_config_request.py b/nuon/models/service_kustomize_config_request.py new file mode 100644 index 00000000..2858fa35 --- /dev/null +++ b/nuon/models/service_kustomize_config_request.py @@ -0,0 +1,90 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="ServiceKustomizeConfigRequest") + + +@_attrs_define +class ServiceKustomizeConfigRequest: + """ + Attributes: + enable_helm (bool | Unset): + load_restrictor (str | Unset): + patches (list[str] | Unset): + path (str | Unset): + """ + + enable_helm: bool | Unset = UNSET + load_restrictor: str | Unset = UNSET + patches: list[str] | Unset = UNSET + path: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + enable_helm = self.enable_helm + + load_restrictor = self.load_restrictor + + patches: list[str] | Unset = UNSET + if not isinstance(self.patches, Unset): + patches = self.patches + + path = self.path + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if enable_helm is not UNSET: + field_dict["enable_helm"] = enable_helm + if load_restrictor is not UNSET: + field_dict["load_restrictor"] = load_restrictor + if patches is not UNSET: + field_dict["patches"] = patches + if path is not UNSET: + field_dict["path"] = path + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + enable_helm = d.pop("enable_helm", UNSET) + + load_restrictor = d.pop("load_restrictor", UNSET) + + patches = cast(list[str], d.pop("patches", UNSET)) + + path = d.pop("path", UNSET) + + service_kustomize_config_request = cls( + enable_helm=enable_helm, + load_restrictor=load_restrictor, + patches=patches, + path=path, + ) + + service_kustomize_config_request.additional_properties = d + return service_kustomize_config_request + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_latest_runner_heart_beats.py b/nuon/models/service_latest_runner_heart_beats.py index a939a0b3..3ee001f3 100644 --- a/nuon/models/service_latest_runner_heart_beats.py +++ b/nuon/models/service_latest_runner_heart_beats.py @@ -20,6 +20,7 @@ class ServiceLatestRunnerHeartBeats: additional_properties: dict[str, AppLatestRunnerHeartBeat] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.to_dict() diff --git a/nuon/models/unlock_terraform_workspace_body.py b/nuon/models/service_mng_fetch_token_request.py similarity index 81% rename from nuon/models/unlock_terraform_workspace_body.py rename to nuon/models/service_mng_fetch_token_request.py index bd6e73dd..368212f9 100644 --- a/nuon/models/unlock_terraform_workspace_body.py +++ b/nuon/models/service_mng_fetch_token_request.py @@ -6,16 +6,17 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="UnlockTerraformWorkspaceBody") +T = TypeVar("T", bound="ServiceMngFetchTokenRequest") @_attrs_define -class UnlockTerraformWorkspaceBody: +class ServiceMngFetchTokenRequest: """ """ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -24,10 +25,10 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - unlock_terraform_workspace_body = cls() + service_mng_fetch_token_request = cls() - unlock_terraform_workspace_body.additional_properties = d - return unlock_terraform_workspace_body + service_mng_fetch_token_request.additional_properties = d + return service_mng_fetch_token_request @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/service_mng_shut_down_request.py b/nuon/models/service_mng_shut_down_request.py index fb9ebae5..db4d71c2 100644 --- a/nuon/models/service_mng_shut_down_request.py +++ b/nuon/models/service_mng_shut_down_request.py @@ -16,6 +16,7 @@ class ServiceMngShutDownRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_mng_update_request.py b/nuon/models/service_mng_update_request.py index 4296893c..17fecc1e 100644 --- a/nuon/models/service_mng_update_request.py +++ b/nuon/models/service_mng_update_request.py @@ -16,6 +16,7 @@ class ServiceMngUpdateRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_mng_vm_shut_down_request.py b/nuon/models/service_mng_vm_shut_down_request.py index 728c7662..b1fc3ccb 100644 --- a/nuon/models/service_mng_vm_shut_down_request.py +++ b/nuon/models/service_mng_vm_shut_down_request.py @@ -16,6 +16,7 @@ class ServiceMngVMShutDownRequest: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_update_install_inputs_request_inputs.py b/nuon/models/service_update_install_inputs_request_inputs.py index 08255166..e392f513 100644 --- a/nuon/models/service_update_install_inputs_request_inputs.py +++ b/nuon/models/service_update_install_inputs_request_inputs.py @@ -16,6 +16,7 @@ class ServiceUpdateInstallInputsRequestInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/service_update_org_features_request.py b/nuon/models/service_update_org_features_request.py new file mode 100644 index 00000000..20ebb21b --- /dev/null +++ b/nuon/models/service_update_org_features_request.py @@ -0,0 +1,67 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +if TYPE_CHECKING: + from ..models.service_update_org_features_request_features import ServiceUpdateOrgFeaturesRequestFeatures + + +T = TypeVar("T", bound="ServiceUpdateOrgFeaturesRequest") + + +@_attrs_define +class ServiceUpdateOrgFeaturesRequest: + """ + Attributes: + features (ServiceUpdateOrgFeaturesRequestFeatures): + """ + + features: ServiceUpdateOrgFeaturesRequestFeatures + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + features = self.features.to_dict() + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "features": features, + } + ) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.service_update_org_features_request_features import ServiceUpdateOrgFeaturesRequestFeatures + + d = dict(src_dict) + features = ServiceUpdateOrgFeaturesRequestFeatures.from_dict(d.pop("features")) + + service_update_org_features_request = cls( + features=features, + ) + + service_update_org_features_request.additional_properties = d + return service_update_org_features_request + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_update_org_features_request_features.py b/nuon/models/service_update_org_features_request_features.py new file mode 100644 index 00000000..87000a15 --- /dev/null +++ b/nuon/models/service_update_org_features_request_features.py @@ -0,0 +1,47 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="ServiceUpdateOrgFeaturesRequestFeatures") + + +@_attrs_define +class ServiceUpdateOrgFeaturesRequestFeatures: + """ """ + + additional_properties: dict[str, bool] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + service_update_org_features_request_features = cls() + + service_update_org_features_request_features.additional_properties = d + return service_update_org_features_request_features + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> bool: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: bool) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_update_user_journey_step_request.py b/nuon/models/service_update_user_journey_step_request.py index 7bb595c1..44b2673f 100644 --- a/nuon/models/service_update_user_journey_step_request.py +++ b/nuon/models/service_update_user_journey_step_request.py @@ -1,13 +1,17 @@ from __future__ import annotations from collections.abc import Mapping -from typing import Any, TypeVar +from typing import TYPE_CHECKING, Any, TypeVar from attrs import define as _attrs_define from attrs import field as _attrs_field from ..types import UNSET, Unset +if TYPE_CHECKING: + from ..models.service_update_user_journey_step_request_metadata import ServiceUpdateUserJourneyStepRequestMetadata + + T = TypeVar("T", bound="ServiceUpdateUserJourneyStepRequest") @@ -16,29 +20,49 @@ class ServiceUpdateUserJourneyStepRequest: """ Attributes: complete (bool | Unset): + metadata (ServiceUpdateUserJourneyStepRequestMetadata | Unset): """ complete: bool | Unset = UNSET + metadata: ServiceUpdateUserJourneyStepRequestMetadata | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: complete = self.complete + metadata: dict[str, Any] | Unset = UNSET + if not isinstance(self.metadata, Unset): + metadata = self.metadata.to_dict() + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) if complete is not UNSET: field_dict["complete"] = complete + if metadata is not UNSET: + field_dict["metadata"] = metadata return field_dict @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.service_update_user_journey_step_request_metadata import ( + ServiceUpdateUserJourneyStepRequestMetadata, + ) + d = dict(src_dict) complete = d.pop("complete", UNSET) + _metadata = d.pop("metadata", UNSET) + metadata: ServiceUpdateUserJourneyStepRequestMetadata | Unset + if isinstance(_metadata, Unset): + metadata = UNSET + else: + metadata = ServiceUpdateUserJourneyStepRequestMetadata.from_dict(_metadata) + service_update_user_journey_step_request = cls( complete=complete, + metadata=metadata, ) service_update_user_journey_step_request.additional_properties = d diff --git a/nuon/models/get_workflow_step_approval_contents_response_200.py b/nuon/models/service_update_user_journey_step_request_metadata.py similarity index 76% rename from nuon/models/get_workflow_step_approval_contents_response_200.py rename to nuon/models/service_update_user_journey_step_request_metadata.py index 1861ed59..86f41b89 100644 --- a/nuon/models/get_workflow_step_approval_contents_response_200.py +++ b/nuon/models/service_update_user_journey_step_request_metadata.py @@ -6,16 +6,17 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field -T = TypeVar("T", bound="GetWorkflowStepApprovalContentsResponse200") +T = TypeVar("T", bound="ServiceUpdateUserJourneyStepRequestMetadata") @_attrs_define -class GetWorkflowStepApprovalContentsResponse200: +class ServiceUpdateUserJourneyStepRequestMetadata: """ """ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -24,10 +25,10 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - get_workflow_step_approval_contents_response_200 = cls() + service_update_user_journey_step_request_metadata = cls() - get_workflow_step_approval_contents_response_200.additional_properties = d - return get_workflow_step_approval_contents_response_200 + service_update_user_journey_step_request_metadata.additional_properties = d + return service_update_user_journey_step_request_metadata @property def additional_keys(self) -> list[str]: diff --git a/nuon/models/service_vcs_connection_account.py b/nuon/models/service_vcs_connection_account.py new file mode 100644 index 00000000..8f304001 --- /dev/null +++ b/nuon/models/service_vcs_connection_account.py @@ -0,0 +1,79 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="ServiceVCSConnectionAccount") + + +@_attrs_define +class ServiceVCSConnectionAccount: + """ + Attributes: + id (int | Unset): + login (str | Unset): + type_ (str | Unset): + """ + + id: int | Unset = UNSET + login: str | Unset = UNSET + type_: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + id = self.id + + login = self.login + + type_ = self.type_ + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if id is not UNSET: + field_dict["id"] = id + if login is not UNSET: + field_dict["login"] = login + if type_ is not UNSET: + field_dict["type"] = type_ + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + id = d.pop("id", UNSET) + + login = d.pop("login", UNSET) + + type_ = d.pop("type", UNSET) + + service_vcs_connection_account = cls( + id=id, + login=login, + type_=type_, + ) + + service_vcs_connection_account.additional_properties = d + return service_vcs_connection_account + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_vcs_connection_repo.py b/nuon/models/service_vcs_connection_repo.py new file mode 100644 index 00000000..7bac8b40 --- /dev/null +++ b/nuon/models/service_vcs_connection_repo.py @@ -0,0 +1,133 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="ServiceVCSConnectionRepo") + + +@_attrs_define +class ServiceVCSConnectionRepo: + """ + Attributes: + default_branch (str | Unset): + description (str | Unset): + fork (bool | Unset): + full_name (str | Unset): + html_url (str | Unset): + id (int | Unset): + name (str | Unset): + private (bool | Unset): + updated_at (str | Unset): + """ + + default_branch: str | Unset = UNSET + description: str | Unset = UNSET + fork: bool | Unset = UNSET + full_name: str | Unset = UNSET + html_url: str | Unset = UNSET + id: int | Unset = UNSET + name: str | Unset = UNSET + private: bool | Unset = UNSET + updated_at: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + default_branch = self.default_branch + + description = self.description + + fork = self.fork + + full_name = self.full_name + + html_url = self.html_url + + id = self.id + + name = self.name + + private = self.private + + updated_at = self.updated_at + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if default_branch is not UNSET: + field_dict["default_branch"] = default_branch + if description is not UNSET: + field_dict["description"] = description + if fork is not UNSET: + field_dict["fork"] = fork + if full_name is not UNSET: + field_dict["full_name"] = full_name + if html_url is not UNSET: + field_dict["html_url"] = html_url + if id is not UNSET: + field_dict["id"] = id + if name is not UNSET: + field_dict["name"] = name + if private is not UNSET: + field_dict["private"] = private + if updated_at is not UNSET: + field_dict["updated_at"] = updated_at + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + default_branch = d.pop("default_branch", UNSET) + + description = d.pop("description", UNSET) + + fork = d.pop("fork", UNSET) + + full_name = d.pop("full_name", UNSET) + + html_url = d.pop("html_url", UNSET) + + id = d.pop("id", UNSET) + + name = d.pop("name", UNSET) + + private = d.pop("private", UNSET) + + updated_at = d.pop("updated_at", UNSET) + + service_vcs_connection_repo = cls( + default_branch=default_branch, + description=description, + fork=fork, + full_name=full_name, + html_url=html_url, + id=id, + name=name, + private=private, + updated_at=updated_at, + ) + + service_vcs_connection_repo.additional_properties = d + return service_vcs_connection_repo + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_vcs_connection_repos_response.py b/nuon/models/service_vcs_connection_repos_response.py new file mode 100644 index 00000000..2f77f673 --- /dev/null +++ b/nuon/models/service_vcs_connection_repos_response.py @@ -0,0 +1,88 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.service_vcs_connection_repo import ServiceVCSConnectionRepo + + +T = TypeVar("T", bound="ServiceVCSConnectionReposResponse") + + +@_attrs_define +class ServiceVCSConnectionReposResponse: + """ + Attributes: + repositories (list[ServiceVCSConnectionRepo] | Unset): + total_count (int | Unset): + """ + + repositories: list[ServiceVCSConnectionRepo] | Unset = UNSET + total_count: int | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + repositories: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.repositories, Unset): + repositories = [] + for repositories_item_data in self.repositories: + repositories_item = repositories_item_data.to_dict() + repositories.append(repositories_item) + + total_count = self.total_count + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if repositories is not UNSET: + field_dict["repositories"] = repositories + if total_count is not UNSET: + field_dict["total_count"] = total_count + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.service_vcs_connection_repo import ServiceVCSConnectionRepo + + d = dict(src_dict) + _repositories = d.pop("repositories", UNSET) + repositories: list[ServiceVCSConnectionRepo] | Unset = UNSET + if _repositories is not UNSET: + repositories = [] + for repositories_item_data in _repositories: + repositories_item = ServiceVCSConnectionRepo.from_dict(repositories_item_data) + + repositories.append(repositories_item) + + total_count = d.pop("total_count", UNSET) + + service_vcs_connection_repos_response = cls( + repositories=repositories, + total_count=total_count, + ) + + service_vcs_connection_repos_response.additional_properties = d + return service_vcs_connection_repos_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_vcs_connection_status_response.py b/nuon/models/service_vcs_connection_status_response.py new file mode 100644 index 00000000..c8570b4b --- /dev/null +++ b/nuon/models/service_vcs_connection_status_response.py @@ -0,0 +1,168 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.github_user import GithubUser + from ..models.service_vcs_connection_account import ServiceVCSConnectionAccount + from ..models.service_vcs_connection_status_response_permissions import ( + ServiceVCSConnectionStatusResponsePermissions, + ) + + +T = TypeVar("T", bound="ServiceVCSConnectionStatusResponse") + + +@_attrs_define +class ServiceVCSConnectionStatusResponse: + """ + Attributes: + account (ServiceVCSConnectionAccount | Unset): + checked_at (str | Unset): + error (str | Unset): + github_install_id (str | Unset): + permissions (ServiceVCSConnectionStatusResponsePermissions | Unset): + repository_selection (str | Unset): + status (str | Unset): + suspended_at (str | Unset): + suspended_by (GithubUser | Unset): + """ + + account: ServiceVCSConnectionAccount | Unset = UNSET + checked_at: str | Unset = UNSET + error: str | Unset = UNSET + github_install_id: str | Unset = UNSET + permissions: ServiceVCSConnectionStatusResponsePermissions | Unset = UNSET + repository_selection: str | Unset = UNSET + status: str | Unset = UNSET + suspended_at: str | Unset = UNSET + suspended_by: GithubUser | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + account: dict[str, Any] | Unset = UNSET + if not isinstance(self.account, Unset): + account = self.account.to_dict() + + checked_at = self.checked_at + + error = self.error + + github_install_id = self.github_install_id + + permissions: dict[str, Any] | Unset = UNSET + if not isinstance(self.permissions, Unset): + permissions = self.permissions.to_dict() + + repository_selection = self.repository_selection + + status = self.status + + suspended_at = self.suspended_at + + suspended_by: dict[str, Any] | Unset = UNSET + if not isinstance(self.suspended_by, Unset): + suspended_by = self.suspended_by.to_dict() + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if account is not UNSET: + field_dict["account"] = account + if checked_at is not UNSET: + field_dict["checked_at"] = checked_at + if error is not UNSET: + field_dict["error"] = error + if github_install_id is not UNSET: + field_dict["github_install_id"] = github_install_id + if permissions is not UNSET: + field_dict["permissions"] = permissions + if repository_selection is not UNSET: + field_dict["repository_selection"] = repository_selection + if status is not UNSET: + field_dict["status"] = status + if suspended_at is not UNSET: + field_dict["suspended_at"] = suspended_at + if suspended_by is not UNSET: + field_dict["suspended_by"] = suspended_by + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.github_user import GithubUser + from ..models.service_vcs_connection_account import ServiceVCSConnectionAccount + from ..models.service_vcs_connection_status_response_permissions import ( + ServiceVCSConnectionStatusResponsePermissions, + ) + + d = dict(src_dict) + _account = d.pop("account", UNSET) + account: ServiceVCSConnectionAccount | Unset + if isinstance(_account, Unset): + account = UNSET + else: + account = ServiceVCSConnectionAccount.from_dict(_account) + + checked_at = d.pop("checked_at", UNSET) + + error = d.pop("error", UNSET) + + github_install_id = d.pop("github_install_id", UNSET) + + _permissions = d.pop("permissions", UNSET) + permissions: ServiceVCSConnectionStatusResponsePermissions | Unset + if isinstance(_permissions, Unset): + permissions = UNSET + else: + permissions = ServiceVCSConnectionStatusResponsePermissions.from_dict(_permissions) + + repository_selection = d.pop("repository_selection", UNSET) + + status = d.pop("status", UNSET) + + suspended_at = d.pop("suspended_at", UNSET) + + _suspended_by = d.pop("suspended_by", UNSET) + suspended_by: GithubUser | Unset + if isinstance(_suspended_by, Unset): + suspended_by = UNSET + else: + suspended_by = GithubUser.from_dict(_suspended_by) + + service_vcs_connection_status_response = cls( + account=account, + checked_at=checked_at, + error=error, + github_install_id=github_install_id, + permissions=permissions, + repository_selection=repository_selection, + status=status, + suspended_at=suspended_at, + suspended_by=suspended_by, + ) + + service_vcs_connection_status_response.additional_properties = d + return service_vcs_connection_status_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/service_vcs_connection_status_response_permissions.py b/nuon/models/service_vcs_connection_status_response_permissions.py new file mode 100644 index 00000000..8de917c0 --- /dev/null +++ b/nuon/models/service_vcs_connection_status_response_permissions.py @@ -0,0 +1,47 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="ServiceVCSConnectionStatusResponsePermissions") + + +@_attrs_define +class ServiceVCSConnectionStatusResponsePermissions: + """ """ + + additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + service_vcs_connection_status_response_permissions = cls() + + service_vcs_connection_status_response_permissions.additional_properties = d + return service_vcs_connection_status_response_permissions + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> str: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: str) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/nuon/models/state_action_workflow_state_outputs.py b/nuon/models/state_action_workflow_state_outputs.py index 7bdbf54c..1ba83306 100644 --- a/nuon/models/state_action_workflow_state_outputs.py +++ b/nuon/models/state_action_workflow_state_outputs.py @@ -16,6 +16,7 @@ class StateActionWorkflowStateOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/state_actions_state_workflows.py b/nuon/models/state_actions_state_workflows.py index 1b410bd0..9bc4e3bf 100644 --- a/nuon/models/state_actions_state_workflows.py +++ b/nuon/models/state_actions_state_workflows.py @@ -20,6 +20,7 @@ class StateActionsStateWorkflows: additional_properties: dict[str, StateActionWorkflowState] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.to_dict() diff --git a/nuon/models/state_app_state_variables.py b/nuon/models/state_app_state_variables.py index f43ba032..77795d7b 100644 --- a/nuon/models/state_app_state_variables.py +++ b/nuon/models/state_app_state_variables.py @@ -16,6 +16,7 @@ class StateAppStateVariables: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/state_inputs_state_inputs.py b/nuon/models/state_inputs_state_inputs.py index e5b9f021..9cdbd114 100644 --- a/nuon/models/state_inputs_state_inputs.py +++ b/nuon/models/state_inputs_state_inputs.py @@ -16,6 +16,7 @@ class StateInputsStateInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/state_install_stack_state_outputs.py b/nuon/models/state_install_stack_state_outputs.py index 29525a65..c3000204 100644 --- a/nuon/models/state_install_stack_state_outputs.py +++ b/nuon/models/state_install_stack_state_outputs.py @@ -16,6 +16,7 @@ class StateInstallStackStateOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/state_install_state_inputs.py b/nuon/models/state_install_state_inputs.py index f5e2525a..eaf88209 100644 --- a/nuon/models/state_install_state_inputs.py +++ b/nuon/models/state_install_state_inputs.py @@ -16,6 +16,7 @@ class StateInstallStateInputs: additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/state_sandbox_state_outputs.py b/nuon/models/state_sandbox_state_outputs.py index 1a011b01..f2b2f131 100644 --- a/nuon/models/state_sandbox_state_outputs.py +++ b/nuon/models/state_sandbox_state_outputs.py @@ -16,6 +16,7 @@ class StateSandboxStateOutputs: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/nuon/models/state_secrets_state.py b/nuon/models/state_secrets_state.py index f7d575bd..918c3211 100644 --- a/nuon/models/state_secrets_state.py +++ b/nuon/models/state_secrets_state.py @@ -20,6 +20,7 @@ class StateSecretsState: additional_properties: dict[str, OutputsSecretSyncOutput] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} for prop_name, prop in self.additional_properties.items(): field_dict[prop_name] = prop.to_dict() diff --git a/nuon/models/types_string_bool_map.py b/nuon/models/types_string_bool_map.py index 561f4acb..c9af8af0 100644 --- a/nuon/models/types_string_bool_map.py +++ b/nuon/models/types_string_bool_map.py @@ -16,6 +16,7 @@ class TypesStringBoolMap: additional_properties: dict[str, bool] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) diff --git a/pyproject.toml b/pyproject.toml index d00345f6..59c7da46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nuon" -version = "0.19.720" +version = "0.19.765" description = "A client library for accessing Nuon" authors = [] requires-python = ">=3.10" diff --git a/version.txt b/version.txt index c3bc9e7e..e76ddc2c 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.19.720 +0.19.765