-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv1.backups.postgresql.cnpg.io.g.cs
More file actions
652 lines (560 loc) · 29.4 KB
/
v1.backups.postgresql.cnpg.io.g.cs
File metadata and controls
652 lines (560 loc) · 29.4 KB
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
#nullable enable
using k8s;
using k8s.Models;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
namespace KubernetesCRDModelGen.Models.postgresql.cnpg.io;
/// <summary>A Backup resource is a request for a PostgreSQL backup by the user.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[KubernetesEntity(Group = KubeGroup, Kind = KubeKind, ApiVersion = KubeApiVersion, PluralName = KubePluralName)]
public partial class V1BackupList : IKubernetesObject<V1ListMeta>, IItems<V1Backup>
{
public const string KubeApiVersion = "v1";
public const string KubeKind = "BackupList";
public const string KubeGroup = "postgresql.cnpg.io";
public const string KubePluralName = "backups";
/// <summary>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</summary>
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; } = "postgresql.cnpg.io/v1";
/// <summary>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</summary>
[JsonPropertyName("kind")]
public string Kind { get; set; } = "BackupList";
/// <summary>ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.</summary>
[JsonPropertyName("metadata")]
public V1ListMeta? Metadata { get; set; }
/// <summary>List of V1Backup objects.</summary>
[JsonPropertyName("items")]
public IList<V1Backup>? Items { get; set; }
}
/// <summary>The cluster to backup</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupSpecCluster
{
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>
/// The backup method to be used, possible options are `barmanObjectStore`,
/// `volumeSnapshot` or `plugin`. Defaults to: `barmanObjectStore`.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[JsonConverter(typeof(JsonStringEnumConverter<V1BackupSpecMethodEnum>))]
public enum V1BackupSpecMethodEnum
{
[EnumMember(Value = "barmanObjectStore"), JsonStringEnumMemberName("barmanObjectStore")]
BarmanObjectStore,
[EnumMember(Value = "volumeSnapshot"), JsonStringEnumMemberName("volumeSnapshot")]
VolumeSnapshot,
[EnumMember(Value = "plugin"), JsonStringEnumMemberName("plugin")]
Plugin
}
/// <summary>
/// Configuration parameters to control the online/hot backup with volume snapshots
/// Overrides the default settings specified in the cluster '.backup.volumeSnapshot.onlineConfiguration' stanza
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupSpecOnlineConfiguration
{
/// <summary>
/// Control whether the I/O workload for the backup initial checkpoint will
/// be limited, according to the `checkpoint_completion_target` setting on
/// the PostgreSQL server. If set to true, an immediate checkpoint will be
/// used, meaning PostgreSQL will complete the checkpoint as soon as
/// possible. `false` by default.
/// </summary>
[JsonPropertyName("immediateCheckpoint")]
public bool? ImmediateCheckpoint { get; set; }
/// <summary>
/// If false, the function will return immediately after the backup is completed,
/// without waiting for WAL to be archived.
/// This behavior is only useful with backup software that independently monitors WAL archiving.
/// Otherwise, WAL required to make the backup consistent might be missing and make the backup useless.
/// By default, or when this parameter is true, pg_backup_stop will wait for WAL to be archived when archiving is
/// enabled.
/// On a standby, this means that it will wait only when archive_mode = always.
/// If write activity on the primary is low, it may be useful to run pg_switch_wal on the primary in order to trigger
/// an immediate segment switch.
/// </summary>
[JsonPropertyName("waitForArchive")]
public bool? WaitForArchive { get; set; }
}
/// <summary>Configuration parameters passed to the plugin managing this backup</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupSpecPluginConfiguration
{
/// <summary>Name is the name of the plugin managing this backup</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
/// <summary>
/// Parameters are the configuration parameters passed to the backup
/// plugin for this backup
/// </summary>
[JsonPropertyName("parameters")]
public IDictionary<string, string>? Parameters { get; set; }
}
/// <summary>
/// The policy to decide which instance should perform this backup. If empty,
/// it defaults to `cluster.spec.backup.target`.
/// Available options are empty string, `primary` and `prefer-standby`.
/// `primary` to have backups run always on primary instances,
/// `prefer-standby` to have backups run preferably on the most updated
/// standby, if available.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[JsonConverter(typeof(JsonStringEnumConverter<V1BackupSpecTargetEnum>))]
public enum V1BackupSpecTargetEnum
{
[EnumMember(Value = "primary"), JsonStringEnumMemberName("primary")]
Primary,
[EnumMember(Value = "prefer-standby"), JsonStringEnumMemberName("prefer-standby")]
PreferStandby
}
/// <summary>
/// Specification of the desired behavior of the backup.
/// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupSpec
{
/// <summary>The cluster to backup</summary>
[JsonPropertyName("cluster")]
public required V1BackupSpecCluster Cluster { get; set; }
/// <summary>
/// The backup method to be used, possible options are `barmanObjectStore`,
/// `volumeSnapshot` or `plugin`. Defaults to: `barmanObjectStore`.
/// </summary>
[JsonPropertyName("method")]
public V1BackupSpecMethodEnum? Method { get; set; }
/// <summary>
/// Whether the default type of backup with volume snapshots is
/// online/hot (`true`, default) or offline/cold (`false`)
/// Overrides the default setting specified in the cluster field '.spec.backup.volumeSnapshot.online'
/// </summary>
[JsonPropertyName("online")]
public bool? Online { get; set; }
/// <summary>
/// Configuration parameters to control the online/hot backup with volume snapshots
/// Overrides the default settings specified in the cluster '.backup.volumeSnapshot.onlineConfiguration' stanza
/// </summary>
[JsonPropertyName("onlineConfiguration")]
public V1BackupSpecOnlineConfiguration? OnlineConfiguration { get; set; }
/// <summary>Configuration parameters passed to the plugin managing this backup</summary>
[JsonPropertyName("pluginConfiguration")]
public V1BackupSpecPluginConfiguration? PluginConfiguration { get; set; }
/// <summary>
/// The policy to decide which instance should perform this backup. If empty,
/// it defaults to `cluster.spec.backup.target`.
/// Available options are empty string, `primary` and `prefer-standby`.
/// `primary` to have backups run always on primary instances,
/// `prefer-standby` to have backups run preferably on the most updated
/// standby, if available.
/// </summary>
[JsonPropertyName("target")]
public V1BackupSpecTargetEnum? Target { get; set; }
}
/// <summary>The connection string to be used</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusAzureCredentialsConnectionString
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The storage account where to upload data</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusAzureCredentialsStorageAccount
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>
/// The storage account key to be used in conjunction
/// with the storage account name
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusAzureCredentialsStorageKey
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>
/// A shared-access-signature to be used in conjunction with
/// the storage account name
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusAzureCredentialsStorageSasToken
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The credentials to use to upload data to Azure Blob Storage</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusAzureCredentials
{
/// <summary>The connection string to be used</summary>
[JsonPropertyName("connectionString")]
public V1BackupStatusAzureCredentialsConnectionString? ConnectionString { get; set; }
/// <summary>Use the Azure AD based authentication without providing explicitly the keys.</summary>
[JsonPropertyName("inheritFromAzureAD")]
public bool? InheritFromAzureAD { get; set; }
/// <summary>The storage account where to upload data</summary>
[JsonPropertyName("storageAccount")]
public V1BackupStatusAzureCredentialsStorageAccount? StorageAccount { get; set; }
/// <summary>
/// The storage account key to be used in conjunction
/// with the storage account name
/// </summary>
[JsonPropertyName("storageKey")]
public V1BackupStatusAzureCredentialsStorageKey? StorageKey { get; set; }
/// <summary>
/// A shared-access-signature to be used in conjunction with
/// the storage account name
/// </summary>
[JsonPropertyName("storageSasToken")]
public V1BackupStatusAzureCredentialsStorageSasToken? StorageSasToken { get; set; }
/// <summary>
/// Use the default Azure authentication flow, which includes DefaultAzureCredential.
/// This allows authentication using environment variables and managed identities.
/// </summary>
[JsonPropertyName("useDefaultAzureCredentials")]
public bool? UseDefaultAzureCredentials { get; set; }
}
/// <summary>
/// EndpointCA store the CA bundle of the barman endpoint.
/// Useful when using self-signed certificates to avoid
/// errors with certificate issuer and barman-cloud-wal-archive.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusEndpointCA
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The secret containing the Google Cloud Storage JSON file with the credentials</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusGoogleCredentialsApplicationCredentials
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The credentials to use to upload data to Google Cloud Storage</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusGoogleCredentials
{
/// <summary>The secret containing the Google Cloud Storage JSON file with the credentials</summary>
[JsonPropertyName("applicationCredentials")]
public V1BackupStatusGoogleCredentialsApplicationCredentials? ApplicationCredentials { get; set; }
/// <summary>
/// If set to true, will presume that it's running inside a GKE environment,
/// default to false.
/// </summary>
[JsonPropertyName("gkeEnvironment")]
public bool? GkeEnvironment { get; set; }
}
/// <summary>Information to identify the instance where the backup has been taken from</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusInstanceID
{
/// <summary>The container ID</summary>
[JsonPropertyName("ContainerID")]
public string? ContainerID { get; set; }
/// <summary>The pod name</summary>
[JsonPropertyName("podName")]
public string? PodName { get; set; }
/// <summary>
/// The instance manager session ID. This is a unique identifier generated at instance manager
/// startup and changes on every restart (including container reboots). Used to detect if
/// the instance manager was restarted during long-running operations like backups, which
/// would terminate any running backup process.
/// </summary>
[JsonPropertyName("sessionID")]
public string? SessionID { get; set; }
}
/// <summary>The reference to the access key id</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusS3CredentialsAccessKeyId
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The reference to the secret containing the region name</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusS3CredentialsRegion
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The reference to the secret access key</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusS3CredentialsSecretAccessKey
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The references to the session key</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusS3CredentialsSessionToken
{
/// <summary>The key to select</summary>
[JsonPropertyName("key")]
public required string Key { get; set; }
/// <summary>Name of the referent.</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
}
/// <summary>The credentials to use to upload data to S3</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusS3Credentials
{
/// <summary>The reference to the access key id</summary>
[JsonPropertyName("accessKeyId")]
public V1BackupStatusS3CredentialsAccessKeyId? AccessKeyId { get; set; }
/// <summary>Use the role based authentication without providing explicitly the keys.</summary>
[JsonPropertyName("inheritFromIAMRole")]
public bool? InheritFromIAMRole { get; set; }
/// <summary>The reference to the secret containing the region name</summary>
[JsonPropertyName("region")]
public V1BackupStatusS3CredentialsRegion? Region { get; set; }
/// <summary>The reference to the secret access key</summary>
[JsonPropertyName("secretAccessKey")]
public V1BackupStatusS3CredentialsSecretAccessKey? SecretAccessKey { get; set; }
/// <summary>The references to the session key</summary>
[JsonPropertyName("sessionToken")]
public V1BackupStatusS3CredentialsSessionToken? SessionToken { get; set; }
}
/// <summary>BackupSnapshotElementStatus is a volume snapshot that is part of a volume snapshot method backup</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusSnapshotBackupStatusElements
{
/// <summary>Name is the snapshot resource name</summary>
[JsonPropertyName("name")]
public required string Name { get; set; }
/// <summary>
/// TablespaceName is the name of the snapshotted tablespace. Only set
/// when type is PG_TABLESPACE
/// </summary>
[JsonPropertyName("tablespaceName")]
public string? TablespaceName { get; set; }
/// <summary>Type is tho role of the snapshot in the cluster, such as PG_DATA, PG_WAL and PG_TABLESPACE</summary>
[JsonPropertyName("type")]
public required string Type { get; set; }
}
/// <summary>Status of the volumeSnapshot backup</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatusSnapshotBackupStatus
{
/// <summary>The elements list, populated with the gathered volume snapshots</summary>
[JsonPropertyName("elements")]
public IList<V1BackupStatusSnapshotBackupStatusElements>? Elements { get; set; }
}
/// <summary>
/// Most recently observed status of the backup. This data may not be up to
/// date. Populated by the system. Read-only.
/// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class V1BackupStatus
{
/// <summary>The credentials to use to upload data to Azure Blob Storage</summary>
[JsonPropertyName("azureCredentials")]
public V1BackupStatusAzureCredentials? AzureCredentials { get; set; }
/// <summary>The ID of the Barman backup</summary>
[JsonPropertyName("backupId")]
public string? BackupId { get; set; }
/// <summary>Backup label file content as returned by Postgres in case of online (hot) backups</summary>
[JsonPropertyName("backupLabelFile")]
public byte[]? BackupLabelFile { get; set; }
/// <summary>The Name of the Barman backup</summary>
[JsonPropertyName("backupName")]
public string? BackupName { get; set; }
/// <summary>The starting xlog</summary>
[JsonPropertyName("beginLSN")]
public string? BeginLSN { get; set; }
/// <summary>The starting WAL</summary>
[JsonPropertyName("beginWal")]
public string? BeginWal { get; set; }
/// <summary>The backup command output in case of error</summary>
[JsonPropertyName("commandError")]
public string? CommandError { get; set; }
/// <summary>Unused. Retained for compatibility with old versions.</summary>
[JsonPropertyName("commandOutput")]
public string? CommandOutput { get; set; }
/// <summary>
/// The path where to store the backup (i.e. s3://bucket/path/to/folder)
/// this path, with different destination folders, will be used for WALs
/// and for data. This may not be populated in case of errors.
/// </summary>
[JsonPropertyName("destinationPath")]
public string? DestinationPath { get; set; }
/// <summary>Encryption method required to S3 API</summary>
[JsonPropertyName("encryption")]
public string? Encryption { get; set; }
/// <summary>The ending xlog</summary>
[JsonPropertyName("endLSN")]
public string? EndLSN { get; set; }
/// <summary>The ending WAL</summary>
[JsonPropertyName("endWal")]
public string? EndWal { get; set; }
/// <summary>
/// EndpointCA store the CA bundle of the barman endpoint.
/// Useful when using self-signed certificates to avoid
/// errors with certificate issuer and barman-cloud-wal-archive.
/// </summary>
[JsonPropertyName("endpointCA")]
public V1BackupStatusEndpointCA? EndpointCA { get; set; }
/// <summary>
/// Endpoint to be used to upload data to the cloud,
/// overriding the automatic endpoint discovery
/// </summary>
[JsonPropertyName("endpointURL")]
public string? EndpointURL { get; set; }
/// <summary>The detected error</summary>
[JsonPropertyName("error")]
public string? Error { get; set; }
/// <summary>The credentials to use to upload data to Google Cloud Storage</summary>
[JsonPropertyName("googleCredentials")]
public V1BackupStatusGoogleCredentials? GoogleCredentials { get; set; }
/// <summary>Information to identify the instance where the backup has been taken from</summary>
[JsonPropertyName("instanceID")]
public V1BackupStatusInstanceID? InstanceID { get; set; }
/// <summary>
/// The PostgreSQL major version that was running when the
/// backup was taken.
/// </summary>
[JsonPropertyName("majorVersion")]
public int? MajorVersion { get; set; }
/// <summary>The backup method being used</summary>
[JsonPropertyName("method")]
public string? Method { get; set; }
/// <summary>Whether the backup was online/hot (`true`) or offline/cold (`false`)</summary>
[JsonPropertyName("online")]
public bool? Online { get; set; }
/// <summary>The last backup status</summary>
[JsonPropertyName("phase")]
public string? Phase { get; set; }
/// <summary>A map containing the plugin metadata</summary>
[JsonPropertyName("pluginMetadata")]
public IDictionary<string, string>? PluginMetadata { get; set; }
/// <summary>When the backup process was started by the operator</summary>
[JsonPropertyName("reconciliationStartedAt")]
public DateTime? ReconciliationStartedAt { get; set; }
/// <summary>When the reconciliation was terminated by the operator (either successfully or not)</summary>
[JsonPropertyName("reconciliationTerminatedAt")]
public DateTime? ReconciliationTerminatedAt { get; set; }
/// <summary>The credentials to use to upload data to S3</summary>
[JsonPropertyName("s3Credentials")]
public V1BackupStatusS3Credentials? S3Credentials { get; set; }
/// <summary>
/// The server name on S3, the cluster name is used if this
/// parameter is omitted
/// </summary>
[JsonPropertyName("serverName")]
public string? ServerName { get; set; }
/// <summary>Status of the volumeSnapshot backup</summary>
[JsonPropertyName("snapshotBackupStatus")]
public V1BackupStatusSnapshotBackupStatus? SnapshotBackupStatus { get; set; }
/// <summary>When the backup execution was started by the backup tool</summary>
[JsonPropertyName("startedAt")]
public DateTime? StartedAt { get; set; }
/// <summary>When the backup execution was terminated by the backup tool</summary>
[JsonPropertyName("stoppedAt")]
public DateTime? StoppedAt { get; set; }
/// <summary>Tablespace map file content as returned by Postgres in case of online (hot) backups</summary>
[JsonPropertyName("tablespaceMapFile")]
public byte[]? TablespaceMapFile { get; set; }
}
/// <summary>A Backup resource is a request for a PostgreSQL backup by the user.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("KubernetesCRDModelGen", "1.5.2+8c7b4a3647c1e77cd3e3152af5701ec2357dafe9")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[KubernetesEntity(Group = KubeGroup, Kind = KubeKind, ApiVersion = KubeApiVersion, PluralName = KubePluralName)]
public partial class V1Backup : IKubernetesObject<V1ObjectMeta>, ISpec<V1BackupSpec>, IStatus<V1BackupStatus?>
{
public const string KubeApiVersion = "v1";
public const string KubeKind = "Backup";
public const string KubeGroup = "postgresql.cnpg.io";
public const string KubePluralName = "backups";
/// <summary>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</summary>
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; } = "postgresql.cnpg.io/v1";
/// <summary>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</summary>
[JsonPropertyName("kind")]
public string Kind { get; set; } = "Backup";
/// <summary>Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</summary>
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
/// <summary>
/// Specification of the desired behavior of the backup.
/// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
/// </summary>
[JsonPropertyName("spec")]
public required V1BackupSpec Spec { get; set; }
/// <summary>
/// Most recently observed status of the backup. This data may not be up to
/// date. Populated by the system. Read-only.
/// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
/// </summary>
[JsonPropertyName("status")]
public V1BackupStatus? Status { get; set; }
}