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.
2.9 kB · 102 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/notification/v1/providers.proto
namespace Openstatus\Notification\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * OpsgenieData contains configuration for Opsgenie notifications. * * Generated from protobuf message <code>openstatus.notification.v1.OpsgenieData</code> */class OpsgenieData extends \Google\Protobuf\Internal\Message{ /** * Opsgenie API key. * * Generated from protobuf field <code>string api_key = 1 [json_name = "apiKey", (.buf.validate.field) = {</code> */ protected $api_key = ''; /** * Opsgenie region. * * Generated from protobuf field <code>.openstatus.notification.v1.OpsgenieRegion region = 2 [json_name = "region", (.buf.validate.field) = {</code> */ protected $region = 0;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $api_key * Opsgenie API key. * @type int $region * Opsgenie region. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); }
/** * Opsgenie API key. * * Generated from protobuf field <code>string api_key = 1 [json_name = "apiKey", (.buf.validate.field) = {</code> * @return string */ public function getApiKey() { return $this->api_key; }
/** * Opsgenie API key. * * Generated from protobuf field <code>string api_key = 1 [json_name = "apiKey", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setApiKey(string $var) { GPBUtil::checkString($var, true); $this->api_key = $var;
return $this; }
/** * Opsgenie region. * * Generated from protobuf field <code>.openstatus.notification.v1.OpsgenieRegion region = 2 [json_name = "region", (.buf.validate.field) = {</code> * @return int one of the values in {@see \Openstatus\Notification\V1\OpsgenieRegion} */ public function getRegion() { return $this->region; }
/** * Opsgenie region. * * Generated from protobuf field <code>.openstatus.notification.v1.OpsgenieRegion region = 2 [json_name = "region", (.buf.validate.field) = {</code> * @param int $var one of the values in {@see \Openstatus\Notification\V1\OpsgenieRegion} * @return $this */ public function setRegion(int $var) { GPBUtil::checkEnum($var, \Openstatus\Notification\V1\OpsgenieRegion::class); $this->region = $var;
return $this; }
}