InterconnectGroupPhysicalStructureMetros.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\Compute;
  18. class InterconnectGroupPhysicalStructureMetros extends \Google\Collection
  19. {
  20. protected $collection_key = 'facilities';
  21. protected $facilitiesType = InterconnectGroupPhysicalStructureMetrosFacilities::class;
  22. protected $facilitiesDataType = 'array';
  23. /**
  24. * Output only. [Output Only] The name of the metro, as a three-letter
  25. * lowercase string like "iad". This is the first component of the location of
  26. * Interconnects underneath this.
  27. *
  28. * @var string
  29. */
  30. public $metro;
  31. /**
  32. * @param InterconnectGroupPhysicalStructureMetrosFacilities[] $facilities
  33. */
  34. public function setFacilities($facilities)
  35. {
  36. $this->facilities = $facilities;
  37. }
  38. /**
  39. * @return InterconnectGroupPhysicalStructureMetrosFacilities[]
  40. */
  41. public function getFacilities()
  42. {
  43. return $this->facilities;
  44. }
  45. /**
  46. * Output only. [Output Only] The name of the metro, as a three-letter
  47. * lowercase string like "iad". This is the first component of the location of
  48. * Interconnects underneath this.
  49. *
  50. * @param string $metro
  51. */
  52. public function setMetro($metro)
  53. {
  54. $this->metro = $metro;
  55. }
  56. /**
  57. * @return string
  58. */
  59. public function getMetro()
  60. {
  61. return $this->metro;
  62. }
  63. }
  64. // Adding a class alias for backwards compatibility with the previous class name.
  65. class_alias(InterconnectGroupPhysicalStructureMetros::class, 'Google_Service_Compute_InterconnectGroupPhysicalStructureMetros');