Bucket constructor

Bucket({
  1. BucketLinks? links,
  2. String? id,
  3. BucketTypeEnum? type = const BucketTypeEnum._('user'),
  4. required String? name,
  5. String? description,
  6. String? orgID,
  7. String? rp,
  8. SchemaType? schemaType,
  9. DateTime? createdAt,
  10. DateTime? updatedAt,
  11. List<RetentionRule>? retentionRules = const [],
  12. List<Label>? labels = const [],
})

Returns a new Bucket instance.

Implementation

Bucket({
  this.links,
  this.id,
  this.type = const BucketTypeEnum._('user'),
  required this.name,
  this.description,
  this.orgID,
  this.rp,
  this.schemaType,
  this.createdAt,
  this.updatedAt,
  this.retentionRules = const [],
  this.labels = const [],
});