ListMachineGroupsResponse.php 1.1 KB

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