@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
43 lines (35 loc) • 856 B
text/typescript
// SPDX-License-Identifier: Apache-2.0
import {Exclude, Expose} from 'class-transformer';
import {
type ClusterReferenceName,
type DeploymentName,
type NamespaceNameAsString,
type Realm,
type Shard,
} from '../../../../types/index.js';
export class DeploymentSchema {
public name: DeploymentName;
public namespace: NamespaceNameAsString;
public clusters: ClusterReferenceName[];
public realm: Realm;
public shard: Shard;
public constructor(
name?: DeploymentName,
namespace?: NamespaceNameAsString,
clusters?: ClusterReferenceName[],
realm?: Realm,
shard?: Shard,
) {
this.name = name ?? '';
this.namespace = namespace ?? '';
this.clusters = clusters ?? [];
this.realm = realm ?? 0;
this.shard = shard ?? 0;
}
}