orvanta_api/models/
repin_git_sync_repository_request.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RepinGitSyncRepositoryRequest {
16 #[serde(rename = "git_repo_resource_path")]
17 pub git_repo_resource_path: String,
18 #[serde(rename = "expected_remote")]
19 pub expected_remote: String,
20 #[serde(rename = "expected_branch")]
21 pub expected_branch: String,
22}
23
24impl RepinGitSyncRepositoryRequest {
25 pub fn new(git_repo_resource_path: String, expected_remote: String, expected_branch: String) -> RepinGitSyncRepositoryRequest {
26 RepinGitSyncRepositoryRequest {
27 git_repo_resource_path,
28 expected_remote,
29 expected_branch,
30 }
31 }
32}
33