1: <?php
2:
3: namespace OpenCloud\CloudMonitoring\Resource;
4:
5: use OpenCloud\Common\PersistentObject;
6: use OpenCloud\CloudMonitoring\Exception;
7:
8: /**
9: * Agent class.
10: *
11: * @extends ReadOnlyResource
12: * @implements ResourceInterface
13: */
14: class AgentToken extends AbstractResource implements ResourceInterface
15: {
16:
17: public $token;
18: public $label;
19:
20: protected static $json_name = false;
21: protected static $json_collection_name = 'values';
22: protected static $url_resource = 'agent_tokens';
23:
24: protected static $emptyObject = array(
25: 'label',
26: 'token'
27: );
28:
29: protected static $requiredKeys = array();
30:
31: public function baseUrl()
32: {
33: return $this->Service()->Url($this->ResourceName());
34: }
35:
36: }