harbor_api/models/
ping_oidc_request.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PingOidcRequest {
16    /// The URL of OIDC endpoint to be tested.
17    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
18    pub url: Option<String>,
19    /// Whether the certificate should be verified
20    #[serde(rename = "verify_cert", skip_serializing_if = "Option::is_none")]
21    pub verify_cert: Option<bool>,
22}
23
24impl PingOidcRequest {
25    pub fn new() -> PingOidcRequest {
26        PingOidcRequest {
27            url: None,
28            verify_cert: None,
29        }
30    }
31}
32