mz_frontegg_mock/models/
scim.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10use chrono::{DateTime, Utc};
11use serde::{Deserialize, Serialize};
12
13#[derive(Deserialize)]
14pub struct SCIM2ConfigurationCreateRequest {
15    pub source: String,
16    #[serde(rename = "connectionName")]
17    pub connection_name: String,
18    #[serde(rename = "syncToUserManagement")]
19    pub sync_to_user_management: bool,
20}
21
22#[derive(Serialize, Clone, Debug)]
23pub struct SCIM2ConfigurationResponse {
24    pub id: String,
25    pub source: String,
26    #[serde(rename = "tenantId")]
27    pub tenant_id: String,
28    #[serde(rename = "connectionName")]
29    pub connection_name: String,
30    #[serde(rename = "syncToUserManagement")]
31    pub sync_to_user_management: bool,
32    #[serde(rename = "createdAt")]
33    pub created_at: DateTime<Utc>,
34    pub token: String,
35}
36
37#[derive(Clone, Debug)]
38pub struct SCIM2ConfigurationStorage {
39    pub id: String,
40    pub source: String,
41    pub tenant_id: String,
42    pub connection_name: String,
43    pub sync_to_user_management: bool,
44    pub created_at: DateTime<Utc>,
45    pub token: String,
46}