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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162<?php
declare(strict_types=1);
namespace Openstatus\Sdk\Services;
use Openstatus\Sdk\Transport\JsonTransport;use Openstatus\Status_page\V1 as SP;
final class StatusPageServiceClient{ private const FQN = 'openstatus.status_page.v1.StatusPageService';
public function __construct(private readonly JsonTransport $transport) { }
/** * @param array<string, string> $headers */ public function createStatusPage(SP\CreateStatusPageRequest $request, array $headers = []): SP\CreateStatusPageResponse { return $this->transport->call(self::FQN, 'CreateStatusPage', $request, SP\CreateStatusPageResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getStatusPage(SP\GetStatusPageRequest $request, array $headers = []): SP\GetStatusPageResponse { return $this->transport->call(self::FQN, 'GetStatusPage', $request, SP\GetStatusPageResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function listStatusPages(SP\ListStatusPagesRequest $request, array $headers = []): SP\ListStatusPagesResponse { return $this->transport->call(self::FQN, 'ListStatusPages', $request, SP\ListStatusPagesResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateStatusPage(SP\UpdateStatusPageRequest $request, array $headers = []): SP\UpdateStatusPageResponse { return $this->transport->call(self::FQN, 'UpdateStatusPage', $request, SP\UpdateStatusPageResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function deleteStatusPage(SP\DeleteStatusPageRequest $request, array $headers = []): SP\DeleteStatusPageResponse { return $this->transport->call(self::FQN, 'DeleteStatusPage', $request, SP\DeleteStatusPageResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getStatusPageContent(SP\GetStatusPageContentRequest $request, array $headers = []): SP\GetStatusPageContentResponse { return $this->transport->call(self::FQN, 'GetStatusPageContent', $request, SP\GetStatusPageContentResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getOverallStatus(SP\GetOverallStatusRequest $request, array $headers = []): SP\GetOverallStatusResponse { return $this->transport->call(self::FQN, 'GetOverallStatus', $request, SP\GetOverallStatusResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function addMonitorComponent(SP\AddMonitorComponentRequest $request, array $headers = []): SP\AddMonitorComponentResponse { return $this->transport->call(self::FQN, 'AddMonitorComponent', $request, SP\AddMonitorComponentResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function addStaticComponent(SP\AddStaticComponentRequest $request, array $headers = []): SP\AddStaticComponentResponse { return $this->transport->call(self::FQN, 'AddStaticComponent', $request, SP\AddStaticComponentResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function removeComponent(SP\RemoveComponentRequest $request, array $headers = []): SP\RemoveComponentResponse { return $this->transport->call(self::FQN, 'RemoveComponent', $request, SP\RemoveComponentResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateComponent(SP\UpdateComponentRequest $request, array $headers = []): SP\UpdateComponentResponse { return $this->transport->call(self::FQN, 'UpdateComponent', $request, SP\UpdateComponentResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function createComponentGroup(SP\CreateComponentGroupRequest $request, array $headers = []): SP\CreateComponentGroupResponse { return $this->transport->call(self::FQN, 'CreateComponentGroup', $request, SP\CreateComponentGroupResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateComponentGroup(SP\UpdateComponentGroupRequest $request, array $headers = []): SP\UpdateComponentGroupResponse { return $this->transport->call(self::FQN, 'UpdateComponentGroup', $request, SP\UpdateComponentGroupResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function deleteComponentGroup(SP\DeleteComponentGroupRequest $request, array $headers = []): SP\DeleteComponentGroupResponse { return $this->transport->call(self::FQN, 'DeleteComponentGroup', $request, SP\DeleteComponentGroupResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function subscribeToPage(SP\SubscribeToPageRequest $request, array $headers = []): SP\SubscribeToPageResponse { return $this->transport->call(self::FQN, 'SubscribeToPage', $request, SP\SubscribeToPageResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function unsubscribeFromPage(SP\UnsubscribeFromPageRequest $request, array $headers = []): SP\UnsubscribeFromPageResponse { return $this->transport->call(self::FQN, 'UnsubscribeFromPage', $request, SP\UnsubscribeFromPageResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function createPageSubscription(SP\CreatePageSubscriptionRequest $request, array $headers = []): SP\CreatePageSubscriptionResponse { return $this->transport->call(self::FQN, 'CreatePageSubscription', $request, SP\CreatePageSubscriptionResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function listSubscribers(SP\ListSubscribersRequest $request, array $headers = []): SP\ListSubscribersResponse { return $this->transport->call(self::FQN, 'ListSubscribers', $request, SP\ListSubscribersResponse::class, $headers); }}