2023-03-21 10:02:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Data;
|
|
|
|
|
|
|
|
use App\Enums\ActivityTypes;
|
|
|
|
use App\Enums\ProcessStatus;
|
2023-03-29 10:27:02 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2023-03-21 10:02:16 +00:00
|
|
|
use Spatie\LaravelData\Data;
|
|
|
|
|
|
|
|
class RemoteProcessArgs extends Data
|
|
|
|
{
|
|
|
|
public function __construct(
|
2023-03-29 10:27:02 +00:00
|
|
|
public string $server_ip,
|
|
|
|
public string $private_key_location,
|
|
|
|
public string|null $deployment_uuid,
|
|
|
|
public string $command,
|
|
|
|
public int $port,
|
|
|
|
public string $user,
|
|
|
|
public string $type = ActivityTypes::REMOTE_PROCESS->value,
|
|
|
|
public string $status = ProcessStatus::HOLDING->value,
|
2023-03-31 12:30:08 +00:00
|
|
|
public ?Model $model = null,
|
2023-03-29 10:27:02 +00:00
|
|
|
) {
|
|
|
|
}
|
2023-03-21 10:02:16 +00:00
|
|
|
}
|