Skip to content

shuttle-hq/permit-client-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust API client for openapi

Authorization as a service

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 2.0.0
  • Package version: 2.0.0
  • Generator version: 7.5.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named openapi and add the following to Cargo.toml under [dependencies]:

openapi = { path = "./openapi" }

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AccessRequestsApi approve_access_request PUT /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/approve Approve Access Request
AccessRequestsApi cancel_access_request PUT /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/cancel Cancel Access Request
AccessRequestsApi create_access_request POST /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests Create Access Request
AccessRequestsApi deny_access_request PUT /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/deny Deny Access Request
AccessRequestsApi get_access_request GET /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id} Get Access Request
AccessRequestsApi list_access_requests GET /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests List Access Requests
AccessRequestsApi update_access_request_reviewer PATCH /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/access_requests/{access_request_id}/reviewer Update Access Request Reviewer
AuditLogsApi get_detailed_audit_log GET /v2/pdps/{proj_id}/{env_id}/audit_logs/{log_id} Get detailed audit log
AuditLogsApi list_audit_logs GET /v2/pdps/{proj_id}/{env_id}/audit_logs List Audit Logs
BulkOperationsApi bulk_create_tenants POST /v2/facts/{proj_id}/{env_id}/bulk/tenants Bulk Create Tenants
BulkOperationsApi bulk_create_users POST /v2/facts/{proj_id}/{env_id}/bulk/users Bulk Create Users
BulkOperationsApi bulk_delete_resource_instances DELETE /v2/facts/{proj_id}/{env_id}/bulk/resource_instances Bulk Delete Resource Instances
BulkOperationsApi bulk_delete_tenants DELETE /v2/facts/{proj_id}/{env_id}/bulk/tenants Bulk Delete Tenants
BulkOperationsApi bulk_delete_users DELETE /v2/facts/{proj_id}/{env_id}/bulk/users Bulk Delete Users
BulkOperationsApi bulk_replace_resource_instances PUT /v2/facts/{proj_id}/{env_id}/bulk/resource_instances Bulk Replace Resource Instances
BulkOperationsApi bulk_replace_users PUT /v2/facts/{proj_id}/{env_id}/bulk/users Bulk Replace Users
ConditionSetRulesApi assign_set_permissions POST /v2/facts/{proj_id}/{env_id}/set_rules Assign Set Permissions
ConditionSetRulesApi list_set_permissions GET /v2/facts/{proj_id}/{env_id}/set_rules List Set Permissions
ConditionSetRulesApi unassign_set_permissions DELETE /v2/facts/{proj_id}/{env_id}/set_rules Unassign Set Permissions
ConditionSetsApi create_condition_set POST /v2/schema/{proj_id}/{env_id}/condition_sets Create Condition Set
ConditionSetsApi delete_condition_set DELETE /v2/schema/{proj_id}/{env_id}/condition_sets/{condition_set_id} Delete Condition Set
ConditionSetsApi get_condition_set GET /v2/schema/{proj_id}/{env_id}/condition_sets/{condition_set_id} Get Condition Set
ConditionSetsApi get_condition_set_ancestors GET /v2/schema/{proj_id}/{env_id}/condition_sets/{condition_set_id}/ancestors Get Condition Set Ancestors
ConditionSetsApi get_condition_set_descendants GET /v2/schema/{proj_id}/{env_id}/condition_sets/{condition_set_id}/descendants Get Condition Set Descendants
ConditionSetsApi list_condition_sets GET /v2/schema/{proj_id}/{env_id}/condition_sets List Condition Sets
ConditionSetsApi update_condition_set PATCH /v2/schema/{proj_id}/{env_id}/condition_sets/{condition_set_id} Update Condition Set
EmailConfigurationsApi create_or_update_email_configuration POST /v2/facts/{proj_id}/{env_id}/email_configurations Create Or Update Email Configuration
EmailConfigurationsApi get_email_configuration GET /v2/facts/{proj_id}/{env_id}/email_configurations Get Email Configuration
EmailConfigurationsApi send_test_email POST /v2/facts/{proj_id}/{env_id}/email_configurations/send_test_email Send Test Email
EmailTemplatesApi get_template_by_type GET /v2/facts/{proj_id}/{env_id}/email_templates/{template_type} Get Template By Type
EmailTemplatesApi list_templates GET /v2/facts/{proj_id}/{env_id}/email_templates/ List Templates
EmailTemplatesApi send_test_email_by_type POST /v2/facts/{proj_id}/{env_id}/email_templates/{template_type}/send_test_email Send Test Email By Type
EmailTemplatesApi update_template_by_type POST /v2/facts/{proj_id}/{env_id}/email_templates/{template_type} Update Template By Type
EnvironmentsApi copy_environment POST /v2/projects/{proj_id}/envs/{env_id}/copy Copy Environment
EnvironmentsApi create_environment POST /v2/projects/{proj_id}/envs Create Environment
EnvironmentsApi delete_environment DELETE /v2/projects/{proj_id}/envs/{env_id} Delete Environment
EnvironmentsApi get_environment GET /v2/projects/{proj_id}/envs/{env_id} Get Environment
EnvironmentsApi list_environments GET /v2/projects/{proj_id}/envs List Environments
EnvironmentsApi stats_environments GET /v2/projects/{proj_id}/envs/{env_id}/stats Stats Environments
EnvironmentsApi test_jwks_by_url POST /v2/projects/{proj_id}/envs/{env_id}/test_jwks Test Jwks By Url
EnvironmentsApi update_environment PATCH /v2/projects/{proj_id}/envs/{env_id} Update Environment
ImplicitGrantsApi create_implicit_grant POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/implicit_grants Create Implicit Grant
ImplicitGrantsApi delete_implicit_grant DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/implicit_grants Delete Implicit Grant
ImplicitGrantsApi update_implicit_grants_conditions PUT /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/implicit_grants/conditions Update Implicit Grants Conditions
MembersApi create_organization_members POST /v2/members Invite new members (EAP)
MembersApi delete_organization_member DELETE /v2/members/{member_id} Remove member (EAP)
MembersApi delete_organization_permissions DELETE /v2/members Remove permission (EAP)
MembersApi get_authenticated_member GET /v2/members/me Get the authenticated account member
MembersApi get_organization_member GET /v2/members/{member_id} Get Organization Member
MembersApi list_organization_members GET /v2/members List Organization Members
MembersApi update_organization_member PATCH /v2/members/{member_id} Edit members (EAP)
OrganizationsApi create_organization POST /v2/orgs Create Organization
OrganizationsApi delete_organization DELETE /v2/orgs/{org_id} Delete Organization
OrganizationsApi get_active_organization GET /v2/orgs/active/org Get Active Organization
OrganizationsApi get_organization GET /v2/orgs/{org_id} Get Organization
OrganizationsApi list_organizations GET /v2/orgs List Organizations
OrganizationsApi stats_organization GET /v2/orgs/{org_id}/stats Stats Organization
OrganizationsApi update_organization PATCH /v2/orgs/{org_id} Update Organization
PolicyDecisionPointsApi disable_debug_audit_logs PUT /v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/debug-audit-logs/disable Disable debug audit logs
PolicyDecisionPointsApi enable_debug_audit_logs PUT /v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/debug-audit-logs/enable Enable debug audit logs
PolicyDecisionPointsApi list_pdp_configs GET /v2/pdps/{proj_id}/{env_id}/configs List PDP configurations
PolicyDecisionPointsApi migrate_shards POST /v2/pdps/{proj_id}/{env_id}/configs/migrate-shards Migrate PDP Config number of shards
PolicyDecisionPointsApi rotate_pdp_api_key POST /v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/rotate-api-key Rotate PDP API Key
PolicyDecisionPointsApi update_min_pdp_version PATCH /v2/pdps/{proj_id}/{env_id}/configs/{pdp_id}/min-pdp-version Update minimum PDP version
ProjectsApi create_project POST /v2/projects Create Project
ProjectsApi delete_project DELETE /v2/projects/{proj_id} Delete Project
ProjectsApi get_project GET /v2/projects/{proj_id} Get Project
ProjectsApi list_projects GET /v2/projects List Projects
ProjectsApi update_project PATCH /v2/projects/{proj_id} Update Project
ProxyConfigApi create_proxy_config POST /v2/facts/{proj_id}/{env_id}/proxy_configs Create Proxy Config
ProxyConfigApi delete_proxy_config DELETE /v2/facts/{proj_id}/{env_id}/proxy_configs/{proxy_config_id} Delete Proxy Config
ProxyConfigApi get_proxy_config GET /v2/facts/{proj_id}/{env_id}/proxy_configs/{proxy_config_id} Get Proxy Config
ProxyConfigApi list_proxy_configs GET /v2/facts/{proj_id}/{env_id}/proxy_configs List Proxy Configs
ProxyConfigApi update_proxy_config PATCH /v2/facts/{proj_id}/{env_id}/proxy_configs/{proxy_config_id} Update Proxy Config
RelationshipTuplesApi bulk_create_relationship_tuples POST /v2/facts/{proj_id}/{env_id}/relationship_tuples/bulk Bulk create relationship tuples(EAP)
RelationshipTuplesApi bulk_delete_relationship_tuples DELETE /v2/facts/{proj_id}/{env_id}/relationship_tuples/bulk Bulk Delete Relationship Tuples
RelationshipTuplesApi create_relationship_tuple POST /v2/facts/{proj_id}/{env_id}/relationship_tuples Create Relationship Tuple
RelationshipTuplesApi delete_relationship_tuple DELETE /v2/facts/{proj_id}/{env_id}/relationship_tuples Delete Relationship Tuple
RelationshipTuplesApi list_relationship_tuples GET /v2/facts/{proj_id}/{env_id}/relationship_tuples List Relationship Tuples
ResourceActionGroupsApi create_resource_action_group POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/action_groups Create Resource Action Group
ResourceActionGroupsApi delete_resource_action_group DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/action_groups/{action_group_id} Delete Resource Action Group
ResourceActionGroupsApi get_resource_action_group GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/action_groups/{action_group_id} Get Resource Action Group
ResourceActionGroupsApi list_resource_action_groups GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/action_groups List Resource Action Groups
ResourceActionGroupsApi update_resource_action_group PATCH /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/action_groups/{action_group_id} Update Resource Action Group
ResourceActionsApi create_resource_action POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions Create Resource Action
ResourceActionsApi delete_resource_action DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} Delete Resource Action
ResourceActionsApi get_resource_action GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} Get Resource Action
ResourceActionsApi list_resource_actions GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions List Resource Actions
ResourceActionsApi update_resource_action PATCH /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} Update Resource Action
ResourceAttributesApi create_resource_attribute POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/attributes Create Resource Attribute
ResourceAttributesApi delete_resource_attribute DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/attributes/{attribute_id} Delete Resource Attribute
ResourceAttributesApi get_resource_attribute GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/attributes/{attribute_id} Get Resource Attribute
ResourceAttributesApi list_resource_attributes GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/attributes List Resource Attributes
ResourceAttributesApi update_resource_attribute PATCH /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/attributes/{attribute_id} Update Resource Attribute
ResourceInstancesApi create_resource_instance POST /v2/facts/{proj_id}/{env_id}/resource_instances Create Resource Instance
ResourceInstancesApi delete_resource_instance DELETE /v2/facts/{proj_id}/{env_id}/resource_instances/{instance_id} Delete Resource Instance
ResourceInstancesApi get_resource_instance GET /v2/facts/{proj_id}/{env_id}/resource_instances/{instance_id} Get Resource Instance
ResourceInstancesApi list_resource_instances GET /v2/facts/{proj_id}/{env_id}/resource_instances List Resource Instances
ResourceInstancesApi update_resource_instance PATCH /v2/facts/{proj_id}/{env_id}/resource_instances/{instance_id} Update Resource Instance
ResourceRelationsApi create_resource_relation POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations Create Resource Relation
ResourceRelationsApi delete_resource_relation DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations/{relation_id} Delete Resource Relation
ResourceRelationsApi get_resource_relation GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations/{relation_id} Get Resource Relation
ResourceRelationsApi list_resource_relations GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations List Resource Relations
ResourceRolesApi assign_permissions_to_resource_role POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/permissions Assign Permissions to Role
ResourceRolesApi create_resource_role POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles Create Resource Role
ResourceRolesApi delete_resource_role DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id} Delete Resource Role
ResourceRolesApi get_resource_role GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id} Get Resource Role
ResourceRolesApi get_resource_role_ancestors GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/ancestors Get Resource Role Ancestors
ResourceRolesApi get_resource_role_descendants GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/descendants Get Resource Role Descendants
ResourceRolesApi list_resource_roles GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles List Resource Roles
ResourceRolesApi remove_permissions_from_resource_role DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id}/permissions Remove Permissions from Role
ResourceRolesApi update_resource_role PATCH /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/roles/{role_id} Update Resource Role
ResourcesApi create_resource POST /v2/schema/{proj_id}/{env_id}/resources Create Resource
ResourcesApi delete_resource DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id} Delete Resource
ResourcesApi get_resource GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id} Get Resource
ResourcesApi list_resources GET /v2/schema/{proj_id}/{env_id}/resources List Resources
ResourcesApi replace_resource PUT /v2/schema/{proj_id}/{env_id}/resources/{resource_id} Replace Resource
ResourcesApi update_resource PATCH /v2/schema/{proj_id}/{env_id}/resources/{resource_id} Update Resource
RoleAssignmentsApi assign_role POST /v2/facts/{proj_id}/{env_id}/role_assignments Assign Role
RoleAssignmentsApi bulk_assign_role POST /v2/facts/{proj_id}/{env_id}/role_assignments/bulk Bulk create role assignments(EAP)
RoleAssignmentsApi bulk_unassign_role DELETE /v2/facts/{proj_id}/{env_id}/role_assignments/bulk Bulk Unassign Role
RoleAssignmentsApi list_role_assignments GET /v2/facts/{proj_id}/{env_id}/role_assignments List Role Assignments
RoleAssignmentsApi unassign_role DELETE /v2/facts/{proj_id}/{env_id}/role_assignments Unassign Role
RolesApi assign_permissions_to_role POST /v2/schema/{proj_id}/{env_id}/roles/{role_id}/permissions Assign Permissions To Role
RolesApi create_role POST /v2/schema/{proj_id}/{env_id}/roles Create Role
RolesApi delete_role DELETE /v2/schema/{proj_id}/{env_id}/roles/{role_id} Delete Role
RolesApi get_role GET /v2/schema/{proj_id}/{env_id}/roles/{role_id} Get Role
RolesApi get_role_ancestors GET /v2/schema/{proj_id}/{env_id}/roles/{role_id}/ancestors Get Role Ancestors
RolesApi get_role_descendants GET /v2/schema/{proj_id}/{env_id}/roles/{role_id}/descendants Get Role Descendants
RolesApi list_roles GET /v2/schema/{proj_id}/{env_id}/roles List Roles
RolesApi remove_permissions_from_role DELETE /v2/schema/{proj_id}/{env_id}/roles/{role_id}/permissions Remove Permissions From Role
RolesApi update_role PATCH /v2/schema/{proj_id}/{env_id}/roles/{role_id} Update Role
ScopeConfigurationsApi get_scope_config GET /v2/projects/{proj_id}/{env_id}/opal_scope Get Scope Config
ScopeConfigurationsApi reset_scope_config DELETE /v2/projects/{proj_id}/{env_id}/opal_scope Reset Scope Config
ScopeConfigurationsApi set_scope_config PUT /v2/projects/{proj_id}/{env_id}/opal_scope Set Scope Config
TenantsApi create_tenant POST /v2/facts/{proj_id}/{env_id}/tenants Create Tenant
TenantsApi delete_tenant DELETE /v2/facts/{proj_id}/{env_id}/tenants/{tenant_id} Delete Tenant
TenantsApi delete_tenant_user DELETE /v2/facts/{proj_id}/{env_id}/tenants/{tenant_id}/users/{user_id} Delete Tenant User
TenantsApi get_tenant GET /v2/facts/{proj_id}/{env_id}/tenants/{tenant_id} Get Tenant
TenantsApi list_tenant_users GET /v2/facts/{proj_id}/{env_id}/tenants/{tenant_id}/users List Tenant Users
TenantsApi list_tenants GET /v2/facts/{proj_id}/{env_id}/tenants List Tenants
TenantsApi update_tenant PATCH /v2/facts/{proj_id}/{env_id}/tenants/{tenant_id} Update Tenant
UserAttributesApi create_user_attribute POST /v2/schema/{proj_id}/{env_id}/users/attributes Create User Attribute
UserAttributesApi delete_user_attribute DELETE /v2/schema/{proj_id}/{env_id}/users/attributes/{attribute_id} Delete User Attribute
UserAttributesApi get_user_attribute GET /v2/schema/{proj_id}/{env_id}/users/attributes/{attribute_id} Get User Attribute
UserAttributesApi list_user_attributes GET /v2/schema/{proj_id}/{env_id}/users/attributes List User Attributes
UserAttributesApi update_user_attribute PATCH /v2/schema/{proj_id}/{env_id}/users/attributes/{attribute_id} Update User Attribute
UserInvitesApi approve_user_invite POST /v2/facts/{proj_id}/{env_id}/user_invites/{user_invite_id}/approve Approve User Invite
UserInvitesApi create_user_invite POST /v2/facts/{proj_id}/{env_id}/user_invites Create User Invite
UserInvitesApi delete_user_invite DELETE /v2/facts/{proj_id}/{env_id}/user_invites/{user_invite_id} Delete User Invite
UserInvitesApi get_user_invite GET /v2/facts/{proj_id}/{env_id}/user_invites/{user_invite_id} Get User Invite
UserInvitesApi list_user_invites GET /v2/facts/{proj_id}/{env_id}/user_invites List User Invites
UserInvitesApi update_user_invite PATCH /v2/facts/{proj_id}/{env_id}/user_invites/{user_invite_id} Update User Invite
UsersApi assign_role_to_user POST /v2/facts/{proj_id}/{env_id}/users/{user_id}/roles Assign Role To User
UsersApi create_user POST /v2/facts/{proj_id}/{env_id}/users Create User
UsersApi delete_user DELETE /v2/facts/{proj_id}/{env_id}/users/{user_id} Delete User
UsersApi get_user GET /v2/facts/{proj_id}/{env_id}/users/{user_id} Get User
UsersApi list_users GET /v2/facts/{proj_id}/{env_id}/users List Users
UsersApi replace_user PUT /v2/facts/{proj_id}/{env_id}/users/{user_id} Replace User
UsersApi unassign_role_from_user DELETE /v2/facts/{proj_id}/{env_id}/users/{user_id}/roles Unassign Role From User
UsersApi update_user PATCH /v2/facts/{proj_id}/{env_id}/users/{user_id} Update User

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

About

Generated Rust client library for the Permit.io API v2 https://api.permit.io/v2/redoc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published