github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/src/models/garbage_collection_prepare_response.rs (about)

     1  /*
     2   * lakeFS API
     3   *
     4   * lakeFS HTTP API
     5   *
     6   * The version of the OpenAPI document: 1.0.0
     7   * Contact: services@treeverse.io
     8   * Generated by: https://openapi-generator.tech
     9   */
    10  
    11  use crate::models;
    12  
    13  #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
    14  pub struct GarbageCollectionPrepareResponse {
    15      /// a unique identifier generated for this GC job
    16      #[serde(rename = "run_id")]
    17      pub run_id: String,
    18      /// location of the resulting commits csv table (partitioned by run_id)
    19      #[serde(rename = "gc_commits_location")]
    20      pub gc_commits_location: String,
    21      /// location to use for expired addresses parquet table (partitioned by run_id)
    22      #[serde(rename = "gc_addresses_location")]
    23      pub gc_addresses_location: String,
    24      /// a presigned url to download the commits csv
    25      #[serde(rename = "gc_commits_presigned_url", skip_serializing_if = "Option::is_none")]
    26      pub gc_commits_presigned_url: Option<String>,
    27  }
    28  
    29  impl GarbageCollectionPrepareResponse {
    30      pub fn new(run_id: String, gc_commits_location: String, gc_addresses_location: String) -> GarbageCollectionPrepareResponse {
    31          GarbageCollectionPrepareResponse {
    32              run_id,
    33              gc_commits_location,
    34              gc_addresses_location,
    35              gc_commits_presigned_url: None,
    36          }
    37      }
    38  }
    39