1 <ng-container *ngIf="selection">
5 cdStatefulTab="rgw-bucket-details">
6 <ng-container ngbNavItem="details">
9 <ng-template ngbNavContent>
11 <table class="cds--data-table--sort cds--data-table--no-border cds--data-table cds--data-table--md"
12 data-testid="rgw-bucket-details">
16 class="bold w-25">Versioning</td>
17 <td class="w-75">{{ selection.versioning }}</td>
21 class="bold">Encryption</td>
22 <td>{{ selection.encryption }}</td>
26 class="bold">Replication</td>
27 <td>{{ replicationStatus }}</td>
31 class="bold">MFA Delete</td>
32 <td>{{ selection.mfa_delete }}</td>
36 class="bold">Index type</td>
37 <td>{{ selection.index_type }}</td>
41 class="bold">Placement rule</td>
42 <td>{{ selection.placement_rule }}</td>
46 class="bold">Last modification time</td>
47 <td>{{ selection.mtime | cdDate }}</td>
54 <legend i18n>Bucket quota</legend>
55 <table class="cds--data-table--sort cds--data-table--no-border cds--data-table cds--data-table--md"
56 data-testid="rgw-bucket-quota-details">
60 class="bold w-25">Enabled</td>
61 <td class="w-75">{{ selection.bucket_quota.enabled | booleanText }}</td>
63 <ng-container *ngIf="selection.bucket_quota.enabled">
66 class="bold">Maximum size</td>
67 <td *ngIf="selection.bucket_quota.max_size <= -1"
69 <td *ngIf="selection.bucket_quota.max_size > -1">
70 {{ selection.bucket_quota.max_size | dimless }}
75 class="bold">Maximum objects</td>
76 <td *ngIf="selection.bucket_quota.max_objects <= -1"
78 <td *ngIf="selection.bucket_quota.max_objects > -1">
79 {{ selection.bucket_quota.max_objects }}
88 <legend i18n>Locking</legend>
89 <table class="cds--data-table--sort cds--data-table--no-border cds--data-table cds--data-table--md"
90 data-testid="rgw-bucket-locking-details">
94 class="bold w-25">Enabled</td>
95 <td class="w-75">{{ selection.lock_enabled | booleanText }}</td>
97 <ng-container *ngIf="selection.lock_enabled">
100 class="bold">Mode</td>
101 <td>{{ selection.lock_mode }}</td>
105 class="bold">Days</td>
106 <td>{{ selection.lock_retention_period_days }}</td>
113 <ng-container *ngIf="(selection.tagset | keyvalue)?.length">
114 <legend i18n>Tags</legend>
115 <table class="cds--data-table--sort cds--data-table--no-border cds--data-table cds--data-table--md">
117 <tr *ngFor="let tag of selection.tagset | keyvalue">
119 class="bold w-25">{{tag.key}}</td>
120 <td class="w-75">{{ tag.value }}</td>
129 <ng-container ngbNavItem="permissions">
132 <ng-template ngbNavContent>
133 <div class="table-scroller">
134 <table class="cds--data-table--sort cds--data-table--no-border cds--data-table cds--data-table--md">
138 class="bold w-25">Bucket policy</td>
139 <td><pre>{{ selection.bucket_policy | json}}</pre></td>
143 class="bold w-25">Lifecycle
144 <div *ngIf="(selection.lifecycle | json) !== '{}'"
146 <button type="button"
147 class="btn btn-light"
148 [ngClass]="{'active': lifecycleFormat === 'json'}"
149 (click)="lifecycleFormat = 'json'">
152 <button type="button"
153 class="btn btn-light"
154 [ngClass]="{'active': lifecycleFormat === 'xml'}"
155 (click)="lifecycleFormat = 'xml'">
161 <pre *ngIf="lifecycleFormat === 'json'">{{selection.lifecycle | json}}</pre>
162 <pre *ngIf="lifecycleFormat === 'xml'">{{ (selection.lifecycle | xml) || '-'}}</pre>
167 class="bold w-25">Replication policy</td>
168 <td><pre>{{ selection.replication | json}}</pre></td>
172 class="bold w-25">ACL</td>
174 <table class="table">
183 <td>Bucket Owner</td>
184 <td>{{ aclPermissions.Owner || '-'}}</td>
188 <td>{{ aclPermissions.AllUsers || '-'}}</td>
191 <td>Authenticated users group</td>
192 <td>{{ aclPermissions.AuthenticatedUsers || '-'}}</td>
205 <div [ngbNavOutlet]="nav"></div>