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.
7.5 kB · 271 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/status_page.proto
namespace Openstatus\Status_page\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * StatusPageSummary represents metadata for a status page (used in list responses). * * Generated from protobuf message <code>openstatus.status_page.v1.StatusPageSummary</code> */class StatusPageSummary extends \Google\Protobuf\Internal\Message{ /** * Unique identifier for the status page. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> */ protected $id = ''; /** * Title of the status page. * * Generated from protobuf field <code>string title = 2 [json_name = "title"];</code> */ protected $title = ''; /** * URL-friendly slug for the status page. * * Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code> */ protected $slug = ''; /** * Whether the status page is published and visible. * * Generated from protobuf field <code>bool published = 4 [json_name = "published"];</code> */ protected $published = false; /** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 5 [json_name = "createdAt"];</code> */ protected $created_at = ''; /** * Timestamp when the page was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 6 [json_name = "updatedAt"];</code> */ protected $updated_at = ''; /** * Custom domain for the status page (optional). * * Generated from protobuf field <code>string custom_domain = 7 [json_name = "customDomain", (.gnostic.openapi.v3.property) = {</code> */ protected $custom_domain = '';
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Unique identifier for the status page. * @type string $title * Title of the status page. * @type string $slug * URL-friendly slug for the status page. * @type bool $published * Whether the status page is published and visible. * @type string $created_at * Timestamp when the page was created (RFC 3339 format). * @type string $updated_at * Timestamp when the page was last updated (RFC 3339 format). * @type string $custom_domain * Custom domain for the status page (optional). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\StatusPage::initOnce(); parent::__construct($data); }
/** * Unique identifier for the status page. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return $this->id; }
/** * Unique identifier for the status page. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * Title of the status page. * * Generated from protobuf field <code>string title = 2 [json_name = "title"];</code> * @return string */ public function getTitle() { return $this->title; }
/** * Title of the status page. * * Generated from protobuf field <code>string title = 2 [json_name = "title"];</code> * @param string $var * @return $this */ public function setTitle(string $var) { GPBUtil::checkString($var, true); $this->title = $var;
return $this; }
/** * URL-friendly slug for the status page. * * Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code> * @return string */ public function getSlug() { return $this->slug; }
/** * URL-friendly slug for the status page. * * Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code> * @param string $var * @return $this */ public function setSlug(string $var) { GPBUtil::checkString($var, true); $this->slug = $var;
return $this; }
/** * Whether the status page is published and visible. * * Generated from protobuf field <code>bool published = 4 [json_name = "published"];</code> * @return bool */ public function getPublished() { return $this->published; }
/** * Whether the status page is published and visible. * * Generated from protobuf field <code>bool published = 4 [json_name = "published"];</code> * @param bool $var * @return $this */ public function setPublished(bool $var) { $this->published = $var;
return $this; }
/** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 5 [json_name = "createdAt"];</code> * @return string */ public function getCreatedAt() { return $this->created_at; }
/** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 5 [json_name = "createdAt"];</code> * @param string $var * @return $this */ public function setCreatedAt(string $var) { GPBUtil::checkString($var, true); $this->created_at = $var;
return $this; }
/** * Timestamp when the page was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 6 [json_name = "updatedAt"];</code> * @return string */ public function getUpdatedAt() { return $this->updated_at; }
/** * Timestamp when the page was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 6 [json_name = "updatedAt"];</code> * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var;
return $this; }
/** * Custom domain for the status page (optional). * * Generated from protobuf field <code>string custom_domain = 7 [json_name = "customDomain", (.gnostic.openapi.v3.property) = {</code> * @return string */ public function getCustomDomain() { return $this->custom_domain; }
/** * Custom domain for the status page (optional). * * Generated from protobuf field <code>string custom_domain = 7 [json_name = "customDomain", (.gnostic.openapi.v3.property) = {</code> * @param string $var * @return $this */ public function setCustomDomain(string $var) { GPBUtil::checkString($var, true); $this->custom_domain = $var;
return $this; }
}