ServiceTemplateSpec constructor
ServiceTemplateSpec({
- String version = 'v1',
- String kind = 'ServiceTemplate',
- List<
ServiceTemplateVariable> ? variables, - List<
ServiceTemplateEnvironmentVariable> ? environment, - required String name,
- String? image,
- String? description,
- List<
ServicePortSpec> ? ports, - String? command,
- String role = 'agent',
- List<
String> ? secrets, - String? roomStoragePath,
- 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 [];