Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Cargo.toml
README.md
docs/AboutData.md
docs/Assignment.md
docs/AuthenticodeSignatureStatus.md
docs/Certificate.md
docs/DefaultApi.md
docs/ElevateTemporaryPayload.md
docs/ElevationConfigurations.md
Expand All @@ -10,16 +12,20 @@ docs/ElevationMethod.md
docs/Error.md
docs/ErrorResponse.md
docs/GetProfilesMeResponse.md
docs/Hash.md
docs/JitElevationLogPage.md
docs/JitElevationLogQueryOptions.md
docs/JitElevationLogRow.md
docs/LaunchPayload.md
docs/LaunchResponse.md
docs/OptionalId.md
docs/PathIdParameter.md
docs/PathIntIdPath.md
docs/Profile.md
docs/SessionElevationConfiguration.md
docs/SessionElevationStatus.md
docs/Signature.md
docs/Signer.md
docs/StartupInfoDto.md
docs/StatusResponse.md
docs/TemporaryElevationConfiguration.md
Expand All @@ -33,13 +39,16 @@ src/apis/request.rs
src/lib.rs
src/models/about_data.rs
src/models/assignment.rs
src/models/authenticode_signature_status.rs
src/models/certificate.rs
src/models/elevate_temporary_payload.rs
src/models/elevation_configurations.rs
src/models/elevation_kind.rs
src/models/elevation_method.rs
src/models/error.rs
src/models/error_response.rs
src/models/get_profiles_me_response.rs
src/models/hash.rs
src/models/jit_elevation_log_page.rs
src/models/jit_elevation_log_query_options.rs
src/models/jit_elevation_log_row.rs
Expand All @@ -48,9 +57,12 @@ src/models/launch_response.rs
src/models/mod.rs
src/models/optional_id.rs
src/models/path_id_parameter.rs
src/models/path_int_id_path.rs
src/models/profile.rs
src/models/session_elevation_configuration.rs
src/models/session_elevation_status.rs
src/models/signature.rs
src/models/signer.rs
src/models/startup_info_dto.rs
src/models/status_response.rs
src/models/temporary_elevation_configuration.rs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**elevate_temporary_post**](docs/DefaultApi.md#elevate_temporary_post) | **Post** /elevate/temporary |
*DefaultApi* | [**launch_post**](docs/DefaultApi.md#launch_post) | **Post** /launch |
*DefaultApi* | [**log_jit_get**](docs/DefaultApi.md#log_jit_get) | **Get** /log/jit |
*DefaultApi* | [**log_jit_id_get**](docs/DefaultApi.md#log_jit_id_get) | **Get** /log/jit/{id} |
*DefaultApi* | [**policy_assignments_get**](docs/DefaultApi.md#policy_assignments_get) | **Get** /policy/assignments |
*DefaultApi* | [**policy_assignments_id_put**](docs/DefaultApi.md#policy_assignments_id_put) | **Put** /policy/assignments/{id} |
*DefaultApi* | [**policy_me_get**](docs/DefaultApi.md#policy_me_get) | **Get** /policy/me |
Expand All @@ -40,6 +41,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**policy_profiles_id_get**](docs/DefaultApi.md#policy_profiles_id_get) | **Get** /policy/profiles/{id} |
*DefaultApi* | [**policy_profiles_id_put**](docs/DefaultApi.md#policy_profiles_id_put) | **Put** /policy/profiles/{id} |
*DefaultApi* | [**policy_profiles_post**](docs/DefaultApi.md#policy_profiles_post) | **Post** /policy/profiles |
*DefaultApi* | [**policy_users_get**](docs/DefaultApi.md#policy_users_get) | **Get** /policy/users |
*DefaultApi* | [**revoke_post**](docs/DefaultApi.md#revoke_post) | **Post** /revoke |
*DefaultApi* | [**status_get**](docs/DefaultApi.md#status_get) | **Get** /status |

Expand All @@ -48,23 +50,29 @@ Class | Method | HTTP request | Description

- [AboutData](docs/AboutData.md)
- [Assignment](docs/Assignment.md)
- [AuthenticodeSignatureStatus](docs/AuthenticodeSignatureStatus.md)
- [Certificate](docs/Certificate.md)
- [ElevateTemporaryPayload](docs/ElevateTemporaryPayload.md)
- [ElevationConfigurations](docs/ElevationConfigurations.md)
- [ElevationKind](docs/ElevationKind.md)
- [ElevationMethod](docs/ElevationMethod.md)
- [Error](docs/Error.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [GetProfilesMeResponse](docs/GetProfilesMeResponse.md)
- [Hash](docs/Hash.md)
- [JitElevationLogPage](docs/JitElevationLogPage.md)
- [JitElevationLogQueryOptions](docs/JitElevationLogQueryOptions.md)
- [JitElevationLogRow](docs/JitElevationLogRow.md)
- [LaunchPayload](docs/LaunchPayload.md)
- [LaunchResponse](docs/LaunchResponse.md)
- [OptionalId](docs/OptionalId.md)
- [PathIdParameter](docs/PathIdParameter.md)
- [PathIntIdPath](docs/PathIntIdPath.md)
- [Profile](docs/Profile.md)
- [SessionElevationConfiguration](docs/SessionElevationConfiguration.md)
- [SessionElevationStatus](docs/SessionElevationStatus.md)
- [Signature](docs/Signature.md)
- [Signer](docs/Signer.md)
- [StartupInfoDto](docs/StartupInfoDto.md)
- [StatusResponse](docs/StatusResponse.md)
- [TemporaryElevationConfiguration](docs/TemporaryElevationConfiguration.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# AuthenticodeSignatureStatus

## Enum Variants

| Name | Value |
|---- | -----|
| Valid | Valid |
| Incompatible | Incompatible |
| NotSigned | NotSigned |
| HashMismatch | HashMismatch |
| NotSupportedFileFormat | NotSupportedFileFormat |
| NotTrusted | NotTrusted |


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Certificate

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**base64** | **String** | |
**eku** | **Vec<String>** | |
**issuer** | **String** | |
**serial_number** | **String** | |
**subject** | **String** | |
**thumbprint** | [**models::Hash**](Hash.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Method | HTTP request | Description
[**elevate_temporary_post**](DefaultApi.md#elevate_temporary_post) | **Post** /elevate/temporary |
[**launch_post**](DefaultApi.md#launch_post) | **Post** /launch |
[**log_jit_get**](DefaultApi.md#log_jit_get) | **Get** /log/jit |
[**log_jit_id_get**](DefaultApi.md#log_jit_id_get) | **Get** /log/jit/{id} |
[**policy_assignments_get**](DefaultApi.md#policy_assignments_get) | **Get** /policy/assignments |
[**policy_assignments_id_put**](DefaultApi.md#policy_assignments_id_put) | **Put** /policy/assignments/{id} |
[**policy_me_get**](DefaultApi.md#policy_me_get) | **Get** /policy/me |
Expand All @@ -18,6 +19,7 @@ Method | HTTP request | Description
[**policy_profiles_id_get**](DefaultApi.md#policy_profiles_id_get) | **Get** /policy/profiles/{id} |
[**policy_profiles_id_put**](DefaultApi.md#policy_profiles_id_put) | **Put** /policy/profiles/{id} |
[**policy_profiles_post**](DefaultApi.md#policy_profiles_post) | **Post** /policy/profiles |
[**policy_users_get**](DefaultApi.md#policy_users_get) | **Get** /policy/users |
[**revoke_post**](DefaultApi.md#revoke_post) | **Post** /revoke |
[**status_get**](DefaultApi.md#status_get) | **Get** /status |

Expand Down Expand Up @@ -157,6 +159,34 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## log_jit_id_get

> models::JitElevationLogRow log_jit_id_get(id)


### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **i64** | | [required] |

### Return type

[**models::JitElevationLogRow**](JitElevationLogRow.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## policy_assignments_get

> Vec<models::Assignment> policy_assignments_get()
Expand Down Expand Up @@ -402,6 +432,31 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## policy_users_get

> Vec<models::User> policy_users_get()


### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::User>**](User.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## revoke_post

> revoke_post()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Hash

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sha1** | **String** | |
**sha256** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**asker_path** | Option<**String**> | | [optional]
**id** | **i64** | |
**success** | **i64** | |
**target_path** | **String** | |
**target_command_line** | Option<**String**> | | [optional]
**target_hash** | Option<[**models::Hash**](Hash.md)> | | [optional]
**target_path** | Option<**String**> | | [optional]
**target_signature** | Option<[**models::Signature**](Signature.md)> | | [optional]
**target_working_directory** | Option<**String**> | | [optional]
**timestamp** | **i64** | |
**user** | [**models::User**](User.md) | |
**user** | Option<[**models::User**](User.md)> | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# PathIntIdPath

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **i64** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Signature

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**certificates** | Option<[**Vec<models::Certificate>**](Certificate.md)> | | [optional]
**signer** | Option<[**models::Signer**](Signer.md)> | | [optional]
**status** | [**models::AuthenticodeSignatureStatus**](AuthenticodeSignatureStatus.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Signer

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**issuer** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub trait DefaultApi {
&self,
jit_elevation_log_query_options: models::JitElevationLogQueryOptions,
) -> Pin<Box<dyn Future<Output = Result<models::JitElevationLogPage, Error>>>>;
fn log_jit_id_get(&self, id: i64) -> Pin<Box<dyn Future<Output = Result<models::JitElevationLogRow, Error>>>>;
fn policy_assignments_get(&self) -> Pin<Box<dyn Future<Output = Result<Vec<models::Assignment>, Error>>>>;
fn policy_assignments_id_put(
&self,
Expand All @@ -68,6 +69,7 @@ pub trait DefaultApi {
profile: models::Profile,
) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>;
fn policy_profiles_post(&self, profile: models::Profile) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>;
fn policy_users_get(&self) -> Pin<Box<dyn Future<Output = Result<Vec<models::User>, Error>>>>;
fn revoke_post(&self) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>;
fn status_get(&self) -> Pin<Box<dyn Future<Output = Result<models::StatusResponse, Error>>>>;
}
Expand Down Expand Up @@ -125,6 +127,14 @@ where
req.execute(self.configuration.borrow())
}

#[allow(unused_mut)]
fn log_jit_id_get(&self, id: i64) -> Pin<Box<dyn Future<Output = Result<models::JitElevationLogRow, Error>>>> {
let mut req = __internal_request::Request::new(hyper::Method::GET, "/log/jit/{id}".to_string());
req = req.with_path_param("id".to_string(), id.to_string());

req.execute(self.configuration.borrow())
}

#[allow(unused_mut)]
fn policy_assignments_get(&self) -> Pin<Box<dyn Future<Output = Result<Vec<models::Assignment>, Error>>>> {
let mut req = __internal_request::Request::new(hyper::Method::GET, "/policy/assignments".to_string());
Expand Down Expand Up @@ -209,6 +219,13 @@ where
req.execute(self.configuration.borrow())
}

#[allow(unused_mut)]
fn policy_users_get(&self) -> Pin<Box<dyn Future<Output = Result<Vec<models::User>, Error>>>> {
let mut req = __internal_request::Request::new(hyper::Method::GET, "/policy/users".to_string());

req.execute(self.configuration.borrow())
}

#[allow(unused_mut)]
fn revoke_post(&self) -> Pin<Box<dyn Future<Output = Result<(), Error>>>> {
let mut req = __internal_request::Request::new(hyper::Method::POST, "/revoke".to_string());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Devolutions PEDM API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
* Generated by: https://openapi-generator.tech
*/

use crate::models;
use serde::{Deserialize, Serialize};

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AuthenticodeSignatureStatus {
#[serde(rename = "Valid")]
Valid,
#[serde(rename = "Incompatible")]
Incompatible,
#[serde(rename = "NotSigned")]
NotSigned,
#[serde(rename = "HashMismatch")]
HashMismatch,
#[serde(rename = "NotSupportedFileFormat")]
NotSupportedFileFormat,
#[serde(rename = "NotTrusted")]
NotTrusted,
}

impl std::fmt::Display for AuthenticodeSignatureStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Valid => write!(f, "Valid"),
Self::Incompatible => write!(f, "Incompatible"),
Self::NotSigned => write!(f, "NotSigned"),
Self::HashMismatch => write!(f, "HashMismatch"),
Self::NotSupportedFileFormat => write!(f, "NotSupportedFileFormat"),
Self::NotTrusted => write!(f, "NotTrusted"),
}
}
}

impl Default for AuthenticodeSignatureStatus {
fn default() -> AuthenticodeSignatureStatus {
Self::Valid
}
}
Loading