foundation_deployment_docker 0.1.3

Docker Engine API v1.53 client over DynNetClient + valtron (bollard-free)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
//! Shared types for docker (used by multiple groups).
//!
//! Generated by `cargo run --bin ewe_platform gen_api`.
//! DO NOT EDIT MANUALLY.

// Re-export common API types from foundation_deployment
pub use foundation_deployment::providers::common::{
    read_error_body, send_bytes, send_checked, send_json, send_json_lines, send_without_body,
    with_raw_body, ApiClient, BodyLimits, ByteStream, JsonLinesStream,
};
pub use foundation_deployment::providers::common::{
    ApiError, ApiPending, ApiResponse, BoxedSendExecutionAction, Empty, Operation,
};

// Imports for shared resource types
use foundation_macros::JsonHash;
use serde::{Deserialize, Serialize};

// =============================================================================
// SHARED RESOURCE TYPES
// =============================================================================

/// `BuildInfo` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct BuildInfo {
    /// `aux` property.
    pub aux: Option<ImageID>,
    /// `errorDetail` property.
    #[serde(rename = "errorDetail")]
    pub error_detail: Option<ErrorDetail>,
    /// `id` property.
    pub id: Option<String>,
    /// `progressDetail` property.
    #[serde(rename = "progressDetail")]
    pub progress_detail: Option<ProgressDetail>,
    /// `status` property.
    pub status: Option<String>,
    /// `stream` property.
    pub stream: Option<String>,
}

/// `IDResponse` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct IDResponse {
    /// `Id` property.
    #[serde(rename = "Id")]
    pub id: String,
}

/// `Plugin` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct Plugin {
    /// `Config` property.
    #[serde(rename = "Config")]
    pub config: std::collections::HashMap<String, serde_json::Value>,
    /// `Enabled` property.
    #[serde(rename = "Enabled")]
    pub enabled: bool,
    /// `Id` property.
    #[serde(rename = "Id")]
    pub id: Option<String>,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: String,
    /// `PluginReference` property.
    #[serde(rename = "PluginReference")]
    pub plugin_reference: Option<String>,
    /// `Settings` property.
    #[serde(rename = "Settings")]
    pub settings: std::collections::HashMap<String, serde_json::Value>,
}

/// `Volume` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct Volume {
    /// `ClusterVolume` property.
    #[serde(rename = "ClusterVolume")]
    pub cluster_volume: Option<ClusterVolume>,
    /// `CreatedAt` property.
    #[serde(rename = "CreatedAt")]
    pub created_at: Option<String>,
    /// `Driver` property.
    #[serde(rename = "Driver")]
    pub driver: String,
    /// `Labels` property.
    #[serde(rename = "Labels")]
    pub labels: serde_json::Value,
    /// `Mountpoint` property.
    #[serde(rename = "Mountpoint")]
    pub mountpoint: String,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: String,
    /// `Options` property.
    #[serde(rename = "Options")]
    pub options: serde_json::Value,
    /// `Scope` property.
    #[serde(rename = "Scope")]
    pub scope: String,
    /// `Status` property.
    #[serde(rename = "Status")]
    pub status: Option<serde_json::Value>,
    /// `UsageData` property.
    #[serde(rename = "UsageData")]
    pub usage_data: Option<std::collections::HashMap<String, serde_json::Value>>,
}

/// `ClusterVolume` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ClusterVolume {
    /// `CreatedAt` property.
    #[serde(rename = "CreatedAt")]
    pub created_at: Option<String>,
    /// `ID` property.
    #[serde(rename = "ID")]
    pub id: Option<String>,
    /// `Info` property.
    #[serde(rename = "Info")]
    pub info: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `PublishStatus` property.
    #[serde(rename = "PublishStatus")]
    pub publish_status: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
    /// `Spec` property.
    #[serde(rename = "Spec")]
    pub spec: Option<ClusterVolumeSpec>,
    /// `UpdatedAt` property.
    #[serde(rename = "UpdatedAt")]
    pub updated_at: Option<String>,
    /// `Version` property.
    #[serde(rename = "Version")]
    pub version: Option<ObjectVersion>,
}

/// `ClusterVolumeSpec` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ClusterVolumeSpec {
    /// `AccessMode` property.
    #[serde(rename = "AccessMode")]
    pub access_mode: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `Group` property.
    #[serde(rename = "Group")]
    pub group: Option<String>,
}

/// `ErrorDetail` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ErrorDetail {
    /// `code` property.
    pub code: Option<i64>,
    /// `message` property.
    pub message: Option<String>,
}

/// `ImageID` type.
///
/// Same shape as `IdObject`.
pub type ImageID = IdObject;

/// `ObjectVersion` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ObjectVersion {
    /// `Index` property.
    #[serde(rename = "Index")]
    pub index: Option<i64>,
}

/// `PluginDevice` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct PluginDevice {
    /// `Description` property.
    #[serde(rename = "Description")]
    pub description: String,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: String,
    /// `Path` property.
    #[serde(rename = "Path")]
    pub path: String,
    /// `Settable` property.
    #[serde(rename = "Settable")]
    pub settable: Vec<String>,
}

/// `PluginEnv` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct PluginEnv {
    /// `Description` property.
    #[serde(rename = "Description")]
    pub description: String,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: String,
    /// `Settable` property.
    #[serde(rename = "Settable")]
    pub settable: Vec<String>,
    /// `Value` property.
    #[serde(rename = "Value")]
    pub value: String,
}

/// `PluginMount` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct PluginMount {
    /// `Description` property.
    #[serde(rename = "Description")]
    pub description: String,
    /// `Destination` property.
    #[serde(rename = "Destination")]
    pub destination: String,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: String,
    /// `Options` property.
    #[serde(rename = "Options")]
    pub options: Vec<String>,
    /// `Settable` property.
    #[serde(rename = "Settable")]
    pub settable: Vec<String>,
    /// `Source` property.
    #[serde(rename = "Source")]
    pub source: String,
    /// `Type` property.
    #[serde(rename = "Type")]
    pub r#type: String,
}

/// `ProgressDetail` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ProgressDetail {
    /// `current` property.
    pub current: Option<i64>,
    /// `total` property.
    pub total: Option<i64>,
}

/// `Topology` type.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct Topology {
    /// `Segments` property.
    #[serde(rename = "Segments")]
    pub segments: Option<serde_json::Value>,
}

// =============================================================================
// SHARED SHAPES
// =============================================================================

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct AliasesDriverOptsTargetObject {
    /// `Aliases` property.
    #[serde(rename = "Aliases")]
    pub aliases: Option<Vec<String>>,
    /// `DriverOpts` property.
    #[serde(rename = "DriverOpts")]
    pub driver_opts: Option<serde_json::Value>,
    /// `Target` property.
    #[serde(rename = "Target")]
    pub target: Option<String>,
}

/// A shape 5 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ArchitectureOsObject {
    /// `Architecture` property.
    #[serde(rename = "Architecture")]
    pub architecture: Option<String>,
    /// `OS` property.
    #[serde(rename = "OS")]
    pub os: Option<String>,
}

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct BuildCacheDiskUsageShape {
    /// `ActiveCount` property.
    #[serde(rename = "ActiveCount")]
    pub active_count: Option<i64>,
    /// `Items` property.
    #[serde(rename = "Items")]
    pub items: Option<Vec<serde_json::Value>>,
    /// `Reclaimable` property.
    #[serde(rename = "Reclaimable")]
    pub reclaimable: Option<i64>,
    /// `TotalCount` property.
    #[serde(rename = "TotalCount")]
    pub total_count: Option<i64>,
    /// `TotalSize` property.
    #[serde(rename = "TotalSize")]
    pub total_size: Option<i64>,
}

/// A shape 3 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CertIssuerPublicKeyCertIssuerSubjectTrustRootObject {
    /// `CertIssuerPublicKey` property.
    #[serde(rename = "CertIssuerPublicKey")]
    pub cert_issuer_public_key: Option<String>,
    /// `CertIssuerSubject` property.
    #[serde(rename = "CertIssuerSubject")]
    pub cert_issuer_subject: Option<String>,
    /// `TrustRoot` property.
    #[serde(rename = "TrustRoot")]
    pub trust_root: Option<String>,
}

/// A shape 3 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CgroupPermissionsPathInContainerPathOnHostObject {
    /// `CgroupPermissions` property.
    #[serde(rename = "CgroupPermissions")]
    pub cgroup_permissions: Option<String>,
    /// `PathInContainer` property.
    #[serde(rename = "PathInContainer")]
    pub path_in_container: Option<String>,
    /// `PathOnHost` property.
    #[serde(rename = "PathOnHost")]
    pub path_on_host: Option<String>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ContainerAttachArgsShape {
    /// Path parameter: `id`.
    pub id: String,
    /// Query parameter: `detachKeys`.
    pub detach_keys: Option<String>,
    /// Query parameter: `logs`.
    pub logs: Option<String>,
    /// Query parameter: `stream`.
    pub stream: Option<String>,
    /// Query parameter: `stdin`.
    pub stdin: Option<String>,
    /// Query parameter: `stdout`.
    pub stdout: Option<String>,
    /// Query parameter: `stderr`.
    pub stderr: Option<String>,
}

/// A shape 6 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DescriptionNameValueObject {
    /// `Description` property.
    #[serde(rename = "Description")]
    pub description: Option<String>,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: Option<String>,
    /// `Value` property.
    #[serde(rename = "Value")]
    pub value: Option<Vec<String>>,
}

/// A shape 3 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeviceRequestShape {
    /// `Capabilities` property.
    #[serde(rename = "Capabilities")]
    pub capabilities: Option<Vec<Vec<String>>>,
    /// `Count` property.
    #[serde(rename = "Count")]
    pub count: Option<i64>,
    /// `DeviceIDs` property.
    #[serde(rename = "DeviceIDs")]
    pub device_i_ds: Option<Vec<String>>,
    /// `Driver` property.
    #[serde(rename = "Driver")]
    pub driver: Option<String>,
    /// `Options` property.
    #[serde(rename = "Options")]
    pub options: Option<serde_json::Value>,
}

/// A shape 6 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct EmptyArgs {}

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct EndpointPortConfigShape {
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: Option<String>,
    /// `Protocol` property.
    #[serde(rename = "Protocol")]
    pub protocol: Option<String>,
    /// `PublishMode` property.
    #[serde(rename = "PublishMode")]
    pub publish_mode: Option<String>,
    /// `PublishedPort` property.
    #[serde(rename = "PublishedPort")]
    pub published_port: Option<i64>,
    /// `TargetPort` property.
    #[serde(rename = "TargetPort")]
    pub target_port: Option<i64>,
}

/// A shape 11 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct FiltersArgs {
    /// Query parameter: `filters`.
    pub filters: Option<String>,
}

/// A shape 5 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct GenericResourcesMemoryBytesNanoCpUsObject {
    /// `GenericResources` property.
    #[serde(rename = "GenericResources")]
    pub generic_resources: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
    /// `MemoryBytes` property.
    #[serde(rename = "MemoryBytes")]
    pub memory_bytes: Option<i64>,
    /// `NanoCPUs` property.
    #[serde(rename = "NanoCPUs")]
    pub nano_cp_us: Option<i64>,
}

/// A shape 6 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct HealthConfigShape {
    /// `Interval` property.
    #[serde(rename = "Interval")]
    pub interval: Option<i64>,
    /// `Retries` property.
    #[serde(rename = "Retries")]
    pub retries: Option<i64>,
    /// `StartInterval` property.
    #[serde(rename = "StartInterval")]
    pub start_interval: Option<i64>,
    /// `StartPeriod` property.
    #[serde(rename = "StartPeriod")]
    pub start_period: Option<i64>,
    /// `Test` property.
    #[serde(rename = "Test")]
    pub test: Option<Vec<String>>,
    /// `Timeout` property.
    #[serde(rename = "Timeout")]
    pub timeout: Option<i64>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct IPAMConfigShape {
    /// `AuxiliaryAddresses` property.
    #[serde(rename = "AuxiliaryAddresses")]
    pub auxiliary_addresses: Option<serde_json::Value>,
    /// `Gateway` property.
    #[serde(rename = "Gateway")]
    pub gateway: Option<String>,
    /// `IPRange` property.
    #[serde(rename = "IPRange")]
    pub ip_range: Option<String>,
    /// `Subnet` property.
    #[serde(rename = "Subnet")]
    pub subnet: Option<String>,
}

/// A shape 13 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct IdArgs {
    /// Path parameter: `id`.
    pub id: String,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct IdHWArgs {
    /// Path parameter: `id`.
    pub id: String,
    /// Query parameter: `h`.
    pub h: Option<String>,
    /// Query parameter: `w`.
    pub w: Option<String>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct IdObject {
    /// `ID` property.
    #[serde(rename = "ID")]
    pub id: Option<String>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct IdSignalTArgs {
    /// Path parameter: `id`.
    pub id: String,
    /// Query parameter: `signal`.
    pub signal: Option<String>,
    /// Query parameter: `t`.
    pub t: Option<String>,
}

/// A shape 3 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct MaximumRetryCountNameObject {
    /// `MaximumRetryCount` property.
    #[serde(rename = "MaximumRetryCount")]
    pub maximum_retry_count: Option<i64>,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: Option<String>,
}

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct MemoryBytesNanoCpUsPidsObject {
    /// `MemoryBytes` property.
    #[serde(rename = "MemoryBytes")]
    pub memory_bytes: Option<i64>,
    /// `NanoCPUs` property.
    #[serde(rename = "NanoCPUs")]
    pub nano_cp_us: Option<i64>,
    /// `Pids` property.
    #[serde(rename = "Pids")]
    pub pids: Option<i64>,
}

/// A shape 5 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct MountShape {
    /// `BindOptions` property.
    #[serde(rename = "BindOptions")]
    pub bind_options: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `Consistency` property.
    #[serde(rename = "Consistency")]
    pub consistency: Option<String>,
    /// `ImageOptions` property.
    #[serde(rename = "ImageOptions")]
    pub image_options: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `ReadOnly` property.
    #[serde(rename = "ReadOnly")]
    pub read_only: Option<bool>,
    /// `Source` property.
    #[serde(rename = "Source")]
    pub source: Option<String>,
    /// `Target` property.
    #[serde(rename = "Target")]
    pub target: Option<String>,
    /// `TmpfsOptions` property.
    #[serde(rename = "TmpfsOptions")]
    pub tmpfs_options: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `Type` property.
    #[serde(rename = "Type")]
    pub r#type: Option<serde_json::Value>,
    /// `VolumeOptions` property.
    #[serde(rename = "VolumeOptions")]
    pub volume_options: Option<std::collections::HashMap<String, serde_json::Value>>,
}

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct NameArgs {
    /// Path parameter: `name`.
    pub name: String,
}

/// A shape 3 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct NameForceArgs {
    /// Path parameter: `name`.
    pub name: String,
    /// Query parameter: `force`.
    pub force: Option<String>,
}

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct NameOptionsObject {
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: String,
    /// `Options` property.
    #[serde(rename = "Options")]
    pub options: Option<serde_json::Value>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct NetworkObject {
    /// `Network` property.
    #[serde(rename = "Network")]
    pub network: Option<String>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct NodeSpecShape {
    /// `Availability` property.
    #[serde(rename = "Availability")]
    pub availability: Option<String>,
    /// `Labels` property.
    #[serde(rename = "Labels")]
    pub labels: Option<serde_json::Value>,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: Option<String>,
    /// `Role` property.
    #[serde(rename = "Role")]
    pub role: Option<String>,
}

/// A shape 3 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct PathRateObject {
    /// `Path` property.
    #[serde(rename = "Path")]
    pub path: Option<String>,
    /// `Rate` property.
    #[serde(rename = "Rate")]
    pub rate: Option<i64>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ServiceLogsArgsShape {
    /// Path parameter: `id`.
    pub id: String,
    /// Query parameter: `details`.
    pub details: Option<String>,
    /// Query parameter: `follow`.
    pub follow: Option<String>,
    /// Query parameter: `stdout`.
    pub stdout: Option<String>,
    /// Query parameter: `stderr`.
    pub stderr: Option<String>,
    /// Query parameter: `since`.
    pub since: Option<String>,
    /// Query parameter: `timestamps`.
    pub timestamps: Option<String>,
    /// Query parameter: `tail`.
    pub tail: Option<String>,
}

/// A shape 4 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct SwarmSpecShape {
    /// `CAConfig` property.
    #[serde(rename = "CAConfig")]
    pub ca_config: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `Dispatcher` property.
    #[serde(rename = "Dispatcher")]
    pub dispatcher: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `EncryptionConfig` property.
    #[serde(rename = "EncryptionConfig")]
    pub encryption_config: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `Labels` property.
    #[serde(rename = "Labels")]
    pub labels: Option<serde_json::Value>,
    /// `Name` property.
    #[serde(rename = "Name")]
    pub name: Option<String>,
    /// `Orchestration` property.
    #[serde(rename = "Orchestration")]
    pub orchestration: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `Raft` property.
    #[serde(rename = "Raft")]
    pub raft: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// `TaskDefaults` property.
    #[serde(rename = "TaskDefaults")]
    pub task_defaults: Option<std::collections::HashMap<String, serde_json::Value>>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct UnlockKeyObject {
    /// `UnlockKey` property.
    #[serde(rename = "UnlockKey")]
    pub unlock_key: Option<String>,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct WarningsObject {
    /// `Warnings` property.
    #[serde(rename = "Warnings")]
    pub warnings: Option<Vec<String>>,
}