Skip to main content

doppler_rs/models/
create_project_role_request.rs

1/*
2 * Core
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0-oas3.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/*
12 * Core
13 *
14 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15 *
16 * The version of the OpenAPI document: 1.0.0-oas3.1
17 * 
18 * Generated by: https://openapi-generator.tech
19 */
20
21use crate::models;
22use serde::{Deserialize, Serialize};
23use chrono::{DateTime, NaiveDate, Utc};
24/// CreateProjectRoleRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct CreateProjectRoleRequest {
27    /// The name of the role
28    #[serde(rename = "name")]
29    pub name: String ,
30    /// An array containing the permissions the role has. Valid permissions are: `enclave_config_change_request_review`, `enclave_config_logs`, `enclave_project_config_secrets_read`, `enclave_project_config_dynamic_secrets_read`, `enclave_project_config_dynamic_secrets_leases_write`, `enclave_project_config_rotated_secrets_read`, `enclave_config_syncs_manage`, `enclave_project_secrets_notes_manage`, `enclave_project_config_create`, `enclave_project_config_duplicate`, `enclave_project_config_secrets_write`, `enclave_project_config_service_tokens`, `enclave_project_config_trusted_ips`, `enclave_project_config_logs_rollback`, `enclave_project_config_list_all`, `enclave_project_pull_request_create`, `enclave_project_pull_request_respond`, `enclave_project_pull_request_view`, `enclave_secret_reminders`, `enclave_config_access_logs`, `enclave_project_members`, `enclave_project_rename`, `enclave_project_delete`, `enclave_project_webhooks`, `enclave_project_config_dynamic_secrets_manage`, `enclave_project_config_rotated_secrets_manage`, `enclave_project_config_rename`, `enclave_project_config_lock`, `enclave_project_config_delete`, `enclave_project_environment_list_all`, `enclave_project_environment_all`, `enclave_project_environment_order`, `enclave_project_environment_create`, `enclave_project_environment_delete`, `enclave_project_environment_rename`, `enclave_project_environment_settings_manage`, `enclave_project_secrets_referencing`, `enclave_config_secrets_referencing`
31    #[serde(rename = "permissions")]
32    pub permissions: Vec<String> ,
33}
34
35impl CreateProjectRoleRequest {
36    pub fn new(name: String , permissions: Vec<String> ) -> CreateProjectRoleRequest {
37        CreateProjectRoleRequest {
38            name: name,
39            permissions: permissions,
40        }
41    }
42}
43