UrlMapsValidateRequest.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 UrlMapsValidateRequest extends \Google\Collection
  19. {
  20. protected $collection_key = 'loadBalancingSchemes';
  21. /**
  22. * Specifies the load balancer type(s) this validation request is for.
  23. * UseEXTERNAL_MANAGED for global external Application Load Balancers and
  24. * regional external Application Load Balancers. Use EXTERNAL for classic
  25. * Application Load Balancers.
  26. *
  27. * Use INTERNAL_MANAGED for internal Application Load Balancers. For more
  28. * information, refer to Choosing a load balancer.
  29. *
  30. * If unspecified, the load balancing scheme will be inferred from the backend
  31. * service resources this URL map references. If that can not be inferred (for
  32. * example, this URL map only references backend buckets, or this Url map is
  33. * for rewrites and redirects only and doesn't reference any
  34. * backends),EXTERNAL will be used as the default type.
  35. *
  36. * If specified, the scheme(s) must not conflict with the load balancing
  37. * scheme of the backend service resources this Url map references.
  38. *
  39. * @var string[]
  40. */
  41. public $loadBalancingSchemes;
  42. protected $resourceType = UrlMap::class;
  43. protected $resourceDataType = '';
  44. /**
  45. * Specifies the load balancer type(s) this validation request is for.
  46. * UseEXTERNAL_MANAGED for global external Application Load Balancers and
  47. * regional external Application Load Balancers. Use EXTERNAL for classic
  48. * Application Load Balancers.
  49. *
  50. * Use INTERNAL_MANAGED for internal Application Load Balancers. For more
  51. * information, refer to Choosing a load balancer.
  52. *
  53. * If unspecified, the load balancing scheme will be inferred from the backend
  54. * service resources this URL map references. If that can not be inferred (for
  55. * example, this URL map only references backend buckets, or this Url map is
  56. * for rewrites and redirects only and doesn't reference any
  57. * backends),EXTERNAL will be used as the default type.
  58. *
  59. * If specified, the scheme(s) must not conflict with the load balancing
  60. * scheme of the backend service resources this Url map references.
  61. *
  62. * @param string[] $loadBalancingSchemes
  63. */
  64. public function setLoadBalancingSchemes($loadBalancingSchemes)
  65. {
  66. $this->loadBalancingSchemes = $loadBalancingSchemes;
  67. }
  68. /**
  69. * @return string[]
  70. */
  71. public function getLoadBalancingSchemes()
  72. {
  73. return $this->loadBalancingSchemes;
  74. }
  75. /**
  76. * Content of the UrlMap to be validated.
  77. *
  78. * @param UrlMap $resource
  79. */
  80. public function setResource(UrlMap $resource)
  81. {
  82. $this->resource = $resource;
  83. }
  84. /**
  85. * @return UrlMap
  86. */
  87. public function getResource()
  88. {
  89. return $this->resource;
  90. }
  91. }
  92. // Adding a class alias for backwards compatibility with the previous class name.
  93. class_alias(UrlMapsValidateRequest::class, 'Google_Service_Compute_UrlMapsValidateRequest');