Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758<?php
declare(strict_types=1);
namespace Openstatus\Sdk\Services;
use Openstatus\Maintenance\V1 as Mt;use Openstatus\Sdk\Transport\JsonTransport;
final class MaintenanceServiceClient{ private const FQN = 'openstatus.maintenance.v1.MaintenanceService';
public function __construct(private readonly JsonTransport $transport) { }
/** * @param array<string, string> $headers */ public function createMaintenance(Mt\CreateMaintenanceRequest $request, array $headers = []): Mt\CreateMaintenanceResponse { return $this->transport->call(self::FQN, 'CreateMaintenance', $request, Mt\CreateMaintenanceResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getMaintenance(Mt\GetMaintenanceRequest $request, array $headers = []): Mt\GetMaintenanceResponse { return $this->transport->call(self::FQN, 'GetMaintenance', $request, Mt\GetMaintenanceResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function listMaintenances(Mt\ListMaintenancesRequest $request, array $headers = []): Mt\ListMaintenancesResponse { return $this->transport->call(self::FQN, 'ListMaintenances', $request, Mt\ListMaintenancesResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateMaintenance(Mt\UpdateMaintenanceRequest $request, array $headers = []): Mt\UpdateMaintenanceResponse { return $this->transport->call(self::FQN, 'UpdateMaintenance', $request, Mt\UpdateMaintenanceResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function deleteMaintenance(Mt\DeleteMaintenanceRequest $request, array $headers = []): Mt\DeleteMaintenanceResponse { return $this->transport->call(self::FQN, 'DeleteMaintenance', $request, Mt\DeleteMaintenanceResponse::class, $headers); }}