CloudLoggingEntry.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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\SecurityCommandCenter;
  18. class CloudLoggingEntry extends \Google\Model
  19. {
  20. /**
  21. * A unique identifier for the log entry.
  22. *
  23. * @var string
  24. */
  25. public $insertId;
  26. /**
  27. * The type of the log (part of `log_name`. `log_name` is the resource name of
  28. * the log to which this log entry belongs). For example:
  29. * `cloudresourcemanager.googleapis.com/activity`. Note that this field is not
  30. * URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
  31. *
  32. * @var string
  33. */
  34. public $logId;
  35. /**
  36. * The organization, folder, or project of the monitored resource that
  37. * produced this log entry.
  38. *
  39. * @var string
  40. */
  41. public $resourceContainer;
  42. /**
  43. * The time the event described by the log entry occurred.
  44. *
  45. * @var string
  46. */
  47. public $timestamp;
  48. /**
  49. * A unique identifier for the log entry.
  50. *
  51. * @param string $insertId
  52. */
  53. public function setInsertId($insertId)
  54. {
  55. $this->insertId = $insertId;
  56. }
  57. /**
  58. * @return string
  59. */
  60. public function getInsertId()
  61. {
  62. return $this->insertId;
  63. }
  64. /**
  65. * The type of the log (part of `log_name`. `log_name` is the resource name of
  66. * the log to which this log entry belongs). For example:
  67. * `cloudresourcemanager.googleapis.com/activity`. Note that this field is not
  68. * URL-encoded, unlike the `LOG_ID` field in `LogEntry`.
  69. *
  70. * @param string $logId
  71. */
  72. public function setLogId($logId)
  73. {
  74. $this->logId = $logId;
  75. }
  76. /**
  77. * @return string
  78. */
  79. public function getLogId()
  80. {
  81. return $this->logId;
  82. }
  83. /**
  84. * The organization, folder, or project of the monitored resource that
  85. * produced this log entry.
  86. *
  87. * @param string $resourceContainer
  88. */
  89. public function setResourceContainer($resourceContainer)
  90. {
  91. $this->resourceContainer = $resourceContainer;
  92. }
  93. /**
  94. * @return string
  95. */
  96. public function getResourceContainer()
  97. {
  98. return $this->resourceContainer;
  99. }
  100. /**
  101. * The time the event described by the log entry occurred.
  102. *
  103. * @param string $timestamp
  104. */
  105. public function setTimestamp($timestamp)
  106. {
  107. $this->timestamp = $timestamp;
  108. }
  109. /**
  110. * @return string
  111. */
  112. public function getTimestamp()
  113. {
  114. return $this->timestamp;
  115. }
  116. }
  117. // Adding a class alias for backwards compatibility with the previous class name.
  118. class_alias(CloudLoggingEntry::class, 'Google_Service_SecurityCommandCenter_CloudLoggingEntry');