-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78d857d
commit 3c5c0e1
Showing
4 changed files
with
408 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// !!! | ||
// WARNING: This file is autogenerated | ||
// Only modify code within MANUAL() sections | ||
// or your changes may be overwritten later! | ||
// !!! | ||
|
||
use crate::b2b::scim_connections::Connections; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub struct SCIMConnection { | ||
pub organization_id: String, | ||
pub connection_id: String, | ||
pub status: String, | ||
pub display_name: String, | ||
pub identity_provider: String, | ||
pub base_url: String, | ||
pub bearer_token_last_four: String, | ||
pub scim_group_implicit_role_assignments: std::vec::Vec<SCIMGroupImplicitRoleAssignments>, | ||
pub bearer_token_expires_at: std::option::Option<chrono::DateTime<chrono::Utc>>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub struct SCIMConnectionWithNextToken { | ||
pub organization_id: String, | ||
pub connection_id: String, | ||
pub status: String, | ||
pub display_name: String, | ||
pub base_url: String, | ||
pub identity_provider: String, | ||
pub bearer_token_last_four: String, | ||
pub next_bearer_token: String, | ||
pub scim_group_implicit_role_assignments: std::vec::Vec<SCIMGroupImplicitRoleAssignments>, | ||
pub bearer_token_expires_at: std::option::Option<chrono::DateTime<chrono::Utc>>, | ||
pub next_bearer_token_expires_at: std::option::Option<chrono::DateTime<chrono::Utc>>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub struct SCIMConnectionWithToken { | ||
pub organization_id: String, | ||
pub connection_id: String, | ||
pub status: String, | ||
pub display_name: String, | ||
pub identity_provider: String, | ||
pub base_url: String, | ||
pub bearer_token: String, | ||
pub scim_group_implicit_role_assignments: std::vec::Vec<SCIMGroupImplicitRoleAssignments>, | ||
pub bearer_token_expires_at: std::option::Option<chrono::DateTime<chrono::Utc>>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub struct SCIMGroupImplicitRoleAssignments { | ||
pub role_id: String, | ||
pub group_id: String, | ||
pub group_name: String, | ||
} | ||
|
||
pub struct SCIM { | ||
pub connections: Connections, | ||
} | ||
|
||
impl SCIM { | ||
pub fn new(http_client: crate::client::Client) -> Self { | ||
Self { | ||
connections: Connections::new(http_client.clone()), | ||
} | ||
} | ||
} |
Oops, something went wrong.