DTO improvements
parent
0002ea4ccc
commit
7b9650d804
|
@ -52,15 +52,15 @@ final class ClientOutput extends AbstractOutput
|
|||
#[ApiProperty(readableLink: true )]
|
||||
public ?ImageRepositoryOutput $repository = null;
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-template:read', 'trace:read', 'subnet:read'])]
|
||||
#[ApiProperty(readableLink: true )]
|
||||
public ?PxeTemplateOutput $template = null;
|
||||
|
||||
#[Groups(['client:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-template:read', 'trace:read', 'subnet:read'])]
|
||||
#[ApiProperty(readableLink: true )]
|
||||
public ?OgLiveOutput $ogLive = null;
|
||||
|
||||
#[Groups(['client:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-template:read', 'trace:read', 'subnet:read'])]
|
||||
public ?string $subnet = null;
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
|
@ -75,7 +75,7 @@ final class ClientOutput extends AbstractOutput
|
|||
#[Groups(['client:read'])]
|
||||
public ?string $createdBy = null;
|
||||
|
||||
#[Groups(['client:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-template:read', 'trace:read', 'subnet:read'])]
|
||||
public ?bool $maintenance = false;
|
||||
|
||||
#[Groups(['client:read'])]
|
||||
|
|
|
@ -11,7 +11,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|||
#[Get(shortName: 'PxeTemplate')]
|
||||
final class PxeTemplateOutput extends AbstractOutput
|
||||
{
|
||||
#[Groups(['pxe-template:read', 'client:read'])]
|
||||
#[Groups(['pxe-template:read', 'client:read', 'organizational-unit:read'])]
|
||||
public string $name;
|
||||
|
||||
#[Groups(['pxe-template:read'])]
|
||||
|
|
Loading…
Reference in New Issue