InterconnectApplicationAwareInterconnect.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 InterconnectApplicationAwareInterconnect extends \Google\Collection
  19. {
  20. protected $collection_key = 'shapeAveragePercentages';
  21. protected $bandwidthPercentagePolicyType = InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy::class;
  22. protected $bandwidthPercentagePolicyDataType = '';
  23. /**
  24. * Description for the application awareness profile on this Cloud
  25. * Interconnect.
  26. *
  27. * @var string
  28. */
  29. public $profileDescription;
  30. protected $shapeAveragePercentagesType = InterconnectApplicationAwareInterconnectBandwidthPercentage::class;
  31. protected $shapeAveragePercentagesDataType = 'array';
  32. protected $strictPriorityPolicyType = InterconnectApplicationAwareInterconnectStrictPriorityPolicy::class;
  33. protected $strictPriorityPolicyDataType = '';
  34. /**
  35. * @param InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy $bandwidthPercentagePolicy
  36. */
  37. public function setBandwidthPercentagePolicy(InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy $bandwidthPercentagePolicy)
  38. {
  39. $this->bandwidthPercentagePolicy = $bandwidthPercentagePolicy;
  40. }
  41. /**
  42. * @return InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy
  43. */
  44. public function getBandwidthPercentagePolicy()
  45. {
  46. return $this->bandwidthPercentagePolicy;
  47. }
  48. /**
  49. * Description for the application awareness profile on this Cloud
  50. * Interconnect.
  51. *
  52. * @param string $profileDescription
  53. */
  54. public function setProfileDescription($profileDescription)
  55. {
  56. $this->profileDescription = $profileDescription;
  57. }
  58. /**
  59. * @return string
  60. */
  61. public function getProfileDescription()
  62. {
  63. return $this->profileDescription;
  64. }
  65. /**
  66. * Optional field to specify a list of shape average percentages to be applied
  67. * in conjunction with StrictPriorityPolicy or BandwidthPercentagePolicy.
  68. *
  69. * @param InterconnectApplicationAwareInterconnectBandwidthPercentage[] $shapeAveragePercentages
  70. */
  71. public function setShapeAveragePercentages($shapeAveragePercentages)
  72. {
  73. $this->shapeAveragePercentages = $shapeAveragePercentages;
  74. }
  75. /**
  76. * @return InterconnectApplicationAwareInterconnectBandwidthPercentage[]
  77. */
  78. public function getShapeAveragePercentages()
  79. {
  80. return $this->shapeAveragePercentages;
  81. }
  82. /**
  83. * @param InterconnectApplicationAwareInterconnectStrictPriorityPolicy $strictPriorityPolicy
  84. */
  85. public function setStrictPriorityPolicy(InterconnectApplicationAwareInterconnectStrictPriorityPolicy $strictPriorityPolicy)
  86. {
  87. $this->strictPriorityPolicy = $strictPriorityPolicy;
  88. }
  89. /**
  90. * @return InterconnectApplicationAwareInterconnectStrictPriorityPolicy
  91. */
  92. public function getStrictPriorityPolicy()
  93. {
  94. return $this->strictPriorityPolicy;
  95. }
  96. }
  97. // Adding a class alias for backwards compatibility with the previous class name.
  98. class_alias(InterconnectApplicationAwareInterconnect::class, 'Google_Service_Compute_InterconnectApplicationAwareInterconnect');