alien_core/import/data/gcp/queue.rs
1use serde::{Deserialize, Serialize};
2
3/// GCP Queue ImportData — a Pub/Sub topic plus subscription created in
4/// the customer's project.
5#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
6#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
7#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
8#[serde(rename_all = "camelCase")]
9pub struct GcpQueueImportData {
10 /// Project ID containing the topic.
11 pub project_id: String,
12 /// Pub/Sub topic ID (short name).
13 pub topic_id: String,
14 /// Pub/Sub topic full resource name (`projects/<id>/topics/<name>`).
15 pub topic_name: String,
16 /// Default subscription ID created alongside the topic.
17 pub subscription_id: String,
18 /// Subscription full resource name.
19 pub subscription_name: String,
20}