InstantSnapshotParams.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 InstantSnapshotParams extends \Google\Model
  19. {
  20. /**
  21. * Input only. Resource manager tags to be bound to the instant snapshot. Tag
  22. * keys and values have the same definition as resource manager tags. Keys and
  23. * values can be either in numeric format, such as `tagKeys/{tag_key_id}` and
  24. * `tagValues/{tag_value_id}` or in namespaced format such as
  25. * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`.
  26. * The field is ignored (both PUT & PATCH) when empty.
  27. *
  28. * @var string[]
  29. */
  30. public $resourceManagerTags;
  31. /**
  32. * Input only. Resource manager tags to be bound to the instant snapshot. Tag
  33. * keys and values have the same definition as resource manager tags. Keys and
  34. * values can be either in numeric format, such as `tagKeys/{tag_key_id}` and
  35. * `tagValues/{tag_value_id}` or in namespaced format such as
  36. * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`.
  37. * The field is ignored (both PUT & PATCH) when empty.
  38. *
  39. * @param string[] $resourceManagerTags
  40. */
  41. public function setResourceManagerTags($resourceManagerTags)
  42. {
  43. $this->resourceManagerTags = $resourceManagerTags;
  44. }
  45. /**
  46. * @return string[]
  47. */
  48. public function getResourceManagerTags()
  49. {
  50. return $this->resourceManagerTags;
  51. }
  52. }
  53. // Adding a class alias for backwards compatibility with the previous class name.
  54. class_alias(InstantSnapshotParams::class, 'Google_Service_Compute_InstantSnapshotParams');