1 import { Component, Input, OnChanges } from '@angular/core';
2 import { CdTableColumn } from '~/app/shared/models/cd-table-column';
3 import { StorageClassDetails } from '../models/rgw-storage-class.model';
6 selector: 'cd-rgw-storage-class-details',
7 templateUrl: './rgw-storage-class-details.component.html',
8 styleUrls: ['./rgw-storage-class-details.component.scss']
10 export class RgwStorageClassDetailsComponent implements OnChanges {
12 selection: StorageClassDetails;
13 columns: CdTableColumn[] = [];
14 storageDetails: StorageClassDetails;
18 this.storageDetails = {
19 access_key: this.selection.access_key,
20 secret: this.selection.secret,
21 target_path: this.selection.target_path,
22 multipart_min_part_size: this.selection.multipart_min_part_size,
23 multipart_sync_threshold: this.selection.multipart_sync_threshold,
24 host_style: this.selection.host_style,
25 retain_head_object: this.selection.retain_head_object