RegionAddressesMoveRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 RegionAddressesMoveRequest extends \Google\Model
  19. {
  20. /**
  21. * An optional destination address description if intended to be different
  22. * from the source.
  23. *
  24. * @var string
  25. */
  26. public $description;
  27. /**
  28. * The URL of the destination address to move to. This can be a full or
  29. * partial URL. For example, the following are all valid URLs to a address:
  30. * - https://www.googleapis.com/compute/v1/projects/project/regions/region/add
  31. * resses/address - projects/project/regions/region/addresses/address
  32. *
  33. * Note that destination project must be different from the source project.
  34. * So/regions/region/addresses/address is not valid partial url.
  35. *
  36. * @var string
  37. */
  38. public $destinationAddress;
  39. /**
  40. * An optional destination address description if intended to be different
  41. * from the source.
  42. *
  43. * @param string $description
  44. */
  45. public function setDescription($description)
  46. {
  47. $this->description = $description;
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getDescription()
  53. {
  54. return $this->description;
  55. }
  56. /**
  57. * The URL of the destination address to move to. This can be a full or
  58. * partial URL. For example, the following are all valid URLs to a address:
  59. * - https://www.googleapis.com/compute/v1/projects/project/regions/region/add
  60. * resses/address - projects/project/regions/region/addresses/address
  61. *
  62. * Note that destination project must be different from the source project.
  63. * So/regions/region/addresses/address is not valid partial url.
  64. *
  65. * @param string $destinationAddress
  66. */
  67. public function setDestinationAddress($destinationAddress)
  68. {
  69. $this->destinationAddress = $destinationAddress;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getDestinationAddress()
  75. {
  76. return $this->destinationAddress;
  77. }
  78. }
  79. // Adding a class alias for backwards compatibility with the previous class name.
  80. class_alias(RegionAddressesMoveRequest::class, 'Google_Service_Compute_RegionAddressesMoveRequest');