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.
21 kB · 678 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679<?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;
/** * StatusPage represents a full status page with all details. * * Generated from protobuf message <code>openstatus.status_page.v1.StatusPage</code> */class StatusPage 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 = ''; /** * Description of the status page. * * Generated from protobuf field <code>string description = 3 [json_name = "description"];</code> */ protected $description = ''; /** * URL-friendly slug for the status page. * * Generated from protobuf field <code>string slug = 4 [json_name = "slug", (.gnostic.openapi.v3.property) = {</code> */ protected $slug = ''; /** * Custom domain for the status page (optional). * * Generated from protobuf field <code>string custom_domain = 5 [json_name = "customDomain", (.gnostic.openapi.v3.property) = {</code> */ protected $custom_domain = ''; /** * Whether the status page is published and visible. * * Generated from protobuf field <code>bool published = 6 [json_name = "published"];</code> */ protected $published = false; /** * Access type for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.PageAccessType access_type = 7 [json_name = "accessType"];</code> */ protected $access_type = 0; /** * Visual theme for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.PageTheme theme = 8 [json_name = "theme"];</code> */ protected $theme = 0; /** * URL to the homepage (optional). * * Generated from protobuf field <code>string homepage_url = 9 [json_name = "homepageUrl"];</code> */ protected $homepage_url = ''; /** * URL to the contact page (optional). * * Generated from protobuf field <code>string contact_url = 10 [json_name = "contactUrl"];</code> */ protected $contact_url = ''; /** * Icon URL for the status page (optional). * * Generated from protobuf field <code>string icon = 11 [json_name = "icon"];</code> */ protected $icon = ''; /** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 12 [json_name = "createdAt", (.gnostic.openapi.v3.property) = {</code> */ protected $created_at = ''; /** * Timestamp when the page was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 13 [json_name = "updatedAt", (.gnostic.openapi.v3.property) = {</code> */ protected $updated_at = ''; /** * Default locale for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.Locale default_locale = 14 [json_name = "defaultLocale"];</code> */ protected $default_locale = 0; /** * Enabled locales for the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.Locale locales = 15 [json_name = "locales"];</code> */ private $locales; /** * Password for the status page (only set when access_type is PASSWORD_PROTECTED). * * Generated from protobuf field <code>string password = 16 [json_name = "password"];</code> */ protected $password = ''; /** * Email domains allowed to access the page (only set when access_type is AUTHENTICATED). * * Generated from protobuf field <code>repeated string auth_email_domains = 17 [json_name = "authEmailDomains"];</code> */ private $auth_email_domains; /** * Whether search engines are allowed to index this status page. * * Generated from protobuf field <code>bool allow_index = 18 [json_name = "allowIndex"];</code> */ protected $allow_index = false; /** * Comma-separated IPv4 CIDR ranges (only set when access_type is IP_RESTRICTED). * * Generated from protobuf field <code>string allowed_ip_ranges = 19 [json_name = "allowedIpRanges"];</code> */ protected $allowed_ip_ranges = '';
/** * 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 $description * Description of the status page. * @type string $slug * URL-friendly slug for the status page. * @type string $custom_domain * Custom domain for the status page (optional). * @type bool $published * Whether the status page is published and visible. * @type int $access_type * Access type for the status page. * @type int $theme * Visual theme for the status page. * @type string $homepage_url * URL to the homepage (optional). * @type string $contact_url * URL to the contact page (optional). * @type string $icon * Icon URL for the status page (optional). * @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 int $default_locale * Default locale for the status page. * @type int[] $locales * Enabled locales for the status page. * @type string $password * Password for the status page (only set when access_type is PASSWORD_PROTECTED). * @type string[] $auth_email_domains * Email domains allowed to access the page (only set when access_type is AUTHENTICATED). * @type bool $allow_index * Whether search engines are allowed to index this status page. * @type string $allowed_ip_ranges * Comma-separated IPv4 CIDR ranges (only set when access_type is IP_RESTRICTED). * } */ 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; }
/** * Description of the status page. * * Generated from protobuf field <code>string description = 3 [json_name = "description"];</code> * @return string */ public function getDescription() { return $this->description; }
/** * Description of the status page. * * Generated from protobuf field <code>string description = 3 [json_name = "description"];</code> * @param string $var * @return $this */ public function setDescription(string $var) { GPBUtil::checkString($var, true); $this->description = $var;
return $this; }
/** * URL-friendly slug for the status page. * * Generated from protobuf field <code>string slug = 4 [json_name = "slug", (.gnostic.openapi.v3.property) = {</code> * @return string */ public function getSlug() { return $this->slug; }
/** * URL-friendly slug for the status page. * * Generated from protobuf field <code>string slug = 4 [json_name = "slug", (.gnostic.openapi.v3.property) = {</code> * @param string $var * @return $this */ public function setSlug(string $var) { GPBUtil::checkString($var, true); $this->slug = $var;
return $this; }
/** * Custom domain for the status page (optional). * * Generated from protobuf field <code>string custom_domain = 5 [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 = 5 [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; }
/** * Whether the status page is published and visible. * * Generated from protobuf field <code>bool published = 6 [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 = 6 [json_name = "published"];</code> * @param bool $var * @return $this */ public function setPublished(bool $var) { $this->published = $var;
return $this; }
/** * Access type for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.PageAccessType access_type = 7 [json_name = "accessType"];</code> * @return int one of the values in {@see \Openstatus\Status_page\V1\PageAccessType} */ public function getAccessType() { return $this->access_type; }
/** * Access type for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.PageAccessType access_type = 7 [json_name = "accessType"];</code> * @param int $var one of the values in {@see \Openstatus\Status_page\V1\PageAccessType} * @return $this */ public function setAccessType(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_page\V1\PageAccessType::class); $this->access_type = $var;
return $this; }
/** * Visual theme for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.PageTheme theme = 8 [json_name = "theme"];</code> * @return int one of the values in {@see \Openstatus\Status_page\V1\PageTheme} */ public function getTheme() { return $this->theme; }
/** * Visual theme for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.PageTheme theme = 8 [json_name = "theme"];</code> * @param int $var one of the values in {@see \Openstatus\Status_page\V1\PageTheme} * @return $this */ public function setTheme(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_page\V1\PageTheme::class); $this->theme = $var;
return $this; }
/** * URL to the homepage (optional). * * Generated from protobuf field <code>string homepage_url = 9 [json_name = "homepageUrl"];</code> * @return string */ public function getHomepageUrl() { return $this->homepage_url; }
/** * URL to the homepage (optional). * * Generated from protobuf field <code>string homepage_url = 9 [json_name = "homepageUrl"];</code> * @param string $var * @return $this */ public function setHomepageUrl(string $var) { GPBUtil::checkString($var, true); $this->homepage_url = $var;
return $this; }
/** * URL to the contact page (optional). * * Generated from protobuf field <code>string contact_url = 10 [json_name = "contactUrl"];</code> * @return string */ public function getContactUrl() { return $this->contact_url; }
/** * URL to the contact page (optional). * * Generated from protobuf field <code>string contact_url = 10 [json_name = "contactUrl"];</code> * @param string $var * @return $this */ public function setContactUrl(string $var) { GPBUtil::checkString($var, true); $this->contact_url = $var;
return $this; }
/** * Icon URL for the status page (optional). * * Generated from protobuf field <code>string icon = 11 [json_name = "icon"];</code> * @return string */ public function getIcon() { return $this->icon; }
/** * Icon URL for the status page (optional). * * Generated from protobuf field <code>string icon = 11 [json_name = "icon"];</code> * @param string $var * @return $this */ public function setIcon(string $var) { GPBUtil::checkString($var, true); $this->icon = $var;
return $this; }
/** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 12 [json_name = "createdAt", (.gnostic.openapi.v3.property) = {</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 = 12 [json_name = "createdAt", (.gnostic.openapi.v3.property) = {</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 = 13 [json_name = "updatedAt", (.gnostic.openapi.v3.property) = {</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 = 13 [json_name = "updatedAt", (.gnostic.openapi.v3.property) = {</code> * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var;
return $this; }
/** * Default locale for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.Locale default_locale = 14 [json_name = "defaultLocale"];</code> * @return int one of the values in {@see \Openstatus\Status_page\V1\Locale} */ public function getDefaultLocale() { return $this->default_locale; }
/** * Default locale for the status page. * * Generated from protobuf field <code>.openstatus.status_page.v1.Locale default_locale = 14 [json_name = "defaultLocale"];</code> * @param int $var one of the values in {@see \Openstatus\Status_page\V1\Locale} * @return $this */ public function setDefaultLocale(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_page\V1\Locale::class); $this->default_locale = $var;
return $this; }
/** * Enabled locales for the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.Locale locales = 15 [json_name = "locales"];</code> * @return RepeatedField<int> one of the values in {@see \Openstatus\Status_page\V1\Locale} */ public function getLocales() { return $this->locales; }
/** * Enabled locales for the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.Locale locales = 15 [json_name = "locales"];</code> * @param int[] $var one of the values in {@see \Openstatus\Status_page\V1\Locale} * @return $this */ public function setLocales(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Openstatus\Status_page\V1\Locale::class); $this->locales = $arr;
return $this; }
/** * Password for the status page (only set when access_type is PASSWORD_PROTECTED). * * Generated from protobuf field <code>string password = 16 [json_name = "password"];</code> * @return string */ public function getPassword() { return $this->password; }
/** * Password for the status page (only set when access_type is PASSWORD_PROTECTED). * * Generated from protobuf field <code>string password = 16 [json_name = "password"];</code> * @param string $var * @return $this */ public function setPassword(string $var) { GPBUtil::checkString($var, true); $this->password = $var;
return $this; }
/** * Email domains allowed to access the page (only set when access_type is AUTHENTICATED). * * Generated from protobuf field <code>repeated string auth_email_domains = 17 [json_name = "authEmailDomains"];</code> * @return RepeatedField<string> */ public function getAuthEmailDomains() { return $this->auth_email_domains; }
/** * Email domains allowed to access the page (only set when access_type is AUTHENTICATED). * * Generated from protobuf field <code>repeated string auth_email_domains = 17 [json_name = "authEmailDomains"];</code> * @param string[] $var * @return $this */ public function setAuthEmailDomains(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->auth_email_domains = $arr;
return $this; }
/** * Whether search engines are allowed to index this status page. * * Generated from protobuf field <code>bool allow_index = 18 [json_name = "allowIndex"];</code> * @return bool */ public function getAllowIndex() { return $this->allow_index; }
/** * Whether search engines are allowed to index this status page. * * Generated from protobuf field <code>bool allow_index = 18 [json_name = "allowIndex"];</code> * @param bool $var * @return $this */ public function setAllowIndex(bool $var) { $this->allow_index = $var;
return $this; }
/** * Comma-separated IPv4 CIDR ranges (only set when access_type is IP_RESTRICTED). * * Generated from protobuf field <code>string allowed_ip_ranges = 19 [json_name = "allowedIpRanges"];</code> * @return string */ public function getAllowedIpRanges() { return $this->allowed_ip_ranges; }
/** * Comma-separated IPv4 CIDR ranges (only set when access_type is IP_RESTRICTED). * * Generated from protobuf field <code>string allowed_ip_ranges = 19 [json_name = "allowedIpRanges"];</code> * @param string $var * @return $this */ public function setAllowedIpRanges(string $var) { GPBUtil::checkString($var, true); $this->allowed_ip_ranges = $var;
return $this; }
}