From 5fd373ff3373aa9d12a08b3b9255c91a0e747870 Mon Sep 17 00:00:00 2001 From: andrewsy-opal Date: Mon, 27 Oct 2025 19:23:00 -0400 Subject: [PATCH] Delete stale tests and add delete test step to autogen --- .gitlab-ci.yml | 6 +- .openapi-generator/FILES | 228 +++++ .openapi-generator/VERSION | 2 +- .travis.yml | 4 +- Makefile | 4 + README.md | 4 +- docs/AccessRulesApi.md | 6 - docs/AppsApi.md | 2 - docs/BundlesApi.md | 22 - docs/ConfigurationTemplatesApi.md | 8 - docs/DelegationsApi.md | 4 - docs/EventsApi.md | 2 - docs/GroupBindingsApi.md | 6 - docs/GroupsApi.md | 48 -- docs/IdpGroupMappingsApi.md | 13 +- docs/MessageChannelsApi.md | 2 - docs/NonHumanIdentitiesApi.md | 2 - docs/OnCallSchedulesApi.md | 2 - docs/OwnersApi.md | 12 - docs/RequestsApi.md | 10 - docs/ResourcesApi.md | 44 - docs/SessionsApi.md | 2 - docs/TagsApi.md | 18 - docs/UarsApi.md | 6 - docs/UsersApi.md | 8 - opal_security/__init__.py | 787 ++++++++++++------ opal_security/api_client.py | 6 +- opal_security/configuration.py | 11 +- opal_security/exceptions.py | 17 + opal_security/rest.py | 1 + pyproject.toml | 28 +- requirements.txt | 2 +- test/test_access.py | 3 +- test/test_access_list.py | 2 +- test/test_access_rule_condition.py | 95 --- test/test_access_rules_api.py | 6 + test/test_add_bundle_group_request.py | 4 +- test/test_add_group_resource_request.py | 7 +- test/test_add_group_user_request.py | 4 +- test/test_add_resource_nhi_request.py | 2 +- test/test_add_resource_user_request.py | 4 +- test/test_app.py | 9 +- test/test_app_type_enum.py | 2 +- test/test_approve_request200_response.py | 3 +- test/test_apps_api.py | 10 +- test/test_apps_list.py | 8 +- test/test_aws_permission_set_metadata.py | 8 +- ...mission_set_metadata_aws_permission_set.py | 4 +- test/test_bundle_group.py | 4 +- test/test_bundles_api.py | 2 + test/test_condition.py | 8 +- test/test_configuration_template.py | 20 +- test/test_configuration_templates_api.py | 8 +- ...test_create_configuration_template_info.py | 24 +- test/test_create_group_binding_info.py | 8 +- ..._create_group_binding_info_groups_inner.py | 4 +- test/test_create_group_info.py | 36 +- test/test_create_message_channel_info.py | 4 +- test/test_create_on_call_schedule_info.py | 4 +- test/test_create_owner_info.py | 8 +- test/test_create_request200_response.py | 2 +- ..._create_request_configuration_info_list.py | 8 +- test/test_create_request_info.py | 14 +- ...eate_request_info_custom_metadata_inner.py | 2 +- test/test_create_request_info_groups_inner.py | 2 +- ...est_create_request_info_resources_inner.py | 2 +- ...test_create_request_info_support_ticket.py | 2 +- test/test_create_resource_info.py | 122 ++- test/test_create_tag_info.py | 4 +- test/test_create_uar_info.py | 14 +- test/test_deny_request_request.py | 3 +- test/test_entity_type_enum.py | 18 +- test/test_event.py | 52 +- test/test_events_api.py | 21 +- test/test_group.py | 96 ++- test/test_group_access_level.py | 4 +- test/test_group_binding.py | 8 +- test/test_group_binding_group.py | 4 +- test/test_group_bindings_api.py | 4 +- test/test_group_remote_info.py | 30 +- ...roup_remote_info_active_directory_group.py | 4 +- ...remote_info_azure_ad_microsoft365_group.py | 4 +- ...oup_remote_info_azure_ad_security_group.py | 4 +- test/test_group_remote_info_duo_group.py | 4 +- test/test_group_remote_info_github_team.py | 4 +- test/test_group_remote_info_gitlab_group.py | 4 +- test/test_group_remote_info_google_group.py | 4 +- test/test_group_remote_info_ldap_group.py | 4 +- test/test_group_remote_info_okta_group.py | 4 +- test/test_group_resource.py | 12 +- test/test_group_resource_list.py | 8 +- test/test_group_type_enum.py | 18 +- test/test_group_user.py | 15 +- test/test_group_user_list.py | 10 +- test/test_groups_api.py | 157 +++- test/test_idp_group_mapping.py | 9 +- test/test_idp_group_mapping_list.py | 10 +- test/test_idp_group_mappings_api.py | 18 +- test/test_message_channel.py | 43 +- test/test_message_channel_id_list.py | 41 +- test/test_message_channel_list.py | 43 +- test/test_message_channel_provider_enum.py | 18 +- test/test_message_channels_api.py | 4 +- test/test_non_human_identities_api.py | 2 +- test/test_on_call_schedule.py | 4 +- test/test_on_call_schedule_id_list.py | 4 +- test/test_on_call_schedule_list.py | 8 +- test/test_on_call_schedule_provider_enum.py | 2 +- test/test_on_call_schedules_api.py | 4 +- test/test_owner.py | 4 +- test/test_owners_api.py | 4 +- test/test_paginated_assigned_request_list.py | 4 +- test/test_paginated_bundle_group_list.py | 8 +- ...t_paginated_configuration_template_list.py | 6 +- test/test_paginated_event_list.py | 42 +- test/test_paginated_group_bindings_list.py | 8 +- test/test_paginated_groups_list.py | 45 +- test/test_paginated_owners_list.py | 8 +- test/test_paginated_resources_list.py | 45 +- test/test_paginated_tags_list.py | 8 +- test/test_paginated_uars_list.py | 8 +- test/test_paginated_users_list.py | 8 +- test/test_request.py | 56 +- test/test_request_configuration.py | 12 +- test/test_request_connection.py | 4 +- test/test_request_custom_field_response.py | 8 +- ...quest_custom_field_response_field_value.py | 4 +- test/test_request_edge.py | 4 +- test/test_request_item_stages.py | 2 + test/test_request_list.py | 6 +- test/test_request_reviewer.py | 1 + test/test_request_stage.py | 2 + test/test_request_status_enum.py | 2 +- ...request_template_custom_field_type_enum.py | 2 +- test/test_requested_item.py | 8 +- test/test_requests_api.py | 47 +- test/test_resource.py | 210 ++++- test/test_resource_access_level.py | 39 +- test/test_resource_access_user.py | 13 +- test/test_resource_access_user_list.py | 8 +- test/test_resource_nhi.py | 3 +- test/test_resource_remote_info.py | 116 ++- test/test_resource_remote_info_aws_account.py | 7 +- ...t_resource_remote_info_aws_ec2_instance.py | 4 +- ...st_resource_remote_info_aws_eks_cluster.py | 4 +- .../test_resource_remote_info_aws_iam_role.py | 4 +- ...resource_remote_info_aws_permission_set.py | 4 +- ...t_resource_remote_info_aws_rds_instance.py | 4 +- ...ource_remote_info_gcp_big_query_dataset.py | 4 +- ...esource_remote_info_gcp_big_query_table.py | 4 +- test/test_resource_remote_info_gcp_bucket.py | 4 +- ...source_remote_info_gcp_compute_instance.py | 4 +- test/test_resource_remote_info_gcp_folder.py | 4 +- ...st_resource_remote_info_gcp_gke_cluster.py | 4 +- ...t_resource_remote_info_gcp_organization.py | 4 +- test/test_resource_remote_info_gcp_project.py | 4 +- ...esource_remote_info_gcp_service_account.py | 2 +- ...t_resource_remote_info_gcp_sql_instance.py | 4 +- test/test_resource_remote_info_github_repo.py | 4 +- ...est_resource_remote_info_gitlab_project.py | 4 +- test/test_resource_remote_info_okta_app.py | 4 +- ...t_resource_remote_info_okta_custom_role.py | 4 +- ...resource_remote_info_okta_standard_role.py | 4 +- ...est_resource_remote_info_pagerduty_role.py | 4 +- ...e_remote_info_salesforce_permission_set.py | 4 +- ...resource_remote_info_salesforce_profile.py | 4 +- ...st_resource_remote_info_salesforce_role.py | 4 +- ...test_resource_remote_info_teleport_role.py | 4 +- test/test_resource_type_enum.py | 18 +- test/test_resource_user.py | 48 +- test/test_resource_user_access_status.py | 47 +- test/test_resource_user_access_status_enum.py | 18 +- test/test_resource_with_access_level.py | 4 +- test/test_resources_api.py | 173 +++- test/test_reviewer_id_list.py | 41 +- test/test_reviewer_stage.py | 5 +- test/test_reviewer_stage_list.py | 8 +- test/test_risk_sensitivity_enum.py | 2 +- test/test_scoped_role_permissions_api.py | 44 - test/test_session.py | 47 +- test/test_sessions_api.py | 21 +- test/test_sessions_list.py | 42 +- test/test_sub_event.py | 4 +- test/test_tag.py | 42 +- test/test_tag_filter.py | 4 +- test/test_tags_api.py | 55 +- test/test_tags_list.py | 43 +- test/test_ticket_propagation_configuration.py | 2 +- test/test_ticketing_provider_enum.py | 2 +- test/test_uar.py | 10 +- ...est_uar_reviewer_assignment_policy_enum.py | 2 +- test/test_uar_scope.py | 30 +- test/test_uars_api.py | 2 +- ...test_update_configuration_template_info.py | 24 +- test/test_update_group_binding_info.py | 8 +- test/test_update_group_binding_info_list.py | 8 +- test/test_update_group_info.py | 63 +- test/test_update_group_info_list.py | 43 +- test/test_update_group_resources_info.py | 8 +- .../test_update_idp_group_mappings_request.py | 12 +- ...p_group_mappings_request_mappings_inner.py | 5 +- test/test_update_owner_info.py | 4 +- test/test_update_owner_info_list.py | 8 +- test/test_update_resource_info.py | 66 +- test/test_update_resource_info_list.py | 43 +- test/test_user.py | 48 +- test/test_user_hr_idp_status_enum.py | 2 +- test/test_user_id_list.py | 4 +- test/test_user_list.py | 8 +- test/test_users_api.py | 39 +- test/test_visibility_info.py | 4 +- test/test_visibility_type_enum.py | 2 +- 212 files changed, 2992 insertions(+), 1467 deletions(-) delete mode 100644 test/test_access_rule_condition.py delete mode 100644 test/test_scoped_role_permissions_api.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d6b781..5ebcb62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=opal_security -pytest-3.8: - extends: .pytest - image: python:3.8-alpine pytest-3.9: extends: .pytest image: python:3.9-alpine @@ -29,3 +26,6 @@ pytest-3.11: pytest-3.12: extends: .pytest image: python:3.12-alpine +pytest-3.13: + extends: .pytest + image: python:3.13-alpine diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 62dab66..877cdec 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -523,11 +523,156 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_access.py +test/test_access_list.py +test/test_access_rule.py +test/test_access_rules_api.py +test/test_add_bundle_group_request.py +test/test_add_bundle_resource_request.py +test/test_add_group_resource_request.py +test/test_add_group_user_request.py +test/test_add_resource_nhi_request.py +test/test_add_resource_user_request.py +test/test_app.py +test/test_app_type_enum.py +test/test_app_validation.py +test/test_app_validation_severity_enum.py +test/test_app_validation_status_enum.py +test/test_approve_request200_response.py +test/test_approve_request_request.py +test/test_apps_api.py +test/test_apps_list.py +test/test_aws_permission_set_metadata.py +test/test_aws_permission_set_metadata_aws_permission_set.py +test/test_bundle.py +test/test_bundle_group.py +test/test_bundle_resource.py +test/test_bundles_api.py +test/test_condition.py +test/test_configuration_template.py +test/test_configuration_templates_api.py +test/test_create_bundle_info.py +test/test_create_configuration_template_info.py test/test_create_delegation_request.py +test/test_create_group_binding_info.py +test/test_create_group_binding_info_groups_inner.py +test/test_create_group_info.py +test/test_create_idp_group_mapping_request.py +test/test_create_message_channel_info.py +test/test_create_on_call_schedule_info.py +test/test_create_owner_info.py +test/test_create_request200_response.py +test/test_create_request_comment_request.py +test/test_create_request_configuration_info_list.py +test/test_create_request_info.py +test/test_create_request_info_custom_metadata_inner.py +test/test_create_request_info_groups_inner.py +test/test_create_request_info_resources_inner.py +test/test_create_request_info_support_ticket.py +test/test_create_resource_info.py +test/test_create_tag_info.py +test/test_create_uar_info.py test/test_delegation.py test/test_delegations_api.py +test/test_deny_request_request.py +test/test_entity_type_enum.py +test/test_event.py +test/test_events_api.py +test/test_get_resource_user200_response.py +test/test_group.py +test/test_group_access_level.py +test/test_group_binding.py +test/test_group_binding_group.py +test/test_group_bindings_api.py +test/test_group_containing_group.py +test/test_group_containing_group_list.py +test/test_group_remote_info.py +test/test_group_remote_info_active_directory_group.py +test/test_group_remote_info_azure_ad_microsoft365_group.py +test/test_group_remote_info_azure_ad_security_group.py +test/test_group_remote_info_duo_group.py +test/test_group_remote_info_github_team.py +test/test_group_remote_info_gitlab_group.py +test/test_group_remote_info_google_group.py +test/test_group_remote_info_ldap_group.py +test/test_group_remote_info_okta_group.py +test/test_group_remote_info_okta_group_rule.py +test/test_group_remote_info_snowflake_role.py +test/test_group_remote_info_workday_user_security_group.py +test/test_group_resource.py +test/test_group_resource_list.py +test/test_group_type_enum.py +test/test_group_user.py +test/test_group_user_list.py +test/test_group_with_access_level.py +test/test_groups_api.py +test/test_idp_group_mapping.py +test/test_idp_group_mapping_list.py +test/test_idp_group_mappings_api.py +test/test_message_channel.py +test/test_message_channel_id_list.py +test/test_message_channel_list.py +test/test_message_channel_provider_enum.py +test/test_message_channels_api.py +test/test_non_human_identities_api.py +test/test_on_call_schedule.py +test/test_on_call_schedule_id_list.py +test/test_on_call_schedule_list.py +test/test_on_call_schedule_provider_enum.py +test/test_on_call_schedules_api.py +test/test_owner.py +test/test_owners_api.py +test/test_page_info.py +test/test_paginated_assigned_request_list.py +test/test_paginated_bundle_group_list.py +test/test_paginated_bundle_list.py +test/test_paginated_bundle_resource_list.py +test/test_paginated_configuration_template_list.py test/test_paginated_delegations_list.py +test/test_paginated_event_list.py +test/test_paginated_group_bindings_list.py +test/test_paginated_groups_list.py +test/test_paginated_owners_list.py +test/test_paginated_remote_users_list.py +test/test_paginated_resources_list.py +test/test_paginated_tags_list.py +test/test_paginated_uars_list.py +test/test_paginated_users_list.py +test/test_propagation_status.py +test/test_propagation_status_enum.py +test/test_remote_user.py +test/test_request.py +test/test_request_approval_enum.py +test/test_request_comment.py +test/test_request_comment_list.py +test/test_request_configuration.py +test/test_request_connection.py +test/test_request_custom_field_response.py +test/test_request_custom_field_response_field_value.py +test/test_request_edge.py +test/test_request_item_stages.py +test/test_request_list.py +test/test_request_reviewer.py +test/test_request_reviewer_stages.py +test/test_request_stage.py +test/test_request_status_enum.py +test/test_request_template_custom_field_type_enum.py +test/test_requested_item.py +test/test_requests_api.py +test/test_resource.py +test/test_resource_access_level.py +test/test_resource_access_user.py +test/test_resource_access_user_list.py +test/test_resource_nhi.py +test/test_resource_remote_info.py test/test_resource_remote_info_anthropic_workspace.py +test/test_resource_remote_info_aws_account.py +test/test_resource_remote_info_aws_ec2_instance.py +test/test_resource_remote_info_aws_eks_cluster.py +test/test_resource_remote_info_aws_iam_role.py +test/test_resource_remote_info_aws_organizational_unit.py +test/test_resource_remote_info_aws_permission_set.py +test/test_resource_remote_info_aws_rds_instance.py test/test_resource_remote_info_azure_enterprise_app.py test/test_resource_remote_info_azure_entra_id_role.py test/test_resource_remote_info_azure_management_group.py @@ -543,8 +688,91 @@ test/test_resource_remote_info_azure_user_assigned_managed_identity.py test/test_resource_remote_info_azure_virtual_machine.py test/test_resource_remote_info_coupa_role.py test/test_resource_remote_info_cursor_organization.py +test/test_resource_remote_info_custom_connector.py +test/test_resource_remote_info_datastax_astra_role.py +test/test_resource_remote_info_gcp_big_query_dataset.py +test/test_resource_remote_info_gcp_big_query_table.py +test/test_resource_remote_info_gcp_bucket.py +test/test_resource_remote_info_gcp_compute_instance.py +test/test_resource_remote_info_gcp_folder.py +test/test_resource_remote_info_gcp_gke_cluster.py +test/test_resource_remote_info_gcp_organization.py +test/test_resource_remote_info_gcp_project.py +test/test_resource_remote_info_gcp_service_account.py +test/test_resource_remote_info_gcp_sql_instance.py test/test_resource_remote_info_github_org.py +test/test_resource_remote_info_github_org_role.py +test/test_resource_remote_info_github_repo.py +test/test_resource_remote_info_gitlab_project.py +test/test_resource_remote_info_google_workspace_role.py +test/test_resource_remote_info_okta_app.py +test/test_resource_remote_info_okta_custom_role.py +test/test_resource_remote_info_okta_standard_role.py test/test_resource_remote_info_openai_platform_project.py test/test_resource_remote_info_openai_platform_service_account.py test/test_resource_remote_info_oracle_fusion_role.py +test/test_resource_remote_info_pagerduty_role.py +test/test_resource_remote_info_salesforce_permission_set.py +test/test_resource_remote_info_salesforce_profile.py +test/test_resource_remote_info_salesforce_role.py +test/test_resource_remote_info_teleport_role.py +test/test_resource_type_enum.py +test/test_resource_user.py +test/test_resource_user_access_status.py +test/test_resource_user_access_status_enum.py +test/test_resource_with_access_level.py +test/test_resources_api.py +test/test_review_stage_operator.py +test/test_reviewer_id_list.py +test/test_reviewer_stage.py +test/test_reviewer_stage_list.py +test/test_risk_sensitivity_enum.py +test/test_role_permission_name_enum.py +test/test_role_permission_target_type_enum.py +test/test_rule_clauses.py +test/test_rule_conjunction.py +test/test_rule_disjunction.py +test/test_scoped_role_permission.py +test/test_scoped_role_permission_list.py +test/test_session.py +test/test_sessions_api.py +test/test_sessions_list.py +test/test_sub_event.py +test/test_sync_error.py +test/test_sync_error_list.py +test/test_sync_task.py +test/test_tag.py +test/test_tag_filter.py +test/test_tag_selector.py +test/test_tags_api.py +test/test_tags_list.py +test/test_third_party_provider_enum.py +test/test_ticket_propagation_configuration.py +test/test_ticketing_provider_enum.py +test/test_uar.py +test/test_uar_reviewer_assignment_policy_enum.py +test/test_uar_scope.py +test/test_uars_api.py +test/test_update_access_rule_info.py +test/test_update_configuration_template_info.py +test/test_update_group_binding_info.py +test/test_update_group_binding_info_list.py +test/test_update_group_info.py +test/test_update_group_info_list.py +test/test_update_group_resources_info.py +test/test_update_group_user_request.py +test/test_update_idp_group_mappings_request.py +test/test_update_idp_group_mappings_request_mappings_inner.py +test/test_update_owner_info.py +test/test_update_owner_info_list.py +test/test_update_resource_info.py +test/test_update_resource_info_list.py +test/test_update_resource_user_request.py +test/test_user.py +test/test_user_hr_idp_status_enum.py +test/test_user_id_list.py +test/test_user_list.py +test/test_users_api.py +test/test_visibility_info.py +test/test_visibility_type_enum.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 758bb9c..e465da4 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.10.0 +7.14.0 diff --git a/.travis.yml b/.travis.yml index 6c5030e..ccfd00c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" + - "3.13" # uncomment the following if needed - #- "3.12-dev" # 3.12 development branch + #- "3.13-dev" # 3.13 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/Makefile b/Makefile index b7a0115..955496f 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,19 @@ SHELL:=/bin/bash PYTHON_POST_PROCESS_FILE=python -m black +DELETE_OLD_GENERATED_TESTS=rm -rf test/* OPENAPI_GEN=openapi-generator generate --enable-post-process-file -i api/openapi.yaml -g python -o . -c config.json -t .openapi-generator/templates OPENAPI_GEN_CI=openapi-generator-cli generate --enable-post-process-file -i api/openapi.yaml -g python -o . -c config.json -t .openapi-generator/templates PULL_REMOTE_OPENAPI=curl https://app.opal.dev/openapi.yaml > api/openapi.yaml gen-openapi: + $(DELETE_OLD_GENERATED_TESTS) $(OPENAPI_GEN) gen-openapi-remote: + $(DELETE_OLD_GENERATED_TESTS) $(PULL_REMOTE_OPENAPI) $(OPENAPI_GEN) gen-openapi-remote-for-ci: + $(DELETE_OLD_GENERATED_TESTS) $(PULL_REMOTE_OPENAPI) $(OPENAPI_GEN_CI) diff --git a/README.md b/README.md index f325694..50f410a 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 1.0 - [Releases](https://github.com/opalsecurity/opal-python/releases/) -- Generator version: 7.10.0 +- Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.opal.dev/](https://www.opal.dev/) ## Requirements. -Python 3.8+ +Python 3.9+ ## Installation & Usage ### pip install diff --git a/docs/AccessRulesApi.md b/docs/AccessRulesApi.md index 5c9f233..d09a203 100644 --- a/docs/AccessRulesApi.md +++ b/docs/AccessRulesApi.md @@ -12,8 +12,6 @@ Method | HTTP request | Description # **create_access_rule** > AccessRule create_access_rule(update_access_rule_info) - - Creates a new access rule config for the given group_id. ### Example @@ -92,8 +90,6 @@ Name | Type | Description | Notes # **get_access_rule** > AccessRule get_access_rule(access_rule_id) - - Returns a list of access rule config given the group_id of the access rule. ### Example @@ -171,8 +167,6 @@ Name | Type | Description | Notes # **update_access_rule** > AccessRule update_access_rule(access_rule_id, update_access_rule_info) - - Updates the access rule config for the given group_id. ### Example diff --git a/docs/AppsApi.md b/docs/AppsApi.md index 571c9d5..d47dfd1 100644 --- a/docs/AppsApi.md +++ b/docs/AppsApi.md @@ -175,8 +175,6 @@ Name | Type | Description | Notes # **get_sync_errors** > List[SyncErrorList] get_sync_errors(app_id=app_id, resource_id=resource_id, group_id=group_id) - - Returns a list of recent sync errors that have occurred since the last successful sync. ### Example diff --git a/docs/BundlesApi.md b/docs/BundlesApi.md index 1f56fb9..2fd0807 100644 --- a/docs/BundlesApi.md +++ b/docs/BundlesApi.md @@ -22,8 +22,6 @@ Method | HTTP request | Description # **add_bundle_group** > BundleGroup add_bundle_group(bundle_id, add_bundle_group_request) - - Adds a group to a bundle. ### Example @@ -104,8 +102,6 @@ Name | Type | Description | Notes # **add_bundle_resource** > BundleResource add_bundle_resource(bundle_id, add_bundle_resource_request=add_bundle_resource_request) - - Adds a resource to a bundle. ### Example @@ -186,8 +182,6 @@ Name | Type | Description | Notes # **create_bundle** > Bundle create_bundle(create_bundle_info) - - Creates a bundle. ### Example @@ -266,8 +260,6 @@ Name | Type | Description | Notes # **delete_bundle** > delete_bundle(bundle_id) - - Deletes a bundle. ### Example @@ -422,8 +414,6 @@ Name | Type | Description | Notes # **get_bundle_groups** > PaginatedBundleGroupList get_bundle_groups(bundle_id, page_size=page_size, cursor=cursor) - - Returns a list of `Group` objects in a given bundle. ### Example @@ -505,8 +495,6 @@ Name | Type | Description | Notes # **get_bundle_resources** > PaginatedBundleResourceList get_bundle_resources(bundle_id, page_size=page_size, cursor=cursor) - - Returns a list of `Resource` objects in a given bundle. ### Example @@ -588,8 +576,6 @@ Name | Type | Description | Notes # **get_bundle_visibility** > VisibilityInfo get_bundle_visibility(bundle_id) - - Gets the visibility of the bundle. ### Example @@ -751,8 +737,6 @@ Name | Type | Description | Notes # **remove_bundle_group** > remove_bundle_group(bundle_id, group_id, access_level_remote_id=access_level_remote_id) - - Removes a group from a bundle. ### Example @@ -831,8 +815,6 @@ void (empty response body) # **remove_bundle_resource** > remove_bundle_resource(bundle_id, resource_id, access_level_remote_id=access_level_remote_id) - - Removes a resource from a bundle. ### Example @@ -911,8 +893,6 @@ void (empty response body) # **set_bundle_visibility** > set_bundle_visibility(bundle_id, visibility_info) - - Sets the visibility of the bundle. ### Example @@ -990,8 +970,6 @@ void (empty response body) # **update_bundle** > Bundle update_bundle(bundle_id, bundle) - - Updates a bundle. ### Example diff --git a/docs/ConfigurationTemplatesApi.md b/docs/ConfigurationTemplatesApi.md index c10b46f..dcd8712 100644 --- a/docs/ConfigurationTemplatesApi.md +++ b/docs/ConfigurationTemplatesApi.md @@ -13,8 +13,6 @@ Method | HTTP request | Description # **create_configuration_template** > ConfigurationTemplate create_configuration_template(create_configuration_template_info) - - Creates a configuration template. ### Example @@ -93,8 +91,6 @@ Name | Type | Description | Notes # **delete_configuration_template** > delete_configuration_template(configuration_template_id) - - Deletes a configuration template. ### Example @@ -169,8 +165,6 @@ void (empty response body) # **get_configuration_templates** > PaginatedConfigurationTemplateList get_configuration_templates() - - Returns a list of `ConfigurationTemplate` objects. ### Example @@ -244,8 +238,6 @@ This endpoint does not need any parameter. # **update_configuration_template** > ConfigurationTemplate update_configuration_template(update_configuration_template_info) - - Update a configuration template. ### Example diff --git a/docs/DelegationsApi.md b/docs/DelegationsApi.md index 4754605..2158b23 100644 --- a/docs/DelegationsApi.md +++ b/docs/DelegationsApi.md @@ -13,8 +13,6 @@ Method | HTTP request | Description # **create_delegation** > Delegation create_delegation(create_delegation_request) - - Creates a new request reviewer delegation to delegate access review requests from one user to another. ### Example @@ -93,8 +91,6 @@ Name | Type | Description | Notes # **delete_delegation** > delete_delegation(delegation_id) - - Deletes a delegation by its ID. ### Example diff --git a/docs/EventsApi.md b/docs/EventsApi.md index 583435e..8fd046b 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **events** > PaginatedEventList events(start_date_filter=start_date_filter, end_date_filter=end_date_filter, actor_filter=actor_filter, object_filter=object_filter, event_type_filter=event_type_filter, api_token_filter=api_token_filter, cursor=cursor, page_size=page_size) - - Returns a list of `Event` objects. ### Example diff --git a/docs/GroupBindingsApi.md b/docs/GroupBindingsApi.md index 0c72847..beced74 100644 --- a/docs/GroupBindingsApi.md +++ b/docs/GroupBindingsApi.md @@ -14,8 +14,6 @@ Method | HTTP request | Description # **create_group_binding** > GroupBinding create_group_binding(create_group_binding_info) - - Creates a group binding. ### Example @@ -94,8 +92,6 @@ Name | Type | Description | Notes # **delete_group_binding** > delete_group_binding(group_binding_id) - - Deletes a group binding. ### Example @@ -332,8 +328,6 @@ Name | Type | Description | Notes # **update_group_bindings** > update_group_bindings(update_group_binding_info_list) - - Bulk updates a list of group bindings. ### Example diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 3c0cc11..3da9600 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -37,8 +37,6 @@ Method | HTTP request | Description # **add_group_containing_group** > GroupContainingGroup add_group_containing_group(group_id, group_containing_group) - - Creates a new containing group. ### Example @@ -118,8 +116,6 @@ Name | Type | Description | Notes # **add_group_resource** > GroupResource add_group_resource(group_id, resource_id, access_level_remote_id=access_level_remote_id, add_group_resource_request=add_group_resource_request) - - Adds a resource to a group. ### Example @@ -204,8 +200,6 @@ Name | Type | Description | Notes # **add_group_user** > GroupUser add_group_user(group_id, user_id, duration_minutes=duration_minutes, access_level_remote_id=access_level_remote_id, add_group_user_request=add_group_user_request) - - Adds a user to this group. ### Example @@ -292,8 +286,6 @@ Name | Type | Description | Notes # **create_group** > Group create_group(create_group_info) - - Creates an Opal group or [imports a remote group](https://docs.opal.dev/reference/end-system-objects). ### Example @@ -372,8 +364,6 @@ Name | Type | Description | Notes # **delete_group** > delete_group(group_id) - - Deletes a group. ### Example @@ -448,8 +438,6 @@ void (empty response body) # **delete_group_user** > delete_group_user(group_id, user_id, access_level_remote_id=access_level_remote_id) - - Removes a user's access from this group. ### Example @@ -770,8 +758,6 @@ Name | Type | Description | Notes # **get_group_message_channels** > MessageChannelList get_group_message_channels(group_id) - - Gets the list of audit and reviewer message channels attached to a group. ### Example @@ -849,8 +835,6 @@ Name | Type | Description | Notes # **get_group_on_call_schedules** > OnCallScheduleList get_group_on_call_schedules(group_id) - - Gets the list of on call schedules attached to a group. ### Example @@ -928,8 +912,6 @@ Name | Type | Description | Notes # **get_group_resources** > GroupResourceList get_group_resources(group_id) - - Gets the list of resources that the group gives access to. ### Example @@ -1007,8 +989,6 @@ Name | Type | Description | Notes # **get_group_reviewer_stages** > List[ReviewerStage] get_group_reviewer_stages(group_id) - - Gets the list of reviewer stages for a group. ### Example @@ -1086,8 +1066,6 @@ Name | Type | Description | Notes # **get_group_reviewers** > List[str] get_group_reviewers(group_id) - - Gets the list of owner IDs of the reviewers for a group. ### Example @@ -1164,8 +1142,6 @@ Name | Type | Description | Notes # **get_group_tags** > TagsList get_group_tags(group_id) - - Returns all tags applied to the group. ### Example @@ -1243,8 +1219,6 @@ Name | Type | Description | Notes # **get_group_users** > GroupUserList get_group_users(group_id, cursor=cursor, page_size=page_size) - - Gets the list of users for this group. ### Example @@ -1326,8 +1300,6 @@ Name | Type | Description | Notes # **get_group_visibility** > VisibilityInfo get_group_visibility(group_id) - - Gets the visibility of this group. ### Example @@ -1494,8 +1466,6 @@ Name | Type | Description | Notes # **get_user_groups** > GroupUserList get_user_groups(user_id, cursor=cursor, page_size=page_size) - - Returns all groups that the user is a member of. ### Example @@ -1577,8 +1547,6 @@ Name | Type | Description | Notes # **remove_group_containing_group** > remove_group_containing_group(group_id, containing_group_id) - - Removes a containing group from a group. ### Example @@ -1655,8 +1623,6 @@ void (empty response body) # **set_group_message_channels** > List[str] set_group_message_channels(group_id, message_channel_id_list) - - Sets the list of audit message channels attached to a group. ### Example @@ -1736,8 +1702,6 @@ Name | Type | Description | Notes # **set_group_on_call_schedules** > List[str] set_group_on_call_schedules(group_id, on_call_schedule_id_list) - - Sets the list of on call schedules attached to a group. ### Example @@ -1817,8 +1781,6 @@ Name | Type | Description | Notes # **set_group_resources** > set_group_resources(group_id, update_group_resources_info) - - Sets the list of resources that the group gives access to. ### Example @@ -1896,8 +1858,6 @@ void (empty response body) # **set_group_reviewer_stages** > List[ReviewerStage] set_group_reviewer_stages(group_id, reviewer_stage_list) - - Sets the list of reviewer stages for a group. ### Example @@ -1978,8 +1938,6 @@ Name | Type | Description | Notes # **set_group_reviewers** > List[str] set_group_reviewers(group_id, reviewer_id_list) - - Sets the list of reviewers for a group. ### Example @@ -2059,8 +2017,6 @@ Name | Type | Description | Notes # **set_group_visibility** > VisibilityInfo set_group_visibility(group_id, visibility_info) - - Sets the visibility of this group. ### Example @@ -2140,8 +2096,6 @@ Name | Type | Description | Notes # **update_group_user** > GroupUser update_group_user(group_id, user_id, update_group_user_request) - - Updates a user's access level or duration in this group. ### Example @@ -2224,8 +2178,6 @@ Name | Type | Description | Notes # **update_groups** > UpdateGroupInfoList update_groups(update_group_info_list) - - Bulk updates a list of groups. ### Example diff --git a/docs/IdpGroupMappingsApi.md b/docs/IdpGroupMappingsApi.md index c3c5f2e..a19324a 100644 --- a/docs/IdpGroupMappingsApi.md +++ b/docs/IdpGroupMappingsApi.md @@ -14,9 +14,12 @@ Method | HTTP request | Description # **create_idp_group_mapping** > IdpGroupMapping create_idp_group_mapping(app_resource_id, group_id, create_idp_group_mapping_request=create_idp_group_mapping_request) +Creates or updates an individual `IdpGroupMapping` object (upsert operation). +**Behavior:** +- If the mapping doesn't exist, it will be created with the provided values +- If the mapping exists, only the fields provided in the request will be updated -Creates or updates an individual `IdpGroupMapping` object (upsert operation). **Behavior:** - If the mapping doesn't exist, it will be created with the provided values - If the mapping exists, only the fields provided in the request will be updated ### Example @@ -98,8 +101,6 @@ Name | Type | Description | Notes # **delete_idp_group_mappings** > delete_idp_group_mappings(app_resource_id, group_id) - - Deletes an `IdpGroupMapping` object. ### Example @@ -176,8 +177,6 @@ void (empty response body) # **get_idp_group_mapping** > IdpGroupMapping get_idp_group_mapping(app_resource_id, group_id) - - Gets an `IdpGroupMapping` object for an Okta app and group. ### Example @@ -257,8 +256,6 @@ Name | Type | Description | Notes # **get_idp_group_mappings** > IdpGroupMappingList get_idp_group_mappings(app_resource_id) - - Returns the configured set of available `IdpGroupMapping` objects for an Okta app. ### Example @@ -336,8 +333,6 @@ Name | Type | Description | Notes # **update_idp_group_mappings** > update_idp_group_mappings(app_resource_id, update_idp_group_mappings_request) - - Updates the list of available `IdpGroupMapping` objects for an Okta app. ### Example diff --git a/docs/MessageChannelsApi.md b/docs/MessageChannelsApi.md index e36c5e8..d516bed 100644 --- a/docs/MessageChannelsApi.md +++ b/docs/MessageChannelsApi.md @@ -12,8 +12,6 @@ Method | HTTP request | Description # **create_message_channel** > MessageChannel create_message_channel(create_message_channel_info) - - Creates a `MessageChannel` objects. ### Example diff --git a/docs/NonHumanIdentitiesApi.md b/docs/NonHumanIdentitiesApi.md index 511955d..040c778 100644 --- a/docs/NonHumanIdentitiesApi.md +++ b/docs/NonHumanIdentitiesApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **get_nhis** > PaginatedResourcesList get_nhis(cursor=cursor, page_size=page_size) - - Returns a list of non-human identities for your organization. ### Example diff --git a/docs/OnCallSchedulesApi.md b/docs/OnCallSchedulesApi.md index d14080e..f8236c6 100644 --- a/docs/OnCallSchedulesApi.md +++ b/docs/OnCallSchedulesApi.md @@ -12,8 +12,6 @@ Method | HTTP request | Description # **create_on_call_schedule** > OnCallSchedule create_on_call_schedule(create_on_call_schedule_info) - - Creates a `OnCallSchedule` objects. ### Example diff --git a/docs/OwnersApi.md b/docs/OwnersApi.md index 90fdf58..38845c6 100644 --- a/docs/OwnersApi.md +++ b/docs/OwnersApi.md @@ -17,8 +17,6 @@ Method | HTTP request | Description # **create_owner** > Owner create_owner(create_owner_info) - - Creates an owner. ### Example @@ -97,8 +95,6 @@ Name | Type | Description | Notes # **delete_owner** > delete_owner(owner_id) - - Deletes an owner. ### Example @@ -253,8 +249,6 @@ Name | Type | Description | Notes # **get_owner_from_name** > Owner get_owner_from_name(owner_name) - - Returns an `Owner` object. Does not support owners with `/` in their name, use /owners?name=... instead. ### Example @@ -332,8 +326,6 @@ Name | Type | Description | Notes # **get_owner_users** > UserList get_owner_users(owner_id) - - Gets the list of users for this owner, in escalation priority order if applicable. ### Example @@ -495,8 +487,6 @@ Name | Type | Description | Notes # **set_owner_users** > UserList set_owner_users(owner_id, user_id_list) - - Sets the list of users for this owner. If escalation is enabled, the order of this list is the escalation priority order of the users. If the owner has a source group, adding or removing users from this list won't be possible. ### Example @@ -577,8 +567,6 @@ Name | Type | Description | Notes # **update_owners** > UpdateOwnerInfoList update_owners(update_owner_info_list) - - Bulk updates a list of owners. ### Example diff --git a/docs/RequestsApi.md b/docs/RequestsApi.md index 9218a5f..b466e85 100644 --- a/docs/RequestsApi.md +++ b/docs/RequestsApi.md @@ -17,8 +17,6 @@ Method | HTTP request | Description # **approve_request** > ApproveRequest200Response approve_request(id, approve_request_request) - - Approve an access request ### Example @@ -99,8 +97,6 @@ Name | Type | Description | Notes # **create_request** > CreateRequest200Response create_request(create_request_info) - - Create an access request ### Example @@ -179,8 +175,6 @@ Name | Type | Description | Notes # **create_request_comment** > ApproveRequest200Response create_request_comment(id, create_request_comment_request) - - Comment on an access request ### Example @@ -261,8 +255,6 @@ Name | Type | Description | Notes # **deny_request** > ApproveRequest200Response deny_request(id, deny_request_request) - - Deny an access request ### Example @@ -423,8 +415,6 @@ Name | Type | Description | Notes # **get_request_comments** > RequestCommentList get_request_comments(id) - - Returns a list of comments for a specific request. ### Example diff --git a/docs/ResourcesApi.md b/docs/ResourcesApi.md index a73976d..60ca5fb 100644 --- a/docs/ResourcesApi.md +++ b/docs/ResourcesApi.md @@ -35,8 +35,6 @@ Method | HTTP request | Description # **add_resource_nhi** > ResourceNHI add_resource_nhi(resource_id, non_human_identity_id, add_resource_nhi_request=add_resource_nhi_request) - - Gives a non-human identity access to this resource. ### Example @@ -119,8 +117,6 @@ Name | Type | Description | Notes # **add_resource_user** > ResourceUser add_resource_user(resource_id, user_id, duration_minutes=duration_minutes, access_level_remote_id=access_level_remote_id, add_resource_user_request=add_resource_user_request) - - Adds a user to this resource. ### Example @@ -207,8 +203,6 @@ Name | Type | Description | Notes # **create_resource** > Resource create_resource(create_resource_info) - - Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects) for details about importing resources. ### Example @@ -287,8 +281,6 @@ Name | Type | Description | Notes # **delete_resource** > delete_resource(resource_id) - - Deletes a resource. ### Example @@ -363,8 +355,6 @@ void (empty response body) # **delete_resource_nhi** > delete_resource_nhi(resource_id, non_human_identity_id, access_level_remote_id=access_level_remote_id) - - Removes a non-human identity's direct access from this resource. ### Example @@ -443,8 +433,6 @@ void (empty response body) # **delete_resource_user** > delete_resource_user(resource_id, user_id, access_level_remote_id=access_level_remote_id) - - Removes a user's direct access from this resource. ### Example @@ -603,8 +591,6 @@ Name | Type | Description | Notes # **get_resource_message_channels** > MessageChannelList get_resource_message_channels(resource_id) - - Gets the list of audit message channels attached to a resource. ### Example @@ -682,8 +668,6 @@ Name | Type | Description | Notes # **get_resource_nhis** > AccessList get_resource_nhis(resource_id, limit=limit) - - Gets the list of non-human identities with access to this resource. ### Example @@ -763,8 +747,6 @@ Name | Type | Description | Notes # **get_resource_reviewer_stages** > List[ReviewerStage] get_resource_reviewer_stages(resource_id) - - Gets the list reviewer stages for a resource. ### Example @@ -842,8 +824,6 @@ Name | Type | Description | Notes # **get_resource_reviewers** > List[str] get_resource_reviewers(resource_id) - - Gets the list of owner IDs of the reviewers for a resource. ### Example @@ -920,8 +900,6 @@ Name | Type | Description | Notes # **get_resource_scoped_role_permissions** > ScopedRolePermissionList get_resource_scoped_role_permissions(resource_id) - - Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field. ### Example @@ -999,8 +977,6 @@ Name | Type | Description | Notes # **get_resource_tags** > TagsList get_resource_tags(resource_id) - - Returns all tags applied to the resource. ### Example @@ -1245,8 +1221,6 @@ Name | Type | Description | Notes # **get_resource_visibility** > VisibilityInfo get_resource_visibility(resource_id) - - Gets the visibility of this resource. ### Example @@ -1419,8 +1393,6 @@ Name | Type | Description | Notes # **get_user_resources** > ResourceAccessUserList get_user_resources(user_id, limit=limit, cursor=cursor, include_unmanaged=include_unmanaged) - - Gets the list of resources for this user. ### Example @@ -1504,8 +1476,6 @@ Name | Type | Description | Notes # **resource_user_access_status_retrieve** > ResourceUserAccessStatus resource_user_access_status_retrieve(resource_id, user_id, access_level_remote_id=access_level_remote_id, cursor=cursor, page_size=page_size) - - Get user's access status to a resource. ### Example @@ -1591,8 +1561,6 @@ Name | Type | Description | Notes # **set_resource_message_channels** > List[str] set_resource_message_channels(resource_id, message_channel_id_list) - - Sets the list of audit message channels attached to a resource. ### Example @@ -1672,8 +1640,6 @@ Name | Type | Description | Notes # **set_resource_reviewer_stages** > List[ReviewerStage] set_resource_reviewer_stages(resource_id, reviewer_stage_list) - - Sets the list of reviewer stages for a resource. ### Example @@ -1754,8 +1720,6 @@ Name | Type | Description | Notes # **set_resource_reviewers** > List[str] set_resource_reviewers(resource_id, reviewer_id_list) - - Sets the list of reviewers for a resource. ### Example @@ -1835,8 +1799,6 @@ Name | Type | Description | Notes # **set_resource_scoped_role_permissions** > ScopedRolePermissionList set_resource_scoped_role_permissions(resource_id, scoped_role_permission_list) - - Sets all the scoped role permissions on an OPAL_SCOPED_ROLE resource. ### Example @@ -1916,8 +1878,6 @@ Name | Type | Description | Notes # **set_resource_visibility** > VisibilityInfo set_resource_visibility(resource_id, visibility_info) - - Sets the visibility of this resource. ### Example @@ -1997,8 +1957,6 @@ Name | Type | Description | Notes # **update_resource_user** > ResourceUser update_resource_user(resource_id, user_id, update_resource_user_request) - - Updates a user's access level or duration on this resource. ### Example @@ -2081,8 +2039,6 @@ Name | Type | Description | Notes # **update_resources** > UpdateResourceInfoList update_resources(update_resource_info_list) - - Bulk updates a list of resources. ### Example diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index 22311f7..589a63c 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -10,8 +10,6 @@ Method | HTTP request | Description # **sessions** > SessionsList sessions(resource_id, user_id=user_id) - - Returns a list of `Session` objects. ### Example diff --git a/docs/TagsApi.md b/docs/TagsApi.md index 591e38c..35ddb23 100644 --- a/docs/TagsApi.md +++ b/docs/TagsApi.md @@ -20,8 +20,6 @@ Method | HTTP request | Description # **add_group_tag** > add_group_tag(tag_id, group_id) - - Applies a tag to a group. ### Example @@ -98,8 +96,6 @@ void (empty response body) # **add_resource_tag** > add_resource_tag(tag_id, resource_id) - - Applies a tag to a resource. ### Example @@ -176,8 +172,6 @@ void (empty response body) # **add_user_tag** > add_user_tag(tag_id, user_id, body=body) - - Applies a tag to a user. ### Example @@ -256,8 +250,6 @@ void (empty response body) # **create_tag** > Tag create_tag(tag_key=tag_key, tag_value=tag_value, admin_owner_id=admin_owner_id, create_tag_info=create_tag_info) - - Creates a tag with the given key and value. ### Example @@ -342,8 +334,6 @@ Name | Type | Description | Notes # **delete_tag_by_id** > delete_tag_by_id(tag_id) - - UNSTABLE. May be removed at any time. Deletes a tag with the given id. ### Example @@ -418,8 +408,6 @@ void (empty response body) # **get_tag** > Tag get_tag(tag_key, tag_value=tag_value) - - Gets a tag with the given key and value. ### Example @@ -661,8 +649,6 @@ Name | Type | Description | Notes # **remove_group_tag** > remove_group_tag(tag_id, group_id) - - Removes a tag from a group. ### Example @@ -739,8 +725,6 @@ void (empty response body) # **remove_resource_tag** > remove_resource_tag(tag_id, resource_id) - - Removes a tag from a resource. ### Example @@ -817,8 +801,6 @@ void (empty response body) # **remove_user_tag** > remove_user_tag(tag_id, user_id) - - Removes a tag from a user. ### Example diff --git a/docs/UarsApi.md b/docs/UarsApi.md index 0de803a..0382cc0 100644 --- a/docs/UarsApi.md +++ b/docs/UarsApi.md @@ -12,8 +12,6 @@ Method | HTTP request | Description # **create_uar** > UAR create_uar(create_uar_info) - - Starts a User Access Review. ### Example @@ -92,8 +90,6 @@ Name | Type | Description | Notes # **get_uar** > UAR get_uar(uar_id) - - Retrieves a specific UAR. ### Example @@ -171,8 +167,6 @@ Name | Type | Description | Notes # **get_uars** > PaginatedUARsList get_uars(cursor=cursor, page_size=page_size) - - Returns a list of `UAR` objects. ### Example diff --git a/docs/UsersApi.md b/docs/UsersApi.md index f782487..a52d0e4 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -13,8 +13,6 @@ Method | HTTP request | Description # **get_remote_users** > PaginatedRemoteUsersList get_remote_users(third_party_provider=third_party_provider, user_id=user_id, remote_id=remote_id, cursor=cursor, page_size=page_size) - - Returns a list of remote users for your organization. ### Example @@ -101,8 +99,6 @@ Name | Type | Description | Notes # **get_user_tags** > TagsList get_user_tags(user_id) - - Returns all tags applied to the user. ### Example @@ -180,8 +176,6 @@ Name | Type | Description | Notes # **get_users** > PaginatedUsersList get_users(cursor=cursor, page_size=page_size) - - Returns a list of users for your organization. ### Example @@ -261,8 +255,6 @@ Name | Type | Description | Notes # **user** > User user(user_id=user_id, email=email) - - Returns a `User` object. ### Example diff --git a/opal_security/__init__.py b/opal_security/__init__.py index ea0d19f..ca908d8 100644 --- a/opal_security/__init__.py +++ b/opal_security/__init__.py @@ -17,269 +17,534 @@ __version__ = "1.0.0" +# Define package exports +__all__ = [ + "AccessRulesApi", + "AppsApi", + "BundlesApi", + "ConfigurationTemplatesApi", + "DelegationsApi", + "EventsApi", + "GroupBindingsApi", + "GroupsApi", + "IdpGroupMappingsApi", + "MessageChannelsApi", + "NonHumanIdentitiesApi", + "OnCallSchedulesApi", + "OwnersApi", + "RequestsApi", + "ResourcesApi", + "SessionsApi", + "TagsApi", + "UarsApi", + "UsersApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "Access", + "AccessList", + "AccessRule", + "AddBundleGroupRequest", + "AddBundleResourceRequest", + "AddGroupResourceRequest", + "AddGroupUserRequest", + "AddResourceNhiRequest", + "AddResourceUserRequest", + "App", + "AppTypeEnum", + "AppValidation", + "AppValidationSeverityEnum", + "AppValidationStatusEnum", + "ApproveRequest200Response", + "ApproveRequestRequest", + "AppsList", + "AwsPermissionSetMetadata", + "AwsPermissionSetMetadataAwsPermissionSet", + "Bundle", + "BundleGroup", + "BundleResource", + "Condition", + "ConfigurationTemplate", + "CreateBundleInfo", + "CreateConfigurationTemplateInfo", + "CreateDelegationRequest", + "CreateGroupBindingInfo", + "CreateGroupBindingInfoGroupsInner", + "CreateGroupInfo", + "CreateIdpGroupMappingRequest", + "CreateMessageChannelInfo", + "CreateOnCallScheduleInfo", + "CreateOwnerInfo", + "CreateRequest200Response", + "CreateRequestCommentRequest", + "CreateRequestConfigurationInfoList", + "CreateRequestInfo", + "CreateRequestInfoCustomMetadataInner", + "CreateRequestInfoGroupsInner", + "CreateRequestInfoResourcesInner", + "CreateRequestInfoSupportTicket", + "CreateResourceInfo", + "CreateTagInfo", + "CreateUARInfo", + "Delegation", + "DenyRequestRequest", + "EntityTypeEnum", + "Event", + "GetResourceUser200Response", + "Group", + "GroupAccessLevel", + "GroupBinding", + "GroupBindingGroup", + "GroupContainingGroup", + "GroupContainingGroupList", + "GroupRemoteInfo", + "GroupRemoteInfoActiveDirectoryGroup", + "GroupRemoteInfoAzureAdMicrosoft365Group", + "GroupRemoteInfoAzureAdSecurityGroup", + "GroupRemoteInfoDuoGroup", + "GroupRemoteInfoGithubTeam", + "GroupRemoteInfoGitlabGroup", + "GroupRemoteInfoGoogleGroup", + "GroupRemoteInfoLdapGroup", + "GroupRemoteInfoOktaGroup", + "GroupRemoteInfoOktaGroupRule", + "GroupRemoteInfoSnowflakeRole", + "GroupRemoteInfoWorkdayUserSecurityGroup", + "GroupResource", + "GroupResourceList", + "GroupTypeEnum", + "GroupUser", + "GroupUserList", + "GroupWithAccessLevel", + "IdpGroupMapping", + "IdpGroupMappingList", + "MessageChannel", + "MessageChannelIDList", + "MessageChannelList", + "MessageChannelProviderEnum", + "OnCallSchedule", + "OnCallScheduleIDList", + "OnCallScheduleList", + "OnCallScheduleProviderEnum", + "Owner", + "PageInfo", + "PaginatedAssignedRequestList", + "PaginatedBundleGroupList", + "PaginatedBundleList", + "PaginatedBundleResourceList", + "PaginatedConfigurationTemplateList", + "PaginatedDelegationsList", + "PaginatedEventList", + "PaginatedGroupBindingsList", + "PaginatedGroupsList", + "PaginatedOwnersList", + "PaginatedRemoteUsersList", + "PaginatedResourcesList", + "PaginatedTagsList", + "PaginatedUARsList", + "PaginatedUsersList", + "PropagationStatus", + "PropagationStatusEnum", + "RemoteUser", + "Request", + "RequestApprovalEnum", + "RequestComment", + "RequestCommentList", + "RequestConfiguration", + "RequestConnection", + "RequestCustomFieldResponse", + "RequestCustomFieldResponseFieldValue", + "RequestEdge", + "RequestItemStages", + "RequestList", + "RequestReviewer", + "RequestReviewerStages", + "RequestStage", + "RequestStatusEnum", + "RequestTemplateCustomFieldTypeEnum", + "RequestedItem", + "Resource", + "ResourceAccessLevel", + "ResourceAccessUser", + "ResourceAccessUserList", + "ResourceNHI", + "ResourceRemoteInfo", + "ResourceRemoteInfoAnthropicWorkspace", + "ResourceRemoteInfoAwsAccount", + "ResourceRemoteInfoAwsEc2Instance", + "ResourceRemoteInfoAwsEksCluster", + "ResourceRemoteInfoAwsIamRole", + "ResourceRemoteInfoAwsOrganizationalUnit", + "ResourceRemoteInfoAwsPermissionSet", + "ResourceRemoteInfoAwsRdsInstance", + "ResourceRemoteInfoAzureEnterpriseApp", + "ResourceRemoteInfoAzureEntraIdRole", + "ResourceRemoteInfoAzureManagementGroup", + "ResourceRemoteInfoAzureResourceGroup", + "ResourceRemoteInfoAzureSqlDatabase", + "ResourceRemoteInfoAzureSqlManagedDatabase", + "ResourceRemoteInfoAzureSqlManagedInstance", + "ResourceRemoteInfoAzureSqlServer", + "ResourceRemoteInfoAzureStorageAccount", + "ResourceRemoteInfoAzureStorageContainer", + "ResourceRemoteInfoAzureSubscription", + "ResourceRemoteInfoAzureUserAssignedManagedIdentity", + "ResourceRemoteInfoAzureVirtualMachine", + "ResourceRemoteInfoCoupaRole", + "ResourceRemoteInfoCursorOrganization", + "ResourceRemoteInfoCustomConnector", + "ResourceRemoteInfoDatastaxAstraRole", + "ResourceRemoteInfoGcpBigQueryDataset", + "ResourceRemoteInfoGcpBigQueryTable", + "ResourceRemoteInfoGcpBucket", + "ResourceRemoteInfoGcpComputeInstance", + "ResourceRemoteInfoGcpFolder", + "ResourceRemoteInfoGcpGkeCluster", + "ResourceRemoteInfoGcpOrganization", + "ResourceRemoteInfoGcpProject", + "ResourceRemoteInfoGcpServiceAccount", + "ResourceRemoteInfoGcpSqlInstance", + "ResourceRemoteInfoGithubOrg", + "ResourceRemoteInfoGithubOrgRole", + "ResourceRemoteInfoGithubRepo", + "ResourceRemoteInfoGitlabProject", + "ResourceRemoteInfoGoogleWorkspaceRole", + "ResourceRemoteInfoOktaApp", + "ResourceRemoteInfoOktaCustomRole", + "ResourceRemoteInfoOktaStandardRole", + "ResourceRemoteInfoOpenaiPlatformProject", + "ResourceRemoteInfoOpenaiPlatformServiceAccount", + "ResourceRemoteInfoOracleFusionRole", + "ResourceRemoteInfoPagerdutyRole", + "ResourceRemoteInfoSalesforcePermissionSet", + "ResourceRemoteInfoSalesforceProfile", + "ResourceRemoteInfoSalesforceRole", + "ResourceRemoteInfoTeleportRole", + "ResourceTypeEnum", + "ResourceUser", + "ResourceUserAccessStatus", + "ResourceUserAccessStatusEnum", + "ResourceWithAccessLevel", + "ReviewStageOperator", + "ReviewerIDList", + "ReviewerStage", + "ReviewerStageList", + "RiskSensitivityEnum", + "RolePermissionNameEnum", + "RolePermissionTargetTypeEnum", + "RuleClauses", + "RuleConjunction", + "RuleDisjunction", + "ScopedRolePermission", + "ScopedRolePermissionList", + "Session", + "SessionsList", + "SubEvent", + "SyncError", + "SyncErrorList", + "SyncTask", + "Tag", + "TagFilter", + "TagSelector", + "TagsList", + "ThirdPartyProviderEnum", + "TicketPropagationConfiguration", + "TicketingProviderEnum", + "UAR", + "UARReviewerAssignmentPolicyEnum", + "UARScope", + "UpdateAccessRuleInfo", + "UpdateConfigurationTemplateInfo", + "UpdateGroupBindingInfo", + "UpdateGroupBindingInfoList", + "UpdateGroupInfo", + "UpdateGroupInfoList", + "UpdateGroupResourcesInfo", + "UpdateGroupUserRequest", + "UpdateIdpGroupMappingsRequest", + "UpdateIdpGroupMappingsRequestMappingsInner", + "UpdateOwnerInfo", + "UpdateOwnerInfoList", + "UpdateResourceInfo", + "UpdateResourceInfoList", + "UpdateResourceUserRequest", + "User", + "UserHrIdpStatusEnum", + "UserIDList", + "UserList", + "VisibilityInfo", + "VisibilityTypeEnum", +] + # import apis into sdk package -from opal_security.api.access_rules_api import AccessRulesApi -from opal_security.api.apps_api import AppsApi -from opal_security.api.bundles_api import BundlesApi -from opal_security.api.configuration_templates_api import ConfigurationTemplatesApi -from opal_security.api.delegations_api import DelegationsApi -from opal_security.api.events_api import EventsApi -from opal_security.api.group_bindings_api import GroupBindingsApi -from opal_security.api.groups_api import GroupsApi -from opal_security.api.idp_group_mappings_api import IdpGroupMappingsApi -from opal_security.api.message_channels_api import MessageChannelsApi -from opal_security.api.non_human_identities_api import NonHumanIdentitiesApi -from opal_security.api.on_call_schedules_api import OnCallSchedulesApi -from opal_security.api.owners_api import OwnersApi -from opal_security.api.requests_api import RequestsApi -from opal_security.api.resources_api import ResourcesApi -from opal_security.api.sessions_api import SessionsApi -from opal_security.api.tags_api import TagsApi -from opal_security.api.uars_api import UarsApi -from opal_security.api.users_api import UsersApi +from opal_security.api.access_rules_api import AccessRulesApi as AccessRulesApi +from opal_security.api.apps_api import AppsApi as AppsApi +from opal_security.api.bundles_api import BundlesApi as BundlesApi +from opal_security.api.configuration_templates_api import ConfigurationTemplatesApi as ConfigurationTemplatesApi +from opal_security.api.delegations_api import DelegationsApi as DelegationsApi +from opal_security.api.events_api import EventsApi as EventsApi +from opal_security.api.group_bindings_api import GroupBindingsApi as GroupBindingsApi +from opal_security.api.groups_api import GroupsApi as GroupsApi +from opal_security.api.idp_group_mappings_api import IdpGroupMappingsApi as IdpGroupMappingsApi +from opal_security.api.message_channels_api import MessageChannelsApi as MessageChannelsApi +from opal_security.api.non_human_identities_api import NonHumanIdentitiesApi as NonHumanIdentitiesApi +from opal_security.api.on_call_schedules_api import OnCallSchedulesApi as OnCallSchedulesApi +from opal_security.api.owners_api import OwnersApi as OwnersApi +from opal_security.api.requests_api import RequestsApi as RequestsApi +from opal_security.api.resources_api import ResourcesApi as ResourcesApi +from opal_security.api.sessions_api import SessionsApi as SessionsApi +from opal_security.api.tags_api import TagsApi as TagsApi +from opal_security.api.uars_api import UarsApi as UarsApi +from opal_security.api.users_api import UsersApi as UsersApi # import ApiClient -from opal_security.api_response import ApiResponse -from opal_security.api_client import ApiClient -from opal_security.configuration import Configuration -from opal_security.exceptions import OpenApiException -from opal_security.exceptions import ApiTypeError -from opal_security.exceptions import ApiValueError -from opal_security.exceptions import ApiKeyError -from opal_security.exceptions import ApiAttributeError -from opal_security.exceptions import ApiException +from opal_security.api_response import ApiResponse as ApiResponse +from opal_security.api_client import ApiClient as ApiClient +from opal_security.configuration import Configuration as Configuration +from opal_security.exceptions import OpenApiException as OpenApiException +from opal_security.exceptions import ApiTypeError as ApiTypeError +from opal_security.exceptions import ApiValueError as ApiValueError +from opal_security.exceptions import ApiKeyError as ApiKeyError +from opal_security.exceptions import ApiAttributeError as ApiAttributeError +from opal_security.exceptions import ApiException as ApiException # import models into sdk package -from opal_security.models.access import Access -from opal_security.models.access_list import AccessList -from opal_security.models.access_rule import AccessRule -from opal_security.models.add_bundle_group_request import AddBundleGroupRequest -from opal_security.models.add_bundle_resource_request import AddBundleResourceRequest -from opal_security.models.add_group_resource_request import AddGroupResourceRequest -from opal_security.models.add_group_user_request import AddGroupUserRequest -from opal_security.models.add_resource_nhi_request import AddResourceNhiRequest -from opal_security.models.add_resource_user_request import AddResourceUserRequest -from opal_security.models.app import App -from opal_security.models.app_type_enum import AppTypeEnum -from opal_security.models.app_validation import AppValidation -from opal_security.models.app_validation_severity_enum import AppValidationSeverityEnum -from opal_security.models.app_validation_status_enum import AppValidationStatusEnum -from opal_security.models.approve_request200_response import ApproveRequest200Response -from opal_security.models.approve_request_request import ApproveRequestRequest -from opal_security.models.apps_list import AppsList -from opal_security.models.aws_permission_set_metadata import AwsPermissionSetMetadata -from opal_security.models.aws_permission_set_metadata_aws_permission_set import AwsPermissionSetMetadataAwsPermissionSet -from opal_security.models.bundle import Bundle -from opal_security.models.bundle_group import BundleGroup -from opal_security.models.bundle_resource import BundleResource -from opal_security.models.condition import Condition -from opal_security.models.configuration_template import ConfigurationTemplate -from opal_security.models.create_bundle_info import CreateBundleInfo -from opal_security.models.create_configuration_template_info import CreateConfigurationTemplateInfo -from opal_security.models.create_delegation_request import CreateDelegationRequest -from opal_security.models.create_group_binding_info import CreateGroupBindingInfo -from opal_security.models.create_group_binding_info_groups_inner import CreateGroupBindingInfoGroupsInner -from opal_security.models.create_group_info import CreateGroupInfo -from opal_security.models.create_idp_group_mapping_request import CreateIdpGroupMappingRequest -from opal_security.models.create_message_channel_info import CreateMessageChannelInfo -from opal_security.models.create_on_call_schedule_info import CreateOnCallScheduleInfo -from opal_security.models.create_owner_info import CreateOwnerInfo -from opal_security.models.create_request200_response import CreateRequest200Response -from opal_security.models.create_request_comment_request import CreateRequestCommentRequest -from opal_security.models.create_request_configuration_info_list import CreateRequestConfigurationInfoList -from opal_security.models.create_request_info import CreateRequestInfo -from opal_security.models.create_request_info_custom_metadata_inner import CreateRequestInfoCustomMetadataInner -from opal_security.models.create_request_info_groups_inner import CreateRequestInfoGroupsInner -from opal_security.models.create_request_info_resources_inner import CreateRequestInfoResourcesInner -from opal_security.models.create_request_info_support_ticket import CreateRequestInfoSupportTicket -from opal_security.models.create_resource_info import CreateResourceInfo -from opal_security.models.create_tag_info import CreateTagInfo -from opal_security.models.create_uar_info import CreateUARInfo -from opal_security.models.delegation import Delegation -from opal_security.models.deny_request_request import DenyRequestRequest -from opal_security.models.entity_type_enum import EntityTypeEnum -from opal_security.models.event import Event -from opal_security.models.get_resource_user200_response import GetResourceUser200Response -from opal_security.models.group import Group -from opal_security.models.group_access_level import GroupAccessLevel -from opal_security.models.group_binding import GroupBinding -from opal_security.models.group_binding_group import GroupBindingGroup -from opal_security.models.group_containing_group import GroupContainingGroup -from opal_security.models.group_containing_group_list import GroupContainingGroupList -from opal_security.models.group_remote_info import GroupRemoteInfo -from opal_security.models.group_remote_info_active_directory_group import GroupRemoteInfoActiveDirectoryGroup -from opal_security.models.group_remote_info_azure_ad_microsoft365_group import GroupRemoteInfoAzureAdMicrosoft365Group -from opal_security.models.group_remote_info_azure_ad_security_group import GroupRemoteInfoAzureAdSecurityGroup -from opal_security.models.group_remote_info_duo_group import GroupRemoteInfoDuoGroup -from opal_security.models.group_remote_info_github_team import GroupRemoteInfoGithubTeam -from opal_security.models.group_remote_info_gitlab_group import GroupRemoteInfoGitlabGroup -from opal_security.models.group_remote_info_google_group import GroupRemoteInfoGoogleGroup -from opal_security.models.group_remote_info_ldap_group import GroupRemoteInfoLdapGroup -from opal_security.models.group_remote_info_okta_group import GroupRemoteInfoOktaGroup -from opal_security.models.group_remote_info_okta_group_rule import GroupRemoteInfoOktaGroupRule -from opal_security.models.group_remote_info_snowflake_role import GroupRemoteInfoSnowflakeRole -from opal_security.models.group_remote_info_workday_user_security_group import GroupRemoteInfoWorkdayUserSecurityGroup -from opal_security.models.group_resource import GroupResource -from opal_security.models.group_resource_list import GroupResourceList -from opal_security.models.group_type_enum import GroupTypeEnum -from opal_security.models.group_user import GroupUser -from opal_security.models.group_user_list import GroupUserList -from opal_security.models.group_with_access_level import GroupWithAccessLevel -from opal_security.models.idp_group_mapping import IdpGroupMapping -from opal_security.models.idp_group_mapping_list import IdpGroupMappingList -from opal_security.models.message_channel import MessageChannel -from opal_security.models.message_channel_id_list import MessageChannelIDList -from opal_security.models.message_channel_list import MessageChannelList -from opal_security.models.message_channel_provider_enum import MessageChannelProviderEnum -from opal_security.models.on_call_schedule import OnCallSchedule -from opal_security.models.on_call_schedule_id_list import OnCallScheduleIDList -from opal_security.models.on_call_schedule_list import OnCallScheduleList -from opal_security.models.on_call_schedule_provider_enum import OnCallScheduleProviderEnum -from opal_security.models.owner import Owner -from opal_security.models.page_info import PageInfo -from opal_security.models.paginated_assigned_request_list import PaginatedAssignedRequestList -from opal_security.models.paginated_bundle_group_list import PaginatedBundleGroupList -from opal_security.models.paginated_bundle_list import PaginatedBundleList -from opal_security.models.paginated_bundle_resource_list import PaginatedBundleResourceList -from opal_security.models.paginated_configuration_template_list import PaginatedConfigurationTemplateList -from opal_security.models.paginated_delegations_list import PaginatedDelegationsList -from opal_security.models.paginated_event_list import PaginatedEventList -from opal_security.models.paginated_group_bindings_list import PaginatedGroupBindingsList -from opal_security.models.paginated_groups_list import PaginatedGroupsList -from opal_security.models.paginated_owners_list import PaginatedOwnersList -from opal_security.models.paginated_remote_users_list import PaginatedRemoteUsersList -from opal_security.models.paginated_resources_list import PaginatedResourcesList -from opal_security.models.paginated_tags_list import PaginatedTagsList -from opal_security.models.paginated_uars_list import PaginatedUARsList -from opal_security.models.paginated_users_list import PaginatedUsersList -from opal_security.models.propagation_status import PropagationStatus -from opal_security.models.propagation_status_enum import PropagationStatusEnum -from opal_security.models.remote_user import RemoteUser -from opal_security.models.request import Request -from opal_security.models.request_approval_enum import RequestApprovalEnum -from opal_security.models.request_comment import RequestComment -from opal_security.models.request_comment_list import RequestCommentList -from opal_security.models.request_configuration import RequestConfiguration -from opal_security.models.request_connection import RequestConnection -from opal_security.models.request_custom_field_response import RequestCustomFieldResponse -from opal_security.models.request_custom_field_response_field_value import RequestCustomFieldResponseFieldValue -from opal_security.models.request_edge import RequestEdge -from opal_security.models.request_item_stages import RequestItemStages -from opal_security.models.request_list import RequestList -from opal_security.models.request_reviewer import RequestReviewer -from opal_security.models.request_reviewer_stages import RequestReviewerStages -from opal_security.models.request_stage import RequestStage -from opal_security.models.request_status_enum import RequestStatusEnum -from opal_security.models.request_template_custom_field_type_enum import RequestTemplateCustomFieldTypeEnum -from opal_security.models.requested_item import RequestedItem -from opal_security.models.resource import Resource -from opal_security.models.resource_access_level import ResourceAccessLevel -from opal_security.models.resource_access_user import ResourceAccessUser -from opal_security.models.resource_access_user_list import ResourceAccessUserList -from opal_security.models.resource_nhi import ResourceNHI -from opal_security.models.resource_remote_info import ResourceRemoteInfo -from opal_security.models.resource_remote_info_anthropic_workspace import ResourceRemoteInfoAnthropicWorkspace -from opal_security.models.resource_remote_info_aws_account import ResourceRemoteInfoAwsAccount -from opal_security.models.resource_remote_info_aws_ec2_instance import ResourceRemoteInfoAwsEc2Instance -from opal_security.models.resource_remote_info_aws_eks_cluster import ResourceRemoteInfoAwsEksCluster -from opal_security.models.resource_remote_info_aws_iam_role import ResourceRemoteInfoAwsIamRole -from opal_security.models.resource_remote_info_aws_organizational_unit import ResourceRemoteInfoAwsOrganizationalUnit -from opal_security.models.resource_remote_info_aws_permission_set import ResourceRemoteInfoAwsPermissionSet -from opal_security.models.resource_remote_info_aws_rds_instance import ResourceRemoteInfoAwsRdsInstance -from opal_security.models.resource_remote_info_azure_enterprise_app import ResourceRemoteInfoAzureEnterpriseApp -from opal_security.models.resource_remote_info_azure_entra_id_role import ResourceRemoteInfoAzureEntraIdRole -from opal_security.models.resource_remote_info_azure_management_group import ResourceRemoteInfoAzureManagementGroup -from opal_security.models.resource_remote_info_azure_resource_group import ResourceRemoteInfoAzureResourceGroup -from opal_security.models.resource_remote_info_azure_sql_database import ResourceRemoteInfoAzureSqlDatabase -from opal_security.models.resource_remote_info_azure_sql_managed_database import ResourceRemoteInfoAzureSqlManagedDatabase -from opal_security.models.resource_remote_info_azure_sql_managed_instance import ResourceRemoteInfoAzureSqlManagedInstance -from opal_security.models.resource_remote_info_azure_sql_server import ResourceRemoteInfoAzureSqlServer -from opal_security.models.resource_remote_info_azure_storage_account import ResourceRemoteInfoAzureStorageAccount -from opal_security.models.resource_remote_info_azure_storage_container import ResourceRemoteInfoAzureStorageContainer -from opal_security.models.resource_remote_info_azure_subscription import ResourceRemoteInfoAzureSubscription -from opal_security.models.resource_remote_info_azure_user_assigned_managed_identity import ResourceRemoteInfoAzureUserAssignedManagedIdentity -from opal_security.models.resource_remote_info_azure_virtual_machine import ResourceRemoteInfoAzureVirtualMachine -from opal_security.models.resource_remote_info_coupa_role import ResourceRemoteInfoCoupaRole -from opal_security.models.resource_remote_info_cursor_organization import ResourceRemoteInfoCursorOrganization -from opal_security.models.resource_remote_info_custom_connector import ResourceRemoteInfoCustomConnector -from opal_security.models.resource_remote_info_datastax_astra_role import ResourceRemoteInfoDatastaxAstraRole -from opal_security.models.resource_remote_info_gcp_big_query_dataset import ResourceRemoteInfoGcpBigQueryDataset -from opal_security.models.resource_remote_info_gcp_big_query_table import ResourceRemoteInfoGcpBigQueryTable -from opal_security.models.resource_remote_info_gcp_bucket import ResourceRemoteInfoGcpBucket -from opal_security.models.resource_remote_info_gcp_compute_instance import ResourceRemoteInfoGcpComputeInstance -from opal_security.models.resource_remote_info_gcp_folder import ResourceRemoteInfoGcpFolder -from opal_security.models.resource_remote_info_gcp_gke_cluster import ResourceRemoteInfoGcpGkeCluster -from opal_security.models.resource_remote_info_gcp_organization import ResourceRemoteInfoGcpOrganization -from opal_security.models.resource_remote_info_gcp_project import ResourceRemoteInfoGcpProject -from opal_security.models.resource_remote_info_gcp_service_account import ResourceRemoteInfoGcpServiceAccount -from opal_security.models.resource_remote_info_gcp_sql_instance import ResourceRemoteInfoGcpSqlInstance -from opal_security.models.resource_remote_info_github_org import ResourceRemoteInfoGithubOrg -from opal_security.models.resource_remote_info_github_org_role import ResourceRemoteInfoGithubOrgRole -from opal_security.models.resource_remote_info_github_repo import ResourceRemoteInfoGithubRepo -from opal_security.models.resource_remote_info_gitlab_project import ResourceRemoteInfoGitlabProject -from opal_security.models.resource_remote_info_google_workspace_role import ResourceRemoteInfoGoogleWorkspaceRole -from opal_security.models.resource_remote_info_okta_app import ResourceRemoteInfoOktaApp -from opal_security.models.resource_remote_info_okta_custom_role import ResourceRemoteInfoOktaCustomRole -from opal_security.models.resource_remote_info_okta_standard_role import ResourceRemoteInfoOktaStandardRole -from opal_security.models.resource_remote_info_openai_platform_project import ResourceRemoteInfoOpenaiPlatformProject -from opal_security.models.resource_remote_info_openai_platform_service_account import ResourceRemoteInfoOpenaiPlatformServiceAccount -from opal_security.models.resource_remote_info_oracle_fusion_role import ResourceRemoteInfoOracleFusionRole -from opal_security.models.resource_remote_info_pagerduty_role import ResourceRemoteInfoPagerdutyRole -from opal_security.models.resource_remote_info_salesforce_permission_set import ResourceRemoteInfoSalesforcePermissionSet -from opal_security.models.resource_remote_info_salesforce_profile import ResourceRemoteInfoSalesforceProfile -from opal_security.models.resource_remote_info_salesforce_role import ResourceRemoteInfoSalesforceRole -from opal_security.models.resource_remote_info_teleport_role import ResourceRemoteInfoTeleportRole -from opal_security.models.resource_type_enum import ResourceTypeEnum -from opal_security.models.resource_user import ResourceUser -from opal_security.models.resource_user_access_status import ResourceUserAccessStatus -from opal_security.models.resource_user_access_status_enum import ResourceUserAccessStatusEnum -from opal_security.models.resource_with_access_level import ResourceWithAccessLevel -from opal_security.models.review_stage_operator import ReviewStageOperator -from opal_security.models.reviewer_id_list import ReviewerIDList -from opal_security.models.reviewer_stage import ReviewerStage -from opal_security.models.reviewer_stage_list import ReviewerStageList -from opal_security.models.risk_sensitivity_enum import RiskSensitivityEnum -from opal_security.models.role_permission_name_enum import RolePermissionNameEnum -from opal_security.models.role_permission_target_type_enum import RolePermissionTargetTypeEnum -from opal_security.models.rule_clauses import RuleClauses -from opal_security.models.rule_conjunction import RuleConjunction -from opal_security.models.rule_disjunction import RuleDisjunction -from opal_security.models.scoped_role_permission import ScopedRolePermission -from opal_security.models.scoped_role_permission_list import ScopedRolePermissionList -from opal_security.models.session import Session -from opal_security.models.sessions_list import SessionsList -from opal_security.models.sub_event import SubEvent -from opal_security.models.sync_error import SyncError -from opal_security.models.sync_error_list import SyncErrorList -from opal_security.models.sync_task import SyncTask -from opal_security.models.tag import Tag -from opal_security.models.tag_filter import TagFilter -from opal_security.models.tag_selector import TagSelector -from opal_security.models.tags_list import TagsList -from opal_security.models.third_party_provider_enum import ThirdPartyProviderEnum -from opal_security.models.ticket_propagation_configuration import TicketPropagationConfiguration -from opal_security.models.ticketing_provider_enum import TicketingProviderEnum -from opal_security.models.uar import UAR -from opal_security.models.uar_reviewer_assignment_policy_enum import UARReviewerAssignmentPolicyEnum -from opal_security.models.uar_scope import UARScope -from opal_security.models.update_access_rule_info import UpdateAccessRuleInfo -from opal_security.models.update_configuration_template_info import UpdateConfigurationTemplateInfo -from opal_security.models.update_group_binding_info import UpdateGroupBindingInfo -from opal_security.models.update_group_binding_info_list import UpdateGroupBindingInfoList -from opal_security.models.update_group_info import UpdateGroupInfo -from opal_security.models.update_group_info_list import UpdateGroupInfoList -from opal_security.models.update_group_resources_info import UpdateGroupResourcesInfo -from opal_security.models.update_group_user_request import UpdateGroupUserRequest -from opal_security.models.update_idp_group_mappings_request import UpdateIdpGroupMappingsRequest -from opal_security.models.update_idp_group_mappings_request_mappings_inner import UpdateIdpGroupMappingsRequestMappingsInner -from opal_security.models.update_owner_info import UpdateOwnerInfo -from opal_security.models.update_owner_info_list import UpdateOwnerInfoList -from opal_security.models.update_resource_info import UpdateResourceInfo -from opal_security.models.update_resource_info_list import UpdateResourceInfoList -from opal_security.models.update_resource_user_request import UpdateResourceUserRequest -from opal_security.models.user import User -from opal_security.models.user_hr_idp_status_enum import UserHrIdpStatusEnum -from opal_security.models.user_id_list import UserIDList -from opal_security.models.user_list import UserList -from opal_security.models.visibility_info import VisibilityInfo -from opal_security.models.visibility_type_enum import VisibilityTypeEnum +from opal_security.models.access import Access as Access +from opal_security.models.access_list import AccessList as AccessList +from opal_security.models.access_rule import AccessRule as AccessRule +from opal_security.models.add_bundle_group_request import AddBundleGroupRequest as AddBundleGroupRequest +from opal_security.models.add_bundle_resource_request import AddBundleResourceRequest as AddBundleResourceRequest +from opal_security.models.add_group_resource_request import AddGroupResourceRequest as AddGroupResourceRequest +from opal_security.models.add_group_user_request import AddGroupUserRequest as AddGroupUserRequest +from opal_security.models.add_resource_nhi_request import AddResourceNhiRequest as AddResourceNhiRequest +from opal_security.models.add_resource_user_request import AddResourceUserRequest as AddResourceUserRequest +from opal_security.models.app import App as App +from opal_security.models.app_type_enum import AppTypeEnum as AppTypeEnum +from opal_security.models.app_validation import AppValidation as AppValidation +from opal_security.models.app_validation_severity_enum import AppValidationSeverityEnum as AppValidationSeverityEnum +from opal_security.models.app_validation_status_enum import AppValidationStatusEnum as AppValidationStatusEnum +from opal_security.models.approve_request200_response import ApproveRequest200Response as ApproveRequest200Response +from opal_security.models.approve_request_request import ApproveRequestRequest as ApproveRequestRequest +from opal_security.models.apps_list import AppsList as AppsList +from opal_security.models.aws_permission_set_metadata import AwsPermissionSetMetadata as AwsPermissionSetMetadata +from opal_security.models.aws_permission_set_metadata_aws_permission_set import AwsPermissionSetMetadataAwsPermissionSet as AwsPermissionSetMetadataAwsPermissionSet +from opal_security.models.bundle import Bundle as Bundle +from opal_security.models.bundle_group import BundleGroup as BundleGroup +from opal_security.models.bundle_resource import BundleResource as BundleResource +from opal_security.models.condition import Condition as Condition +from opal_security.models.configuration_template import ConfigurationTemplate as ConfigurationTemplate +from opal_security.models.create_bundle_info import CreateBundleInfo as CreateBundleInfo +from opal_security.models.create_configuration_template_info import CreateConfigurationTemplateInfo as CreateConfigurationTemplateInfo +from opal_security.models.create_delegation_request import CreateDelegationRequest as CreateDelegationRequest +from opal_security.models.create_group_binding_info import CreateGroupBindingInfo as CreateGroupBindingInfo +from opal_security.models.create_group_binding_info_groups_inner import CreateGroupBindingInfoGroupsInner as CreateGroupBindingInfoGroupsInner +from opal_security.models.create_group_info import CreateGroupInfo as CreateGroupInfo +from opal_security.models.create_idp_group_mapping_request import CreateIdpGroupMappingRequest as CreateIdpGroupMappingRequest +from opal_security.models.create_message_channel_info import CreateMessageChannelInfo as CreateMessageChannelInfo +from opal_security.models.create_on_call_schedule_info import CreateOnCallScheduleInfo as CreateOnCallScheduleInfo +from opal_security.models.create_owner_info import CreateOwnerInfo as CreateOwnerInfo +from opal_security.models.create_request200_response import CreateRequest200Response as CreateRequest200Response +from opal_security.models.create_request_comment_request import CreateRequestCommentRequest as CreateRequestCommentRequest +from opal_security.models.create_request_configuration_info_list import CreateRequestConfigurationInfoList as CreateRequestConfigurationInfoList +from opal_security.models.create_request_info import CreateRequestInfo as CreateRequestInfo +from opal_security.models.create_request_info_custom_metadata_inner import CreateRequestInfoCustomMetadataInner as CreateRequestInfoCustomMetadataInner +from opal_security.models.create_request_info_groups_inner import CreateRequestInfoGroupsInner as CreateRequestInfoGroupsInner +from opal_security.models.create_request_info_resources_inner import CreateRequestInfoResourcesInner as CreateRequestInfoResourcesInner +from opal_security.models.create_request_info_support_ticket import CreateRequestInfoSupportTicket as CreateRequestInfoSupportTicket +from opal_security.models.create_resource_info import CreateResourceInfo as CreateResourceInfo +from opal_security.models.create_tag_info import CreateTagInfo as CreateTagInfo +from opal_security.models.create_uar_info import CreateUARInfo as CreateUARInfo +from opal_security.models.delegation import Delegation as Delegation +from opal_security.models.deny_request_request import DenyRequestRequest as DenyRequestRequest +from opal_security.models.entity_type_enum import EntityTypeEnum as EntityTypeEnum +from opal_security.models.event import Event as Event +from opal_security.models.get_resource_user200_response import GetResourceUser200Response as GetResourceUser200Response +from opal_security.models.group import Group as Group +from opal_security.models.group_access_level import GroupAccessLevel as GroupAccessLevel +from opal_security.models.group_binding import GroupBinding as GroupBinding +from opal_security.models.group_binding_group import GroupBindingGroup as GroupBindingGroup +from opal_security.models.group_containing_group import GroupContainingGroup as GroupContainingGroup +from opal_security.models.group_containing_group_list import GroupContainingGroupList as GroupContainingGroupList +from opal_security.models.group_remote_info import GroupRemoteInfo as GroupRemoteInfo +from opal_security.models.group_remote_info_active_directory_group import GroupRemoteInfoActiveDirectoryGroup as GroupRemoteInfoActiveDirectoryGroup +from opal_security.models.group_remote_info_azure_ad_microsoft365_group import GroupRemoteInfoAzureAdMicrosoft365Group as GroupRemoteInfoAzureAdMicrosoft365Group +from opal_security.models.group_remote_info_azure_ad_security_group import GroupRemoteInfoAzureAdSecurityGroup as GroupRemoteInfoAzureAdSecurityGroup +from opal_security.models.group_remote_info_duo_group import GroupRemoteInfoDuoGroup as GroupRemoteInfoDuoGroup +from opal_security.models.group_remote_info_github_team import GroupRemoteInfoGithubTeam as GroupRemoteInfoGithubTeam +from opal_security.models.group_remote_info_gitlab_group import GroupRemoteInfoGitlabGroup as GroupRemoteInfoGitlabGroup +from opal_security.models.group_remote_info_google_group import GroupRemoteInfoGoogleGroup as GroupRemoteInfoGoogleGroup +from opal_security.models.group_remote_info_ldap_group import GroupRemoteInfoLdapGroup as GroupRemoteInfoLdapGroup +from opal_security.models.group_remote_info_okta_group import GroupRemoteInfoOktaGroup as GroupRemoteInfoOktaGroup +from opal_security.models.group_remote_info_okta_group_rule import GroupRemoteInfoOktaGroupRule as GroupRemoteInfoOktaGroupRule +from opal_security.models.group_remote_info_snowflake_role import GroupRemoteInfoSnowflakeRole as GroupRemoteInfoSnowflakeRole +from opal_security.models.group_remote_info_workday_user_security_group import GroupRemoteInfoWorkdayUserSecurityGroup as GroupRemoteInfoWorkdayUserSecurityGroup +from opal_security.models.group_resource import GroupResource as GroupResource +from opal_security.models.group_resource_list import GroupResourceList as GroupResourceList +from opal_security.models.group_type_enum import GroupTypeEnum as GroupTypeEnum +from opal_security.models.group_user import GroupUser as GroupUser +from opal_security.models.group_user_list import GroupUserList as GroupUserList +from opal_security.models.group_with_access_level import GroupWithAccessLevel as GroupWithAccessLevel +from opal_security.models.idp_group_mapping import IdpGroupMapping as IdpGroupMapping +from opal_security.models.idp_group_mapping_list import IdpGroupMappingList as IdpGroupMappingList +from opal_security.models.message_channel import MessageChannel as MessageChannel +from opal_security.models.message_channel_id_list import MessageChannelIDList as MessageChannelIDList +from opal_security.models.message_channel_list import MessageChannelList as MessageChannelList +from opal_security.models.message_channel_provider_enum import MessageChannelProviderEnum as MessageChannelProviderEnum +from opal_security.models.on_call_schedule import OnCallSchedule as OnCallSchedule +from opal_security.models.on_call_schedule_id_list import OnCallScheduleIDList as OnCallScheduleIDList +from opal_security.models.on_call_schedule_list import OnCallScheduleList as OnCallScheduleList +from opal_security.models.on_call_schedule_provider_enum import OnCallScheduleProviderEnum as OnCallScheduleProviderEnum +from opal_security.models.owner import Owner as Owner +from opal_security.models.page_info import PageInfo as PageInfo +from opal_security.models.paginated_assigned_request_list import PaginatedAssignedRequestList as PaginatedAssignedRequestList +from opal_security.models.paginated_bundle_group_list import PaginatedBundleGroupList as PaginatedBundleGroupList +from opal_security.models.paginated_bundle_list import PaginatedBundleList as PaginatedBundleList +from opal_security.models.paginated_bundle_resource_list import PaginatedBundleResourceList as PaginatedBundleResourceList +from opal_security.models.paginated_configuration_template_list import PaginatedConfigurationTemplateList as PaginatedConfigurationTemplateList +from opal_security.models.paginated_delegations_list import PaginatedDelegationsList as PaginatedDelegationsList +from opal_security.models.paginated_event_list import PaginatedEventList as PaginatedEventList +from opal_security.models.paginated_group_bindings_list import PaginatedGroupBindingsList as PaginatedGroupBindingsList +from opal_security.models.paginated_groups_list import PaginatedGroupsList as PaginatedGroupsList +from opal_security.models.paginated_owners_list import PaginatedOwnersList as PaginatedOwnersList +from opal_security.models.paginated_remote_users_list import PaginatedRemoteUsersList as PaginatedRemoteUsersList +from opal_security.models.paginated_resources_list import PaginatedResourcesList as PaginatedResourcesList +from opal_security.models.paginated_tags_list import PaginatedTagsList as PaginatedTagsList +from opal_security.models.paginated_uars_list import PaginatedUARsList as PaginatedUARsList +from opal_security.models.paginated_users_list import PaginatedUsersList as PaginatedUsersList +from opal_security.models.propagation_status import PropagationStatus as PropagationStatus +from opal_security.models.propagation_status_enum import PropagationStatusEnum as PropagationStatusEnum +from opal_security.models.remote_user import RemoteUser as RemoteUser +from opal_security.models.request import Request as Request +from opal_security.models.request_approval_enum import RequestApprovalEnum as RequestApprovalEnum +from opal_security.models.request_comment import RequestComment as RequestComment +from opal_security.models.request_comment_list import RequestCommentList as RequestCommentList +from opal_security.models.request_configuration import RequestConfiguration as RequestConfiguration +from opal_security.models.request_connection import RequestConnection as RequestConnection +from opal_security.models.request_custom_field_response import RequestCustomFieldResponse as RequestCustomFieldResponse +from opal_security.models.request_custom_field_response_field_value import RequestCustomFieldResponseFieldValue as RequestCustomFieldResponseFieldValue +from opal_security.models.request_edge import RequestEdge as RequestEdge +from opal_security.models.request_item_stages import RequestItemStages as RequestItemStages +from opal_security.models.request_list import RequestList as RequestList +from opal_security.models.request_reviewer import RequestReviewer as RequestReviewer +from opal_security.models.request_reviewer_stages import RequestReviewerStages as RequestReviewerStages +from opal_security.models.request_stage import RequestStage as RequestStage +from opal_security.models.request_status_enum import RequestStatusEnum as RequestStatusEnum +from opal_security.models.request_template_custom_field_type_enum import RequestTemplateCustomFieldTypeEnum as RequestTemplateCustomFieldTypeEnum +from opal_security.models.requested_item import RequestedItem as RequestedItem +from opal_security.models.resource import Resource as Resource +from opal_security.models.resource_access_level import ResourceAccessLevel as ResourceAccessLevel +from opal_security.models.resource_access_user import ResourceAccessUser as ResourceAccessUser +from opal_security.models.resource_access_user_list import ResourceAccessUserList as ResourceAccessUserList +from opal_security.models.resource_nhi import ResourceNHI as ResourceNHI +from opal_security.models.resource_remote_info import ResourceRemoteInfo as ResourceRemoteInfo +from opal_security.models.resource_remote_info_anthropic_workspace import ResourceRemoteInfoAnthropicWorkspace as ResourceRemoteInfoAnthropicWorkspace +from opal_security.models.resource_remote_info_aws_account import ResourceRemoteInfoAwsAccount as ResourceRemoteInfoAwsAccount +from opal_security.models.resource_remote_info_aws_ec2_instance import ResourceRemoteInfoAwsEc2Instance as ResourceRemoteInfoAwsEc2Instance +from opal_security.models.resource_remote_info_aws_eks_cluster import ResourceRemoteInfoAwsEksCluster as ResourceRemoteInfoAwsEksCluster +from opal_security.models.resource_remote_info_aws_iam_role import ResourceRemoteInfoAwsIamRole as ResourceRemoteInfoAwsIamRole +from opal_security.models.resource_remote_info_aws_organizational_unit import ResourceRemoteInfoAwsOrganizationalUnit as ResourceRemoteInfoAwsOrganizationalUnit +from opal_security.models.resource_remote_info_aws_permission_set import ResourceRemoteInfoAwsPermissionSet as ResourceRemoteInfoAwsPermissionSet +from opal_security.models.resource_remote_info_aws_rds_instance import ResourceRemoteInfoAwsRdsInstance as ResourceRemoteInfoAwsRdsInstance +from opal_security.models.resource_remote_info_azure_enterprise_app import ResourceRemoteInfoAzureEnterpriseApp as ResourceRemoteInfoAzureEnterpriseApp +from opal_security.models.resource_remote_info_azure_entra_id_role import ResourceRemoteInfoAzureEntraIdRole as ResourceRemoteInfoAzureEntraIdRole +from opal_security.models.resource_remote_info_azure_management_group import ResourceRemoteInfoAzureManagementGroup as ResourceRemoteInfoAzureManagementGroup +from opal_security.models.resource_remote_info_azure_resource_group import ResourceRemoteInfoAzureResourceGroup as ResourceRemoteInfoAzureResourceGroup +from opal_security.models.resource_remote_info_azure_sql_database import ResourceRemoteInfoAzureSqlDatabase as ResourceRemoteInfoAzureSqlDatabase +from opal_security.models.resource_remote_info_azure_sql_managed_database import ResourceRemoteInfoAzureSqlManagedDatabase as ResourceRemoteInfoAzureSqlManagedDatabase +from opal_security.models.resource_remote_info_azure_sql_managed_instance import ResourceRemoteInfoAzureSqlManagedInstance as ResourceRemoteInfoAzureSqlManagedInstance +from opal_security.models.resource_remote_info_azure_sql_server import ResourceRemoteInfoAzureSqlServer as ResourceRemoteInfoAzureSqlServer +from opal_security.models.resource_remote_info_azure_storage_account import ResourceRemoteInfoAzureStorageAccount as ResourceRemoteInfoAzureStorageAccount +from opal_security.models.resource_remote_info_azure_storage_container import ResourceRemoteInfoAzureStorageContainer as ResourceRemoteInfoAzureStorageContainer +from opal_security.models.resource_remote_info_azure_subscription import ResourceRemoteInfoAzureSubscription as ResourceRemoteInfoAzureSubscription +from opal_security.models.resource_remote_info_azure_user_assigned_managed_identity import ResourceRemoteInfoAzureUserAssignedManagedIdentity as ResourceRemoteInfoAzureUserAssignedManagedIdentity +from opal_security.models.resource_remote_info_azure_virtual_machine import ResourceRemoteInfoAzureVirtualMachine as ResourceRemoteInfoAzureVirtualMachine +from opal_security.models.resource_remote_info_coupa_role import ResourceRemoteInfoCoupaRole as ResourceRemoteInfoCoupaRole +from opal_security.models.resource_remote_info_cursor_organization import ResourceRemoteInfoCursorOrganization as ResourceRemoteInfoCursorOrganization +from opal_security.models.resource_remote_info_custom_connector import ResourceRemoteInfoCustomConnector as ResourceRemoteInfoCustomConnector +from opal_security.models.resource_remote_info_datastax_astra_role import ResourceRemoteInfoDatastaxAstraRole as ResourceRemoteInfoDatastaxAstraRole +from opal_security.models.resource_remote_info_gcp_big_query_dataset import ResourceRemoteInfoGcpBigQueryDataset as ResourceRemoteInfoGcpBigQueryDataset +from opal_security.models.resource_remote_info_gcp_big_query_table import ResourceRemoteInfoGcpBigQueryTable as ResourceRemoteInfoGcpBigQueryTable +from opal_security.models.resource_remote_info_gcp_bucket import ResourceRemoteInfoGcpBucket as ResourceRemoteInfoGcpBucket +from opal_security.models.resource_remote_info_gcp_compute_instance import ResourceRemoteInfoGcpComputeInstance as ResourceRemoteInfoGcpComputeInstance +from opal_security.models.resource_remote_info_gcp_folder import ResourceRemoteInfoGcpFolder as ResourceRemoteInfoGcpFolder +from opal_security.models.resource_remote_info_gcp_gke_cluster import ResourceRemoteInfoGcpGkeCluster as ResourceRemoteInfoGcpGkeCluster +from opal_security.models.resource_remote_info_gcp_organization import ResourceRemoteInfoGcpOrganization as ResourceRemoteInfoGcpOrganization +from opal_security.models.resource_remote_info_gcp_project import ResourceRemoteInfoGcpProject as ResourceRemoteInfoGcpProject +from opal_security.models.resource_remote_info_gcp_service_account import ResourceRemoteInfoGcpServiceAccount as ResourceRemoteInfoGcpServiceAccount +from opal_security.models.resource_remote_info_gcp_sql_instance import ResourceRemoteInfoGcpSqlInstance as ResourceRemoteInfoGcpSqlInstance +from opal_security.models.resource_remote_info_github_org import ResourceRemoteInfoGithubOrg as ResourceRemoteInfoGithubOrg +from opal_security.models.resource_remote_info_github_org_role import ResourceRemoteInfoGithubOrgRole as ResourceRemoteInfoGithubOrgRole +from opal_security.models.resource_remote_info_github_repo import ResourceRemoteInfoGithubRepo as ResourceRemoteInfoGithubRepo +from opal_security.models.resource_remote_info_gitlab_project import ResourceRemoteInfoGitlabProject as ResourceRemoteInfoGitlabProject +from opal_security.models.resource_remote_info_google_workspace_role import ResourceRemoteInfoGoogleWorkspaceRole as ResourceRemoteInfoGoogleWorkspaceRole +from opal_security.models.resource_remote_info_okta_app import ResourceRemoteInfoOktaApp as ResourceRemoteInfoOktaApp +from opal_security.models.resource_remote_info_okta_custom_role import ResourceRemoteInfoOktaCustomRole as ResourceRemoteInfoOktaCustomRole +from opal_security.models.resource_remote_info_okta_standard_role import ResourceRemoteInfoOktaStandardRole as ResourceRemoteInfoOktaStandardRole +from opal_security.models.resource_remote_info_openai_platform_project import ResourceRemoteInfoOpenaiPlatformProject as ResourceRemoteInfoOpenaiPlatformProject +from opal_security.models.resource_remote_info_openai_platform_service_account import ResourceRemoteInfoOpenaiPlatformServiceAccount as ResourceRemoteInfoOpenaiPlatformServiceAccount +from opal_security.models.resource_remote_info_oracle_fusion_role import ResourceRemoteInfoOracleFusionRole as ResourceRemoteInfoOracleFusionRole +from opal_security.models.resource_remote_info_pagerduty_role import ResourceRemoteInfoPagerdutyRole as ResourceRemoteInfoPagerdutyRole +from opal_security.models.resource_remote_info_salesforce_permission_set import ResourceRemoteInfoSalesforcePermissionSet as ResourceRemoteInfoSalesforcePermissionSet +from opal_security.models.resource_remote_info_salesforce_profile import ResourceRemoteInfoSalesforceProfile as ResourceRemoteInfoSalesforceProfile +from opal_security.models.resource_remote_info_salesforce_role import ResourceRemoteInfoSalesforceRole as ResourceRemoteInfoSalesforceRole +from opal_security.models.resource_remote_info_teleport_role import ResourceRemoteInfoTeleportRole as ResourceRemoteInfoTeleportRole +from opal_security.models.resource_type_enum import ResourceTypeEnum as ResourceTypeEnum +from opal_security.models.resource_user import ResourceUser as ResourceUser +from opal_security.models.resource_user_access_status import ResourceUserAccessStatus as ResourceUserAccessStatus +from opal_security.models.resource_user_access_status_enum import ResourceUserAccessStatusEnum as ResourceUserAccessStatusEnum +from opal_security.models.resource_with_access_level import ResourceWithAccessLevel as ResourceWithAccessLevel +from opal_security.models.review_stage_operator import ReviewStageOperator as ReviewStageOperator +from opal_security.models.reviewer_id_list import ReviewerIDList as ReviewerIDList +from opal_security.models.reviewer_stage import ReviewerStage as ReviewerStage +from opal_security.models.reviewer_stage_list import ReviewerStageList as ReviewerStageList +from opal_security.models.risk_sensitivity_enum import RiskSensitivityEnum as RiskSensitivityEnum +from opal_security.models.role_permission_name_enum import RolePermissionNameEnum as RolePermissionNameEnum +from opal_security.models.role_permission_target_type_enum import RolePermissionTargetTypeEnum as RolePermissionTargetTypeEnum +from opal_security.models.rule_clauses import RuleClauses as RuleClauses +from opal_security.models.rule_conjunction import RuleConjunction as RuleConjunction +from opal_security.models.rule_disjunction import RuleDisjunction as RuleDisjunction +from opal_security.models.scoped_role_permission import ScopedRolePermission as ScopedRolePermission +from opal_security.models.scoped_role_permission_list import ScopedRolePermissionList as ScopedRolePermissionList +from opal_security.models.session import Session as Session +from opal_security.models.sessions_list import SessionsList as SessionsList +from opal_security.models.sub_event import SubEvent as SubEvent +from opal_security.models.sync_error import SyncError as SyncError +from opal_security.models.sync_error_list import SyncErrorList as SyncErrorList +from opal_security.models.sync_task import SyncTask as SyncTask +from opal_security.models.tag import Tag as Tag +from opal_security.models.tag_filter import TagFilter as TagFilter +from opal_security.models.tag_selector import TagSelector as TagSelector +from opal_security.models.tags_list import TagsList as TagsList +from opal_security.models.third_party_provider_enum import ThirdPartyProviderEnum as ThirdPartyProviderEnum +from opal_security.models.ticket_propagation_configuration import TicketPropagationConfiguration as TicketPropagationConfiguration +from opal_security.models.ticketing_provider_enum import TicketingProviderEnum as TicketingProviderEnum +from opal_security.models.uar import UAR as UAR +from opal_security.models.uar_reviewer_assignment_policy_enum import UARReviewerAssignmentPolicyEnum as UARReviewerAssignmentPolicyEnum +from opal_security.models.uar_scope import UARScope as UARScope +from opal_security.models.update_access_rule_info import UpdateAccessRuleInfo as UpdateAccessRuleInfo +from opal_security.models.update_configuration_template_info import UpdateConfigurationTemplateInfo as UpdateConfigurationTemplateInfo +from opal_security.models.update_group_binding_info import UpdateGroupBindingInfo as UpdateGroupBindingInfo +from opal_security.models.update_group_binding_info_list import UpdateGroupBindingInfoList as UpdateGroupBindingInfoList +from opal_security.models.update_group_info import UpdateGroupInfo as UpdateGroupInfo +from opal_security.models.update_group_info_list import UpdateGroupInfoList as UpdateGroupInfoList +from opal_security.models.update_group_resources_info import UpdateGroupResourcesInfo as UpdateGroupResourcesInfo +from opal_security.models.update_group_user_request import UpdateGroupUserRequest as UpdateGroupUserRequest +from opal_security.models.update_idp_group_mappings_request import UpdateIdpGroupMappingsRequest as UpdateIdpGroupMappingsRequest +from opal_security.models.update_idp_group_mappings_request_mappings_inner import UpdateIdpGroupMappingsRequestMappingsInner as UpdateIdpGroupMappingsRequestMappingsInner +from opal_security.models.update_owner_info import UpdateOwnerInfo as UpdateOwnerInfo +from opal_security.models.update_owner_info_list import UpdateOwnerInfoList as UpdateOwnerInfoList +from opal_security.models.update_resource_info import UpdateResourceInfo as UpdateResourceInfo +from opal_security.models.update_resource_info_list import UpdateResourceInfoList as UpdateResourceInfoList +from opal_security.models.update_resource_user_request import UpdateResourceUserRequest as UpdateResourceUserRequest +from opal_security.models.user import User as User +from opal_security.models.user_hr_idp_status_enum import UserHrIdpStatusEnum as UserHrIdpStatusEnum +from opal_security.models.user_id_list import UserIDList as UserIDList +from opal_security.models.user_list import UserList as UserList +from opal_security.models.visibility_info import VisibilityInfo as VisibilityInfo +from opal_security.models.visibility_type_enum import VisibilityTypeEnum as VisibilityTypeEnum diff --git a/opal_security/api_client.py b/opal_security/api_client.py index a99efc4..d21f5d5 100644 --- a/opal_security/api_client.py +++ b/opal_security/api_client.py @@ -383,6 +383,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() @@ -518,7 +522,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' diff --git a/opal_security/configuration.py b/opal_security/configuration.py index f8a4d28..47c40a4 100644 --- a/opal_security/configuration.py +++ b/opal_security/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -162,6 +162,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: """ @@ -176,13 +178,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -260,6 +263,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ diff --git a/opal_security/exceptions.py b/opal_security/exceptions.py index 12f9285..e1d48ca 100644 --- a/opal_security/exceptions.py +++ b/opal_security/exceptions.py @@ -151,6 +151,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -189,6 +196,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/opal_security/rest.py b/opal_security/rest.py index 34aa2ca..7044330 100644 --- a/opal_security/rest.py +++ b/opal_security/rest.py @@ -77,6 +77,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( diff --git a/pyproject.toml b/pyproject.toml index ed45f2a..5e8acad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,29 @@ -[tool.poetry] +[project] name = "opal_security" version = "1.0.0" description = "Opal API" -authors = ["Opal Team "] +authors = [ + {name = "Opal Team",email = "hello@opal.dev"}, +] license = "NoLicense" readme = "README.md" -repository = "https://github.com/opalsecurity/opal-python" keywords = ["OpenAPI", "OpenAPI-Generator", "Opal API"] -include = ["opal_security/py.typed"] +requires-python = ">=3.9" -[tool.poetry.dependencies] -python = "^3.8" +dependencies = [ + "urllib3 (>=2.1.0,<3.0.0)", + "python-dateutil (>=2.8.2)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)" +] -urllib3 = ">= 1.25.3 < 3.0.0" -python-dateutil = ">= 2.8.2" -pydantic = ">= 2" -typing-extensions = ">= 4.7.1" +[project.urls] +Repository = "https://github.com/opalsecurity/opal-python" + +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/requirements.txt b/requirements.txt index 67f7f68..6cbb2b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -urllib3 >= 1.25.3, < 3.0.0 +urllib3 >= 2.1.0, < 3.0.0 python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/test/test_access.py b/test/test_access.py index 9ed6fc0..437671c 100644 --- a/test/test_access.py +++ b/test/test_access.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -51,7 +51,6 @@ def make_instance(self, include_optional) -> Access: principal_type = 'GROUP', entity_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', entity_type = 'GROUP', - expiration_date = '2022-01-23T04:56:07Z', has_direct_access = True, num_access_paths = 3, ) diff --git a/test/test_access_list.py b/test/test_access_list.py index 653134a..3af9ae7 100644 --- a/test/test_access_list.py +++ b/test/test_access_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_access_rule_condition.py b/test/test_access_rule_condition.py deleted file mode 100644 index 0779bbb..0000000 --- a/test/test_access_rule_condition.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Opal API - - The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. - - The version of the OpenAPI document: 1.0 - Contact: hello@opal.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from opal_security.models.access_rule_condition import AccessRuleCondition - -class TestAccessRuleCondition(unittest.TestCase): - """AccessRuleCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AccessRuleCondition: - """Test AccessRuleCondition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AccessRuleCondition` - """ - model = AccessRuleCondition() - if include_optional: - return AccessRuleCondition( - status = 'ACTIVE', - rule_clauses = opal_security.models.rule_clauses.RuleClauses( - when = opal_security.models.rule_conjunction.RuleConjunction( - clauses = [ - opal_security.models.rule_disjunction.RuleDisjunction( - selectors = [ - opal_security.models.tag_selector.TagSelector( - key = '', - value = '', - connection_id = '', ) - ], ) - ], ), - unless = opal_security.models.rule_conjunction.RuleConjunction( - clauses = [ - opal_security.models.rule_disjunction.RuleDisjunction( - selectors = [ - opal_security.models.tag_selector.TagSelector( - key = '', - value = '', - connection_id = '', ) - ], ) - ], ), ) - ) - else: - return AccessRuleCondition( - status = 'ACTIVE', - rule_clauses = opal_security.models.rule_clauses.RuleClauses( - when = opal_security.models.rule_conjunction.RuleConjunction( - clauses = [ - opal_security.models.rule_disjunction.RuleDisjunction( - selectors = [ - opal_security.models.tag_selector.TagSelector( - key = '', - value = '', - connection_id = '', ) - ], ) - ], ), - unless = opal_security.models.rule_conjunction.RuleConjunction( - clauses = [ - opal_security.models.rule_disjunction.RuleDisjunction( - selectors = [ - opal_security.models.tag_selector.TagSelector( - key = '', - value = '', - connection_id = '', ) - ], ) - ], ), ), - ) - """ - - def testAccessRuleCondition(self): - """Test AccessRuleCondition""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_access_rules_api.py b/test/test_access_rules_api.py index 5a9121a..d0515dc 100644 --- a/test/test_access_rules_api.py +++ b/test/test_access_rules_api.py @@ -27,6 +27,12 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_access_rule(self) -> None: + """Test case for create_access_rule + + """ + pass + def test_get_access_rule(self) -> None: """Test case for get_access_rule diff --git a/test/test_add_bundle_group_request.py b/test/test_add_bundle_group_request.py index b42e1af..275ae1f 100644 --- a/test/test_add_bundle_group_request.py +++ b/test/test_add_bundle_group_request.py @@ -36,7 +36,9 @@ def make_instance(self, include_optional) -> AddBundleGroupRequest: model = AddBundleGroupRequest() if include_optional: return AddBundleGroupRequest( - group_id = '72e75a6f-7183-48c5-94ff-6013f213314b' + group_id = '72e75a6f-7183-48c5-94ff-6013f213314b', + access_level_remote_id = 'arn:aws:iam::590304332660:role/AdministratorAccess', + access_level_name = 'AdministratorAccess' ) else: return AddBundleGroupRequest( diff --git a/test/test_add_group_resource_request.py b/test/test_add_group_resource_request.py index fcad5c0..cf434ee 100644 --- a/test/test_add_group_resource_request.py +++ b/test/test_add_group_resource_request.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AddGroupResourceRequest: """Test AddGroupResourceRequest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AddGroupResourceRequest` @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> AddGroupResourceRequest: model = AddGroupResourceRequest() if include_optional: return AddGroupResourceRequest( - access_level_remote_id = 'arn:aws:iam::590304332660:role/AdministratorAccess' + access_level_remote_id = 'arn:aws:iam::590304332660:role/AdministratorAccess', + duration_minutes = 60 ) else: return AddGroupResourceRequest( diff --git a/test/test_add_group_user_request.py b/test/test_add_group_user_request.py index 9f4a3ca..e23cb4c 100644 --- a/test/test_add_group_user_request.py +++ b/test/test_add_group_user_request.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AddGroupUserRequest: """Test AddGroupUserRequest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AddGroupUserRequest` diff --git a/test/test_add_resource_nhi_request.py b/test/test_add_resource_nhi_request.py index c419a28..542b11d 100644 --- a/test/test_add_resource_nhi_request.py +++ b/test/test_add_resource_nhi_request.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_add_resource_user_request.py b/test/test_add_resource_user_request.py index a3597bc..899245d 100644 --- a/test/test_add_resource_user_request.py +++ b/test/test_add_resource_user_request.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AddResourceUserRequest: """Test AddResourceUserRequest - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AddResourceUserRequest` diff --git a/test/test_app.py b/test/test_app.py index 10fcc08..734dd2c 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> App: """Test App - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `App` @@ -40,7 +40,10 @@ def make_instance(self, include_optional) -> App: name = 'Okta Org', description = 'Okta directory for the engineering team.', admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - app_type = 'OKTA_DIRECTORY' + app_type = 'OKTA_DIRECTORY', + validations = [ + {key=iam:GetRole, name=Opal's service account is missing the 'iam:GetRole' permission., usage_reason=Opal uses the 'iam:GetRole' permissions to view access to resources., details=403 Google API Error. Service account is not authorized to access role assignments., severity=HIGH, status=FAILED, updated_at=2021-01-06T20:00:00Z} + ] ) else: return App( diff --git a/test/test_app_type_enum.py b/test/test_app_type_enum.py index 9f1e158..9fb37d9 100644 --- a/test/test_app_type_enum.py +++ b/test/test_app_type_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_approve_request200_response.py b/test/test_approve_request200_response.py index f5b2240..52db786 100644 --- a/test/test_approve_request200_response.py +++ b/test/test_approve_request200_response.py @@ -36,8 +36,7 @@ def make_instance(self, include_optional) -> ApproveRequest200Response: model = ApproveRequest200Response() if include_optional: return ApproveRequest200Response( - request = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}}, - task_id = 'c6f85bfb-3fe7-4936-a68d-7a5e1e3d0f6a' + request = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]} ) else: return ApproveRequest200Response( diff --git a/test/test_apps_api.py b/test/test_apps_api.py index 9695c85..d4adbb6 100644 --- a/test/test_apps_api.py +++ b/test/test_apps_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -30,12 +30,20 @@ def tearDown(self) -> None: def test_get_app(self) -> None: """Test case for get_app + Get app by ID """ pass def test_get_apps(self) -> None: """Test case for get_apps + Get apps + """ + pass + + def test_get_sync_errors(self) -> None: + """Test case for get_sync_errors + """ pass diff --git a/test/test_apps_list.py b/test/test_apps_list.py index 8fd2939..a61df59 100644 --- a/test/test_apps_list.py +++ b/test/test_apps_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AppsList: """Test AppsList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AppsList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> AppsList: if include_optional: return AppsList( apps = [ - {"app_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"Okta Org","description":"Okta directory for the engineering team.","admin_owner_id":"7c86c85d-0651-43e2-a748-d69d658418e8","app_type":"OKTA_DIRECTORY"} + {app_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=Okta Org, description=Okta directory for the engineering team., admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, app_type=OKTA_DIRECTORY} ] ) else: return AppsList( apps = [ - {"app_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"Okta Org","description":"Okta directory for the engineering team.","admin_owner_id":"7c86c85d-0651-43e2-a748-d69d658418e8","app_type":"OKTA_DIRECTORY"} + {app_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=Okta Org, description=Okta directory for the engineering team., admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, app_type=OKTA_DIRECTORY} ], ) """ diff --git a/test/test_aws_permission_set_metadata.py b/test/test_aws_permission_set_metadata.py index e1067ff..0e9aae0 100644 --- a/test/test_aws_permission_set_metadata.py +++ b/test/test_aws_permission_set_metadata.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AwsPermissionSetMetadata: """Test AwsPermissionSetMetadata - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AwsPermissionSetMetadata` @@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> AwsPermissionSetMetadata: model = AwsPermissionSetMetadata() if include_optional: return AwsPermissionSetMetadata( - aws_permission_set = opal.models.aws_permission_set_metadata_aws_permission_set.AwsPermissionSetMetadata_aws_permission_set( + aws_permission_set = opal_security.models.aws_permission_set_metadata_aws_permission_set.AwsPermissionSetMetadata_aws_permission_set( arn = 'arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9', account_id = '234234234234', ) ) else: return AwsPermissionSetMetadata( - aws_permission_set = opal.models.aws_permission_set_metadata_aws_permission_set.AwsPermissionSetMetadata_aws_permission_set( + aws_permission_set = opal_security.models.aws_permission_set_metadata_aws_permission_set.AwsPermissionSetMetadata_aws_permission_set( arn = 'arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9', account_id = '234234234234', ), ) diff --git a/test/test_aws_permission_set_metadata_aws_permission_set.py b/test/test_aws_permission_set_metadata_aws_permission_set.py index 910a790..e22aef8 100644 --- a/test/test_aws_permission_set_metadata_aws_permission_set.py +++ b/test/test_aws_permission_set_metadata_aws_permission_set.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AwsPermissionSetMetadataAwsPermissionSet: """Test AwsPermissionSetMetadataAwsPermissionSet - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AwsPermissionSetMetadataAwsPermissionSet` diff --git a/test/test_bundle_group.py b/test/test_bundle_group.py index 4a9944d..aeb8b73 100644 --- a/test/test_bundle_group.py +++ b/test/test_bundle_group.py @@ -37,7 +37,9 @@ def make_instance(self, include_optional) -> BundleGroup: if include_optional: return BundleGroup( bundle_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', - group_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1' + group_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', + access_level_name = 'Read', + access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser' ) else: return BundleGroup( diff --git a/test/test_bundles_api.py b/test/test_bundles_api.py index fd6bf98..e8df0dd 100644 --- a/test/test_bundles_api.py +++ b/test/test_bundles_api.py @@ -54,6 +54,7 @@ def test_delete_bundle(self) -> None: def test_get_bundle(self) -> None: """Test case for get_bundle + Get bundle by ID """ pass @@ -78,6 +79,7 @@ def test_get_bundle_visibility(self) -> None: def test_get_bundles(self) -> None: """Test case for get_bundles + Get bundles """ pass diff --git a/test/test_condition.py b/test/test_condition.py index 4cd3303..014e232 100644 --- a/test/test_condition.py +++ b/test/test_condition.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Condition: """Test Condition - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Condition` @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> Condition: model = Condition() if include_optional: return Condition( - group_ids = ["1b978423-db0a-4037-a4cf-f79c60cb67b3"], - role_remote_ids = ["arn:aws:iam::590304332660:role/AdministratorAccess"] + group_ids = [1b978423-db0a-4037-a4cf-f79c60cb67b3], + role_remote_ids = [arn:aws:iam::590304332660:role/AdministratorAccess] ) else: return Condition( diff --git a/test/test_configuration_template.py b/test/test_configuration_template.py index 8420af7..b3107ee 100644 --- a/test/test_configuration_template.py +++ b/test/test_configuration_template.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationTemplate: """Test ConfigurationTemplate - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ConfigurationTemplate` @@ -39,13 +39,19 @@ def make_instance(self, include_optional) -> ConfigurationTemplate: configuration_template_id = '7c86c85d-0651-43e2-a748-d69d658418e8', name = 'Prod AWS Template', admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - visibility = {"visibility":"LIMITED","visibility_group_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]}, - linked_audit_message_channel_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], + visibility = private, + linked_audit_message_channel_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], request_configuration_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - member_oncall_schedule_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], - break_glass_user_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], + member_oncall_schedule_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 7c86c85d-0651-43e2-a748-d69d658418e8], + break_glass_user_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], require_mfa_to_approve = False, - require_mfa_to_connect = False + require_mfa_to_connect = False, + ticket_propagation = opal_security.models.ticket_propagation_configuration.TicketPropagationConfiguration( + enabled_on_grant = True, + enabled_on_revocation = True, + ticket_provider = 'LINEAR', + ticket_project_id = '', ), + custom_request_notification = 'Check your email to register your account.' ) else: return ConfigurationTemplate( diff --git a/test/test_configuration_templates_api.py b/test/test_configuration_templates_api.py index c2bd64f..de8ba3b 100644 --- a/test/test_configuration_templates_api.py +++ b/test/test_configuration_templates_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -33,6 +33,12 @@ def test_create_configuration_template(self) -> None: """ pass + def test_delete_configuration_template(self) -> None: + """Test case for delete_configuration_template + + """ + pass + def test_get_configuration_templates(self) -> None: """Test case for get_configuration_templates diff --git a/test/test_create_configuration_template_info.py b/test/test_create_configuration_template_info.py index 04c3055..4ea4be9 100644 --- a/test/test_create_configuration_template_info.py +++ b/test/test_create_configuration_template_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateConfigurationTemplateInfo: """Test CreateConfigurationTemplateInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateConfigurationTemplateInfo` @@ -37,22 +37,28 @@ def make_instance(self, include_optional) -> CreateConfigurationTemplateInfo: if include_optional: return CreateConfigurationTemplateInfo( admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - visibility = {"visibility":"LIMITED","visibility_group_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]}, - linked_audit_message_channel_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], - member_oncall_schedule_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], - break_glass_user_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], + visibility = private, + linked_audit_message_channel_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], + member_oncall_schedule_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], + break_glass_user_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], require_mfa_to_approve = False, require_mfa_to_connect = False, name = 'Prod AWS Template', request_configurations = [ - {"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","created_at":"2021-01-06T20:00:00Z","updated_at":"2021-01-06T20:00:00Z","condition":{"group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b3"},"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":1} + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} ], - request_configuration_list = {"request_configurations":[{"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","condition":null,"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":0},{"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e9","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","condition":{"group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b4"},"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":1}]} + request_configuration_list = {request_configurations=[{request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition=null, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=0}, {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e9, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b4}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1}]}, + ticket_propagation = opal_security.models.ticket_propagation_configuration.TicketPropagationConfiguration( + enabled_on_grant = True, + enabled_on_revocation = True, + ticket_provider = 'LINEAR', + ticket_project_id = '', ), + custom_request_notification = 'Check your email to register your account.' ) else: return CreateConfigurationTemplateInfo( admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - visibility = {"visibility":"LIMITED","visibility_group_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]}, + visibility = private, require_mfa_to_approve = False, require_mfa_to_connect = False, name = 'Prod AWS Template', diff --git a/test/test_create_group_binding_info.py b/test/test_create_group_binding_info.py index 5bc8366..56ebe23 100644 --- a/test/test_create_group_binding_info.py +++ b/test/test_create_group_binding_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateGroupBindingInfo: """Test CreateGroupBindingInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateGroupBindingInfo` @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> CreateGroupBindingInfo: return CreateGroupBindingInfo( source_group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', groups = [ - opal.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( + opal_security.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', ) ] ) @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> CreateGroupBindingInfo: return CreateGroupBindingInfo( source_group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', groups = [ - opal.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( + opal_security.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', ) ], ) diff --git a/test/test_create_group_binding_info_groups_inner.py b/test/test_create_group_binding_info_groups_inner.py index 0aa63f8..024676f 100644 --- a/test/test_create_group_binding_info_groups_inner.py +++ b/test/test_create_group_binding_info_groups_inner.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateGroupBindingInfoGroupsInner: """Test CreateGroupBindingInfoGroupsInner - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateGroupBindingInfoGroupsInner` diff --git a/test/test_create_group_info.py b/test/test_create_group_info.py index dd26369..7d9425c 100644 --- a/test/test_create_group_info.py +++ b/test/test_create_group_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateGroupInfo: """Test CreateGroupInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateGroupInfo` @@ -40,28 +40,36 @@ def make_instance(self, include_optional) -> CreateGroupInfo: description = 'Engineering team Okta group.', group_type = 'OPAL_GROUP', app_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', - remote_info = opal.models.group_remote_info.GroupRemoteInfo( - active_directory_group = opal.models.group_remote_info_active_directory_group.GroupRemoteInfo_active_directory_group( + remote_info = opal_security.models.group_remote_info.GroupRemoteInfo( + active_directory_group = opal_security.models.group_remote_info_active_directory_group.GroupRemoteInfo_active_directory_group( group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), - github_team = opal.models.group_remote_info_github_team.GroupRemoteInfo_github_team( + github_team = opal_security.models.group_remote_info_github_team.GroupRemoteInfo_github_team( team_id = '898931321', team_slug = 'opal-security', ), - gitlab_group = opal.models.group_remote_info_gitlab_group.GroupRemoteInfo_gitlab_group( + gitlab_group = opal_security.models.group_remote_info_gitlab_group.GroupRemoteInfo_gitlab_group( group_id = '898931321', ), - google_group = opal.models.group_remote_info_google_group.GroupRemoteInfo_google_group( + google_group = opal_security.models.group_remote_info_google_group.GroupRemoteInfo_google_group( group_id = '1y6w882181n7sg', ), - ldap_group = opal.models.group_remote_info_ldap_group.GroupRemoteInfo_ldap_group( + ldap_group = opal_security.models.group_remote_info_ldap_group.GroupRemoteInfo_ldap_group( group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), - okta_group = opal.models.group_remote_info_okta_group.GroupRemoteInfo_okta_group( + okta_group = opal_security.models.group_remote_info_okta_group.GroupRemoteInfo_okta_group( group_id = '00gjs33pe8rtmRrp3rd6', ), - duo_group = opal.models.group_remote_info_duo_group.GroupRemoteInfo_duo_group( + duo_group = opal_security.models.group_remote_info_duo_group.GroupRemoteInfo_duo_group( group_id = 'DSRD8W89B9DNDBY4RHAC', ), - azure_ad_security_group = opal.models.group_remote_info_azure_ad_security_group.GroupRemoteInfo_azure_ad_security_group( + azure_ad_security_group = opal_security.models.group_remote_info_azure_ad_security_group.GroupRemoteInfo_azure_ad_security_group( group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), - azure_ad_microsoft_365_group = opal.models.group_remote_info_azure_ad_microsoft_365_group.GroupRemoteInfo_azure_ad_microsoft_365_group( - group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), ), + azure_ad_microsoft_365_group = opal_security.models.group_remote_info_azure_ad_microsoft_365_group.GroupRemoteInfo_azure_ad_microsoft_365_group( + group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + snowflake_role = opal_security.models.group_remote_info_snowflake_role.GroupRemoteInfo_snowflake_role( + role_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + okta_group_rule = opal_security.models.group_remote_info_okta_group_rule.GroupRemoteInfo_okta_group_rule( + rule_id = '0pr3f7zMZZHPgUoWO0g4', ), + workday_user_security_group = opal_security.models.group_remote_info_workday_user_security_group.GroupRemoteInfo_workday_user_security_group( + group_id = '123abc456def', ), ), remote_group_id = '00g4fixjd6Bc9w012345', - metadata = '{ "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } }' + metadata = '{ "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } }', + custom_request_notification = 'Check your email to register your account.', + risk_sensitivity_override = 'UNKNOWN' ) else: return CreateGroupInfo( diff --git a/test/test_create_message_channel_info.py b/test/test_create_message_channel_info.py index ddbf395..b96d61b 100644 --- a/test/test_create_message_channel_info.py +++ b/test/test_create_message_channel_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateMessageChannelInfo: """Test CreateMessageChannelInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateMessageChannelInfo` diff --git a/test/test_create_on_call_schedule_info.py b/test/test_create_on_call_schedule_info.py index b26d49a..c8492e7 100644 --- a/test/test_create_on_call_schedule_info.py +++ b/test/test_create_on_call_schedule_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOnCallScheduleInfo: """Test CreateOnCallScheduleInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateOnCallScheduleInfo` diff --git a/test/test_create_owner_info.py b/test/test_create_owner_info.py index 6f7e684..7fdb32a 100644 --- a/test/test_create_owner_info.py +++ b/test/test_create_owner_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOwnerInfo: """Test CreateOwnerInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateOwnerInfo` @@ -39,14 +39,14 @@ def make_instance(self, include_optional) -> CreateOwnerInfo: name = 'API Owner', description = 'This owner represents the API team owners.', access_request_escalation_period = 120, - user_ids = ["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"], + user_ids = [7870617d-e72a-47f5-a84c-693817ab4567, 1520617d-e72a-47f5-a84c-693817ab48ad2], reviewer_message_channel_id = '37cb7e41-12ba-46da-92ff-030abe0450b1', source_group_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3' ) else: return CreateOwnerInfo( name = 'API Owner', - user_ids = ["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"], + user_ids = [7870617d-e72a-47f5-a84c-693817ab4567, 1520617d-e72a-47f5-a84c-693817ab48ad2], ) """ diff --git a/test/test_create_request200_response.py b/test/test_create_request200_response.py index 3215188..a5bf3d8 100644 --- a/test/test_create_request200_response.py +++ b/test/test_create_request200_response.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_create_request_configuration_info_list.py b/test/test_create_request_configuration_info_list.py index 3668bcf..913bcda 100644 --- a/test/test_create_request_configuration_info_list.py +++ b/test/test_create_request_configuration_info_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateRequestConfigurationInfoList: """Test CreateRequestConfigurationInfoList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateRequestConfigurationInfoList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> CreateRequestConfigurationInfoList: if include_optional: return CreateRequestConfigurationInfoList( request_configurations = [ - {"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","created_at":"2021-01-06T20:00:00Z","updated_at":"2021-01-06T20:00:00Z","condition":{"group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b3"},"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":1} + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} ] ) else: return CreateRequestConfigurationInfoList( request_configurations = [ - {"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","created_at":"2021-01-06T20:00:00Z","updated_at":"2021-01-06T20:00:00Z","condition":{"group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b3"},"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":1} + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} ], ) """ diff --git a/test/test_create_request_info.py b/test/test_create_request_info.py index ce0f51a..ce099df 100644 --- a/test/test_create_request_info.py +++ b/test/test_create_request_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> CreateRequestInfo: if include_optional: return CreateRequestInfo( resources = [ - opal.models.create_request_info_resources_inner.CreateRequestInfo_resources_inner( + opal_security.models.create_request_info_resources_inner.CreateRequestInfo_resources_inner( id = 'group283-ca87-4a8a-bdbb-df212eca5353', access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', access_level_name = 'arn:aws:iam::490306337630:role/SupportUser', ) ], groups = [ - opal.models.create_request_info_groups_inner.CreateRequestInfo_groups_inner( + opal_security.models.create_request_info_groups_inner.CreateRequestInfo_groups_inner( id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', access_level_name = 'arn:aws:iam::490306337630:role/SupportUser', ) @@ -51,14 +51,14 @@ def make_instance(self, include_optional) -> CreateRequestInfo: target_user_id = 'userd283-ca87-4a8a-bdbb-df212eca5353', target_group_id = 'userd283-ca87-4a8a-bdbb-df212eca5353', reason = '', - support_ticket = opal.models.create_request_info_support_ticket.CreateRequestInfo_support_ticket( + support_ticket = opal_security.models.create_request_info_support_ticket.CreateRequestInfo_support_ticket( ticketing_provider = 'LINEAR', remote_id = '', identifier = '', url = '', ), duration_minutes = -1, custom_metadata = [ - opal.models.create_request_info_custom_metadata_inner.CreateRequestInfo_custom_metadata_inner( + opal_security.models.create_request_info_custom_metadata_inner.CreateRequestInfo_custom_metadata_inner( name = '', type = 'SHORT_TEXT', value = '', ) @@ -67,13 +67,13 @@ def make_instance(self, include_optional) -> CreateRequestInfo: else: return CreateRequestInfo( resources = [ - opal.models.create_request_info_resources_inner.CreateRequestInfo_resources_inner( + opal_security.models.create_request_info_resources_inner.CreateRequestInfo_resources_inner( id = 'group283-ca87-4a8a-bdbb-df212eca5353', access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', access_level_name = 'arn:aws:iam::490306337630:role/SupportUser', ) ], groups = [ - opal.models.create_request_info_groups_inner.CreateRequestInfo_groups_inner( + opal_security.models.create_request_info_groups_inner.CreateRequestInfo_groups_inner( id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', access_level_name = 'arn:aws:iam::490306337630:role/SupportUser', ) diff --git a/test/test_create_request_info_custom_metadata_inner.py b/test/test_create_request_info_custom_metadata_inner.py index cc087d9..acaad5d 100644 --- a/test/test_create_request_info_custom_metadata_inner.py +++ b/test/test_create_request_info_custom_metadata_inner.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_create_request_info_groups_inner.py b/test/test_create_request_info_groups_inner.py index 22c1a76..c626e81 100644 --- a/test/test_create_request_info_groups_inner.py +++ b/test/test_create_request_info_groups_inner.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_create_request_info_resources_inner.py b/test/test_create_request_info_resources_inner.py index 450d3f7..7edd67a 100644 --- a/test/test_create_request_info_resources_inner.py +++ b/test/test_create_request_info_resources_inner.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_create_request_info_support_ticket.py b/test/test_create_request_info_support_ticket.py index 9c1dab9..51e1c76 100644 --- a/test/test_create_request_info_support_ticket.py +++ b/test/test_create_request_info_support_ticket.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_create_resource_info.py b/test/test_create_resource_info.py index ee82081..d83222d 100644 --- a/test/test_create_resource_info.py +++ b/test/test_create_resource_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateResourceInfo: """Test CreateResourceInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateResourceInfo` @@ -40,73 +40,131 @@ def make_instance(self, include_optional) -> CreateResourceInfo: description = 'Engineering team Okta role.', resource_type = 'AWS_IAM_ROLE', app_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', - remote_info = opal.models.resource_remote_info.ResourceRemoteInfo( - aws_account = opal.models.resource_remote_info_aws_account.ResourceRemoteInfo_aws_account( - account_id = '234234234234', ), - aws_permission_set = opal.models.resource_remote_info_aws_permission_set.ResourceRemoteInfo_aws_permission_set( + remote_info = opal_security.models.resource_remote_info.ResourceRemoteInfo( + azure_subscription = opal_security.models.resource_remote_info_azure_subscription.ResourceRemoteInfo_azure_subscription( + resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000', ), + azure_resource_group = opal_security.models.resource_remote_info_azure_resource_group.ResourceRemoteInfo_azure_resource_group( + resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg', ), + azure_management_group = opal_security.models.resource_remote_info_azure_management_group.ResourceRemoteInfo_azure_management_group( + resource_id = '/providers/Microsoft.Management/managementGroups/my-mg', ), + azure_virtual_machine = opal_security.models.resource_remote_info_azure_virtual_machine.ResourceRemoteInfo_azure_virtual_machine( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01', ), + azure_storage_account = opal_security.models.resource_remote_info_azure_storage_account.ResourceRemoteInfo_azure_storage_account( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01', ), + azure_storage_container = opal_security.models.resource_remote_info_azure_storage_container.ResourceRemoteInfo_azure_storage_container( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01', ), + azure_sql_server = opal_security.models.resource_remote_info_azure_sql_server.ResourceRemoteInfo_azure_sql_server( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01', ), + azure_sql_database = opal_security.models.resource_remote_info_azure_sql_database.ResourceRemoteInfo_azure_sql_database( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01', ), + azure_sql_managed_instance = opal_security.models.resource_remote_info_azure_sql_managed_instance.ResourceRemoteInfo_azure_sql_managed_instance( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01', ), + azure_sql_managed_database = opal_security.models.resource_remote_info_azure_sql_managed_database.ResourceRemoteInfo_azure_sql_managed_database( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01', ), + azure_user_assigned_managed_identity = opal_security.models.resource_remote_info_azure_user_assigned_managed_identity.ResourceRemoteInfo_azure_user_assigned_managed_identity( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01', ), + azure_enterprise_app = opal_security.models.resource_remote_info_azure_enterprise_app.ResourceRemoteInfo_azure_enterprise_app( + resource_id = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee', ), + azure_entra_id_role = opal_security.models.resource_remote_info_azure_entra_id_role.ResourceRemoteInfo_azure_entra_id_role( + resource_id = '11111111-2222-3333-4444-555555555555', ), + aws_organizational_unit = opal_security.models.resource_remote_info_aws_organizational_unit.ResourceRemoteInfo_aws_organizational_unit( + parent_id = 'ou-1234', + organizational_unit_id = 'ou-1234', ), + aws_account = opal_security.models.resource_remote_info_aws_account.ResourceRemoteInfo_aws_account( + account_id = '234234234234', + organizational_unit_id = 'ou-1234', ), + aws_permission_set = opal_security.models.resource_remote_info_aws_permission_set.ResourceRemoteInfo_aws_permission_set( arn = 'arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9', account_id = '234234234234', ), - aws_iam_role = opal.models.resource_remote_info_aws_iam_role.ResourceRemoteInfo_aws_iam_role( + aws_iam_role = opal_security.models.resource_remote_info_aws_iam_role.ResourceRemoteInfo_aws_iam_role( arn = 'arn:aws:iam::179308207300:role/MyRole', account_id = '234234234234', ), - aws_ec2_instance = opal.models.resource_remote_info_aws_ec2_instance.ResourceRemoteInfo_aws_ec2_instance( + aws_ec2_instance = opal_security.models.resource_remote_info_aws_ec2_instance.ResourceRemoteInfo_aws_ec2_instance( instance_id = 'i-13f1a1e2899f9e93a', region = 'us-east-2', account_id = '234234234234', ), - aws_rds_instance = opal.models.resource_remote_info_aws_rds_instance.ResourceRemoteInfo_aws_rds_instance( + aws_rds_instance = opal_security.models.resource_remote_info_aws_rds_instance.ResourceRemoteInfo_aws_rds_instance( instance_id = 'demo-mysql-db', region = 'us-east-2', resource_id = 'db-AOO8V0XUCNU13XLZXQDQRSN0NQ', account_id = '234234234234', ), - aws_eks_cluster = opal.models.resource_remote_info_aws_eks_cluster.ResourceRemoteInfo_aws_eks_cluster( + aws_eks_cluster = opal_security.models.resource_remote_info_aws_eks_cluster.ResourceRemoteInfo_aws_eks_cluster( arn = 'arn:aws:eks:us-east-2:234234234234:cluster/testcluster', account_id = '234234234234', ), - gcp_organization = opal.models.resource_remote_info_gcp_organization.ResourceRemoteInfo_gcp_organization( + custom_connector = opal_security.models.resource_remote_info_custom_connector.ResourceRemoteInfo_custom_connector( + remote_resource_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', + can_have_usage_events = False, ), + gcp_organization = opal_security.models.resource_remote_info_gcp_organization.ResourceRemoteInfo_gcp_organization( organization_id = 'organizations/898931321', ), - gcp_bucket = opal.models.resource_remote_info_gcp_bucket.ResourceRemoteInfo_gcp_bucket( + gcp_bucket = opal_security.models.resource_remote_info_gcp_bucket.ResourceRemoteInfo_gcp_bucket( bucket_id = 'example-bucket-898931321', ), - gcp_compute_instance = opal.models.resource_remote_info_gcp_compute_instance.ResourceRemoteInfo_gcp_compute_instance( + gcp_compute_instance = opal_security.models.resource_remote_info_gcp_compute_instance.ResourceRemoteInfo_gcp_compute_instance( instance_id = 'example-instance-898931321', project_id = 'example-project-898931321', zone = 'us-central1-a', ), - gcp_big_query_dataset = opal.models.resource_remote_info_gcp_big_query_dataset.ResourceRemoteInfo_gcp_big_query_dataset( + gcp_big_query_dataset = opal_security.models.resource_remote_info_gcp_big_query_dataset.ResourceRemoteInfo_gcp_big_query_dataset( project_id = 'example-project-898931321', dataset_id = 'example-dataset-898931321', ), - gcp_big_query_table = opal.models.resource_remote_info_gcp_big_query_table.ResourceRemoteInfo_gcp_big_query_table( + gcp_big_query_table = opal_security.models.resource_remote_info_gcp_big_query_table.ResourceRemoteInfo_gcp_big_query_table( project_id = 'example-project-898931321', dataset_id = 'example-dataset-898931321', table_id = 'example-table-898931321', ), - gcp_folder = opal.models.resource_remote_info_gcp_folder.ResourceRemoteInfo_gcp_folder( + gcp_folder = opal_security.models.resource_remote_info_gcp_folder.ResourceRemoteInfo_gcp_folder( folder_id = 'folder/898931321', ), - gcp_gke_cluster = opal.models.resource_remote_info_gcp_gke_cluster.ResourceRemoteInfo_gcp_gke_cluster( + gcp_gke_cluster = opal_security.models.resource_remote_info_gcp_gke_cluster.ResourceRemoteInfo_gcp_gke_cluster( cluster_name = 'example-cluster-898931321', ), - gcp_project = opal.models.resource_remote_info_gcp_project.ResourceRemoteInfo_gcp_project( + gcp_project = opal_security.models.resource_remote_info_gcp_project.ResourceRemoteInfo_gcp_project( project_id = 'example-project-898931321', ), - gcp_sql_instance = opal.models.resource_remote_info_gcp_sql_instance.ResourceRemoteInfo_gcp_sql_instance( + gcp_sql_instance = opal_security.models.resource_remote_info_gcp_sql_instance.ResourceRemoteInfo_gcp_sql_instance( instance_id = 'example-sql-898931321', project_id = 'example-project-898931321', ), - github_repo = opal.models.resource_remote_info_github_repo.ResourceRemoteInfo_github_repo( + gcp_service_account = opal_security.models.resource_remote_info_gcp_service_account.ResourceRemoteInfo_gcp_service_account( + email = 'production@project.iam.gserviceaccount.com', + service_account_id = '103561576023829463298', + project_id = 'example-project-898931321', ), + google_workspace_role = opal_security.models.resource_remote_info_google_workspace_role.ResourceRemoteInfo_google_workspace_role( + role_id = 'google-workspace-role:01234567890123456', ), + github_repo = opal_security.models.resource_remote_info_github_repo.ResourceRemoteInfo_github_repo( repo_id = '898931321', repo_name = 'Opal Security', ), - gitlab_project = opal.models.resource_remote_info_gitlab_project.ResourceRemoteInfo_gitlab_project( + github_org_role = opal_security.models.resource_remote_info_github_org_role.ResourceRemoteInfo_github_org_role( + role_id = '112233', ), + github_org = opal_security.models.resource_remote_info_github_org.ResourceRemoteInfo_github_org( + org_name = 'Opal Security', ), + gitlab_project = opal_security.models.resource_remote_info_gitlab_project.ResourceRemoteInfo_gitlab_project( project_id = '898931321', ), - okta_app = opal.models.resource_remote_info_okta_app.ResourceRemoteInfo_okta_app( + okta_app = opal_security.models.resource_remote_info_okta_app.ResourceRemoteInfo_okta_app( app_id = 'a9dfas0f678asdf67867', ), - okta_standard_role = opal.models.resource_remote_info_okta_standard_role.ResourceRemoteInfo_okta_standard_role( + okta_standard_role = opal_security.models.resource_remote_info_okta_standard_role.ResourceRemoteInfo_okta_standard_role( role_type = 'ORG_ADMIN', ), - okta_custom_role = opal.models.resource_remote_info_okta_custom_role.ResourceRemoteInfo_okta_custom_role( + okta_custom_role = opal_security.models.resource_remote_info_okta_custom_role.ResourceRemoteInfo_okta_custom_role( role_id = 'a9dfas0f678asdf67867', ), - pagerduty_role = opal.models.resource_remote_info_pagerduty_role.ResourceRemoteInfo_pagerduty_role( + pagerduty_role = opal_security.models.resource_remote_info_pagerduty_role.ResourceRemoteInfo_pagerduty_role( role_name = 'owner', ), - salesforce_permission_set = opal.models.resource_remote_info_salesforce_permission_set.ResourceRemoteInfo_salesforce_permission_set( + salesforce_permission_set = opal_security.models.resource_remote_info_salesforce_permission_set.ResourceRemoteInfo_salesforce_permission_set( permission_set_id = '0PS5Y090202wOV7WAM', ), - salesforce_profile = opal.models.resource_remote_info_salesforce_profile.ResourceRemoteInfo_salesforce_profile( + salesforce_profile = opal_security.models.resource_remote_info_salesforce_profile.ResourceRemoteInfo_salesforce_profile( profile_id = '0PS5Y090202wOV7WAM', user_license_id = '1005Y030081Qb5XJHS', ), - salesforce_role = opal.models.resource_remote_info_salesforce_role.ResourceRemoteInfo_salesforce_role( + salesforce_role = opal_security.models.resource_remote_info_salesforce_role.ResourceRemoteInfo_salesforce_role( role_id = '0PS5Y090202wOV7WAM', ), - teleport_role = opal.models.resource_remote_info_teleport_role.ResourceRemoteInfo_teleport_role( - role_name = 'admin_role', ), ), + teleport_role = opal_security.models.resource_remote_info_teleport_role.ResourceRemoteInfo_teleport_role( + role_name = 'admin_role', ), + datastax_astra_role = opal_security.models.resource_remote_info_datastax_astra_role.ResourceRemoteInfo_datastax_astra_role( + role_id = '123e4567-e89b-12d3-a456-426614174000', ), + coupa_role = opal_security.models.resource_remote_info_coupa_role.ResourceRemoteInfo_coupa_role( + role_id = '999', ), + cursor_organization = opal_security.models.resource_remote_info_cursor_organization.ResourceRemoteInfo_cursor_organization( + org_id = '123e4567-e89b-12d3-a456-426614174000', ), + openai_platform_project = opal_security.models.resource_remote_info_openai_platform_project.ResourceRemoteInfo_openai_platform_project( + project_id = 'proj_abc', ), + openai_platform_service_account = opal_security.models.resource_remote_info_openai_platform_service_account.ResourceRemoteInfo_openai_platform_service_account( + project_id = 'proj_abc', + service_account_id = 'svc_acct_abc', ), + anthropic_workspace = opal_security.models.resource_remote_info_anthropic_workspace.ResourceRemoteInfo_anthropic_workspace( + workspace_id = 'ws-123456', ), + oracle_fusion_role = opal_security.models.resource_remote_info_oracle_fusion_role.ResourceRemoteInfo_oracle_fusion_role( + role_id = '123e4567-e89b-12d3-a456-426614174000', ), ), remote_resource_id = 'API_ACCESS_MANAGEMENT_ADMIN-51d203da-313a-4fd9-8fcf-420ce6312345', metadata = '{ "okta_directory_role": @@ -114,7 +172,9 @@ def make_instance(self, include_optional) -> CreateResourceInfo: "role_id": "SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345", "role_type": "SUPER_ADMIN", }, -}' +}', + custom_request_notification = 'Check your email to register your account.', + risk_sensitivity_override = 'UNKNOWN' ) else: return CreateResourceInfo( diff --git a/test/test_create_tag_info.py b/test/test_create_tag_info.py index b44e38e..5fd97dc 100644 --- a/test/test_create_tag_info.py +++ b/test/test_create_tag_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateTagInfo: """Test CreateTagInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateTagInfo` diff --git a/test/test_create_uar_info.py b/test/test_create_uar_info.py index d2bc1d0..bb7fc39 100644 --- a/test/test_create_uar_info.py +++ b/test/test_create_uar_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateUARInfo: """Test CreateUARInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CreateUARInfo` @@ -39,17 +39,21 @@ def make_instance(self, include_optional) -> CreateUARInfo: name = 'Monthly UAR (July)', reviewer_assignment_policy = 'MANUALLY', send_reviewer_assignment_notification = False, - deadline = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deadline = '2022-07-14T06:59:59Z', time_zone = 'America/Los_Angeles', self_review_allowed = False, - uar_scope = {"tags":[{"key":"uar_scope","value":"high_priority"}],"names":["demo","api"],"admins":["f454d283-ca87-4a8a-bdbb-df212eca5353","8763d283-ca87-4a8a-bdbb-df212ecab139"]} + reminder_schedule = [ + 56 + ], + reminder_include_manager = False, + uar_scope = {filter_operator=ANY, users=[userd283-ca87-4a8a-bdbb-df212eca5353], include_group_bindings=true, tags=[{key=uar_scope, value=high_priority}], names=[demo, api], admins=[f454d283-ca87-4a8a-bdbb-df212eca5353, 8763d283-ca87-4a8a-bdbb-df212ecab139], resource_types=[GCP_CLOUD_SQL_POSTGRES_INSTANCE], group_types=[AWS_SSO_GROUP], apps=[pas2d283-ca87-4a8a-bdbb-df212eca5353, apss2d283-ca87-4a8a-bdbb-df212eca5353], entities=[f454d283-as87-4a8a-bdbb-df212eca5353, f454d283-as87-4a8a-bdbb-df212eca5329]} ) else: return CreateUARInfo( name = 'Monthly UAR (July)', reviewer_assignment_policy = 'MANUALLY', send_reviewer_assignment_notification = False, - deadline = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deadline = '2022-07-14T06:59:59Z', time_zone = 'America/Los_Angeles', self_review_allowed = False, ) diff --git a/test/test_deny_request_request.py b/test/test_deny_request_request.py index 07471e3..9bdf481 100644 --- a/test/test_deny_request_request.py +++ b/test/test_deny_request_request.py @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> DenyRequestRequest: model = DenyRequestRequest() if include_optional: return DenyRequestRequest( - comment = 'Denied due to insufficient justification' + comment = 'Denied due to insufficient justification', + level = 'REGULAR' ) else: return DenyRequestRequest( diff --git a/test/test_entity_type_enum.py b/test/test_entity_type_enum.py index 8fc42ad..6da4981 100644 --- a/test/test_entity_type_enum.py +++ b/test/test_entity_type_enum.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.entity_type_enum import EntityTypeEnum - class TestEntityTypeEnum(unittest.TestCase): """EntityTypeEnum unit test stubs""" @@ -27,10 +28,7 @@ def tearDown(self): def testEntityTypeEnum(self): """Test EntityTypeEnum""" - # FIXME: construct object with mandatory attributes with example values - # model = EntityTypeEnum() # noqa: E501 - pass - + # inst = EntityTypeEnum() if __name__ == '__main__': unittest.main() diff --git a/test/test_event.py b/test/test_event.py index 7f8043a..bf67a62 100644 --- a/test/test_event.py +++ b/test/test_event.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.event import Event - class TestEvent(unittest.TestCase): """Event unit test stubs""" @@ -25,12 +26,43 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Event: + """Test Event + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Event` + """ + model = Event() + if include_optional: + return Event( + event_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + actor_user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + actor_name = None, + actor_email = 'john@acmecorp.com', + event_type = 'USERS_CREATED', + created_at = '2022-01-23T04:56:07Z', + actor_ip_address = '255.255.255.0', + api_token_name = 'My API Token', + api_token_preview = '**************************M_g==', + sub_events = [ + {sub_event_type=USERS_CREATED, user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, user_name=John Smith, resource_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, resource_name=Figma} + ] + ) + else: + return Event( + event_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + actor_user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + actor_name = None, + event_type = 'USERS_CREATED', + created_at = '2022-01-23T04:56:07Z', + ) + """ + def testEvent(self): """Test Event""" - # FIXME: construct object with mandatory attributes with example values - # model = Event() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_events_api.py b/test/test_events_api.py index 1ded6e9..45ee487 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -1,30 +1,33 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 import unittest -import opal_security -from opal_security.api.events_api import EventsApi # noqa: E501 +from opal_security.api.events_api import EventsApi class TestEventsApi(unittest.TestCase): """EventsApi unit test stubs""" - def setUp(self): - self.api = EventsApi() # noqa: E501 + def setUp(self) -> None: + self.api = EventsApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_events(self): + def test_events(self) -> None: """Test case for events """ diff --git a/test/test_group.py b/test/test_group.py index 60f6ce1..5916e97 100644 --- a/test/test_group.py +++ b/test/test_group.py @@ -1,25 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.group_type_enum import GroupTypeEnum -from opal_security.models.visibility_type_enum import VisibilityTypeEnum -globals()['GroupTypeEnum'] = GroupTypeEnum -globals()['VisibilityTypeEnum'] = VisibilityTypeEnum from opal_security.models.group import Group - class TestGroup(unittest.TestCase): """Group unit test stubs""" @@ -29,12 +26,83 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Group: + """Test Group + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Group` + """ + model = Group() + if include_optional: + return Group( + group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + app_id = 'b5a5ca27-0ea3-4d86-9199-2126d57d1fbd', + name = 'API Group', + description = 'This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases.', + admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', + group_leader_user_ids = [ + '' + ], + remote_id = 'google-group-group:037m2jsg218b2wb', + remote_name = 'Finance team', + group_type = 'OPAL_GROUP', + max_duration = 120, + recommended_duration = 120, + extensions_duration_in_minutes = 120, + require_manager_approval = False, + require_support_ticket = False, + require_mfa_to_approve = False, + require_mfa_to_request = False, + auto_approval = False, + request_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + configuration_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + group_binding_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + is_requestable = False, + request_configurations = [], + request_configuration_list = [], + metadata = '{ "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } }', + remote_info = opal_security.models.group_remote_info.GroupRemoteInfo( + active_directory_group = opal_security.models.group_remote_info_active_directory_group.GroupRemoteInfo_active_directory_group( + group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + github_team = opal_security.models.group_remote_info_github_team.GroupRemoteInfo_github_team( + team_id = '898931321', + team_slug = 'opal-security', ), + gitlab_group = opal_security.models.group_remote_info_gitlab_group.GroupRemoteInfo_gitlab_group( + group_id = '898931321', ), + google_group = opal_security.models.group_remote_info_google_group.GroupRemoteInfo_google_group( + group_id = '1y6w882181n7sg', ), + ldap_group = opal_security.models.group_remote_info_ldap_group.GroupRemoteInfo_ldap_group( + group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + okta_group = opal_security.models.group_remote_info_okta_group.GroupRemoteInfo_okta_group( + group_id = '00gjs33pe8rtmRrp3rd6', ), + duo_group = opal_security.models.group_remote_info_duo_group.GroupRemoteInfo_duo_group( + group_id = 'DSRD8W89B9DNDBY4RHAC', ), + azure_ad_security_group = opal_security.models.group_remote_info_azure_ad_security_group.GroupRemoteInfo_azure_ad_security_group( + group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + azure_ad_microsoft_365_group = opal_security.models.group_remote_info_azure_ad_microsoft_365_group.GroupRemoteInfo_azure_ad_microsoft_365_group( + group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + snowflake_role = opal_security.models.group_remote_info_snowflake_role.GroupRemoteInfo_snowflake_role( + role_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + okta_group_rule = opal_security.models.group_remote_info_okta_group_rule.GroupRemoteInfo_okta_group_rule( + rule_id = '0pr3f7zMZZHPgUoWO0g4', ), + workday_user_security_group = opal_security.models.group_remote_info_workday_user_security_group.GroupRemoteInfo_workday_user_security_group( + group_id = '123abc456def', ), ), + custom_request_notification = 'Check your email to register your account.', + risk_sensitivity = 'UNKNOWN', + risk_sensitivity_override = 'UNKNOWN', + last_successful_sync = {id=7c86c85d-0651-43e2-a748-d69d658418e8, completed_at=2023-10-01T12:00:00Z} + ) + else: + return Group( + group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + ) + """ + def testGroup(self): """Test Group""" - # FIXME: construct object with mandatory attributes with example values - # model = Group() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_group_access_level.py b/test/test_group_access_level.py index b3a31fa..26fb2b0 100644 --- a/test/test_group_access_level.py +++ b/test/test_group_access_level.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupAccessLevel: """Test GroupAccessLevel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupAccessLevel` diff --git a/test/test_group_binding.py b/test/test_group_binding.py index a20f6fe..8de42b0 100644 --- a/test/test_group_binding.py +++ b/test/test_group_binding.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupBinding: """Test GroupBinding - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupBinding` @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> GroupBinding: created_at = '2022-01-23T04:56:07Z', source_group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', groups = [ - {"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","group_type":"OKTA_GROUP"} + {group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, group_type=OKTA_GROUP} ] ) else: @@ -51,7 +51,7 @@ def make_instance(self, include_optional) -> GroupBinding: created_at = '2022-01-23T04:56:07Z', source_group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', groups = [ - {"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","group_type":"OKTA_GROUP"} + {group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, group_type=OKTA_GROUP} ], ) """ diff --git a/test/test_group_binding_group.py b/test/test_group_binding_group.py index d702258..1d98c4c 100644 --- a/test/test_group_binding_group.py +++ b/test/test_group_binding_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupBindingGroup: """Test GroupBindingGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupBindingGroup` diff --git a/test/test_group_bindings_api.py b/test/test_group_bindings_api.py index eae1485..8166a61 100644 --- a/test/test_group_bindings_api.py +++ b/test/test_group_bindings_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -42,12 +42,14 @@ def test_delete_group_binding(self) -> None: def test_get_group_binding(self) -> None: """Test case for get_group_binding + Get group binding by ID """ pass def test_get_group_bindings(self) -> None: """Test case for get_group_bindings + Get group bindings """ pass diff --git a/test/test_group_remote_info.py b/test/test_group_remote_info.py index 2f92fe5..de19b7a 100644 --- a/test/test_group_remote_info.py +++ b/test/test_group_remote_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfo: """Test GroupRemoteInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfo` @@ -36,25 +36,31 @@ def make_instance(self, include_optional) -> GroupRemoteInfo: model = GroupRemoteInfo() if include_optional: return GroupRemoteInfo( - active_directory_group = opal.models.group_remote_info_active_directory_group.GroupRemoteInfo_active_directory_group( + active_directory_group = opal_security.models.group_remote_info_active_directory_group.GroupRemoteInfo_active_directory_group( group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), - github_team = opal.models.group_remote_info_github_team.GroupRemoteInfo_github_team( + github_team = opal_security.models.group_remote_info_github_team.GroupRemoteInfo_github_team( team_id = '898931321', team_slug = 'opal-security', ), - gitlab_group = opal.models.group_remote_info_gitlab_group.GroupRemoteInfo_gitlab_group( + gitlab_group = opal_security.models.group_remote_info_gitlab_group.GroupRemoteInfo_gitlab_group( group_id = '898931321', ), - google_group = opal.models.group_remote_info_google_group.GroupRemoteInfo_google_group( + google_group = opal_security.models.group_remote_info_google_group.GroupRemoteInfo_google_group( group_id = '1y6w882181n7sg', ), - ldap_group = opal.models.group_remote_info_ldap_group.GroupRemoteInfo_ldap_group( + ldap_group = opal_security.models.group_remote_info_ldap_group.GroupRemoteInfo_ldap_group( group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), - okta_group = opal.models.group_remote_info_okta_group.GroupRemoteInfo_okta_group( + okta_group = opal_security.models.group_remote_info_okta_group.GroupRemoteInfo_okta_group( group_id = '00gjs33pe8rtmRrp3rd6', ), - duo_group = opal.models.group_remote_info_duo_group.GroupRemoteInfo_duo_group( + duo_group = opal_security.models.group_remote_info_duo_group.GroupRemoteInfo_duo_group( group_id = 'DSRD8W89B9DNDBY4RHAC', ), - azure_ad_security_group = opal.models.group_remote_info_azure_ad_security_group.GroupRemoteInfo_azure_ad_security_group( + azure_ad_security_group = opal_security.models.group_remote_info_azure_ad_security_group.GroupRemoteInfo_azure_ad_security_group( group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), - azure_ad_microsoft_365_group = opal.models.group_remote_info_azure_ad_microsoft_365_group.GroupRemoteInfo_azure_ad_microsoft_365_group( - group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ) + azure_ad_microsoft_365_group = opal_security.models.group_remote_info_azure_ad_microsoft_365_group.GroupRemoteInfo_azure_ad_microsoft_365_group( + group_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + snowflake_role = opal_security.models.group_remote_info_snowflake_role.GroupRemoteInfo_snowflake_role( + role_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', ), + okta_group_rule = opal_security.models.group_remote_info_okta_group_rule.GroupRemoteInfo_okta_group_rule( + rule_id = '0pr3f7zMZZHPgUoWO0g4', ), + workday_user_security_group = opal_security.models.group_remote_info_workday_user_security_group.GroupRemoteInfo_workday_user_security_group( + group_id = '123abc456def', ) ) else: return GroupRemoteInfo( diff --git a/test/test_group_remote_info_active_directory_group.py b/test/test_group_remote_info_active_directory_group.py index 5ad7fec..cbff31a 100644 --- a/test/test_group_remote_info_active_directory_group.py +++ b/test/test_group_remote_info_active_directory_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoActiveDirectoryGroup: """Test GroupRemoteInfoActiveDirectoryGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoActiveDirectoryGroup` diff --git a/test/test_group_remote_info_azure_ad_microsoft365_group.py b/test/test_group_remote_info_azure_ad_microsoft365_group.py index 566db53..b6d37f8 100644 --- a/test/test_group_remote_info_azure_ad_microsoft365_group.py +++ b/test/test_group_remote_info_azure_ad_microsoft365_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoAzureAdMicrosoft365Group: """Test GroupRemoteInfoAzureAdMicrosoft365Group - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoAzureAdMicrosoft365Group` diff --git a/test/test_group_remote_info_azure_ad_security_group.py b/test/test_group_remote_info_azure_ad_security_group.py index 64a7d02..04b9b91 100644 --- a/test/test_group_remote_info_azure_ad_security_group.py +++ b/test/test_group_remote_info_azure_ad_security_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoAzureAdSecurityGroup: """Test GroupRemoteInfoAzureAdSecurityGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoAzureAdSecurityGroup` diff --git a/test/test_group_remote_info_duo_group.py b/test/test_group_remote_info_duo_group.py index 7b4d80a..cf29171 100644 --- a/test/test_group_remote_info_duo_group.py +++ b/test/test_group_remote_info_duo_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoDuoGroup: """Test GroupRemoteInfoDuoGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoDuoGroup` diff --git a/test/test_group_remote_info_github_team.py b/test/test_group_remote_info_github_team.py index 8ba01a4..e95184a 100644 --- a/test/test_group_remote_info_github_team.py +++ b/test/test_group_remote_info_github_team.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoGithubTeam: """Test GroupRemoteInfoGithubTeam - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoGithubTeam` diff --git a/test/test_group_remote_info_gitlab_group.py b/test/test_group_remote_info_gitlab_group.py index 9a01854..b556d98 100644 --- a/test/test_group_remote_info_gitlab_group.py +++ b/test/test_group_remote_info_gitlab_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoGitlabGroup: """Test GroupRemoteInfoGitlabGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoGitlabGroup` diff --git a/test/test_group_remote_info_google_group.py b/test/test_group_remote_info_google_group.py index 691d5e3..5970652 100644 --- a/test/test_group_remote_info_google_group.py +++ b/test/test_group_remote_info_google_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoGoogleGroup: """Test GroupRemoteInfoGoogleGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoGoogleGroup` diff --git a/test/test_group_remote_info_ldap_group.py b/test/test_group_remote_info_ldap_group.py index 0df4470..b0c7149 100644 --- a/test/test_group_remote_info_ldap_group.py +++ b/test/test_group_remote_info_ldap_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoLdapGroup: """Test GroupRemoteInfoLdapGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoLdapGroup` diff --git a/test/test_group_remote_info_okta_group.py b/test/test_group_remote_info_okta_group.py index 74106a4..f3ce9d2 100644 --- a/test/test_group_remote_info_okta_group.py +++ b/test/test_group_remote_info_okta_group.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupRemoteInfoOktaGroup: """Test GroupRemoteInfoOktaGroup - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupRemoteInfoOktaGroup` diff --git a/test/test_group_resource.py b/test/test_group_resource.py index 642aaab..496137f 100644 --- a/test/test_group_resource.py +++ b/test/test_group_resource.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupResource: """Test GroupResource - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupResource` @@ -36,15 +36,15 @@ def make_instance(self, include_optional) -> GroupResource: model = GroupResource() if include_optional: return GroupResource( - group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + group_id = 'f454d283-ca87-4a87-bdbb-df212eca5353', resource_id = 'b5a5ca27-0ea3-4d86-9199-2126d57d1fbd', - access_level = {"access_level_name":"AdminRole","access_level_remote_id":"arn:aws:iam::590304332660:role/AdministratorAccess"} + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess} ) else: return GroupResource( - group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + group_id = 'f454d283-ca87-4a87-bdbb-df212eca5353', resource_id = 'b5a5ca27-0ea3-4d86-9199-2126d57d1fbd', - access_level = {"access_level_name":"AdminRole","access_level_remote_id":"arn:aws:iam::590304332660:role/AdministratorAccess"}, + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, ) """ diff --git a/test/test_group_resource_list.py b/test/test_group_resource_list.py index 72d7f09..966aac6 100644 --- a/test/test_group_resource_list.py +++ b/test/test_group_resource_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupResourceList: """Test GroupResourceList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupResourceList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> GroupResourceList: if include_optional: return GroupResourceList( group_resources = [ - {"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","resource_id":"b5a5ca27-0ea3-4d86-9199-2126d57d1fbd","access_level_remote_id":"write"} + {group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, resource_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, access_level_remote_id=write} ] ) else: return GroupResourceList( group_resources = [ - {"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","resource_id":"b5a5ca27-0ea3-4d86-9199-2126d57d1fbd","access_level_remote_id":"write"} + {group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, resource_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, access_level_remote_id=write} ], ) """ diff --git a/test/test_group_type_enum.py b/test/test_group_type_enum.py index 110fa05..a75f6b0 100644 --- a/test/test_group_type_enum.py +++ b/test/test_group_type_enum.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.group_type_enum import GroupTypeEnum - class TestGroupTypeEnum(unittest.TestCase): """GroupTypeEnum unit test stubs""" @@ -27,10 +28,7 @@ def tearDown(self): def testGroupTypeEnum(self): """Test GroupTypeEnum""" - # FIXME: construct object with mandatory attributes with example values - # model = GroupTypeEnum() # noqa: E501 - pass - + # inst = GroupTypeEnum() if __name__ == '__main__': unittest.main() diff --git a/test/test_group_user.py b/test/test_group_user.py index 6aa30f8..98837a0 100644 --- a/test/test_group_user.py +++ b/test/test_group_user.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupUser: """Test GroupUser - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupUser` @@ -37,19 +37,24 @@ def make_instance(self, include_optional) -> GroupUser: if include_optional: return GroupUser( group_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + group_name = 'API Group', + description = 'Group required to request API's', user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', - access_level = {"access_level_name":"Developer","access_level_remote_id":20}, + access_level = {access_level_name=Developer, access_level_remote_id=20}, full_name = 'Jake Barnes', email = 'jake@company.dev', - expiration_date = '2022-01-23T04:56:07Z' + expiration_date = '2022-01-23T04:56:07Z', + propagation_status = opal_security.models.propagation_status.PropagationStatus( + status = '[SUCCESS]', ) ) else: return GroupUser( group_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + group_name = 'API Group', + description = 'Group required to request API's', user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', full_name = 'Jake Barnes', email = 'jake@company.dev', - expiration_date = '2022-01-23T04:56:07Z', ) """ diff --git a/test/test_group_user_list.py b/test/test_group_user_list.py index bc321bc..ad7356b 100644 --- a/test/test_group_user_list.py +++ b/test/test_group_user_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> GroupUserList: """Test GroupUserList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupUserList` @@ -37,8 +37,10 @@ def make_instance(self, include_optional) -> GroupUserList: if include_optional: return GroupUserList( results = [ - {"full_name":"Jake Barnes","user_id":"29827fb8-f2dd-4e80-9576-28e31e9934ac","group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b3","expiration_date":"2022-01-23T04:56:07Z","email":"jake@company.dev"} - ] + {full_name=Jake Barnes, user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3, expiration_date=2022-01-23T04:56:07Z, email=jake@company.dev} + ], + next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', + previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ' ) else: return GroupUserList( diff --git a/test/test_groups_api.py b/test/test_groups_api.py index 5d9409e..0b6e86e 100644 --- a/test/test_groups_api.py +++ b/test/test_groups_api.py @@ -1,78 +1,199 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 import unittest -import opal_security -from opal_security.api.groups_api import GroupsApi # noqa: E501 +from opal_security.api.groups_api import GroupsApi class TestGroupsApi(unittest.TestCase): """GroupsApi unit test stubs""" - def setUp(self): - self.api = GroupsApi() # noqa: E501 + def setUp(self) -> None: + self.api = GroupsApi() + + def tearDown(self) -> None: + pass + + def test_add_group_containing_group(self) -> None: + """Test case for add_group_containing_group + + """ + pass + + def test_add_group_resource(self) -> None: + """Test case for add_group_resource - def tearDown(self): + """ + pass + + def test_add_group_user(self) -> None: + """Test case for add_group_user + + """ pass - def test_convert_group(self): - """Test case for convert_group + def test_create_group(self) -> None: + """Test case for create_group """ pass - def test_delete_group(self): + def test_delete_group(self) -> None: """Test case for delete_group """ pass - def test_get_group_message_channels(self): + def test_delete_group_user(self) -> None: + """Test case for delete_group_user + + """ + pass + + def test_get_group(self) -> None: + """Test case for get_group + + Get group by ID + """ + pass + + def test_get_group_containing_group(self) -> None: + """Test case for get_group_containing_group + + Get nested group by ID + """ + pass + + def test_get_group_containing_groups(self) -> None: + """Test case for get_group_containing_groups + + Get nested groups + """ + pass + + def test_get_group_message_channels(self) -> None: """Test case for get_group_message_channels """ pass - def test_get_group_reviewers(self): + def test_get_group_on_call_schedules(self) -> None: + """Test case for get_group_on_call_schedules + + """ + pass + + def test_get_group_resources(self) -> None: + """Test case for get_group_resources + + """ + pass + + def test_get_group_reviewer_stages(self) -> None: + """Test case for get_group_reviewer_stages + + """ + pass + + def test_get_group_reviewers(self) -> None: """Test case for get_group_reviewers """ pass - def test_get_group_tags(self): + def test_get_group_tags(self) -> None: """Test case for get_group_tags """ pass - def test_get_groups(self): + def test_get_group_users(self) -> None: + """Test case for get_group_users + + """ + pass + + def test_get_group_visibility(self) -> None: + """Test case for get_group_visibility + + """ + pass + + def test_get_groups(self) -> None: """Test case for get_groups + Get groups + """ + pass + + def test_get_user_groups(self) -> None: + """Test case for get_user_groups + """ pass - def test_set_group_message_channels(self): + def test_remove_group_containing_group(self) -> None: + """Test case for remove_group_containing_group + + """ + pass + + def test_set_group_message_channels(self) -> None: """Test case for set_group_message_channels """ pass - def test_set_group_reviewers(self): + def test_set_group_on_call_schedules(self) -> None: + """Test case for set_group_on_call_schedules + + """ + pass + + def test_set_group_resources(self) -> None: + """Test case for set_group_resources + + """ + pass + + def test_set_group_reviewer_stages(self) -> None: + """Test case for set_group_reviewer_stages + + """ + pass + + def test_set_group_reviewers(self) -> None: """Test case for set_group_reviewers """ pass - def test_update_groups(self): + def test_set_group_visibility(self) -> None: + """Test case for set_group_visibility + + """ + pass + + def test_update_group_user(self) -> None: + """Test case for update_group_user + + """ + pass + + def test_update_groups(self) -> None: """Test case for update_groups """ diff --git a/test/test_idp_group_mapping.py b/test/test_idp_group_mapping.py index fe7d838..7c64a27 100644 --- a/test/test_idp_group_mapping.py +++ b/test/test_idp_group_mapping.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -36,18 +36,13 @@ def make_instance(self, include_optional) -> IdpGroupMapping: model = IdpGroupMapping() if include_optional: return IdpGroupMapping( - id = '7870617d-e72a-47f5-a84c-693817ab4567', - organization_id = '1520617d-e72a-47f5-a84c-693817ab48ad2', - app_resource_id = '6f99639b-7928-4043-8184-47cbc6766145', + app_resource_id = '1520617d-e72a-47f5-a84c-693817ab48ad2', group_id = '6f99639b-7928-4043-8184-47cbc6766145', alias = 'finance-team', hidden_from_end_user = False ) else: return IdpGroupMapping( - id = '7870617d-e72a-47f5-a84c-693817ab4567', - organization_id = '1520617d-e72a-47f5-a84c-693817ab48ad2', - app_resource_id = '6f99639b-7928-4043-8184-47cbc6766145', group_id = '6f99639b-7928-4043-8184-47cbc6766145', hidden_from_end_user = False, ) diff --git a/test/test_idp_group_mapping_list.py b/test/test_idp_group_mapping_list.py index 0afbf99..4fa71a6 100644 --- a/test/test_idp_group_mapping_list.py +++ b/test/test_idp_group_mapping_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> IdpGroupMappingList: model = IdpGroupMappingList() if include_optional: return IdpGroupMappingList( - idp_group_mappings = [ - {id=7870617d-e72a-47f5-a84c-693817ab4567, organization_id=1520617d-e72a-47f5-a84c-693817ab48ad2, app_resource_id=6f99639b-7928-4043-8184-47cbc6766145, group_id=6f99639b-7928-4043-8184-47cbc6766145, alias=finance-team, hidden_from_end_user=false} + mappings = [ + {app_resource_id=1520617d-e72a-47f5-a84c-693817ab48ad2, group_id=6f99639b-7928-4043-8184-47cbc6766145, alias=finance-team, hidden_from_end_user=false} ] ) else: return IdpGroupMappingList( - idp_group_mappings = [ - {id=7870617d-e72a-47f5-a84c-693817ab4567, organization_id=1520617d-e72a-47f5-a84c-693817ab48ad2, app_resource_id=6f99639b-7928-4043-8184-47cbc6766145, group_id=6f99639b-7928-4043-8184-47cbc6766145, alias=finance-team, hidden_from_end_user=false} + mappings = [ + {app_resource_id=1520617d-e72a-47f5-a84c-693817ab48ad2, group_id=6f99639b-7928-4043-8184-47cbc6766145, alias=finance-team, hidden_from_end_user=false} ], ) """ diff --git a/test/test_idp_group_mappings_api.py b/test/test_idp_group_mappings_api.py index dbe6fc7..51bfa1a 100644 --- a/test/test_idp_group_mappings_api.py +++ b/test/test_idp_group_mappings_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -27,8 +27,20 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_delete_idp_group_mappings_by_app_resource_id_group_id(self) -> None: - """Test case for delete_idp_group_mappings_by_app_resource_id_group_id + def test_create_idp_group_mapping(self) -> None: + """Test case for create_idp_group_mapping + + """ + pass + + def test_delete_idp_group_mappings(self) -> None: + """Test case for delete_idp_group_mappings + + """ + pass + + def test_get_idp_group_mapping(self) -> None: + """Test case for get_idp_group_mapping """ pass diff --git a/test/test_message_channel.py b/test/test_message_channel.py index 5c0c700..c6e7c87 100644 --- a/test/test_message_channel.py +++ b/test/test_message_channel.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.message_channel_provider_enum import MessageChannelProviderEnum -globals()['MessageChannelProviderEnum'] = MessageChannelProviderEnum from opal_security.models.message_channel import MessageChannel - class TestMessageChannel(unittest.TestCase): """MessageChannel unit test stubs""" @@ -27,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> MessageChannel: + """Test MessageChannel + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MessageChannel` + """ + model = MessageChannel() + if include_optional: + return MessageChannel( + message_channel_id = '6670617d-e72a-47f5-a84c-693817ab4860', + third_party_provider = 'SLACK', + remote_id = 'C03FJR97276', + name = 'api-team-audit-channel', + is_private = False + ) + else: + return MessageChannel( + message_channel_id = '6670617d-e72a-47f5-a84c-693817ab4860', + ) + """ + def testMessageChannel(self): """Test MessageChannel""" - # FIXME: construct object with mandatory attributes with example values - # model = MessageChannel() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_message_channel_id_list.py b/test/test_message_channel_id_list.py index 865bf84..d270728 100644 --- a/test/test_message_channel_id_list.py +++ b/test/test_message_channel_id_list.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.message_channel_id_list import MessageChannelIDList - class TestMessageChannelIDList(unittest.TestCase): """MessageChannelIDList unit test stubs""" @@ -25,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> MessageChannelIDList: + """Test MessageChannelIDList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MessageChannelIDList` + """ + model = MessageChannelIDList() + if include_optional: + return MessageChannelIDList( + message_channel_ids = [ + '' + ] + ) + else: + return MessageChannelIDList( + message_channel_ids = [ + '' + ], + ) + """ + def testMessageChannelIDList(self): """Test MessageChannelIDList""" - # FIXME: construct object with mandatory attributes with example values - # model = MessageChannelIDList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_message_channel_list.py b/test/test_message_channel_list.py index c9c3f70..90a22d1 100644 --- a/test/test_message_channel_list.py +++ b/test/test_message_channel_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.message_channel import MessageChannel -globals()['MessageChannel'] = MessageChannel from opal_security.models.message_channel_list import MessageChannelList - class TestMessageChannelList(unittest.TestCase): """MessageChannelList unit test stubs""" @@ -27,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> MessageChannelList: + """Test MessageChannelList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MessageChannelList` + """ + model = MessageChannelList() + if include_optional: + return MessageChannelList( + channels = [ + {message_channel_id=6670617d-e72a-47f5-a84c-693817ab4860, third_party_provider=SLACK, remote_id=C03FJR97276, name=api-team-audit-channel, is_private=false} + ] + ) + else: + return MessageChannelList( + channels = [ + {message_channel_id=6670617d-e72a-47f5-a84c-693817ab4860, third_party_provider=SLACK, remote_id=C03FJR97276, name=api-team-audit-channel, is_private=false} + ], + ) + """ + def testMessageChannelList(self): """Test MessageChannelList""" - # FIXME: construct object with mandatory attributes with example values - # model = MessageChannelList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_message_channel_provider_enum.py b/test/test_message_channel_provider_enum.py index b5bc8d7..d55e5fa 100644 --- a/test/test_message_channel_provider_enum.py +++ b/test/test_message_channel_provider_enum.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.message_channel_provider_enum import MessageChannelProviderEnum - class TestMessageChannelProviderEnum(unittest.TestCase): """MessageChannelProviderEnum unit test stubs""" @@ -27,10 +28,7 @@ def tearDown(self): def testMessageChannelProviderEnum(self): """Test MessageChannelProviderEnum""" - # FIXME: construct object with mandatory attributes with example values - # model = MessageChannelProviderEnum() # noqa: E501 - pass - + # inst = MessageChannelProviderEnum() if __name__ == '__main__': unittest.main() diff --git a/test/test_message_channels_api.py b/test/test_message_channels_api.py index 3ae2092..a88077e 100644 --- a/test/test_message_channels_api.py +++ b/test/test_message_channels_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -36,12 +36,14 @@ def test_create_message_channel(self) -> None: def test_get_message_channel(self) -> None: """Test case for get_message_channel + Get message channel by ID """ pass def test_get_message_channels(self) -> None: """Test case for get_message_channels + Get message channels """ pass diff --git a/test/test_non_human_identities_api.py b/test/test_non_human_identities_api.py index 7a3b324..a8e0ebf 100644 --- a/test/test_non_human_identities_api.py +++ b/test/test_non_human_identities_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_on_call_schedule.py b/test/test_on_call_schedule.py index 71ad388..8bcbcde 100644 --- a/test/test_on_call_schedule.py +++ b/test/test_on_call_schedule.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> OnCallSchedule: """Test OnCallSchedule - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OnCallSchedule` diff --git a/test/test_on_call_schedule_id_list.py b/test/test_on_call_schedule_id_list.py index 0d19a8b..2f5cad5 100644 --- a/test/test_on_call_schedule_id_list.py +++ b/test/test_on_call_schedule_id_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> OnCallScheduleIDList: """Test OnCallScheduleIDList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OnCallScheduleIDList` diff --git a/test/test_on_call_schedule_list.py b/test/test_on_call_schedule_list.py index 78fbe94..e9acc5b 100644 --- a/test/test_on_call_schedule_list.py +++ b/test/test_on_call_schedule_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> OnCallScheduleList: """Test OnCallScheduleList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `OnCallScheduleList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> OnCallScheduleList: if include_optional: return OnCallScheduleList( on_call_schedules = [ - {"on_call_schedule_id":"50d5e9f6-f23f-4d5a-ae91-b2640cf3975e","third_party_provider":"PAGER_DUTY","remote_id":"P7OWH2R","name":"Customer Support On-Call"} + {on_call_schedule_id=50d5e9f6-f23f-4d5a-ae91-b2640cf3975e, third_party_provider=PAGER_DUTY, remote_id=P7OWH2R, name=Customer Support On-Call} ] ) else: return OnCallScheduleList( on_call_schedules = [ - {"on_call_schedule_id":"50d5e9f6-f23f-4d5a-ae91-b2640cf3975e","third_party_provider":"PAGER_DUTY","remote_id":"P7OWH2R","name":"Customer Support On-Call"} + {on_call_schedule_id=50d5e9f6-f23f-4d5a-ae91-b2640cf3975e, third_party_provider=PAGER_DUTY, remote_id=P7OWH2R, name=Customer Support On-Call} ], ) """ diff --git a/test/test_on_call_schedule_provider_enum.py b/test/test_on_call_schedule_provider_enum.py index 5e524e7..2b561e4 100644 --- a/test/test_on_call_schedule_provider_enum.py +++ b/test/test_on_call_schedule_provider_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_on_call_schedules_api.py b/test/test_on_call_schedules_api.py index dc240db..b6f630b 100644 --- a/test/test_on_call_schedules_api.py +++ b/test/test_on_call_schedules_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -36,12 +36,14 @@ def test_create_on_call_schedule(self) -> None: def test_get_on_call_schedule(self) -> None: """Test case for get_on_call_schedule + Get on call schedule by ID """ pass def test_get_on_call_schedules(self) -> None: """Test case for get_on_call_schedules + Get on call schedules """ pass diff --git a/test/test_owner.py b/test/test_owner.py index c62de1b..bad9cd1 100644 --- a/test/test_owner.py +++ b/test/test_owner.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Owner: """Test Owner - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Owner` diff --git a/test/test_owners_api.py b/test/test_owners_api.py index 7f5ad51..d6a4666 100644 --- a/test/test_owners_api.py +++ b/test/test_owners_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -42,6 +42,7 @@ def test_delete_owner(self) -> None: def test_get_owner(self) -> None: """Test case for get_owner + Get owner by ID """ pass @@ -60,6 +61,7 @@ def test_get_owner_users(self) -> None: def test_get_owners(self) -> None: """Test case for get_owners + Get owners """ pass diff --git a/test/test_paginated_assigned_request_list.py b/test/test_paginated_assigned_request_list.py index 0223e8d..921ae06 100644 --- a/test/test_paginated_assigned_request_list.py +++ b/test/test_paginated_assigned_request_list.py @@ -37,14 +37,14 @@ def make_instance(self, include_optional) -> PaginatedAssignedRequestList: if include_optional: return PaginatedAssignedRequestList( requests = [ - {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}} + {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]} ], cursor = '' ) else: return PaginatedAssignedRequestList( requests = [ - {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}} + {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]} ], cursor = '', ) diff --git a/test/test_paginated_bundle_group_list.py b/test/test_paginated_bundle_group_list.py index 57f1892..1d64e7d 100644 --- a/test/test_paginated_bundle_group_list.py +++ b/test/test_paginated_bundle_group_list.py @@ -42,7 +42,9 @@ def make_instance(self, include_optional) -> PaginatedBundleGroupList: bundle_groups = [ opal_security.models.bundle_group.BundleGroup( bundle_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', - group_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', ) + group_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', + access_level_name = 'Read', + access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', ) ] ) else: @@ -50,7 +52,9 @@ def make_instance(self, include_optional) -> PaginatedBundleGroupList: bundle_groups = [ opal_security.models.bundle_group.BundleGroup( bundle_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', - group_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', ) + group_id = 'a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1', + access_level_name = 'Read', + access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', ) ], ) """ diff --git a/test/test_paginated_configuration_template_list.py b/test/test_paginated_configuration_template_list.py index 42ca2df..0317917 100644 --- a/test/test_paginated_configuration_template_list.py +++ b/test/test_paginated_configuration_template_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PaginatedConfigurationTemplateList: """Test PaginatedConfigurationTemplateList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PaginatedConfigurationTemplateList` @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PaginatedConfigurationTemplateList: if include_optional: return PaginatedConfigurationTemplateList( results = [ - {"configuration_template_id":"7c86c85d-0651-43e2-a748-d69d658418e8","admin_owner_id":"7c86c85d-0651-43e2-a748-d69d658418e8","visibility":"private","linked_audit_message_channel_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","member_oncall_schedule_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"break_glass_user_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"require_mfa_to_approve":false,"require_mfa_to_connect":false,"name":"Prod AWS Template"} + {configuration_template_id=7c86c85d-0651-43e2-a748-d69d658418e8, admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, visibility=private, linked_audit_message_channel_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, member_oncall_schedule_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], break_glass_user_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], require_mfa_to_approve=false, require_mfa_to_connect=false, name=Prod AWS Template} ] ) else: diff --git a/test/test_paginated_event_list.py b/test/test_paginated_event_list.py index df74572..36644c8 100644 --- a/test/test_paginated_event_list.py +++ b/test/test_paginated_event_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.event import Event -globals()['Event'] = Event from opal_security.models.paginated_event_list import PaginatedEventList - class TestPaginatedEventList(unittest.TestCase): """PaginatedEventList unit test stubs""" @@ -27,12 +26,31 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> PaginatedEventList: + """Test PaginatedEventList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedEventList` + """ + model = PaginatedEventList() + if include_optional: + return PaginatedEventList( + next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', + previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', + results = [ + {event_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, actor_user_id=1b978423-db0a-4037-a4cf-f79c60cb67b3, created_at=2022-01-23T04:56:07Z, event_type=USERS_CREATED} + ] + ) + else: + return PaginatedEventList( + ) + """ + def testPaginatedEventList(self): """Test PaginatedEventList""" - # FIXME: construct object with mandatory attributes with example values - # model = PaginatedEventList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_paginated_group_bindings_list.py b/test/test_paginated_group_bindings_list.py index 885cf9b..19988f1 100644 --- a/test/test_paginated_group_bindings_list.py +++ b/test/test_paginated_group_bindings_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PaginatedGroupBindingsList: """Test PaginatedGroupBindingsList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PaginatedGroupBindingsList` @@ -39,13 +39,13 @@ def make_instance(self, include_optional) -> PaginatedGroupBindingsList: next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', previous = 'cj1sZXdwd2VycWtJ', results = [ - {"group_binding_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","created_by_id":"99d0b81d-14be-4cf6-bd27-348b4af1d11b","created_at":"2022-01-23T04:56:07Z","source_group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","groups":[{"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","group_type":"OKTA_GROUP"},{"group_id":"99d0b81d-14be-4cf6-bd27-348b4af1d11b","group_type":"AWS_SSO_GROUP"}]} + {group_binding_id=f454d283-ca87-4a8a-bdbb-df212eca5353, created_by_id=99d0b81d-14be-4cf6-bd27-348b4af1d11b, created_at=2022-01-23T04:56:07Z, source_group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, groups=[{group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, group_type=OKTA_GROUP}, {group_id=99d0b81d-14be-4cf6-bd27-348b4af1d11b, group_type=AWS_SSO_GROUP}]} ] ) else: return PaginatedGroupBindingsList( results = [ - {"group_binding_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","created_by_id":"99d0b81d-14be-4cf6-bd27-348b4af1d11b","created_at":"2022-01-23T04:56:07Z","source_group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","groups":[{"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","group_type":"OKTA_GROUP"},{"group_id":"99d0b81d-14be-4cf6-bd27-348b4af1d11b","group_type":"AWS_SSO_GROUP"}]} + {group_binding_id=f454d283-ca87-4a8a-bdbb-df212eca5353, created_by_id=99d0b81d-14be-4cf6-bd27-348b4af1d11b, created_at=2022-01-23T04:56:07Z, source_group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, groups=[{group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, group_type=OKTA_GROUP}, {group_id=99d0b81d-14be-4cf6-bd27-348b4af1d11b, group_type=AWS_SSO_GROUP}]} ], ) """ diff --git a/test/test_paginated_groups_list.py b/test/test_paginated_groups_list.py index 0f1a75f..fb036de 100644 --- a/test/test_paginated_groups_list.py +++ b/test/test_paginated_groups_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.group import Group -globals()['Group'] = Group from opal_security.models.paginated_groups_list import PaginatedGroupsList - class TestPaginatedGroupsList(unittest.TestCase): """PaginatedGroupsList unit test stubs""" @@ -27,12 +26,34 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> PaginatedGroupsList: + """Test PaginatedGroupsList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedGroupsList` + """ + model = PaginatedGroupsList() + if include_optional: + return PaginatedGroupsList( + next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', + previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', + results = [ + {group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, app_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, remote_id=037m2jsg218b2wb, remote_name=Finance Team, description=This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases., admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, max_duration=120, require_manager_approval=false, require_support_ticket=false} + ] + ) + else: + return PaginatedGroupsList( + results = [ + {group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, app_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, remote_id=037m2jsg218b2wb, remote_name=Finance Team, description=This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases., admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, max_duration=120, require_manager_approval=false, require_support_ticket=false} + ], + ) + """ + def testPaginatedGroupsList(self): """Test PaginatedGroupsList""" - # FIXME: construct object with mandatory attributes with example values - # model = PaginatedGroupsList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_paginated_owners_list.py b/test/test_paginated_owners_list.py index 43d2290..2d74fc4 100644 --- a/test/test_paginated_owners_list.py +++ b/test/test_paginated_owners_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PaginatedOwnersList: """Test PaginatedOwnersList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PaginatedOwnersList` @@ -39,13 +39,13 @@ def make_instance(self, include_optional) -> PaginatedOwnersList: next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', results = [ - {"owner_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"API Owner","description":"This owner represents the API team owners.","access_request_escalation_period":120} + {owner_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=API Owner, description=This owner represents the API team owners., access_request_escalation_period=120} ] ) else: return PaginatedOwnersList( results = [ - {"owner_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"API Owner","description":"This owner represents the API team owners.","access_request_escalation_period":120} + {owner_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=API Owner, description=This owner represents the API team owners., access_request_escalation_period=120} ], ) """ diff --git a/test/test_paginated_resources_list.py b/test/test_paginated_resources_list.py index b204cc1..69b2e47 100644 --- a/test/test_paginated_resources_list.py +++ b/test/test_paginated_resources_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.resource import Resource -globals()['Resource'] = Resource from opal_security.models.paginated_resources_list import PaginatedResourcesList - class TestPaginatedResourcesList(unittest.TestCase): """PaginatedResourcesList unit test stubs""" @@ -27,12 +26,34 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> PaginatedResourcesList: + """Test PaginatedResourcesList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedResourcesList` + """ + model = PaginatedResourcesList() + if include_optional: + return PaginatedResourcesList( + next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', + previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', + results = [ + {resource_id=f454d283-ca87-4a8a-bdbb-df212eca5353, app_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, description=This resource represents AWS IAM role "SupportUser"., admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, remote_id=318038399, remote_name=repo-name, max_duration=120, require_manager_approval=false, require_support_ticket=false, parent_resource_id=f454d283-ca67-4a8a-bdbb-df212eca5345, ancestor_resource_ids=[f454d283-ca67-4a8a-bdbb-df212eca5345], descendant_resource_ids=[f454d283-ca67-4a8a-bdbb-df212eca5345]} + ] + ) + else: + return PaginatedResourcesList( + results = [ + {resource_id=f454d283-ca87-4a8a-bdbb-df212eca5353, app_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, description=This resource represents AWS IAM role "SupportUser"., admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, remote_id=318038399, remote_name=repo-name, max_duration=120, require_manager_approval=false, require_support_ticket=false, parent_resource_id=f454d283-ca67-4a8a-bdbb-df212eca5345, ancestor_resource_ids=[f454d283-ca67-4a8a-bdbb-df212eca5345], descendant_resource_ids=[f454d283-ca67-4a8a-bdbb-df212eca5345]} + ], + ) + """ + def testPaginatedResourcesList(self): """Test PaginatedResourcesList""" - # FIXME: construct object with mandatory attributes with example values - # model = PaginatedResourcesList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_paginated_tags_list.py b/test/test_paginated_tags_list.py index d270fcc..e2418fb 100644 --- a/test/test_paginated_tags_list.py +++ b/test/test_paginated_tags_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PaginatedTagsList: """Test PaginatedTagsList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PaginatedTagsList` @@ -39,13 +39,13 @@ def make_instance(self, include_optional) -> PaginatedTagsList: next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', results = [ - {"tag_id":"f290a738-5f9f-43c2-ad67-fa31ff0eb946","created_at":"2022-01-23T04:56:07Z","updated_at":"2022-02-23T01:34:07Z","user_creator_id":"d4a7d928-783e-4599-8ec6-088d635a5bcc","key":"database-name","value":"redis_db"} + {tag_id=f290a738-5f9f-43c2-ad67-fa31ff0eb946, created_at=2022-01-23T04:56:07Z, updated_at=2022-02-23T01:34:07Z, user_creator_id=d4a7d928-783e-4599-8ec6-088d635a5bcc, key=database-name, value=redis_db} ] ) else: return PaginatedTagsList( results = [ - {"tag_id":"f290a738-5f9f-43c2-ad67-fa31ff0eb946","created_at":"2022-01-23T04:56:07Z","updated_at":"2022-02-23T01:34:07Z","user_creator_id":"d4a7d928-783e-4599-8ec6-088d635a5bcc","key":"database-name","value":"redis_db"} + {tag_id=f290a738-5f9f-43c2-ad67-fa31ff0eb946, created_at=2022-01-23T04:56:07Z, updated_at=2022-02-23T01:34:07Z, user_creator_id=d4a7d928-783e-4599-8ec6-088d635a5bcc, key=database-name, value=redis_db} ], ) """ diff --git a/test/test_paginated_uars_list.py b/test/test_paginated_uars_list.py index a3c1b21..7f1035a 100644 --- a/test/test_paginated_uars_list.py +++ b/test/test_paginated_uars_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PaginatedUARsList: """Test PaginatedUARsList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PaginatedUARsList` @@ -39,13 +39,13 @@ def make_instance(self, include_optional) -> PaginatedUARsList: next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', results = [ - {"uar_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"Monthly UAR (July)","send_reviewer_assignment_notification":false,"deadline":"2022-07-14 06:59:59","time_zone":"America/Los_Angeles","self_review_allowed":false,"uar_scope":{"tags":[{"key":"uar_scope","value":"high_priority"}],"names":["demo","api"],"admins":["f454d283-ca87-4a8a-bdbb-df212eca5353","8763d283-ca87-4a8a-bdbb-df212ecab139"]}} + {uar_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=Monthly UAR (July), send_reviewer_assignment_notification=false, deadline=2022-07-14T06:59:59Z, time_zone=America/Los_Angeles, self_review_allowed=false, uar_scope={tags=[{key=uar_scope, value=high_priority}], names=[demo, api], admins=[f454d283-ca87-4a8a-bdbb-df212eca5353, 8763d283-ca87-4a8a-bdbb-df212ecab139]}} ] ) else: return PaginatedUARsList( results = [ - {"uar_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"Monthly UAR (July)","send_reviewer_assignment_notification":false,"deadline":"2022-07-14 06:59:59","time_zone":"America/Los_Angeles","self_review_allowed":false,"uar_scope":{"tags":[{"key":"uar_scope","value":"high_priority"}],"names":["demo","api"],"admins":["f454d283-ca87-4a8a-bdbb-df212eca5353","8763d283-ca87-4a8a-bdbb-df212ecab139"]}} + {uar_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=Monthly UAR (July), send_reviewer_assignment_notification=false, deadline=2022-07-14T06:59:59Z, time_zone=America/Los_Angeles, self_review_allowed=false, uar_scope={tags=[{key=uar_scope, value=high_priority}], names=[demo, api], admins=[f454d283-ca87-4a8a-bdbb-df212eca5353, 8763d283-ca87-4a8a-bdbb-df212ecab139]}} ], ) """ diff --git a/test/test_paginated_users_list.py b/test/test_paginated_users_list.py index 0a0134d..c81196c 100644 --- a/test/test_paginated_users_list.py +++ b/test/test_paginated_users_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PaginatedUsersList: """Test PaginatedUsersList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PaginatedUsersList` @@ -39,13 +39,13 @@ def make_instance(self, include_optional) -> PaginatedUsersList: next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', results = [ - {"user_id":"29827fb8-f2dd-4e80-9576-28e31e9934ac","email":"1b978423-db0a-4037-a4cf-f79c60cb67b3","full_name":"John Doe","first_name":"John","last_name":"Doe","position":"Engineer"} + {user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, email=john.doe@company.dev, full_name=John Doe, first_name=John, last_name=Doe, position=Engineer} ] ) else: return PaginatedUsersList( results = [ - {"user_id":"29827fb8-f2dd-4e80-9576-28e31e9934ac","email":"1b978423-db0a-4037-a4cf-f79c60cb67b3","full_name":"John Doe","first_name":"John","last_name":"Doe","position":"Engineer"} + {user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, email=john.doe@company.dev, full_name=John Doe, first_name=John, last_name=Doe, position=Engineer} ], ) """ diff --git a/test/test_request.py b/test/test_request.py index 422b808..3ad9eb6 100644 --- a/test/test_request.py +++ b/test/test_request.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Request: """Test Request - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Request` @@ -37,31 +37,63 @@ def make_instance(self, include_optional) -> Request: if include_optional: return Request( id = '7c86c85d-0651-43e2-a748-d69d658418e8', - created_at = '2021-01-06T20:00Z', - updated_at = '2021-01-06T20:00Z', + created_at = '2021-01-06T20:00:00Z', + updated_at = '2021-01-06T20:00:00Z', requester_id = '7c86c85d-0651-43e2-a748-d69d658418e8', target_user_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - status = 'pending', + target_group_id = '7c86c85d-0651-43e2-a748-d69d658418e8', + status = pending, reason = 'I need access to the AWS account.', duration_minutes = 120, requested_items_list = [ - {"resource_id":null,"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","access_level_name":"admin","access_level_remote_id":"arn:aws:iam::490306337630:role/SupportUser","name":"Engineering Team"} + {resource_id=null, group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, access_level_name=admin, access_level_remote_id=arn:aws:iam::490306337630:role/SupportUser, name=Engineering Team} ], custom_fields_responses = [ - opal.models.request_custom_field_response.RequestCustomFieldResponse( + opal_security.models.request_custom_field_response.RequestCustomFieldResponse( field_name = '', - field_type = 'SHORT_TEXT', + field_type = SHORT_TEXT, field_value = null, ) + ], + stages = opal_security.models.request_item_stages.RequestItemStages( + requested_role_name = '', + requested_item_name = '', + stages = [ + opal_security.models.request_stage.RequestStage( + stage = 56, + operator = 'AND', + reviewers = [ + opal_security.models.request_reviewer.RequestReviewer( + id = '', + full_name = 'Jake Barnes', + status = 'PENDING', ) + ], ) + ], ), + reviewer_stages = [ + opal_security.models.request_reviewer_stages.RequestReviewerStages( + access_level_name = 'admin', + access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', + item_name = '', + item_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + stages = [ + opal_security.models.request_stage.RequestStage( + stage = 56, + operator = 'AND', + reviewers = [ + opal_security.models.request_reviewer.RequestReviewer( + id = '', + full_name = 'Jake Barnes', + status = 'PENDING', ) + ], ) + ], ) ] ) else: return Request( id = '7c86c85d-0651-43e2-a748-d69d658418e8', - created_at = '2021-01-06T20:00Z', - updated_at = '2021-01-06T20:00Z', + created_at = '2021-01-06T20:00:00Z', + updated_at = '2021-01-06T20:00:00Z', requester_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - target_user_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - status = 'pending', + status = pending, reason = 'I need access to the AWS account.', ) """ diff --git a/test/test_request_configuration.py b/test/test_request_configuration.py index c5db7f4..b86eb34 100644 --- a/test/test_request_configuration.py +++ b/test/test_request_configuration.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RequestConfiguration: """Test RequestConfiguration - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RequestConfiguration` @@ -36,16 +36,17 @@ def make_instance(self, include_optional) -> RequestConfiguration: model = RequestConfiguration() if include_optional: return RequestConfiguration( - condition = {"group_ids":["1b978423-db0a-4037-a4cf-f79c60cb67b3"]}, + condition = {group_ids=[1b978423-db0a-4037-a4cf-f79c60cb67b3]}, allow_requests = True, auto_approval = False, require_mfa_to_request = False, max_duration_minutes = 120, recommended_duration_minutes = 120, require_support_ticket = False, + extensions_duration_in_minutes = 120, request_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', reviewer_stages = [ - {"owner_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]} + {owner_ids=[7870617d-e72a-47f5-a84c-693817ab4567, 1520617d-e72a-47f5-a84c-693817ab48ad2]} ], priority = 1 ) @@ -55,9 +56,6 @@ def make_instance(self, include_optional) -> RequestConfiguration: auto_approval = False, require_mfa_to_request = False, require_support_ticket = False, - reviewer_stages = [ - {"owner_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]} - ], priority = 1, ) """ diff --git a/test/test_request_connection.py b/test/test_request_connection.py index 3890a86..d4aa592 100644 --- a/test/test_request_connection.py +++ b/test/test_request_connection.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> RequestConnection: return RequestConnection( edges = [ opal_security.models.request_edge.RequestEdge( - node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}}, + node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]}, cursor = '', ) ], page_info = opal_security.models.page_info.PageInfo( @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> RequestConnection: return RequestConnection( edges = [ opal_security.models.request_edge.RequestEdge( - node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}}, + node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]}, cursor = '', ) ], page_info = opal_security.models.page_info.PageInfo( diff --git a/test/test_request_custom_field_response.py b/test/test_request_custom_field_response.py index 9648853..b0305c3 100644 --- a/test/test_request_custom_field_response.py +++ b/test/test_request_custom_field_response.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RequestCustomFieldResponse: """Test RequestCustomFieldResponse - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RequestCustomFieldResponse` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> RequestCustomFieldResponse: if include_optional: return RequestCustomFieldResponse( field_name = '', - field_type = 'SHORT_TEXT', + field_type = SHORT_TEXT, field_value = None ) else: return RequestCustomFieldResponse( field_name = '', - field_type = 'SHORT_TEXT', + field_type = SHORT_TEXT, field_value = None, ) """ diff --git a/test/test_request_custom_field_response_field_value.py b/test/test_request_custom_field_response_field_value.py index e58c897..50582ff 100644 --- a/test/test_request_custom_field_response_field_value.py +++ b/test/test_request_custom_field_response_field_value.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RequestCustomFieldResponseFieldValue: """Test RequestCustomFieldResponseFieldValue - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RequestCustomFieldResponseFieldValue` diff --git a/test/test_request_edge.py b/test/test_request_edge.py index a2f2d57..4e1324c 100644 --- a/test/test_request_edge.py +++ b/test/test_request_edge.py @@ -36,12 +36,12 @@ def make_instance(self, include_optional) -> RequestEdge: model = RequestEdge() if include_optional: return RequestEdge( - node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}}, + node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]}, cursor = '' ) else: return RequestEdge( - node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], stages={requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}}, + node = {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]}, cursor = '', ) """ diff --git a/test/test_request_item_stages.py b/test/test_request_item_stages.py index 6ace70f..ab4c4f5 100644 --- a/test/test_request_item_stages.py +++ b/test/test_request_item_stages.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> RequestItemStages: reviewers = [ opal_security.models.request_reviewer.RequestReviewer( id = '', + full_name = 'Jake Barnes', status = 'PENDING', ) ], ) ] @@ -59,6 +60,7 @@ def make_instance(self, include_optional) -> RequestItemStages: reviewers = [ opal_security.models.request_reviewer.RequestReviewer( id = '', + full_name = 'Jake Barnes', status = 'PENDING', ) ], ) ], diff --git a/test/test_request_list.py b/test/test_request_list.py index bc82280..597db16 100644 --- a/test/test_request_list.py +++ b/test/test_request_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RequestList: """Test RequestList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RequestList` @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> RequestList: if include_optional: return RequestList( requests = [ - {"id":"7c86c85d-0651-43e2-a748-d69d658418e8","created_at":"2021-01-06T20:00:00Z","updated_at":"2021-01-06T20:00:00Z","requester_id":"c86c85d-0651-43e2-a748-d69d658418e8","target_user_id":"r86c85d-0651-43e2-a748-d69d658418e8","status":"pending","reason":"I need this resource.","duration_minutes":1440,"request_comments":[{"id":"7c86c85d-0651-43e2-a748-d69d658418e8","created_at":"2021-01-06T20:00:00Z","updated_at":"2021-01-06T20:00:00Z","request_id":"4c86c85d-0651-43e2-a748-d69d658418e8","user_id":"c86c85d-0651-43e2-a748-d69d658418e8","comment":"This is a comment."}]} + {id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, requester_id=c86c85d-0651-43e2-a748-d69d658418e8, target_user_id=r86c85d-0651-43e2-a748-d69d658418e8, target_group_id=r86c85d-0651-43e2-a748-d69d658418e8, status=pending, reason=I need this resource., duration_minutes=1440, request_comments=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, request_id=4c86c85d-0651-43e2-a748-d69d658418e8, user_id=c86c85d-0651-43e2-a748-d69d658418e8, comment=This is a comment.}], reviewer_stages=[{requestedRoleName=Admin, requestedItemName=AWS Production Account, stages=[{stage=1, operator=AND, reviewers=[{id=7c86c85d-0651-43e2-a748-d69d658418e8, status=PENDING}]}, {stage=2, operator=OR, reviewers=[{id=8d86c85d-0651-43e2-a748-d69d658418e9, status=APPROVED}]}]}]} ], cursor = 'eyJjcmVhdGVkX2F0IjoiMjAyMS0wMS0wNlQyMDo0NzowMFoiLCJ2YWx1ZSI6ImFkbWluIn0=' ) diff --git a/test/test_request_reviewer.py b/test/test_request_reviewer.py index d7960d8..8fe88cd 100644 --- a/test/test_request_reviewer.py +++ b/test/test_request_reviewer.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> RequestReviewer: if include_optional: return RequestReviewer( id = '', + full_name = 'Jake Barnes', status = 'PENDING' ) else: diff --git a/test/test_request_stage.py b/test/test_request_stage.py index f0997b9..e0d3daa 100644 --- a/test/test_request_stage.py +++ b/test/test_request_stage.py @@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> RequestStage: reviewers = [ opal_security.models.request_reviewer.RequestReviewer( id = '', + full_name = 'Jake Barnes', status = 'PENDING', ) ] ) @@ -51,6 +52,7 @@ def make_instance(self, include_optional) -> RequestStage: reviewers = [ opal_security.models.request_reviewer.RequestReviewer( id = '', + full_name = 'Jake Barnes', status = 'PENDING', ) ], ) diff --git a/test/test_request_status_enum.py b/test/test_request_status_enum.py index a692450..ccf857c 100644 --- a/test/test_request_status_enum.py +++ b/test/test_request_status_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_request_template_custom_field_type_enum.py b/test/test_request_template_custom_field_type_enum.py index b45be43..72e85f1 100644 --- a/test/test_request_template_custom_field_type_enum.py +++ b/test/test_request_template_custom_field_type_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_requested_item.py b/test/test_requested_item.py index 7deac8c..907efca 100644 --- a/test/test_requested_item.py +++ b/test/test_requested_item.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RequestedItem: """Test RequestedItem - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RequestedItem` @@ -40,7 +40,9 @@ def make_instance(self, include_optional) -> RequestedItem: group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', access_level_name = 'admin', access_level_remote_id = 'arn:aws:iam::490306337630:role/SupportUser', - name = 'Engineering Team' + name = 'Engineering Team', + remote_id = 'arn:aws:iam::490306337630:role/SupportUser', + remote_name = 'SupportUser' ) else: return RequestedItem( diff --git a/test/test_requests_api.py b/test/test_requests_api.py index ccacc42..1f49641 100644 --- a/test/test_requests_api.py +++ b/test/test_requests_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -27,9 +27,54 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_approve_request(self) -> None: + """Test case for approve_request + + """ + pass + + def test_create_request(self) -> None: + """Test case for create_request + + """ + pass + + def test_create_request_comment(self) -> None: + """Test case for create_request_comment + + """ + pass + + def test_deny_request(self) -> None: + """Test case for deny_request + + """ + pass + + def test_get_request(self) -> None: + """Test case for get_request + + Get request by ID + """ + pass + + def test_get_request_comments(self) -> None: + """Test case for get_request_comments + + """ + pass + def test_get_requests(self) -> None: """Test case for get_requests + Get requests + """ + pass + + def test_get_requests_relay(self) -> None: + """Test case for get_requests_relay + + Get requests via Relay """ pass diff --git a/test/test_resource.py b/test/test_resource.py index 2d6182b..397ca1f 100644 --- a/test/test_resource.py +++ b/test/test_resource.py @@ -1,25 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.resource_type_enum import ResourceTypeEnum -from opal_security.models.visibility_type_enum import VisibilityTypeEnum -globals()['ResourceTypeEnum'] = ResourceTypeEnum -globals()['VisibilityTypeEnum'] = VisibilityTypeEnum from opal_security.models.resource import Resource - class TestResource(unittest.TestCase): """Resource unit test stubs""" @@ -29,12 +26,197 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Resource: + """Test Resource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Resource` + """ + model = Resource() + if include_optional: + return Resource( + resource_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + app_id = 'b5a5ca27-0ea3-4d86-9199-2126d57d1fbd', + name = 'mongo-db-prod', + description = 'This resource represents AWS IAM role "SupportUser".', + admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', + remote_resource_id = '318038399', + remote_resource_name = 'repo-name', + resource_type = 'AWS_IAM_ROLE', + max_duration = 120, + recommended_duration = 120, + extensions_duration_in_minutes = 120, + require_manager_approval = False, + require_support_ticket = False, + require_mfa_to_approve = False, + require_mfa_to_request = False, + require_mfa_to_connect = False, + auto_approval = False, + request_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + is_requestable = False, + parent_resource_id = '06851574-e50d-40ca-8c78-f72ae6ab4305', + configuration_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + request_configurations = [ + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} + ], + request_configuration_list = [ + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} + ], + ticket_propagation = opal_security.models.ticket_propagation_configuration.TicketPropagationConfiguration( + enabled_on_grant = True, + enabled_on_revocation = True, + ticket_provider = 'LINEAR', + ticket_project_id = '', ), + custom_request_notification = '', + risk_sensitivity = 'UNKNOWN', + risk_sensitivity_override = 'UNKNOWN', + metadata = '{ + "okta_directory_role": + { + "role_id": "SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345", + "role_type": "SUPER_ADMIN", + }, +}', + remote_info = opal_security.models.resource_remote_info.ResourceRemoteInfo( + azure_subscription = opal_security.models.resource_remote_info_azure_subscription.ResourceRemoteInfo_azure_subscription( + resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000', ), + azure_resource_group = opal_security.models.resource_remote_info_azure_resource_group.ResourceRemoteInfo_azure_resource_group( + resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg', ), + azure_management_group = opal_security.models.resource_remote_info_azure_management_group.ResourceRemoteInfo_azure_management_group( + resource_id = '/providers/Microsoft.Management/managementGroups/my-mg', ), + azure_virtual_machine = opal_security.models.resource_remote_info_azure_virtual_machine.ResourceRemoteInfo_azure_virtual_machine( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01', ), + azure_storage_account = opal_security.models.resource_remote_info_azure_storage_account.ResourceRemoteInfo_azure_storage_account( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01', ), + azure_storage_container = opal_security.models.resource_remote_info_azure_storage_container.ResourceRemoteInfo_azure_storage_container( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01', ), + azure_sql_server = opal_security.models.resource_remote_info_azure_sql_server.ResourceRemoteInfo_azure_sql_server( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01', ), + azure_sql_database = opal_security.models.resource_remote_info_azure_sql_database.ResourceRemoteInfo_azure_sql_database( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01', ), + azure_sql_managed_instance = opal_security.models.resource_remote_info_azure_sql_managed_instance.ResourceRemoteInfo_azure_sql_managed_instance( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01', ), + azure_sql_managed_database = opal_security.models.resource_remote_info_azure_sql_managed_database.ResourceRemoteInfo_azure_sql_managed_database( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01', ), + azure_user_assigned_managed_identity = opal_security.models.resource_remote_info_azure_user_assigned_managed_identity.ResourceRemoteInfo_azure_user_assigned_managed_identity( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01', ), + azure_enterprise_app = opal_security.models.resource_remote_info_azure_enterprise_app.ResourceRemoteInfo_azure_enterprise_app( + resource_id = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee', ), + azure_entra_id_role = opal_security.models.resource_remote_info_azure_entra_id_role.ResourceRemoteInfo_azure_entra_id_role( + resource_id = '11111111-2222-3333-4444-555555555555', ), + aws_organizational_unit = opal_security.models.resource_remote_info_aws_organizational_unit.ResourceRemoteInfo_aws_organizational_unit( + parent_id = 'ou-1234', + organizational_unit_id = 'ou-1234', ), + aws_account = opal_security.models.resource_remote_info_aws_account.ResourceRemoteInfo_aws_account( + account_id = '234234234234', + organizational_unit_id = 'ou-1234', ), + aws_permission_set = opal_security.models.resource_remote_info_aws_permission_set.ResourceRemoteInfo_aws_permission_set( + arn = 'arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9', + account_id = '234234234234', ), + aws_iam_role = opal_security.models.resource_remote_info_aws_iam_role.ResourceRemoteInfo_aws_iam_role( + arn = 'arn:aws:iam::179308207300:role/MyRole', + account_id = '234234234234', ), + aws_ec2_instance = opal_security.models.resource_remote_info_aws_ec2_instance.ResourceRemoteInfo_aws_ec2_instance( + instance_id = 'i-13f1a1e2899f9e93a', + region = 'us-east-2', + account_id = '234234234234', ), + aws_rds_instance = opal_security.models.resource_remote_info_aws_rds_instance.ResourceRemoteInfo_aws_rds_instance( + instance_id = 'demo-mysql-db', + region = 'us-east-2', + resource_id = 'db-AOO8V0XUCNU13XLZXQDQRSN0NQ', + account_id = '234234234234', ), + aws_eks_cluster = opal_security.models.resource_remote_info_aws_eks_cluster.ResourceRemoteInfo_aws_eks_cluster( + arn = 'arn:aws:eks:us-east-2:234234234234:cluster/testcluster', + account_id = '234234234234', ), + custom_connector = opal_security.models.resource_remote_info_custom_connector.ResourceRemoteInfo_custom_connector( + remote_resource_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', + can_have_usage_events = False, ), + gcp_organization = opal_security.models.resource_remote_info_gcp_organization.ResourceRemoteInfo_gcp_organization( + organization_id = 'organizations/898931321', ), + gcp_bucket = opal_security.models.resource_remote_info_gcp_bucket.ResourceRemoteInfo_gcp_bucket( + bucket_id = 'example-bucket-898931321', ), + gcp_compute_instance = opal_security.models.resource_remote_info_gcp_compute_instance.ResourceRemoteInfo_gcp_compute_instance( + instance_id = 'example-instance-898931321', + project_id = 'example-project-898931321', + zone = 'us-central1-a', ), + gcp_big_query_dataset = opal_security.models.resource_remote_info_gcp_big_query_dataset.ResourceRemoteInfo_gcp_big_query_dataset( + project_id = 'example-project-898931321', + dataset_id = 'example-dataset-898931321', ), + gcp_big_query_table = opal_security.models.resource_remote_info_gcp_big_query_table.ResourceRemoteInfo_gcp_big_query_table( + project_id = 'example-project-898931321', + dataset_id = 'example-dataset-898931321', + table_id = 'example-table-898931321', ), + gcp_folder = opal_security.models.resource_remote_info_gcp_folder.ResourceRemoteInfo_gcp_folder( + folder_id = 'folder/898931321', ), + gcp_gke_cluster = opal_security.models.resource_remote_info_gcp_gke_cluster.ResourceRemoteInfo_gcp_gke_cluster( + cluster_name = 'example-cluster-898931321', ), + gcp_project = opal_security.models.resource_remote_info_gcp_project.ResourceRemoteInfo_gcp_project( + project_id = 'example-project-898931321', ), + gcp_sql_instance = opal_security.models.resource_remote_info_gcp_sql_instance.ResourceRemoteInfo_gcp_sql_instance( + instance_id = 'example-sql-898931321', + project_id = 'example-project-898931321', ), + gcp_service_account = opal_security.models.resource_remote_info_gcp_service_account.ResourceRemoteInfo_gcp_service_account( + email = 'production@project.iam.gserviceaccount.com', + service_account_id = '103561576023829463298', + project_id = 'example-project-898931321', ), + google_workspace_role = opal_security.models.resource_remote_info_google_workspace_role.ResourceRemoteInfo_google_workspace_role( + role_id = 'google-workspace-role:01234567890123456', ), + github_repo = opal_security.models.resource_remote_info_github_repo.ResourceRemoteInfo_github_repo( + repo_id = '898931321', + repo_name = 'Opal Security', ), + github_org_role = opal_security.models.resource_remote_info_github_org_role.ResourceRemoteInfo_github_org_role( + role_id = '112233', ), + github_org = opal_security.models.resource_remote_info_github_org.ResourceRemoteInfo_github_org( + org_name = 'Opal Security', ), + gitlab_project = opal_security.models.resource_remote_info_gitlab_project.ResourceRemoteInfo_gitlab_project( + project_id = '898931321', ), + okta_app = opal_security.models.resource_remote_info_okta_app.ResourceRemoteInfo_okta_app( + app_id = 'a9dfas0f678asdf67867', ), + okta_standard_role = opal_security.models.resource_remote_info_okta_standard_role.ResourceRemoteInfo_okta_standard_role( + role_type = 'ORG_ADMIN', ), + okta_custom_role = opal_security.models.resource_remote_info_okta_custom_role.ResourceRemoteInfo_okta_custom_role( + role_id = 'a9dfas0f678asdf67867', ), + pagerduty_role = opal_security.models.resource_remote_info_pagerduty_role.ResourceRemoteInfo_pagerduty_role( + role_name = 'owner', ), + salesforce_permission_set = opal_security.models.resource_remote_info_salesforce_permission_set.ResourceRemoteInfo_salesforce_permission_set( + permission_set_id = '0PS5Y090202wOV7WAM', ), + salesforce_profile = opal_security.models.resource_remote_info_salesforce_profile.ResourceRemoteInfo_salesforce_profile( + profile_id = '0PS5Y090202wOV7WAM', + user_license_id = '1005Y030081Qb5XJHS', ), + salesforce_role = opal_security.models.resource_remote_info_salesforce_role.ResourceRemoteInfo_salesforce_role( + role_id = '0PS5Y090202wOV7WAM', ), + teleport_role = opal_security.models.resource_remote_info_teleport_role.ResourceRemoteInfo_teleport_role( + role_name = 'admin_role', ), + datastax_astra_role = opal_security.models.resource_remote_info_datastax_astra_role.ResourceRemoteInfo_datastax_astra_role( + role_id = '123e4567-e89b-12d3-a456-426614174000', ), + coupa_role = opal_security.models.resource_remote_info_coupa_role.ResourceRemoteInfo_coupa_role( + role_id = '999', ), + cursor_organization = opal_security.models.resource_remote_info_cursor_organization.ResourceRemoteInfo_cursor_organization( + org_id = '123e4567-e89b-12d3-a456-426614174000', ), + openai_platform_project = opal_security.models.resource_remote_info_openai_platform_project.ResourceRemoteInfo_openai_platform_project( + project_id = 'proj_abc', ), + openai_platform_service_account = opal_security.models.resource_remote_info_openai_platform_service_account.ResourceRemoteInfo_openai_platform_service_account( + project_id = 'proj_abc', + service_account_id = 'svc_acct_abc', ), + anthropic_workspace = opal_security.models.resource_remote_info_anthropic_workspace.ResourceRemoteInfo_anthropic_workspace( + workspace_id = 'ws-123456', ), + oracle_fusion_role = opal_security.models.resource_remote_info_oracle_fusion_role.ResourceRemoteInfo_oracle_fusion_role( + role_id = '123e4567-e89b-12d3-a456-426614174000', ), ), + ancestor_resource_ids = [f454d283-ca67-4a8a-bdbb-df212eca5345, f454d283-ca67-4a8a-bdbb-df212eca5346], + descendant_resource_ids = [f454d283-ca67-4a8a-bdbb-df212eca5347, f454d283-ca67-4a8a-bdbb-df212eca5348], + last_successful_sync = {id=7c86c85d-0651-43e2-a748-d69d658418e8, completed_at=2023-10-01T12:00:00Z} + ) + else: + return Resource( + resource_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + ) + """ + def testResource(self): """Test Resource""" - # FIXME: construct object with mandatory attributes with example values - # model = Resource() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_resource_access_level.py b/test/test_resource_access_level.py index 718bb79..473e89e 100644 --- a/test/test_resource_access_level.py +++ b/test/test_resource_access_level.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.resource_access_level import ResourceAccessLevel - class TestResourceAccessLevel(unittest.TestCase): """ResourceAccessLevel unit test stubs""" @@ -25,12 +26,30 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> ResourceAccessLevel: + """Test ResourceAccessLevel + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ResourceAccessLevel` + """ + model = ResourceAccessLevel() + if include_optional: + return ResourceAccessLevel( + access_level_name = 'AdminRole', + access_level_remote_id = 'arn:aws:iam::590304332660:role/AdministratorAccess' + ) + else: + return ResourceAccessLevel( + access_level_name = 'AdminRole', + access_level_remote_id = 'arn:aws:iam::590304332660:role/AdministratorAccess', + ) + """ + def testResourceAccessLevel(self): """Test ResourceAccessLevel""" - # FIXME: construct object with mandatory attributes with example values - # model = ResourceAccessLevel() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_resource_access_user.py b/test/test_resource_access_user.py index 7ec350f..221736f 100644 --- a/test/test_resource_access_user.py +++ b/test/test_resource_access_user.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceAccessUser: """Test ResourceAccessUser - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceAccessUser` @@ -38,21 +38,22 @@ def make_instance(self, include_optional) -> ResourceAccessUser: return ResourceAccessUser( resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', - access_level = {"access_level_name":"AdminRole","access_level_remote_id":"arn:aws:iam::590304332660:role/AdministratorAccess"}, + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, full_name = 'Jake Barnes', email = 'jake@company.dev', expiration_date = '2022-01-23T04:56:07Z', has_direct_access = True, - num_access_paths = 3 + num_access_paths = 3, + propagation_status = opal_security.models.propagation_status.PropagationStatus( + status = '[SUCCESS]', ) ) else: return ResourceAccessUser( resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', - access_level = {"access_level_name":"AdminRole","access_level_remote_id":"arn:aws:iam::590304332660:role/AdministratorAccess"}, + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, full_name = 'Jake Barnes', email = 'jake@company.dev', - expiration_date = '2022-01-23T04:56:07Z', has_direct_access = True, num_access_paths = 3, ) diff --git a/test/test_resource_access_user_list.py b/test/test_resource_access_user_list.py index 355d7b4..e6c0658 100644 --- a/test/test_resource_access_user_list.py +++ b/test/test_resource_access_user_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceAccessUserList: """Test ResourceAccessUserList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceAccessUserList` @@ -36,8 +36,10 @@ def make_instance(self, include_optional) -> ResourceAccessUserList: model = ResourceAccessUserList() if include_optional: return ResourceAccessUserList( + next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', + previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', results = [ - {"full_name":"Jake Barnes","user_id":"29827fb8-f2dd-4e80-9576-28e31e9934ac","resource_id":"1b978423-db0a-4037-a4cf-f79c60cb67b3","expiration_date":"2022-01-23T04:56:07Z","email":"jake@company.dev"} + {full_name=Jake Barnes, user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, resource_id=1b978423-db0a-4037-a4cf-f79c60cb67b3, expiration_date=2022-01-23T04:56:07Z, email=jake@company.dev} ] ) else: diff --git a/test/test_resource_nhi.py b/test/test_resource_nhi.py index 2ff63e1..00ec945 100644 --- a/test/test_resource_nhi.py +++ b/test/test_resource_nhi.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -45,7 +45,6 @@ def make_instance(self, include_optional) -> ResourceNHI: return ResourceNHI( resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', non_human_identity_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', - expiration_date = '2022-01-23T04:56:07Z', ) """ diff --git a/test/test_resource_remote_info.py b/test/test_resource_remote_info.py index 6aec382..e71bf8e 100644 --- a/test/test_resource_remote_info.py +++ b/test/test_resource_remote_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfo: """Test ResourceRemoteInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfo` @@ -36,72 +36,130 @@ def make_instance(self, include_optional) -> ResourceRemoteInfo: model = ResourceRemoteInfo() if include_optional: return ResourceRemoteInfo( - aws_account = opal.models.resource_remote_info_aws_account.ResourceRemoteInfo_aws_account( - account_id = '234234234234', ), - aws_permission_set = opal.models.resource_remote_info_aws_permission_set.ResourceRemoteInfo_aws_permission_set( + azure_subscription = opal_security.models.resource_remote_info_azure_subscription.ResourceRemoteInfo_azure_subscription( + resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000', ), + azure_resource_group = opal_security.models.resource_remote_info_azure_resource_group.ResourceRemoteInfo_azure_resource_group( + resource_id = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg', ), + azure_management_group = opal_security.models.resource_remote_info_azure_management_group.ResourceRemoteInfo_azure_management_group( + resource_id = '/providers/Microsoft.Management/managementGroups/my-mg', ), + azure_virtual_machine = opal_security.models.resource_remote_info_azure_virtual_machine.ResourceRemoteInfo_azure_virtual_machine( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01', ), + azure_storage_account = opal_security.models.resource_remote_info_azure_storage_account.ResourceRemoteInfo_azure_storage_account( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01', ), + azure_storage_container = opal_security.models.resource_remote_info_azure_storage_container.ResourceRemoteInfo_azure_storage_container( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01', ), + azure_sql_server = opal_security.models.resource_remote_info_azure_sql_server.ResourceRemoteInfo_azure_sql_server( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01', ), + azure_sql_database = opal_security.models.resource_remote_info_azure_sql_database.ResourceRemoteInfo_azure_sql_database( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01', ), + azure_sql_managed_instance = opal_security.models.resource_remote_info_azure_sql_managed_instance.ResourceRemoteInfo_azure_sql_managed_instance( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01', ), + azure_sql_managed_database = opal_security.models.resource_remote_info_azure_sql_managed_database.ResourceRemoteInfo_azure_sql_managed_database( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01', ), + azure_user_assigned_managed_identity = opal_security.models.resource_remote_info_azure_user_assigned_managed_identity.ResourceRemoteInfo_azure_user_assigned_managed_identity( + resource_id = '/subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01', ), + azure_enterprise_app = opal_security.models.resource_remote_info_azure_enterprise_app.ResourceRemoteInfo_azure_enterprise_app( + resource_id = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee', ), + azure_entra_id_role = opal_security.models.resource_remote_info_azure_entra_id_role.ResourceRemoteInfo_azure_entra_id_role( + resource_id = '11111111-2222-3333-4444-555555555555', ), + aws_organizational_unit = opal_security.models.resource_remote_info_aws_organizational_unit.ResourceRemoteInfo_aws_organizational_unit( + parent_id = 'ou-1234', + organizational_unit_id = 'ou-1234', ), + aws_account = opal_security.models.resource_remote_info_aws_account.ResourceRemoteInfo_aws_account( + account_id = '234234234234', + organizational_unit_id = 'ou-1234', ), + aws_permission_set = opal_security.models.resource_remote_info_aws_permission_set.ResourceRemoteInfo_aws_permission_set( arn = 'arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9', account_id = '234234234234', ), - aws_iam_role = opal.models.resource_remote_info_aws_iam_role.ResourceRemoteInfo_aws_iam_role( + aws_iam_role = opal_security.models.resource_remote_info_aws_iam_role.ResourceRemoteInfo_aws_iam_role( arn = 'arn:aws:iam::179308207300:role/MyRole', account_id = '234234234234', ), - aws_ec2_instance = opal.models.resource_remote_info_aws_ec2_instance.ResourceRemoteInfo_aws_ec2_instance( + aws_ec2_instance = opal_security.models.resource_remote_info_aws_ec2_instance.ResourceRemoteInfo_aws_ec2_instance( instance_id = 'i-13f1a1e2899f9e93a', region = 'us-east-2', account_id = '234234234234', ), - aws_rds_instance = opal.models.resource_remote_info_aws_rds_instance.ResourceRemoteInfo_aws_rds_instance( + aws_rds_instance = opal_security.models.resource_remote_info_aws_rds_instance.ResourceRemoteInfo_aws_rds_instance( instance_id = 'demo-mysql-db', region = 'us-east-2', resource_id = 'db-AOO8V0XUCNU13XLZXQDQRSN0NQ', account_id = '234234234234', ), - aws_eks_cluster = opal.models.resource_remote_info_aws_eks_cluster.ResourceRemoteInfo_aws_eks_cluster( + aws_eks_cluster = opal_security.models.resource_remote_info_aws_eks_cluster.ResourceRemoteInfo_aws_eks_cluster( arn = 'arn:aws:eks:us-east-2:234234234234:cluster/testcluster', account_id = '234234234234', ), - gcp_organization = opal.models.resource_remote_info_gcp_organization.ResourceRemoteInfo_gcp_organization( + custom_connector = opal_security.models.resource_remote_info_custom_connector.ResourceRemoteInfo_custom_connector( + remote_resource_id = '01fa7402-01d8-103b-8deb-5f3a0ab7884', + can_have_usage_events = False, ), + gcp_organization = opal_security.models.resource_remote_info_gcp_organization.ResourceRemoteInfo_gcp_organization( organization_id = 'organizations/898931321', ), - gcp_bucket = opal.models.resource_remote_info_gcp_bucket.ResourceRemoteInfo_gcp_bucket( + gcp_bucket = opal_security.models.resource_remote_info_gcp_bucket.ResourceRemoteInfo_gcp_bucket( bucket_id = 'example-bucket-898931321', ), - gcp_compute_instance = opal.models.resource_remote_info_gcp_compute_instance.ResourceRemoteInfo_gcp_compute_instance( + gcp_compute_instance = opal_security.models.resource_remote_info_gcp_compute_instance.ResourceRemoteInfo_gcp_compute_instance( instance_id = 'example-instance-898931321', project_id = 'example-project-898931321', zone = 'us-central1-a', ), - gcp_big_query_dataset = opal.models.resource_remote_info_gcp_big_query_dataset.ResourceRemoteInfo_gcp_big_query_dataset( + gcp_big_query_dataset = opal_security.models.resource_remote_info_gcp_big_query_dataset.ResourceRemoteInfo_gcp_big_query_dataset( project_id = 'example-project-898931321', dataset_id = 'example-dataset-898931321', ), - gcp_big_query_table = opal.models.resource_remote_info_gcp_big_query_table.ResourceRemoteInfo_gcp_big_query_table( + gcp_big_query_table = opal_security.models.resource_remote_info_gcp_big_query_table.ResourceRemoteInfo_gcp_big_query_table( project_id = 'example-project-898931321', dataset_id = 'example-dataset-898931321', table_id = 'example-table-898931321', ), - gcp_folder = opal.models.resource_remote_info_gcp_folder.ResourceRemoteInfo_gcp_folder( + gcp_folder = opal_security.models.resource_remote_info_gcp_folder.ResourceRemoteInfo_gcp_folder( folder_id = 'folder/898931321', ), - gcp_gke_cluster = opal.models.resource_remote_info_gcp_gke_cluster.ResourceRemoteInfo_gcp_gke_cluster( + gcp_gke_cluster = opal_security.models.resource_remote_info_gcp_gke_cluster.ResourceRemoteInfo_gcp_gke_cluster( cluster_name = 'example-cluster-898931321', ), - gcp_project = opal.models.resource_remote_info_gcp_project.ResourceRemoteInfo_gcp_project( + gcp_project = opal_security.models.resource_remote_info_gcp_project.ResourceRemoteInfo_gcp_project( project_id = 'example-project-898931321', ), - gcp_sql_instance = opal.models.resource_remote_info_gcp_sql_instance.ResourceRemoteInfo_gcp_sql_instance( + gcp_sql_instance = opal_security.models.resource_remote_info_gcp_sql_instance.ResourceRemoteInfo_gcp_sql_instance( instance_id = 'example-sql-898931321', project_id = 'example-project-898931321', ), - github_repo = opal.models.resource_remote_info_github_repo.ResourceRemoteInfo_github_repo( + gcp_service_account = opal_security.models.resource_remote_info_gcp_service_account.ResourceRemoteInfo_gcp_service_account( + email = 'production@project.iam.gserviceaccount.com', + service_account_id = '103561576023829463298', + project_id = 'example-project-898931321', ), + google_workspace_role = opal_security.models.resource_remote_info_google_workspace_role.ResourceRemoteInfo_google_workspace_role( + role_id = 'google-workspace-role:01234567890123456', ), + github_repo = opal_security.models.resource_remote_info_github_repo.ResourceRemoteInfo_github_repo( repo_id = '898931321', repo_name = 'Opal Security', ), - gitlab_project = opal.models.resource_remote_info_gitlab_project.ResourceRemoteInfo_gitlab_project( + github_org_role = opal_security.models.resource_remote_info_github_org_role.ResourceRemoteInfo_github_org_role( + role_id = '112233', ), + github_org = opal_security.models.resource_remote_info_github_org.ResourceRemoteInfo_github_org( + org_name = 'Opal Security', ), + gitlab_project = opal_security.models.resource_remote_info_gitlab_project.ResourceRemoteInfo_gitlab_project( project_id = '898931321', ), - okta_app = opal.models.resource_remote_info_okta_app.ResourceRemoteInfo_okta_app( + okta_app = opal_security.models.resource_remote_info_okta_app.ResourceRemoteInfo_okta_app( app_id = 'a9dfas0f678asdf67867', ), - okta_standard_role = opal.models.resource_remote_info_okta_standard_role.ResourceRemoteInfo_okta_standard_role( + okta_standard_role = opal_security.models.resource_remote_info_okta_standard_role.ResourceRemoteInfo_okta_standard_role( role_type = 'ORG_ADMIN', ), - okta_custom_role = opal.models.resource_remote_info_okta_custom_role.ResourceRemoteInfo_okta_custom_role( + okta_custom_role = opal_security.models.resource_remote_info_okta_custom_role.ResourceRemoteInfo_okta_custom_role( role_id = 'a9dfas0f678asdf67867', ), - pagerduty_role = opal.models.resource_remote_info_pagerduty_role.ResourceRemoteInfo_pagerduty_role( + pagerduty_role = opal_security.models.resource_remote_info_pagerduty_role.ResourceRemoteInfo_pagerduty_role( role_name = 'owner', ), - salesforce_permission_set = opal.models.resource_remote_info_salesforce_permission_set.ResourceRemoteInfo_salesforce_permission_set( + salesforce_permission_set = opal_security.models.resource_remote_info_salesforce_permission_set.ResourceRemoteInfo_salesforce_permission_set( permission_set_id = '0PS5Y090202wOV7WAM', ), - salesforce_profile = opal.models.resource_remote_info_salesforce_profile.ResourceRemoteInfo_salesforce_profile( + salesforce_profile = opal_security.models.resource_remote_info_salesforce_profile.ResourceRemoteInfo_salesforce_profile( profile_id = '0PS5Y090202wOV7WAM', user_license_id = '1005Y030081Qb5XJHS', ), - salesforce_role = opal.models.resource_remote_info_salesforce_role.ResourceRemoteInfo_salesforce_role( + salesforce_role = opal_security.models.resource_remote_info_salesforce_role.ResourceRemoteInfo_salesforce_role( role_id = '0PS5Y090202wOV7WAM', ), - teleport_role = opal.models.resource_remote_info_teleport_role.ResourceRemoteInfo_teleport_role( - role_name = 'admin_role', ) + teleport_role = opal_security.models.resource_remote_info_teleport_role.ResourceRemoteInfo_teleport_role( + role_name = 'admin_role', ), + datastax_astra_role = opal_security.models.resource_remote_info_datastax_astra_role.ResourceRemoteInfo_datastax_astra_role( + role_id = '123e4567-e89b-12d3-a456-426614174000', ), + coupa_role = opal_security.models.resource_remote_info_coupa_role.ResourceRemoteInfo_coupa_role( + role_id = '999', ), + cursor_organization = opal_security.models.resource_remote_info_cursor_organization.ResourceRemoteInfo_cursor_organization( + org_id = '123e4567-e89b-12d3-a456-426614174000', ), + openai_platform_project = opal_security.models.resource_remote_info_openai_platform_project.ResourceRemoteInfo_openai_platform_project( + project_id = 'proj_abc', ), + openai_platform_service_account = opal_security.models.resource_remote_info_openai_platform_service_account.ResourceRemoteInfo_openai_platform_service_account( + project_id = 'proj_abc', + service_account_id = 'svc_acct_abc', ), + anthropic_workspace = opal_security.models.resource_remote_info_anthropic_workspace.ResourceRemoteInfo_anthropic_workspace( + workspace_id = 'ws-123456', ), + oracle_fusion_role = opal_security.models.resource_remote_info_oracle_fusion_role.ResourceRemoteInfo_oracle_fusion_role( + role_id = '123e4567-e89b-12d3-a456-426614174000', ) ) else: return ResourceRemoteInfo( diff --git a/test/test_resource_remote_info_aws_account.py b/test/test_resource_remote_info_aws_account.py index 7bc046b..be55bb8 100644 --- a/test/test_resource_remote_info_aws_account.py +++ b/test/test_resource_remote_info_aws_account.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoAwsAccount: """Test ResourceRemoteInfoAwsAccount - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoAwsAccount` @@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> ResourceRemoteInfoAwsAccount: model = ResourceRemoteInfoAwsAccount() if include_optional: return ResourceRemoteInfoAwsAccount( - account_id = '234234234234' + account_id = '234234234234', + organizational_unit_id = 'ou-1234' ) else: return ResourceRemoteInfoAwsAccount( diff --git a/test/test_resource_remote_info_aws_ec2_instance.py b/test/test_resource_remote_info_aws_ec2_instance.py index 40bdaa9..d98df86 100644 --- a/test/test_resource_remote_info_aws_ec2_instance.py +++ b/test/test_resource_remote_info_aws_ec2_instance.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoAwsEc2Instance: """Test ResourceRemoteInfoAwsEc2Instance - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoAwsEc2Instance` diff --git a/test/test_resource_remote_info_aws_eks_cluster.py b/test/test_resource_remote_info_aws_eks_cluster.py index fb35e11..d2bfd12 100644 --- a/test/test_resource_remote_info_aws_eks_cluster.py +++ b/test/test_resource_remote_info_aws_eks_cluster.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoAwsEksCluster: """Test ResourceRemoteInfoAwsEksCluster - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoAwsEksCluster` diff --git a/test/test_resource_remote_info_aws_iam_role.py b/test/test_resource_remote_info_aws_iam_role.py index bd66f0a..b7186f6 100644 --- a/test/test_resource_remote_info_aws_iam_role.py +++ b/test/test_resource_remote_info_aws_iam_role.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoAwsIamRole: """Test ResourceRemoteInfoAwsIamRole - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoAwsIamRole` diff --git a/test/test_resource_remote_info_aws_permission_set.py b/test/test_resource_remote_info_aws_permission_set.py index 56b7b87..21f211b 100644 --- a/test/test_resource_remote_info_aws_permission_set.py +++ b/test/test_resource_remote_info_aws_permission_set.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoAwsPermissionSet: """Test ResourceRemoteInfoAwsPermissionSet - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoAwsPermissionSet` diff --git a/test/test_resource_remote_info_aws_rds_instance.py b/test/test_resource_remote_info_aws_rds_instance.py index 63630e7..bbf529f 100644 --- a/test/test_resource_remote_info_aws_rds_instance.py +++ b/test/test_resource_remote_info_aws_rds_instance.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoAwsRdsInstance: """Test ResourceRemoteInfoAwsRdsInstance - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoAwsRdsInstance` diff --git a/test/test_resource_remote_info_gcp_big_query_dataset.py b/test/test_resource_remote_info_gcp_big_query_dataset.py index 700e22b..2ade2f7 100644 --- a/test/test_resource_remote_info_gcp_big_query_dataset.py +++ b/test/test_resource_remote_info_gcp_big_query_dataset.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpBigQueryDataset: """Test ResourceRemoteInfoGcpBigQueryDataset - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpBigQueryDataset` diff --git a/test/test_resource_remote_info_gcp_big_query_table.py b/test/test_resource_remote_info_gcp_big_query_table.py index 7e13c58..29ebcd9 100644 --- a/test/test_resource_remote_info_gcp_big_query_table.py +++ b/test/test_resource_remote_info_gcp_big_query_table.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpBigQueryTable: """Test ResourceRemoteInfoGcpBigQueryTable - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpBigQueryTable` diff --git a/test/test_resource_remote_info_gcp_bucket.py b/test/test_resource_remote_info_gcp_bucket.py index 46c8f93..dcc5d2f 100644 --- a/test/test_resource_remote_info_gcp_bucket.py +++ b/test/test_resource_remote_info_gcp_bucket.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpBucket: """Test ResourceRemoteInfoGcpBucket - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpBucket` diff --git a/test/test_resource_remote_info_gcp_compute_instance.py b/test/test_resource_remote_info_gcp_compute_instance.py index a559db3..40af663 100644 --- a/test/test_resource_remote_info_gcp_compute_instance.py +++ b/test/test_resource_remote_info_gcp_compute_instance.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpComputeInstance: """Test ResourceRemoteInfoGcpComputeInstance - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpComputeInstance` diff --git a/test/test_resource_remote_info_gcp_folder.py b/test/test_resource_remote_info_gcp_folder.py index 9a8a5c4..de9d460 100644 --- a/test/test_resource_remote_info_gcp_folder.py +++ b/test/test_resource_remote_info_gcp_folder.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpFolder: """Test ResourceRemoteInfoGcpFolder - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpFolder` diff --git a/test/test_resource_remote_info_gcp_gke_cluster.py b/test/test_resource_remote_info_gcp_gke_cluster.py index 6d9d9e4..e89879b 100644 --- a/test/test_resource_remote_info_gcp_gke_cluster.py +++ b/test/test_resource_remote_info_gcp_gke_cluster.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpGkeCluster: """Test ResourceRemoteInfoGcpGkeCluster - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpGkeCluster` diff --git a/test/test_resource_remote_info_gcp_organization.py b/test/test_resource_remote_info_gcp_organization.py index 06499cf..0bba0ae 100644 --- a/test/test_resource_remote_info_gcp_organization.py +++ b/test/test_resource_remote_info_gcp_organization.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpOrganization: """Test ResourceRemoteInfoGcpOrganization - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpOrganization` diff --git a/test/test_resource_remote_info_gcp_project.py b/test/test_resource_remote_info_gcp_project.py index 800ffd3..e1b9f42 100644 --- a/test/test_resource_remote_info_gcp_project.py +++ b/test/test_resource_remote_info_gcp_project.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpProject: """Test ResourceRemoteInfoGcpProject - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpProject` diff --git a/test/test_resource_remote_info_gcp_service_account.py b/test/test_resource_remote_info_gcp_service_account.py index a5b4b3d..5168db2 100644 --- a/test/test_resource_remote_info_gcp_service_account.py +++ b/test/test_resource_remote_info_gcp_service_account.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_resource_remote_info_gcp_sql_instance.py b/test/test_resource_remote_info_gcp_sql_instance.py index ae98210..af94918 100644 --- a/test/test_resource_remote_info_gcp_sql_instance.py +++ b/test/test_resource_remote_info_gcp_sql_instance.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGcpSqlInstance: """Test ResourceRemoteInfoGcpSqlInstance - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGcpSqlInstance` diff --git a/test/test_resource_remote_info_github_repo.py b/test/test_resource_remote_info_github_repo.py index bfeff5e..6714b52 100644 --- a/test/test_resource_remote_info_github_repo.py +++ b/test/test_resource_remote_info_github_repo.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGithubRepo: """Test ResourceRemoteInfoGithubRepo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGithubRepo` diff --git a/test/test_resource_remote_info_gitlab_project.py b/test/test_resource_remote_info_gitlab_project.py index 38ae6ed..94a808b 100644 --- a/test/test_resource_remote_info_gitlab_project.py +++ b/test/test_resource_remote_info_gitlab_project.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoGitlabProject: """Test ResourceRemoteInfoGitlabProject - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoGitlabProject` diff --git a/test/test_resource_remote_info_okta_app.py b/test/test_resource_remote_info_okta_app.py index e9aff57..3022ffd 100644 --- a/test/test_resource_remote_info_okta_app.py +++ b/test/test_resource_remote_info_okta_app.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoOktaApp: """Test ResourceRemoteInfoOktaApp - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoOktaApp` diff --git a/test/test_resource_remote_info_okta_custom_role.py b/test/test_resource_remote_info_okta_custom_role.py index 6a84d6d..e8ded7d 100644 --- a/test/test_resource_remote_info_okta_custom_role.py +++ b/test/test_resource_remote_info_okta_custom_role.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoOktaCustomRole: """Test ResourceRemoteInfoOktaCustomRole - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoOktaCustomRole` diff --git a/test/test_resource_remote_info_okta_standard_role.py b/test/test_resource_remote_info_okta_standard_role.py index 5a14a3a..3d15244 100644 --- a/test/test_resource_remote_info_okta_standard_role.py +++ b/test/test_resource_remote_info_okta_standard_role.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoOktaStandardRole: """Test ResourceRemoteInfoOktaStandardRole - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoOktaStandardRole` diff --git a/test/test_resource_remote_info_pagerduty_role.py b/test/test_resource_remote_info_pagerduty_role.py index 77e992f..907d2f6 100644 --- a/test/test_resource_remote_info_pagerduty_role.py +++ b/test/test_resource_remote_info_pagerduty_role.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoPagerdutyRole: """Test ResourceRemoteInfoPagerdutyRole - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoPagerdutyRole` diff --git a/test/test_resource_remote_info_salesforce_permission_set.py b/test/test_resource_remote_info_salesforce_permission_set.py index 4cb8abe..d6b4f5f 100644 --- a/test/test_resource_remote_info_salesforce_permission_set.py +++ b/test/test_resource_remote_info_salesforce_permission_set.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoSalesforcePermissionSet: """Test ResourceRemoteInfoSalesforcePermissionSet - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoSalesforcePermissionSet` diff --git a/test/test_resource_remote_info_salesforce_profile.py b/test/test_resource_remote_info_salesforce_profile.py index 33736eb..3b691de 100644 --- a/test/test_resource_remote_info_salesforce_profile.py +++ b/test/test_resource_remote_info_salesforce_profile.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoSalesforceProfile: """Test ResourceRemoteInfoSalesforceProfile - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoSalesforceProfile` diff --git a/test/test_resource_remote_info_salesforce_role.py b/test/test_resource_remote_info_salesforce_role.py index 575f522..bbdbf72 100644 --- a/test/test_resource_remote_info_salesforce_role.py +++ b/test/test_resource_remote_info_salesforce_role.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoSalesforceRole: """Test ResourceRemoteInfoSalesforceRole - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoSalesforceRole` diff --git a/test/test_resource_remote_info_teleport_role.py b/test/test_resource_remote_info_teleport_role.py index f1cc558..a4467f2 100644 --- a/test/test_resource_remote_info_teleport_role.py +++ b/test/test_resource_remote_info_teleport_role.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceRemoteInfoTeleportRole: """Test ResourceRemoteInfoTeleportRole - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceRemoteInfoTeleportRole` diff --git a/test/test_resource_type_enum.py b/test/test_resource_type_enum.py index ea85f24..e5b5385 100644 --- a/test/test_resource_type_enum.py +++ b/test/test_resource_type_enum.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.resource_type_enum import ResourceTypeEnum - class TestResourceTypeEnum(unittest.TestCase): """ResourceTypeEnum unit test stubs""" @@ -27,10 +28,7 @@ def tearDown(self): def testResourceTypeEnum(self): """Test ResourceTypeEnum""" - # FIXME: construct object with mandatory attributes with example values - # model = ResourceTypeEnum() # noqa: E501 - pass - + # inst = ResourceTypeEnum() if __name__ == '__main__': unittest.main() diff --git a/test/test_resource_user.py b/test/test_resource_user.py index 87a6036..af7813f 100644 --- a/test/test_resource_user.py +++ b/test/test_resource_user.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.resource_access_level import ResourceAccessLevel -globals()['ResourceAccessLevel'] = ResourceAccessLevel from opal_security.models.resource_user import ResourceUser - class TestResourceUser(unittest.TestCase): """ResourceUser unit test stubs""" @@ -27,12 +26,37 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> ResourceUser: + """Test ResourceUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ResourceUser` + """ + model = ResourceUser() + if include_optional: + return ResourceUser( + resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, + full_name = 'Jake Barnes', + email = 'jake@company.dev', + expiration_date = '2022-01-23T04:56:07Z' + ) + else: + return ResourceUser( + resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, + full_name = 'Jake Barnes', + email = 'jake@company.dev', + ) + """ + def testResourceUser(self): """Test ResourceUser""" - # FIXME: construct object with mandatory attributes with example values - # model = ResourceUser() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_resource_user_access_status.py b/test/test_resource_user_access_status.py index 0ca048f..31f87d1 100644 --- a/test/test_resource_user_access_status.py +++ b/test/test_resource_user_access_status.py @@ -1,25 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.resource_access_level import ResourceAccessLevel -from opal_security.models.resource_user_access_status_enum import ResourceUserAccessStatusEnum -globals()['ResourceAccessLevel'] = ResourceAccessLevel -globals()['ResourceUserAccessStatusEnum'] = ResourceUserAccessStatusEnum from opal_security.models.resource_user_access_status import ResourceUserAccessStatus - class TestResourceUserAccessStatus(unittest.TestCase): """ResourceUserAccessStatus unit test stubs""" @@ -29,12 +26,34 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> ResourceUserAccessStatus: + """Test ResourceUserAccessStatus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ResourceUserAccessStatus` + """ + model = ResourceUserAccessStatus() + if include_optional: + return ResourceUserAccessStatus( + resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, + status = 'AUTHORIZED', + expiration_date = '2022-01-23T04:56:07Z' + ) + else: + return ResourceUserAccessStatus( + resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + status = 'AUTHORIZED', + ) + """ + def testResourceUserAccessStatus(self): """Test ResourceUserAccessStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = ResourceUserAccessStatus() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_resource_user_access_status_enum.py b/test/test_resource_user_access_status_enum.py index 040ad63..b23d7b9 100644 --- a/test/test_resource_user_access_status_enum.py +++ b/test/test_resource_user_access_status_enum.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.resource_user_access_status_enum import ResourceUserAccessStatusEnum - class TestResourceUserAccessStatusEnum(unittest.TestCase): """ResourceUserAccessStatusEnum unit test stubs""" @@ -27,10 +28,7 @@ def tearDown(self): def testResourceUserAccessStatusEnum(self): """Test ResourceUserAccessStatusEnum""" - # FIXME: construct object with mandatory attributes with example values - # model = ResourceUserAccessStatusEnum() # noqa: E501 - pass - + # inst = ResourceUserAccessStatusEnum() if __name__ == '__main__': unittest.main() diff --git a/test/test_resource_with_access_level.py b/test/test_resource_with_access_level.py index cb8fa81..5a4ff84 100644 --- a/test/test_resource_with_access_level.py +++ b/test/test_resource_with_access_level.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResourceWithAccessLevel: """Test ResourceWithAccessLevel - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResourceWithAccessLevel` diff --git a/test/test_resources_api.py b/test/test_resources_api.py index 05958ef..24e5e90 100644 --- a/test/test_resources_api.py +++ b/test/test_resources_api.py @@ -1,37 +1,188 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 import unittest -import opal_security -from opal_security.api.resources_api import ResourcesApi # noqa: E501 +from opal_security.api.resources_api import ResourcesApi class TestResourcesApi(unittest.TestCase): """ResourcesApi unit test stubs""" - def setUp(self): - self.api = ResourcesApi() # noqa: E501 + def setUp(self) -> None: + self.api = ResourcesApi() + + def tearDown(self) -> None: + pass + + def test_add_resource_nhi(self) -> None: + """Test case for add_resource_nhi + + """ + pass + + def test_add_resource_user(self) -> None: + """Test case for add_resource_user + + """ + pass + + def test_create_resource(self) -> None: + """Test case for create_resource + + """ + pass + + def test_delete_resource(self) -> None: + """Test case for delete_resource + + """ + pass + + def test_delete_resource_nhi(self) -> None: + """Test case for delete_resource_nhi + + """ + pass + + def test_delete_resource_user(self) -> None: + """Test case for delete_resource_user - def tearDown(self): + """ pass - def test_resource_user_access_status_retrieve(self): + def test_get_resource(self) -> None: + """Test case for get_resource + + Get resource by ID + """ + pass + + def test_get_resource_message_channels(self) -> None: + """Test case for get_resource_message_channels + + """ + pass + + def test_get_resource_nhis(self) -> None: + """Test case for get_resource_nhis + + """ + pass + + def test_get_resource_reviewer_stages(self) -> None: + """Test case for get_resource_reviewer_stages + + """ + pass + + def test_get_resource_reviewers(self) -> None: + """Test case for get_resource_reviewers + + """ + pass + + def test_get_resource_scoped_role_permissions(self) -> None: + """Test case for get_resource_scoped_role_permissions + + """ + pass + + def test_get_resource_tags(self) -> None: + """Test case for get_resource_tags + + """ + pass + + def test_get_resource_user(self) -> None: + """Test case for get_resource_user + + Get resource user + """ + pass + + def test_get_resource_users(self) -> None: + """Test case for get_resource_users + + Get resource users + """ + pass + + def test_get_resource_visibility(self) -> None: + """Test case for get_resource_visibility + + """ + pass + + def test_get_resources(self) -> None: + """Test case for get_resources + + Get resources + """ + pass + + def test_get_user_resources(self) -> None: + """Test case for get_user_resources + + """ + pass + + def test_resource_user_access_status_retrieve(self) -> None: """Test case for resource_user_access_status_retrieve """ pass - def test_resource_users(self): - """Test case for resource_users + def test_set_resource_message_channels(self) -> None: + """Test case for set_resource_message_channels + + """ + pass + + def test_set_resource_reviewer_stages(self) -> None: + """Test case for set_resource_reviewer_stages + + """ + pass + + def test_set_resource_reviewers(self) -> None: + """Test case for set_resource_reviewers + + """ + pass + + def test_set_resource_scoped_role_permissions(self) -> None: + """Test case for set_resource_scoped_role_permissions + + """ + pass + + def test_set_resource_visibility(self) -> None: + """Test case for set_resource_visibility + + """ + pass + + def test_update_resource_user(self) -> None: + """Test case for update_resource_user + + """ + pass + + def test_update_resources(self) -> None: + """Test case for update_resources """ pass diff --git a/test/test_reviewer_id_list.py b/test/test_reviewer_id_list.py index 99c564f..2c0f724 100644 --- a/test/test_reviewer_id_list.py +++ b/test/test_reviewer_id_list.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.reviewer_id_list import ReviewerIDList - class TestReviewerIDList(unittest.TestCase): """ReviewerIDList unit test stubs""" @@ -25,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> ReviewerIDList: + """Test ReviewerIDList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ReviewerIDList` + """ + model = ReviewerIDList() + if include_optional: + return ReviewerIDList( + reviewer_ids = [ + '' + ] + ) + else: + return ReviewerIDList( + reviewer_ids = [ + '' + ], + ) + """ + def testReviewerIDList(self): """Test ReviewerIDList""" - # FIXME: construct object with mandatory attributes with example values - # model = ReviewerIDList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_reviewer_stage.py b/test/test_reviewer_stage.py index 7089629..be11585 100644 --- a/test/test_reviewer_stage.py +++ b/test/test_reviewer_stage.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ReviewerStage: """Test ReviewerStage - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ReviewerStage` @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> ReviewerStage: if include_optional: return ReviewerStage( require_manager_approval = False, + require_admin_approval = False, operator = 'AND', owner_ids = [ '' diff --git a/test/test_reviewer_stage_list.py b/test/test_reviewer_stage_list.py index 77ac00b..d2518e3 100644 --- a/test/test_reviewer_stage_list.py +++ b/test/test_reviewer_stage_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ReviewerStageList: """Test ReviewerStageList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ReviewerStageList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> ReviewerStageList: if include_optional: return ReviewerStageList( stages = [ - {"owner_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]} + {owner_ids=[7870617d-e72a-47f5-a84c-693817ab4567, 1520617d-e72a-47f5-a84c-693817ab48ad2]} ] ) else: return ReviewerStageList( stages = [ - {"owner_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]} + {owner_ids=[7870617d-e72a-47f5-a84c-693817ab4567, 1520617d-e72a-47f5-a84c-693817ab48ad2]} ], ) """ diff --git a/test/test_risk_sensitivity_enum.py b/test/test_risk_sensitivity_enum.py index 09e39bf..3686794 100644 --- a/test/test_risk_sensitivity_enum.py +++ b/test/test_risk_sensitivity_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_scoped_role_permissions_api.py b/test/test_scoped_role_permissions_api.py deleted file mode 100644 index 557d306..0000000 --- a/test/test_scoped_role_permissions_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Opal API - - The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. - - The version of the OpenAPI document: 1.0 - Contact: hello@opal.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from opal_security.api.scoped_role_permissions_api import ScopedRolePermissionsApi - - -class TestScopedRolePermissionsApi(unittest.TestCase): - """ScopedRolePermissionsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ScopedRolePermissionsApi() - - def tearDown(self) -> None: - pass - - def test_get_resource_scoped_role_permissions(self) -> None: - """Test case for get_resource_scoped_role_permissions - - """ - pass - - def test_set_resource_scoped_role_permissions(self) -> None: - """Test case for set_resource_scoped_role_permissions - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session.py b/test/test_session.py index 4d70446..386a634 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.resource_access_level import ResourceAccessLevel -globals()['ResourceAccessLevel'] = ResourceAccessLevel from opal_security.models.session import Session - class TestSession(unittest.TestCase): """Session unit test stubs""" @@ -27,12 +26,36 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Session: + """Test Session + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Session` + """ + model = Session() + if include_optional: + return Session( + connection_id = 'h0z968412-2451-4bbd-42h4-057l715d917m', + user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, + expiration_date = '2022-01-23T04:56:07Z' + ) + else: + return Session( + connection_id = 'h0z968412-2451-4bbd-42h4-057l715d917m', + user_id = '29827fb8-f2dd-4e80-9576-28e31e9934ac', + resource_id = '1b978423-db0a-4037-a4cf-f79c60cb67b3', + access_level = {access_level_name=AdminRole, access_level_remote_id=arn:aws:iam::590304332660:role/AdministratorAccess}, + expiration_date = '2022-01-23T04:56:07Z', + ) + """ + def testSession(self): """Test Session""" - # FIXME: construct object with mandatory attributes with example values - # model = Session() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py index 942af62..900bebe 100644 --- a/test/test_sessions_api.py +++ b/test/test_sessions_api.py @@ -1,30 +1,33 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 import unittest -import opal_security -from opal_security.api.sessions_api import SessionsApi # noqa: E501 +from opal_security.api.sessions_api import SessionsApi class TestSessionsApi(unittest.TestCase): """SessionsApi unit test stubs""" - def setUp(self): - self.api = SessionsApi() # noqa: E501 + def setUp(self) -> None: + self.api = SessionsApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_sessions(self): + def test_sessions(self) -> None: """Test case for sessions """ diff --git a/test/test_sessions_list.py b/test/test_sessions_list.py index 4d45f32..f416d91 100644 --- a/test/test_sessions_list.py +++ b/test/test_sessions_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.session import Session -globals()['Session'] = Session from opal_security.models.sessions_list import SessionsList - class TestSessionsList(unittest.TestCase): """SessionsList unit test stubs""" @@ -27,12 +26,31 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> SessionsList: + """Test SessionsList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SessionsList` + """ + model = SessionsList() + if include_optional: + return SessionsList( + next = 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', + previous = 'cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ', + results = [ + {connection_id=h0z968412-2451-4bbd-42h4-057l715d917m, user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, resource_id=1b978423-db0a-4037-a4cf-f79c60cb67b3, expiration_date=2022-01-23T04:56:07Z} + ] + ) + else: + return SessionsList( + ) + """ + def testSessionsList(self): """Test SessionsList""" - # FIXME: construct object with mandatory attributes with example values - # model = SessionsList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_sub_event.py b/test/test_sub_event.py index 7c58948..09c3647 100644 --- a/test/test_sub_event.py +++ b/test/test_sub_event.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SubEvent: """Test SubEvent - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SubEvent` diff --git a/test/test_tag.py b/test/test_tag.py index 83c8f15..ee5dab1 100644 --- a/test/test_tag.py +++ b/test/test_tag.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.tag import Tag - class TestTag(unittest.TestCase): """Tag unit test stubs""" @@ -25,12 +26,33 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> Tag: + """Test Tag + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Tag` + """ + model = Tag() + if include_optional: + return Tag( + tag_id = 'f290a738-5f9f-43c2-ad67-fa31ff0eb946', + created_at = '2022-01-23T04:56:07Z', + updated_at = '2022-02-23T01:34:07Z', + user_creator_id = 'd4a7d928-783e-4599-8ec6-088d635a5bcc', + key = 'database-name', + value = 'redis_db' + ) + else: + return Tag( + tag_id = 'f290a738-5f9f-43c2-ad67-fa31ff0eb946', + ) + """ + def testTag(self): """Test Tag""" - # FIXME: construct object with mandatory attributes with example values - # model = Tag() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_tag_filter.py b/test/test_tag_filter.py index 89bee38..e6bb539 100644 --- a/test/test_tag_filter.py +++ b/test/test_tag_filter.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TagFilter: """Test TagFilter - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TagFilter` diff --git a/test/test_tags_api.py b/test/test_tags_api.py index 20e5c4a..98013f5 100644 --- a/test/test_tags_api.py +++ b/test/test_tags_api.py @@ -1,72 +1,95 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 import unittest -import opal_security -from opal_security.api.tags_api import TagsApi # noqa: E501 +from opal_security.api.tags_api import TagsApi class TestTagsApi(unittest.TestCase): """TagsApi unit test stubs""" - def setUp(self): - self.api = TagsApi() # noqa: E501 + def setUp(self) -> None: + self.api = TagsApi() - def tearDown(self): + def tearDown(self) -> None: pass - def test_add_group_tag(self): + def test_add_group_tag(self) -> None: """Test case for add_group_tag """ pass - def test_add_resource_tag(self): + def test_add_resource_tag(self) -> None: """Test case for add_resource_tag """ pass - def test_add_user_tag(self): + def test_add_user_tag(self) -> None: """Test case for add_user_tag """ pass - def test_create_tag(self): + def test_create_tag(self) -> None: """Test case for create_tag """ pass - def test_get_tag(self): + def test_delete_tag_by_id(self) -> None: + """Test case for delete_tag_by_id + + """ + pass + + def test_get_tag(self) -> None: """Test case for get_tag """ pass - def test_remove_group_tag(self): + def test_get_tag_by_id(self) -> None: + """Test case for get_tag_by_id + + Get tag by ID + """ + pass + + def test_get_tags(self) -> None: + """Test case for get_tags + + Get tags + """ + pass + + def test_remove_group_tag(self) -> None: """Test case for remove_group_tag """ pass - def test_remove_resource_tag(self): + def test_remove_resource_tag(self) -> None: """Test case for remove_resource_tag """ pass - def test_remove_user_tag(self): + def test_remove_user_tag(self) -> None: """Test case for remove_user_tag """ diff --git a/test/test_tags_list.py b/test/test_tags_list.py index 7592630..51a8173 100644 --- a/test/test_tags_list.py +++ b/test/test_tags_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.tag import Tag -globals()['Tag'] = Tag from opal_security.models.tags_list import TagsList - class TestTagsList(unittest.TestCase): """TagsList unit test stubs""" @@ -27,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> TagsList: + """Test TagsList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TagsList` + """ + model = TagsList() + if include_optional: + return TagsList( + tags = [ + {tag_id=f290a738-5f9f-43c2-ad67-fa31ff0eb946, created_at=2022-01-23T04:56:07Z, updated_at=2022-02-23T01:34:07Z, user_creator_id=d4a7d928-783e-4599-8ec6-088d635a5bcc, key=database-name, value=redis_db} + ] + ) + else: + return TagsList( + tags = [ + {tag_id=f290a738-5f9f-43c2-ad67-fa31ff0eb946, created_at=2022-01-23T04:56:07Z, updated_at=2022-02-23T01:34:07Z, user_creator_id=d4a7d928-783e-4599-8ec6-088d635a5bcc, key=database-name, value=redis_db} + ], + ) + """ + def testTagsList(self): """Test TagsList""" - # FIXME: construct object with mandatory attributes with example values - # model = TagsList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_ticket_propagation_configuration.py b/test/test_ticket_propagation_configuration.py index 15bfe95..7d25846 100644 --- a/test/test_ticket_propagation_configuration.py +++ b/test/test_ticket_propagation_configuration.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_ticketing_provider_enum.py b/test/test_ticketing_provider_enum.py index 0af07cb..5abdb3b 100644 --- a/test/test_ticketing_provider_enum.py +++ b/test/test_ticketing_provider_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_uar.py b/test/test_uar.py index bea933a..71095ce 100644 --- a/test/test_uar.py +++ b/test/test_uar.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UAR: """Test UAR - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UAR` @@ -40,10 +40,10 @@ def make_instance(self, include_optional) -> UAR: name = 'Monthly UAR (July)', reviewer_assignment_policy = 'MANUALLY', send_reviewer_assignment_notification = False, - deadline = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deadline = '2022-07-14T06:59:59Z', time_zone = 'America/Los_Angeles', self_review_allowed = False, - uar_scope = {"tags":[{"key":"uar_scope","value":"high_priority"}],"names":["demo","api"],"admins":["f454d283-ca87-4a8a-bdbb-df212eca5353","8763d283-ca87-4a8a-bdbb-df212ecab139"]} + uar_scope = {filter_operator=ANY, users=[userd283-ca87-4a8a-bdbb-df212eca5353], include_group_bindings=true, tags=[{key=uar_scope, value=high_priority}], names=[demo, api], admins=[f454d283-ca87-4a8a-bdbb-df212eca5353, 8763d283-ca87-4a8a-bdbb-df212ecab139], resource_types=[GCP_CLOUD_SQL_POSTGRES_INSTANCE], group_types=[AWS_SSO_GROUP], apps=[pas2d283-ca87-4a8a-bdbb-df212eca5353, apss2d283-ca87-4a8a-bdbb-df212eca5353], entities=[f454d283-as87-4a8a-bdbb-df212eca5353, f454d283-as87-4a8a-bdbb-df212eca5329]} ) else: return UAR( @@ -51,7 +51,7 @@ def make_instance(self, include_optional) -> UAR: name = 'Monthly UAR (July)', reviewer_assignment_policy = 'MANUALLY', send_reviewer_assignment_notification = False, - deadline = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deadline = '2022-07-14T06:59:59Z', time_zone = 'America/Los_Angeles', self_review_allowed = False, ) diff --git a/test/test_uar_reviewer_assignment_policy_enum.py b/test/test_uar_reviewer_assignment_policy_enum.py index 215831b..dce38ba 100644 --- a/test/test_uar_reviewer_assignment_policy_enum.py +++ b/test/test_uar_reviewer_assignment_policy_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_uar_scope.py b/test/test_uar_scope.py index 1af0dfc..99b311c 100644 --- a/test/test_uar_scope.py +++ b/test/test_uar_scope.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UARScope: """Test UARScope - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UARScope` @@ -36,14 +36,32 @@ def make_instance(self, include_optional) -> UARScope: model = UARScope() if include_optional: return UARScope( - tags = [ - {"key":"uar_scope","value":"high_priority"} + group_visibility = 'STRICT', + users = [ + 'userd283-ca87-4a8a-bdbb-df212eca5353' ], - names = [ - 'demo' + filter_operator = 'ANY', + entities = [ + 'f454d283-as87-4a8a-bdbb-df212eca5353' + ], + apps = [ + 'pas2d283-ca87-4a8a-bdbb-df212eca5353' ], admins = [ 'f454d283-ca87-4a8a-bdbb-df212eca5353' + ], + group_types = [ + 'OPAL_GROUP' + ], + resource_types = [ + 'AWS_IAM_ROLE' + ], + include_group_bindings = False, + tags = [ + {key=uar_scope, value=high_priority} + ], + names = [ + 'demo' ] ) else: diff --git a/test/test_uars_api.py b/test/test_uars_api.py index 5a6b867..52e0443 100644 --- a/test/test_uars_api.py +++ b/test/test_uars_api.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_update_configuration_template_info.py b/test/test_update_configuration_template_info.py index f447ce6..5169880 100644 --- a/test/test_update_configuration_template_info.py +++ b/test/test_update_configuration_template_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateConfigurationTemplateInfo: """Test UpdateConfigurationTemplateInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateConfigurationTemplateInfo` @@ -39,16 +39,22 @@ def make_instance(self, include_optional) -> UpdateConfigurationTemplateInfo: configuration_template_id = '7c86c85d-0651-43e2-a748-d69d658418e8', name = 'Prod AWS Template', admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', - visibility = {"visibility":"LIMITED","visibility_group_ids":["7870617d-e72a-47f5-a84c-693817ab4567","1520617d-e72a-47f5-a84c-693817ab48ad2"]}, - linked_audit_message_channel_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], + visibility = private, + linked_audit_message_channel_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], request_configurations = [ - {"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","created_at":"2021-01-06T20:00:00Z","updated_at":"2021-01-06T20:00:00Z","condition":{"group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b3"},"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":1} + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} ], - request_configuration_list = {"request_configurations":[{"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e8","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","condition":null,"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":0},{"request_configuration_id":"7c86c85d-0651-43e2-a748-d69d658418e9","organization_id":"w86c85d-0651-43e2-a748-d69d658418e8","condition":{"group_id":"1b978423-db0a-4037-a4cf-f79c60cb67b4"},"allow_requests":true,"auto_approval":false,"require_mfa_to_request":false,"max_duration_minutes":120,"recommended_duration_minutes":120,"require_support_ticket":false,"reviewer_stages":[{"reviewer_stage_id":"7c86c85d-0651-43e2-a748-d69d658418e8","owner_ids":["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"],"stage":1}],"priority":1}]}, - member_oncall_schedule_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","7c86c85d-0651-43e2-a748-d69d658418e8"], - break_glass_user_ids = ["37cb7e41-12ba-46da-92ff-030abe0450b1","37cb7e41-12ba-46da-92ff-030abe0450b2"], + request_configuration_list = {request_configurations=[{request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition=null, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=0}, {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e9, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b4}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1}]}, + member_oncall_schedule_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 7c86c85d-0651-43e2-a748-d69d658418e8], + break_glass_user_ids = [37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], require_mfa_to_approve = False, - require_mfa_to_connect = False + require_mfa_to_connect = False, + ticket_propagation = opal_security.models.ticket_propagation_configuration.TicketPropagationConfiguration( + enabled_on_grant = True, + enabled_on_revocation = True, + ticket_provider = 'LINEAR', + ticket_project_id = '', ), + custom_request_notification = 'Check your email to register your account.' ) else: return UpdateConfigurationTemplateInfo( diff --git a/test/test_update_group_binding_info.py b/test/test_update_group_binding_info.py index 01ed42b..e3eaff0 100644 --- a/test/test_update_group_binding_info.py +++ b/test/test_update_group_binding_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateGroupBindingInfo: """Test UpdateGroupBindingInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateGroupBindingInfo` @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> UpdateGroupBindingInfo: group_binding_id = '0ae19dbf-324d-4216-999c-574d46182c7e', source_group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', groups = [ - opal.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( + opal_security.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', ) ] ) @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> UpdateGroupBindingInfo: group_binding_id = '0ae19dbf-324d-4216-999c-574d46182c7e', source_group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', groups = [ - opal.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( + opal_security.models.create_group_binding_info_groups_inner.CreateGroupBindingInfo_groups_inner( group_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', ) ], ) diff --git a/test/test_update_group_binding_info_list.py b/test/test_update_group_binding_info_list.py index 215306f..539d3a4 100644 --- a/test/test_update_group_binding_info_list.py +++ b/test/test_update_group_binding_info_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateGroupBindingInfoList: """Test UpdateGroupBindingInfoList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateGroupBindingInfoList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> UpdateGroupBindingInfoList: if include_optional: return UpdateGroupBindingInfoList( group_bindings = [ - {"group_binding_id":"0ae19dbf-324d-4216-999c-574d46182c7e","source_group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","groups":[{"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353"},{"group_id":"99d0b81d-14be-4cf6-bd27-348b4af1d11b"}]} + {group_binding_id=0ae19dbf-324d-4216-999c-574d46182c7e, source_group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, groups=[{group_id=f454d283-ca87-4a8a-bdbb-df212eca5353}, {group_id=99d0b81d-14be-4cf6-bd27-348b4af1d11b}]} ] ) else: return UpdateGroupBindingInfoList( group_bindings = [ - {"group_binding_id":"0ae19dbf-324d-4216-999c-574d46182c7e","source_group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","groups":[{"group_id":"f454d283-ca87-4a8a-bdbb-df212eca5353"},{"group_id":"99d0b81d-14be-4cf6-bd27-348b4af1d11b"}]} + {group_binding_id=0ae19dbf-324d-4216-999c-574d46182c7e, source_group_id=f454d283-ca87-4a8a-bdbb-df212eca5353, groups=[{group_id=f454d283-ca87-4a8a-bdbb-df212eca5353}, {group_id=99d0b81d-14be-4cf6-bd27-348b4af1d11b}]} ], ) """ diff --git a/test/test_update_group_info.py b/test/test_update_group_info.py index 885033f..89a5a8e 100644 --- a/test/test_update_group_info.py +++ b/test/test_update_group_info.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.visibility_type_enum import VisibilityTypeEnum -globals()['VisibilityTypeEnum'] = VisibilityTypeEnum from opal_security.models.update_group_info import UpdateGroupInfo - class TestUpdateGroupInfo(unittest.TestCase): """UpdateGroupInfo unit test stubs""" @@ -27,12 +26,52 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> UpdateGroupInfo: + """Test UpdateGroupInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateGroupInfo` + """ + model = UpdateGroupInfo() + if include_optional: + return UpdateGroupInfo( + group_id = 'f454d283-ca87-4a87-bdbb-df212eca5353', + name = 'api-group', + description = 'This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases.', + admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', + max_duration = 120, + recommended_duration = 120, + require_manager_approval = False, + require_support_ticket = False, + folder_id = 'e27cb7b0-98e2-4555-9916-9e6d8ca6b079', + require_mfa_to_approve = False, + require_mfa_to_request = False, + auto_approval = False, + configuration_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + request_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + is_requestable = False, + group_leader_user_ids = [ + '' + ], + extensions_duration_in_minutes = 120, + request_configurations = [ + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} + ], + request_configuration_list = {request_configurations=[{request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition=null, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=0}, {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e9, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b4}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1}]}, + custom_request_notification = 'Check your email to register your account.', + risk_sensitivity_override = 'UNKNOWN' + ) + else: + return UpdateGroupInfo( + group_id = 'f454d283-ca87-4a87-bdbb-df212eca5353', + ) + """ + def testUpdateGroupInfo(self): """Test UpdateGroupInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = UpdateGroupInfo() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_update_group_info_list.py b/test/test_update_group_info_list.py index 06216c1..0db2300 100644 --- a/test/test_update_group_info_list.py +++ b/test/test_update_group_info_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.update_group_info import UpdateGroupInfo -globals()['UpdateGroupInfo'] = UpdateGroupInfo from opal_security.models.update_group_info_list import UpdateGroupInfoList - class TestUpdateGroupInfoList(unittest.TestCase): """UpdateGroupInfoList unit test stubs""" @@ -27,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> UpdateGroupInfoList: + """Test UpdateGroupInfoList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateGroupInfoList` + """ + model = UpdateGroupInfoList() + if include_optional: + return UpdateGroupInfoList( + groups = [ + {group_id=f454d283-ca87-4a87-bdbb-df212eca5353, description=This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases., name=api-group, admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, max_duration=120, require_manager_approval=false, require_support_ticket=false} + ] + ) + else: + return UpdateGroupInfoList( + groups = [ + {group_id=f454d283-ca87-4a87-bdbb-df212eca5353, description=This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases., name=api-group, admin_owner_id=7c86c85d-0651-43e2-a748-d69d658418e8, max_duration=120, require_manager_approval=false, require_support_ticket=false} + ], + ) + """ + def testUpdateGroupInfoList(self): """Test UpdateGroupInfoList""" - # FIXME: construct object with mandatory attributes with example values - # model = UpdateGroupInfoList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_update_group_resources_info.py b/test/test_update_group_resources_info.py index 550ce64..ca70240 100644 --- a/test/test_update_group_resources_info.py +++ b/test/test_update_group_resources_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateGroupResourcesInfo: """Test UpdateGroupResourcesInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateGroupResourcesInfo` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> UpdateGroupResourcesInfo: if include_optional: return UpdateGroupResourcesInfo( resources = [ - {"resource_id":"b5a5ca27-0ea3-4d86-9199-2126d57d1fbd","access_level_remote_id":"write"} + {resource_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, access_level_remote_id=write} ] ) else: return UpdateGroupResourcesInfo( resources = [ - {"resource_id":"b5a5ca27-0ea3-4d86-9199-2126d57d1fbd","access_level_remote_id":"write"} + {resource_id=b5a5ca27-0ea3-4d86-9199-2126d57d1fbd, access_level_remote_id=write} ], ) """ diff --git a/test/test_update_idp_group_mappings_request.py b/test/test_update_idp_group_mappings_request.py index cd1062c..f941302 100644 --- a/test/test_update_idp_group_mappings_request.py +++ b/test/test_update_idp_group_mappings_request.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -37,17 +37,19 @@ def make_instance(self, include_optional) -> UpdateIdpGroupMappingsRequest: if include_optional: return UpdateIdpGroupMappingsRequest( mappings = [ - opal.models.update_idp_group_mappings_request_mappings_inner.updateIdpGroupMappings_request_mappings_inner( + opal_security.models.update_idp_group_mappings_request_mappings_inner.updateIdpGroupMappings_request_mappings_inner( group_id = '', - alias = '', ) + alias = '', + hidden_from_end_user = True, ) ] ) else: return UpdateIdpGroupMappingsRequest( mappings = [ - opal.models.update_idp_group_mappings_request_mappings_inner.updateIdpGroupMappings_request_mappings_inner( + opal_security.models.update_idp_group_mappings_request_mappings_inner.updateIdpGroupMappings_request_mappings_inner( group_id = '', - alias = '', ) + alias = '', + hidden_from_end_user = True, ) ], ) """ diff --git a/test/test_update_idp_group_mappings_request_mappings_inner.py b/test/test_update_idp_group_mappings_request_mappings_inner.py index 8528bdd..a828089 100644 --- a/test/test_update_idp_group_mappings_request_mappings_inner.py +++ b/test/test_update_idp_group_mappings_request_mappings_inner.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> UpdateIdpGroupMappingsRequestMappin if include_optional: return UpdateIdpGroupMappingsRequestMappingsInner( group_id = '', - alias = '' + alias = '', + hidden_from_end_user = True ) else: return UpdateIdpGroupMappingsRequestMappingsInner( diff --git a/test/test_update_owner_info.py b/test/test_update_owner_info.py index 7b6009b..2586429 100644 --- a/test/test_update_owner_info.py +++ b/test/test_update_owner_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOwnerInfo: """Test UpdateOwnerInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateOwnerInfo` diff --git a/test/test_update_owner_info_list.py b/test/test_update_owner_info_list.py index 1142da9..a28f8a1 100644 --- a/test/test_update_owner_info_list.py +++ b/test/test_update_owner_info_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOwnerInfoList: """Test UpdateOwnerInfoList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateOwnerInfoList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> UpdateOwnerInfoList: if include_optional: return UpdateOwnerInfoList( owners = [ - {"owner_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"API Owner","description":"This owner represents the API team owners.","access_request_escalation_period":120} + {owner_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=API Owner, description=This owner represents the API team owners., access_request_escalation_period=120} ] ) else: return UpdateOwnerInfoList( owners = [ - {"owner_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"API Owner","description":"This owner represents the API team owners.","access_request_escalation_period":120} + {owner_id=f454d283-ca87-4a8a-bdbb-df212eca5353, name=API Owner, description=This owner represents the API team owners., access_request_escalation_period=120} ], ) """ diff --git a/test/test_update_resource_info.py b/test/test_update_resource_info.py index 861ac9c..5c8552b 100644 --- a/test/test_update_resource_info.py +++ b/test/test_update_resource_info.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.visibility_type_enum import VisibilityTypeEnum -globals()['VisibilityTypeEnum'] = VisibilityTypeEnum from opal_security.models.update_resource_info import UpdateResourceInfo - class TestUpdateResourceInfo(unittest.TestCase): """UpdateResourceInfo unit test stubs""" @@ -27,12 +26,55 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> UpdateResourceInfo: + """Test UpdateResourceInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateResourceInfo` + """ + model = UpdateResourceInfo() + if include_optional: + return UpdateResourceInfo( + resource_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + name = 'my-mongo-db', + description = 'This resource represents AWS IAM role "SupportUser".', + admin_owner_id = '7c86c85d-0651-43e2-a748-d69d658418e8', + max_duration = 120, + recommended_duration = 120, + require_manager_approval = False, + require_support_ticket = False, + folder_id = 'e27cb7b0-98e2-4555-9916-9e6d8ca6b079', + require_mfa_to_approve = False, + require_mfa_to_request = False, + require_mfa_to_connect = False, + auto_approval = False, + ticket_propagation = opal_security.models.ticket_propagation_configuration.TicketPropagationConfiguration( + enabled_on_grant = True, + enabled_on_revocation = True, + ticket_provider = 'LINEAR', + ticket_project_id = '', ), + custom_request_notification = 'Check your email to register your account.', + risk_sensitivity_override = 'UNKNOWN', + configuration_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + request_template_id = '06851574-e50d-40ca-8c78-f72ae6ab4304', + is_requestable = False, + extensions_duration_in_minutes = 120, + request_configurations = [ + {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, created_at=2021-01-06T20:00:00Z, updated_at=2021-01-06T20:00:00Z, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b3}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1} + ], + request_configuration_list = {request_configurations=[{request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e8, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition=null, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=0}, {request_configuration_id=7c86c85d-0651-43e2-a748-d69d658418e9, organization_id=w86c85d-0651-43e2-a748-d69d658418e8, condition={group_id=1b978423-db0a-4037-a4cf-f79c60cb67b4}, allow_requests=true, auto_approval=false, require_mfa_to_request=false, max_duration_minutes=120, recommended_duration_minutes=120, require_support_ticket=false, reviewer_stages=[{reviewer_stage_id=7c86c85d-0651-43e2-a748-d69d658418e8, owner_ids=[37cb7e41-12ba-46da-92ff-030abe0450b1, 37cb7e41-12ba-46da-92ff-030abe0450b2], stage=1}], priority=1}]} + ) + else: + return UpdateResourceInfo( + resource_id = 'f454d283-ca87-4a8a-bdbb-df212eca5353', + ) + """ + def testUpdateResourceInfo(self): """Test UpdateResourceInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = UpdateResourceInfo() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_update_resource_info_list.py b/test/test_update_resource_info_list.py index e51c49f..d1a749d 100644 --- a/test/test_update_resource_info_list.py +++ b/test/test_update_resource_info_list.py @@ -1,23 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security -from opal_security.models.update_resource_info import UpdateResourceInfo -globals()['UpdateResourceInfo'] = UpdateResourceInfo from opal_security.models.update_resource_info_list import UpdateResourceInfoList - class TestUpdateResourceInfoList(unittest.TestCase): """UpdateResourceInfoList unit test stubs""" @@ -27,12 +26,32 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> UpdateResourceInfoList: + """Test UpdateResourceInfoList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateResourceInfoList` + """ + model = UpdateResourceInfoList() + if include_optional: + return UpdateResourceInfoList( + resources = [ + {"resource_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"my-mongo-db","description":"This resource represents AWS IAM role \"SupportUser\".","admin_owner_id":"7c86c85d-0651-43e2-a748-d69d658418e8","max_duration":120,"require_manager_approval":false,"require_support_ticket":false} + ] + ) + else: + return UpdateResourceInfoList( + resources = [ + {"resource_id":"f454d283-ca87-4a8a-bdbb-df212eca5353","name":"my-mongo-db","description":"This resource represents AWS IAM role \"SupportUser\".","admin_owner_id":"7c86c85d-0651-43e2-a748-d69d658418e8","max_duration":120,"require_manager_approval":false,"require_support_ticket":false} + ], + ) + """ + def testUpdateResourceInfoList(self): """Test UpdateResourceInfoList""" - # FIXME: construct object with mandatory attributes with example values - # model = UpdateResourceInfoList() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_user.py b/test/test_user.py index 1245370..aa21044 100644 --- a/test/test_user.py +++ b/test/test_user.py @@ -1,21 +1,22 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import sys import unittest -import opal_security from opal_security.models.user import User - class TestUser(unittest.TestCase): """User unit test stubs""" @@ -25,12 +26,39 @@ def setUp(self): def tearDown(self): pass + def make_instance(self, include_optional) -> User: + """Test User + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `User` + """ + model = User() + if include_optional: + return User( + user_id = 'h0z968412-2451-4bbd-42h4-057l715d917m', + email = 'john.doe@company.dev', + full_name = 'John Doe', + first_name = 'John', + last_name = 'Doe', + position = 'Senior Engineer', + hr_idp_status = 'ACTIVE' + ) + else: + return User( + user_id = 'h0z968412-2451-4bbd-42h4-057l715d917m', + email = 'john.doe@company.dev', + full_name = 'John Doe', + first_name = 'John', + last_name = 'Doe', + position = 'Senior Engineer', + ) + """ + def testUser(self): """Test User""" - # FIXME: construct object with mandatory attributes with example values - # model = User() # noqa: E501 - pass - + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main() diff --git a/test/test_user_hr_idp_status_enum.py b/test/test_user_hr_idp_status_enum.py index 6075229..2d6728f 100644 --- a/test/test_user_hr_idp_status_enum.py +++ b/test/test_user_hr_idp_status_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev diff --git a/test/test_user_id_list.py b/test/test_user_id_list.py index 6347202..8101071 100644 --- a/test/test_user_id_list.py +++ b/test/test_user_id_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UserIDList: """Test UserIDList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UserIDList` diff --git a/test/test_user_list.py b/test/test_user_list.py index 3fbcc32..e92623c 100644 --- a/test/test_user_list.py +++ b/test/test_user_list.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> UserList: """Test UserList - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UserList` @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> UserList: if include_optional: return UserList( users = [ - {"user_id":"29827fb8-f2dd-4e80-9576-28e31e9934ac","email":"1b978423-db0a-4037-a4cf-f79c60cb67b3","full_name":"John Doe","first_name":"John","last_name":"Doe","position":"Engineer"} + {user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, email=john.doe@company.dev, full_name=John Doe, first_name=John, last_name=Doe, position=Engineer} ] ) else: return UserList( users = [ - {"user_id":"29827fb8-f2dd-4e80-9576-28e31e9934ac","email":"1b978423-db0a-4037-a4cf-f79c60cb67b3","full_name":"John Doe","first_name":"John","last_name":"Doe","position":"Engineer"} + {user_id=29827fb8-f2dd-4e80-9576-28e31e9934ac, email=john.doe@company.dev, full_name=John Doe, first_name=John, last_name=Doe, position=Engineer} ], ) """ diff --git a/test/test_users_api.py b/test/test_users_api.py index 2cc60a2..fbdf0bd 100644 --- a/test/test_users_api.py +++ b/test/test_users_api.py @@ -1,30 +1,51 @@ +# coding: utf-8 + """ Opal API - Your Home For Developer Resources. # noqa: E501 + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 import unittest -import opal_security -from opal_security.api.users_api import UsersApi # noqa: E501 +from opal_security.api.users_api import UsersApi class TestUsersApi(unittest.TestCase): """UsersApi unit test stubs""" - def setUp(self): - self.api = UsersApi() # noqa: E501 + def setUp(self) -> None: + self.api = UsersApi() + + def tearDown(self) -> None: + pass + + def test_get_remote_users(self) -> None: + """Test case for get_remote_users - def tearDown(self): + """ + pass + + def test_get_user_tags(self) -> None: + """Test case for get_user_tags + + """ + pass + + def test_get_users(self) -> None: + """Test case for get_users + + """ pass - def test_user(self): + def test_user(self) -> None: """Test case for user """ diff --git a/test/test_visibility_info.py b/test/test_visibility_info.py index 523b16a..9f28f2a 100644 --- a/test/test_visibility_info.py +++ b/test/test_visibility_info.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> VisibilityInfo: """Test VisibilityInfo - include_option is a boolean, when False only required + include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `VisibilityInfo` diff --git a/test/test_visibility_type_enum.py b/test/test_visibility_type_enum.py index 94633ed..39e8459 100644 --- a/test/test_visibility_type_enum.py +++ b/test/test_visibility_type_enum.py @@ -3,7 +3,7 @@ """ Opal API - Your Home For Developer Resources. + The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. The version of the OpenAPI document: 1.0 Contact: hello@opal.dev