DbNode.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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\OracleDatabase;
  18. class DbNode extends \Google\Model
  19. {
  20. /**
  21. * Identifier. The name of the database node resource in the following format:
  22. * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/
  23. * dbNodes/{db_node}
  24. *
  25. * @var string
  26. */
  27. public $name;
  28. protected $propertiesType = DbNodeProperties::class;
  29. protected $propertiesDataType = '';
  30. /**
  31. * Identifier. The name of the database node resource in the following format:
  32. * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/
  33. * dbNodes/{db_node}
  34. *
  35. * @param string $name
  36. */
  37. public function setName($name)
  38. {
  39. $this->name = $name;
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getName()
  45. {
  46. return $this->name;
  47. }
  48. /**
  49. * Optional. Various properties of the database node.
  50. *
  51. * @param DbNodeProperties $properties
  52. */
  53. public function setProperties(DbNodeProperties $properties)
  54. {
  55. $this->properties = $properties;
  56. }
  57. /**
  58. * @return DbNodeProperties
  59. */
  60. public function getProperties()
  61. {
  62. return $this->properties;
  63. }
  64. }
  65. // Adding a class alias for backwards compatibility with the previous class name.
  66. class_alias(DbNode::class, 'Google_Service_OracleDatabase_DbNode');