RouterMd5AuthenticationKey.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 RouterMd5AuthenticationKey extends \Google\Model
  19. {
  20. /**
  21. * [Input only] Value of the key.
  22. *
  23. * For patch and update calls, it can be skipped to copy the value from the
  24. * previous configuration. This is allowed if the key with the same name
  25. * existed before the operation. Maximum length is 80 characters. Can only
  26. * contain printable ASCII characters.
  27. *
  28. * @var string
  29. */
  30. public $key;
  31. /**
  32. * Name used to identify the key.
  33. *
  34. * Must be unique within a router. Must be referenced by exactly one bgpPeer.
  35. * Must comply withRFC1035.
  36. *
  37. * @var string
  38. */
  39. public $name;
  40. /**
  41. * [Input only] Value of the key.
  42. *
  43. * For patch and update calls, it can be skipped to copy the value from the
  44. * previous configuration. This is allowed if the key with the same name
  45. * existed before the operation. Maximum length is 80 characters. Can only
  46. * contain printable ASCII characters.
  47. *
  48. * @param string $key
  49. */
  50. public function setKey($key)
  51. {
  52. $this->key = $key;
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getKey()
  58. {
  59. return $this->key;
  60. }
  61. /**
  62. * Name used to identify the key.
  63. *
  64. * Must be unique within a router. Must be referenced by exactly one bgpPeer.
  65. * Must comply withRFC1035.
  66. *
  67. * @param string $name
  68. */
  69. public function setName($name)
  70. {
  71. $this->name = $name;
  72. }
  73. /**
  74. * @return string
  75. */
  76. public function getName()
  77. {
  78. return $this->name;
  79. }
  80. }
  81. // Adding a class alias for backwards compatibility with the previous class name.
  82. class_alias(RouterMd5AuthenticationKey::class, 'Google_Service_Compute_RouterMd5AuthenticationKey');