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.
910use chrono::{DateTime, Utc};
11use serde::{Deserialize, Serialize};
1213#[derive(Deserialize)]
14pub struct SCIM2ConfigurationCreateRequest {
15pub source: String,
16#[serde(rename = "connectionName")]
17pub connection_name: String,
18#[serde(rename = "syncToUserManagement")]
19pub sync_to_user_management: bool,
20}
2122#[derive(Serialize, Clone, Debug)]
23pub struct SCIM2ConfigurationResponse {
24pub id: String,
25pub source: String,
26#[serde(rename = "tenantId")]
27pub tenant_id: String,
28#[serde(rename = "connectionName")]
29pub connection_name: String,
30#[serde(rename = "syncToUserManagement")]
31pub sync_to_user_management: bool,
32#[serde(rename = "createdAt")]
33pub created_at: DateTime<Utc>,
34pub token: String,
35}
3637#[derive(Clone, Debug)]
38pub struct SCIM2ConfigurationStorage {
39pub id: String,
40pub source: String,
41pub tenant_id: String,
42pub connection_name: String,
43pub sync_to_user_management: bool,
44pub created_at: DateTime<Utc>,
45pub token: String,
46}