azure-lite-rs 0.1.1

Lightweight HTTP client for Azure APIs
Documentation
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
//! Types for the Azure SQL API (v1).
//!
//! Auto-generated from the Azure ARM REST Specification.
//! **Do not edit manually** — modify the manifest and re-run codegen.

use serde::{Deserialize, Serialize};
use std::collections::HashMap;

/// The properties of a server.
///
/// **Azure API**: `sql.v1.ServerProperties`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//ServerProperties>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerProperties {
    /// Administrator username for the server
    #[serde(skip_serializing_if = "Option::is_none")]
    pub administrator_login: Option<String>,

    /// The fully qualified domain name of the server
    #[serde(skip_serializing_if = "Option::is_none")]
    pub fully_qualified_domain_name: Option<String>,

    /// The state of the server (Ready, Disabled, etc.)
    #[serde(skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,

    /// The version of the server
    #[serde(skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}

impl ServerProperties {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            administrator_login: Some("test-administrator_login".into()),
            fully_qualified_domain_name: Some("test-fully_qualified_domain_name".into()),
            state: Some("test-state".into()),
            version: Some("test-version".into()),
        }
    }
}

/// An Azure SQL Database server.
///
/// **Azure API**: `sql.v1.Server`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//Server>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Server {
    /// Fully qualified resource ID
    #[serde(skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,

    /// The name of the resource
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,

    /// The type of the resource
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,

    /// Resource location
    #[serde(skip_serializing_if = "Option::is_none")]
    pub location: Option<String>,

    /// Resource tags
    #[serde(default)]
    #[serde(skip_serializing_if = "HashMap::is_empty")]
    pub tags: HashMap<String, String>,

    /// Server resource properties
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<ServerProperties>,
}

impl Server {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            id: Some("test-id".into()),
            name: Some("test-server".into()),
            r#type: Some("test-type".into()),
            location: Some("test-location".into()),
            tags: Default::default(),
            properties: Some(ServerProperties::fixture()),
        }
    }
}

/// A list of servers.
///
/// **Azure API**: `sql.v1.ServerListResult`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//ServerListResult>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerListResult {
    /// Array of results
    #[serde(default)]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<Server>,

    /// Link to retrieve next page
    #[serde(skip_serializing_if = "Option::is_none")]
    pub next_link: Option<String>,
}

impl ServerListResult {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            value: vec![],
            next_link: Some("test-next_link".into()),
        }
    }
}

/// The properties used to create a new server.
///
/// **Azure API**: `sql.v1.ServerCreateOrUpdateProperties`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//ServerCreateOrUpdateProperties>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerCreateOrUpdateProperties {
    /// Administrator username for the server
    pub administrator_login: String,

    /// Administrator login password (required for create)
    #[serde(skip_serializing_if = "Option::is_none")]
    pub administrator_login_password: Option<String>,

    /// The version of the server (e.g. 12.0)
    #[serde(skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}

impl ServerCreateOrUpdateProperties {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            administrator_login: "test-administrator_login".into(),
            administrator_login_password: Some("test-administrator_login_password".into()),
            version: Some("test-version".into()),
        }
    }
}

/// An Azure SQL Database server.
///
/// **Azure API**: `sql.v1.ServerCreateRequest`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//ServerCreateRequest>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerCreateRequest {
    /// Resource location
    pub location: String,

    /// Resource tags
    #[serde(default)]
    #[serde(skip_serializing_if = "HashMap::is_empty")]
    pub tags: HashMap<String, String>,

    /// Resource properties
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<ServerCreateOrUpdateProperties>,
}

impl ServerCreateRequest {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            location: "test-location".into(),
            tags: Default::default(),
            properties: Some(ServerCreateOrUpdateProperties::fixture()),
        }
    }
}

/// The database's properties.
///
/// **Azure API**: `sql.v1.DatabaseProperties`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//DatabaseProperties>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DatabaseProperties {
    /// The status of the database
    #[serde(skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,

    /// The ID of the database
    #[serde(skip_serializing_if = "Option::is_none")]
    pub database_id: Option<String>,

    /// The collation of the database
    #[serde(skip_serializing_if = "Option::is_none")]
    pub collation: Option<String>,

    /// The max size of the database expressed in bytes
    #[serde(skip_serializing_if = "Option::is_none")]
    pub max_size_bytes: Option<i64>,

    /// The name of the configured service level objective
    #[serde(skip_serializing_if = "Option::is_none")]
    pub requested_service_objective_name: Option<String>,

    /// The current service level objective name
    #[serde(skip_serializing_if = "Option::is_none")]
    pub current_service_objective_name: Option<String>,

    /// The default secondary region for this database
    #[serde(skip_serializing_if = "Option::is_none")]
    pub default_secondary_location: Option<String>,
}

impl DatabaseProperties {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            status: Some("test-status".into()),
            database_id: Some("test-database_id".into()),
            collation: Some("test-collation".into()),
            max_size_bytes: Some(100),
            requested_service_objective_name: Some("test-requested_service_objective_name".into()),
            current_service_objective_name: Some("test-current_service_objective_name".into()),
            default_secondary_location: Some("test-default_secondary_location".into()),
        }
    }
}

/// A database resource.
///
/// **Azure API**: `sql.v1.Database`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//Database>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Database {
    /// Fully qualified resource ID
    #[serde(skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,

    /// The name of the resource
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,

    /// The type of the resource
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,

    /// Resource location
    #[serde(skip_serializing_if = "Option::is_none")]
    pub location: Option<String>,

    /// The database SKU
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sku: Option<DatabaseSku>,

    /// Resource tags
    #[serde(default)]
    #[serde(skip_serializing_if = "HashMap::is_empty")]
    pub tags: HashMap<String, String>,

    /// Resource properties
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<DatabaseProperties>,
}

impl Database {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            id: Some("test-id".into()),
            name: Some("test-database".into()),
            r#type: Some("test-type".into()),
            location: Some("test-location".into()),
            sku: Some(DatabaseSku::fixture()),
            tags: Default::default(),
            properties: Some(DatabaseProperties::fixture()),
        }
    }
}

/// An ARM Resource SKU.
///
/// **Azure API**: `sql.v1.DatabaseSku`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//DatabaseSku>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DatabaseSku {
    /// The name of the SKU (e.g. Basic, Standard, Premium)
    pub name: String,

    /// The tier or edition of the particular SKU
    #[serde(skip_serializing_if = "Option::is_none")]
    pub tier: Option<String>,

    /// Capacity of the particular SKU
    #[serde(skip_serializing_if = "Option::is_none")]
    pub capacity: Option<i32>,
}

impl DatabaseSku {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            name: "test-database_sku".into(),
            tier: Some("test-tier".into()),
            capacity: Some(100),
        }
    }
}

/// A list of databases.
///
/// **Azure API**: `sql.v1.DatabaseListResult`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//DatabaseListResult>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DatabaseListResult {
    /// Array of results
    #[serde(default)]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<Database>,

    /// Link to retrieve next page
    #[serde(skip_serializing_if = "Option::is_none")]
    pub next_link: Option<String>,
}

impl DatabaseListResult {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            value: vec![],
            next_link: Some("test-next_link".into()),
        }
    }
}

/// The database's create or update properties.
///
/// **Azure API**: `sql.v1.DatabaseCreateOrUpdateProperties`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//DatabaseCreateOrUpdateProperties>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DatabaseCreateOrUpdateProperties {
    /// The collation of the database
    #[serde(skip_serializing_if = "Option::is_none")]
    pub collation: Option<String>,

    /// The max size of the database expressed in bytes
    #[serde(skip_serializing_if = "Option::is_none")]
    pub max_size_bytes: Option<i64>,
}

impl DatabaseCreateOrUpdateProperties {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            collation: Some("test-collation".into()),
            max_size_bytes: Some(100),
        }
    }
}

/// A database resource.
///
/// **Azure API**: `sql.v1.DatabaseCreateRequest`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//DatabaseCreateRequest>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DatabaseCreateRequest {
    /// Resource location
    pub location: String,

    /// The database SKU
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sku: Option<DatabaseSku>,

    /// Resource tags
    #[serde(default)]
    #[serde(skip_serializing_if = "HashMap::is_empty")]
    pub tags: HashMap<String, String>,

    /// Resource properties
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<DatabaseCreateOrUpdateProperties>,
}

impl DatabaseCreateRequest {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            location: "test-location".into(),
            sku: Some(DatabaseSku::fixture()),
            tags: Default::default(),
            properties: Some(DatabaseCreateOrUpdateProperties::fixture()),
        }
    }
}

/// The properties of a server firewall rule.
///
/// **Azure API**: `sql.v1.FirewallRuleProperties`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//FirewallRuleProperties>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FirewallRuleProperties {
    /// The start IP address of the firewall rule
    pub start_ip_address: String,

    /// The end IP address of the firewall rule
    pub end_ip_address: String,
}

impl FirewallRuleProperties {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            start_ip_address: "test-start_ip_address".into(),
            end_ip_address: "test-end_ip_address".into(),
        }
    }
}

/// A server firewall rule.
///
/// **Azure API**: `sql.v1.FirewallRule`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//FirewallRule>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FirewallRule {
    /// Resource ID
    #[serde(skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,

    /// Resource name
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,

    /// Resource type
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,

    /// Resource properties
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<FirewallRuleProperties>,
}

impl FirewallRule {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            id: Some("test-id".into()),
            name: Some("test-firewall_rule".into()),
            r#type: Some("test-type".into()),
            properties: Some(FirewallRuleProperties::fixture()),
        }
    }
}

/// The response to a list firewall rules request.
///
/// **Azure API**: `sql.v1.FirewallRuleListResult`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//FirewallRuleListResult>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FirewallRuleListResult {
    /// Array of results
    #[serde(default)]
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<FirewallRule>,

    /// Link to retrieve next page
    #[serde(skip_serializing_if = "Option::is_none")]
    pub next_link: Option<String>,
}

impl FirewallRuleListResult {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            value: vec![],
            next_link: Some("test-next_link".into()),
        }
    }
}

/// A server firewall rule.
///
/// **Azure API**: `sql.v1.FirewallRuleCreateRequest`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql//FirewallRuleCreateRequest>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FirewallRuleCreateRequest {
    /// Resource properties
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<FirewallRuleProperties>,
}

impl FirewallRuleCreateRequest {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            properties: Some(FirewallRuleProperties::fixture()),
        }
    }
}

/// Properties of a server blob auditing policy.
///
/// **Azure API**: `sql.v1.ServerBlobAuditingPolicyProperties`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql/server-blob-auditing-policies/get>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerBlobAuditingPolicyProperties {
    /// The state of the auditing policy (`"Enabled"` or `"Disabled"`).
    #[serde(skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,

    /// The blob storage endpoint to send audit logs to (optional).
    #[serde(skip_serializing_if = "Option::is_none")]
    pub storage_endpoint: Option<String>,

    /// Days to retain audit logs in the storage account. 0 = unlimited.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub retention_days: Option<i32>,

    /// Whether Azure Monitor is enabled as an audit log destination.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub is_azure_monitor_target_enabled: Option<bool>,
}

impl ServerBlobAuditingPolicyProperties {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            state: Some("Enabled".into()),
            storage_endpoint: None,
            retention_days: Some(90),
            is_azure_monitor_target_enabled: Some(true),
        }
    }
}

/// A server blob auditing policy (the `default` auditing settings for an Azure SQL Server).
///
/// **Azure API**: `sql.v1.ServerBlobAuditingPolicy`
/// **Reference**: <https://learn.microsoft.com/en-us/rest/api/sql/server-blob-auditing-policies/get>
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerBlobAuditingPolicy {
    /// Resource ID.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,

    /// Resource name.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,

    /// Auditing policy properties.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub properties: Option<ServerBlobAuditingPolicyProperties>,
}

impl ServerBlobAuditingPolicy {
    #[cfg(any(test, feature = "test-support"))]
    /// Create a fixture instance for testing.
    pub fn fixture() -> Self {
        Self {
            id: Some("/subscriptions/test-sub/resourceGroups/test-rg/providers/Microsoft.Sql/servers/test-server/auditingSettings/default".into()),
            name: Some("default".into()),
            properties: Some(ServerBlobAuditingPolicyProperties::fixture()),
        }
    }
}

/// Request body for enabling server-level blob auditing.
///
/// **Azure API**: `PUT .../auditingSettings/default`
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct EnableServerAuditingRequest {
    pub properties: EnableServerAuditingProperties,
}

/// Properties for enabling server auditing.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct EnableServerAuditingProperties {
    /// Must be `"Enabled"`.
    pub state: String,

    /// The blob storage endpoint (e.g. `https://myaccount.blob.core.windows.net`).
    /// Required when the server already has blob-storage auditing configured.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub storage_endpoint: Option<String>,

    /// Primary access key for the storage account. Required when `storage_endpoint` is set.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub storage_account_access_key: Option<String>,

    /// Enable Azure Monitor as the audit log destination.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub is_azure_monitor_target_enabled: Option<bool>,

    /// Days to retain audit logs in the storage account. 0 = unlimited.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub retention_days: Option<u32>,
}

impl EnableServerAuditingRequest {
    /// Build a request that enables auditing to Azure Monitor.
    pub fn enable_to_azure_monitor() -> Self {
        Self {
            properties: EnableServerAuditingProperties {
                state: "Enabled".into(),
                storage_endpoint: None,
                storage_account_access_key: None,
                is_azure_monitor_target_enabled: Some(true),
                retention_days: None,
            },
        }
    }
}