Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • AbstractResource
  • Account
  • Agent
  • AgentConnection
  • AgentHost
  • AgentHostInfo
  • AgentTarget
  • AgentToken
  • Alarm
  • Changelog
  • Check
  • CheckType
  • Entity
  • Metric
  • Notification
  • NotificationHistory
  • NotificationPlan
  • NotificationType
  • ReadonlyResource
  • View
  • Zone

Interfaces

  • ResourceInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 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: }
PHP OpenCloud API API documentation generated by ApiGen 2.8.0