GetMachineResponse.php
881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright (C) Alibaba Cloud Computing
* All rights reserved
*/
require_once realpath(dirname(__FILE__) . '/Response.php');
/**
* The response of the GetLog API from log service.
*
* @author log service dev
*/
class Aliyun_Log_Models_GetMachineResponse extends Aliyun_Log_Models_Response {
private $machine;
/**
* Aliyun_Log_Models_GetMachineResponse constructor
*
* @param array $resp
* GetLogs HTTP response body
* @param array $header
* GetLogs HTTP response header
*/
public function __construct($resp, $header) {
parent::__construct ( $header );
//echo json_encode($resp);
$this->machine = new Aliyun_Log_Models_Machine();
$this->machine->setFromArray($resp);
}
public function getMachine(){
return $this->machine;
}
}