Skip to main content

authentik_client/models/
google_workspace_provider_user.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GoogleWorkspaceProviderUser : GoogleWorkspaceProviderUser Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GoogleWorkspaceProviderUser {
17    #[serde(rename = "id")]
18    pub id: uuid::Uuid,
19    #[serde(rename = "google_id")]
20    pub google_id: String,
21    #[serde(rename = "user")]
22    pub user: i32,
23    #[serde(rename = "user_obj")]
24    pub user_obj: models::PartialUser,
25    #[serde(rename = "provider")]
26    pub provider: i32,
27    #[serde(rename = "attributes")]
28    pub attributes: std::collections::HashMap<String, serde_json::Value>,
29}
30
31impl GoogleWorkspaceProviderUser {
32    /// GoogleWorkspaceProviderUser Serializer
33    pub fn new(
34        id: uuid::Uuid,
35        google_id: String,
36        user: i32,
37        user_obj: models::PartialUser,
38        provider: i32,
39        attributes: std::collections::HashMap<String, serde_json::Value>,
40    ) -> GoogleWorkspaceProviderUser {
41        GoogleWorkspaceProviderUser {
42            id,
43            google_id,
44            user,
45            user_obj,
46            provider,
47            attributes,
48        }
49    }
50}