ServiceTemplateSpec constructor

ServiceTemplateSpec({
  1. String version = 'v1',
  2. String kind = 'ServiceTemplate',
  3. List<ServiceTemplateVariable>? variables,
  4. List<ServiceTemplateEnvironmentVariable>? environment,
  5. required String name,
  6. String? image,
  7. String? description,
  8. List<ServicePortSpec>? ports,
  9. String? command,
  10. String role = 'agent',
  11. List<String>? secrets,
  12. String? roomStoragePath,
  13. String? roomStorageSubpath,
})

Implementation

ServiceTemplateSpec({
  this.version = 'v1',
  this.kind = 'ServiceTemplate',
  this.variables,
  this.environment,
  required this.name,
  this.image,
  this.description,
  List<ServicePortSpec>? ports,
  this.command,
  this.role = 'agent',
  List<String>? secrets,
  this.roomStoragePath,
  this.roomStorageSubpath,
}) : ports = ports ?? const [],
     secrets = secrets ?? const [];