/*
* CrowdStrike API Specification
*
* Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usage guides and examples, see our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation). To use the APIs described below, combine the base URL with the path shown for each API endpoint. For commercial cloud customers, your base URL is `https://api.crowdstrike.com`. Each API endpoint requires authorization via an OAuth2 token. Your first API request should retrieve an OAuth2 token using the `oauth2/token` endpoint, such as `https://api.crowdstrike.com/oauth2/token`. For subsequent requests, include the OAuth2 token in an HTTP authorization header. Tokens expire after 30 minutes, after which you should make a new token request to continue making API requests.
*
* The version of the OpenAPI document: rolling
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ModelsApiCustomerAndImage {
#[serde(rename = "ai_related")]
pub ai_related: bool,
#[serde(rename = "base_image_id", skip_serializing_if = "Option::is_none")]
pub base_image_id: Option<String>,
#[serde(rename = "base_os")]
pub base_os: String,
#[serde(rename = "base_os_version")]
pub base_os_version: String,
#[serde(rename = "cid")]
pub cid: String,
#[serde(rename = "config", skip_serializing_if = "Option::is_none")]
pub config: Option<Box<models::ModelsLightWeightConfig>>,
#[serde(rename = "created_at")]
pub created_at: String,
#[serde(rename = "crowdstrike_user")]
pub crowdstrike_user: String,
#[serde(rename = "digest")]
pub digest: String,
#[serde(rename = "eol_date")]
pub eol_date: String,
#[serde(rename = "first_scanned")]
pub first_scanned: String,
#[serde(rename = "image_id")]
pub image_id: String,
#[serde(rename = "image_scanning_active")]
pub image_scanning_active: bool,
#[serde(rename = "image_size")]
pub image_size: i64,
#[serde(rename = "is_base_image")]
pub is_base_image: bool,
#[serde(rename = "registry")]
pub registry: String,
#[serde(rename = "repository")]
pub repository: String,
#[serde(rename = "source")]
pub source: String,
#[serde(rename = "source_base_image")]
pub source_base_image: Box<models::ModelsImageDetails>,
#[serde(rename = "tag")]
pub tag: String,
#[serde(rename = "updated_at")]
pub updated_at: String,
#[serde(rename = "uuid")]
pub uuid: String,
#[serde(rename = "warning")]
pub warning: i32,
}
impl ModelsApiCustomerAndImage {
pub fn new(
ai_related: bool,
base_os: String,
base_os_version: String,
cid: String,
created_at: String,
crowdstrike_user: String,
digest: String,
eol_date: String,
first_scanned: String,
image_id: String,
image_scanning_active: bool,
image_size: i64,
is_base_image: bool,
registry: String,
repository: String,
source: String,
source_base_image: models::ModelsImageDetails,
tag: String,
updated_at: String,
uuid: String,
warning: i32,
) -> ModelsApiCustomerAndImage {
ModelsApiCustomerAndImage {
ai_related,
base_image_id: None,
base_os,
base_os_version,
cid,
config: None,
created_at,
crowdstrike_user,
digest,
eol_date,
first_scanned,
image_id,
image_scanning_active,
image_size,
is_base_image,
registry,
repository,
source,
source_base_image: Box::new(source_base_image),
tag,
updated_at,
uuid,
warning,
}
}
}