google-api-client 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -0,0 +1,46 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/logging_v2/service.rb'
16
+ require 'google/apis/logging_v2/classes.rb'
17
+ require 'google/apis/logging_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Stackdriver Logging API
22
+ #
23
+ # Writes log entries and manages your Stackdriver Logging configuration.
24
+ #
25
+ # @see https://cloud.google.com/logging/docs/
26
+ module LoggingV2
27
+ VERSION = 'V2'
28
+ REVISION = '20170327'
29
+
30
+ # View your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
32
+
33
+ # Administrate log data for your projects
34
+ AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
35
+
36
+ # View log data for your projects
37
+ AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
38
+
39
+ # Submit log data for your projects
40
+ AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
41
+
42
+ # View and manage your data across Google Cloud Platform services
43
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,1271 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module LoggingV2
24
+
25
+ # Result returned from ListLogs.
26
+ class ListLogsResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A list of log names. For example, "projects/my-project/syslog" or "
30
+ # organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
31
+ # Corresponds to the JSON property `logNames`
32
+ # @return [Array<String>]
33
+ attr_accessor :log_names
34
+
35
+ # If there might be more results than those appearing in this response, then
36
+ # nextPageToken is included. To get the next set of results, call this method
37
+ # again using the value of nextPageToken as pageToken.
38
+ # Corresponds to the JSON property `nextPageToken`
39
+ # @return [String]
40
+ attr_accessor :next_page_token
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @log_names = args[:log_names] if args.key?(:log_names)
49
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
50
+ end
51
+ end
52
+
53
+ # Result returned from ListSinks.
54
+ class ListSinksResponse
55
+ include Google::Apis::Core::Hashable
56
+
57
+ # A list of sinks.
58
+ # Corresponds to the JSON property `sinks`
59
+ # @return [Array<Google::Apis::LoggingV2::LogSink>]
60
+ attr_accessor :sinks
61
+
62
+ # If there might be more results than appear in this response, then
63
+ # nextPageToken is included. To get the next set of results, call the same
64
+ # method again using the value of nextPageToken as pageToken.
65
+ # Corresponds to the JSON property `nextPageToken`
66
+ # @return [String]
67
+ attr_accessor :next_page_token
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @sinks = args[:sinks] if args.key?(:sinks)
76
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
77
+ end
78
+ end
79
+
80
+ # A common proto for logging HTTP requests. Only contains semantics defined by
81
+ # the HTTP specification. Product-specific logging information MUST be defined
82
+ # in a separate message.
83
+ class HttpRequest
84
+ include Google::Apis::Core::Hashable
85
+
86
+ # Whether or not the response was validated with the origin server before being
87
+ # served from cache. This field is only meaningful if cache_hit is True.
88
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
89
+ # @return [Boolean]
90
+ attr_accessor :cache_validated_with_origin_server
91
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
92
+
93
+ # The response code indicating the status of response. Examples: 200, 404.
94
+ # Corresponds to the JSON property `status`
95
+ # @return [Fixnum]
96
+ attr_accessor :status
97
+
98
+ # The referer URL of the request, as defined in HTTP/1.1 Header Field
99
+ # Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
100
+ # Corresponds to the JSON property `referer`
101
+ # @return [String]
102
+ attr_accessor :referer
103
+
104
+ # The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
105
+ # Windows 98; Q312461; .NET CLR 1.0.3705)".
106
+ # Corresponds to the JSON property `userAgent`
107
+ # @return [String]
108
+ attr_accessor :user_agent
109
+
110
+ # The request processing latency on the server, from the time the request was
111
+ # received until the response was sent.
112
+ # Corresponds to the JSON property `latency`
113
+ # @return [String]
114
+ attr_accessor :latency
115
+
116
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
117
+ # fill was attempted.
118
+ # Corresponds to the JSON property `cacheFillBytes`
119
+ # @return [String]
120
+ attr_accessor :cache_fill_bytes
121
+
122
+ # The request method. Examples: "GET", "HEAD", "PUT", "POST".
123
+ # Corresponds to the JSON property `requestMethod`
124
+ # @return [String]
125
+ attr_accessor :request_method
126
+
127
+ # The size of the HTTP response message sent back to the client, in bytes,
128
+ # including the response headers and the response body.
129
+ # Corresponds to the JSON property `responseSize`
130
+ # @return [String]
131
+ attr_accessor :response_size
132
+
133
+ # The size of the HTTP request message in bytes, including the request headers
134
+ # and the request body.
135
+ # Corresponds to the JSON property `requestSize`
136
+ # @return [String]
137
+ attr_accessor :request_size
138
+
139
+ # The scheme (http, https), the host name, the path and the query portion of the
140
+ # URL that was requested. Example: "http://example.com/some/info?color=red".
141
+ # Corresponds to the JSON property `requestUrl`
142
+ # @return [String]
143
+ attr_accessor :request_url
144
+
145
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
146
+ # Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
147
+ # Corresponds to the JSON property `remoteIp`
148
+ # @return [String]
149
+ attr_accessor :remote_ip
150
+
151
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
152
+ # to.
153
+ # Corresponds to the JSON property `serverIp`
154
+ # @return [String]
155
+ attr_accessor :server_ip
156
+
157
+ # Whether or not a cache lookup was attempted.
158
+ # Corresponds to the JSON property `cacheLookup`
159
+ # @return [Boolean]
160
+ attr_accessor :cache_lookup
161
+ alias_method :cache_lookup?, :cache_lookup
162
+
163
+ # Whether or not an entity was served from cache (with or without validation).
164
+ # Corresponds to the JSON property `cacheHit`
165
+ # @return [Boolean]
166
+ attr_accessor :cache_hit
167
+ alias_method :cache_hit?, :cache_hit
168
+
169
+ def initialize(**args)
170
+ update!(**args)
171
+ end
172
+
173
+ # Update properties of this object
174
+ def update!(**args)
175
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
176
+ @status = args[:status] if args.key?(:status)
177
+ @referer = args[:referer] if args.key?(:referer)
178
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
179
+ @latency = args[:latency] if args.key?(:latency)
180
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
181
+ @request_method = args[:request_method] if args.key?(:request_method)
182
+ @response_size = args[:response_size] if args.key?(:response_size)
183
+ @request_size = args[:request_size] if args.key?(:request_size)
184
+ @request_url = args[:request_url] if args.key?(:request_url)
185
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
186
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
187
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
188
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
189
+ end
190
+ end
191
+
192
+ # A description of a label.
193
+ class LabelDescriptor
194
+ include Google::Apis::Core::Hashable
195
+
196
+ # The label key.
197
+ # Corresponds to the JSON property `key`
198
+ # @return [String]
199
+ attr_accessor :key
200
+
201
+ # A human-readable description for the label.
202
+ # Corresponds to the JSON property `description`
203
+ # @return [String]
204
+ attr_accessor :description
205
+
206
+ # The type of data that can be assigned to the label.
207
+ # Corresponds to the JSON property `valueType`
208
+ # @return [String]
209
+ attr_accessor :value_type
210
+
211
+ def initialize(**args)
212
+ update!(**args)
213
+ end
214
+
215
+ # Update properties of this object
216
+ def update!(**args)
217
+ @key = args[:key] if args.key?(:key)
218
+ @description = args[:description] if args.key?(:description)
219
+ @value_type = args[:value_type] if args.key?(:value_type)
220
+ end
221
+ end
222
+
223
+ # An object that describes the schema of a MonitoredResource object using a type
224
+ # name and a set of labels. For example, the monitored resource descriptor for
225
+ # Google Compute Engine VM instances has a type of "gce_instance" and specifies
226
+ # the use of the labels "instance_id" and "zone" to identify particular VM
227
+ # instances.Different APIs can support different monitored resource types. APIs
228
+ # generally provide a list method that returns the monitored resource
229
+ # descriptors used by the API.
230
+ class MonitoredResourceDescriptor
231
+ include Google::Apis::Core::Hashable
232
+
233
+ # Required. A set of labels used to describe instances of this monitored
234
+ # resource type. For example, an individual Google Cloud SQL database is
235
+ # identified by values for the labels "database_id" and "zone".
236
+ # Corresponds to the JSON property `labels`
237
+ # @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
238
+ attr_accessor :labels
239
+
240
+ # Optional. The resource name of the monitored resource descriptor: "projects/`
241
+ # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
242
+ # the type field in this object and `project_id` is a project ID that provides
243
+ # API-specific context for accessing the type. APIs that do not use project
244
+ # information can use the resource name format "monitoredResourceDescriptors/`
245
+ # type`".
246
+ # Corresponds to the JSON property `name`
247
+ # @return [String]
248
+ attr_accessor :name
249
+
250
+ # Optional. A concise name for the monitored resource type that might be
251
+ # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
252
+ # any article or other determiners. For example, "Google Cloud SQL Database".
253
+ # Corresponds to the JSON property `displayName`
254
+ # @return [String]
255
+ attr_accessor :display_name
256
+
257
+ # Optional. A detailed description of the monitored resource type that might be
258
+ # used in documentation.
259
+ # Corresponds to the JSON property `description`
260
+ # @return [String]
261
+ attr_accessor :description
262
+
263
+ # Required. The monitored resource type. For example, the type "
264
+ # cloudsql_database" represents databases in Google Cloud SQL. The maximum
265
+ # length of this value is 256 characters.
266
+ # Corresponds to the JSON property `type`
267
+ # @return [String]
268
+ attr_accessor :type
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @labels = args[:labels] if args.key?(:labels)
277
+ @name = args[:name] if args.key?(:name)
278
+ @display_name = args[:display_name] if args.key?(:display_name)
279
+ @description = args[:description] if args.key?(:description)
280
+ @type = args[:type] if args.key?(:type)
281
+ end
282
+ end
283
+
284
+ # Additional information about the source code location that produced the log
285
+ # entry.
286
+ class LogEntrySourceLocation
287
+ include Google::Apis::Core::Hashable
288
+
289
+ # Optional. Source file name. Depending on the runtime environment, this might
290
+ # be a simple name or a fully-qualified name.
291
+ # Corresponds to the JSON property `file`
292
+ # @return [String]
293
+ attr_accessor :file
294
+
295
+ # Optional. Human-readable name of the function or method being invoked, with
296
+ # optional context such as the class or package name. This information may be
297
+ # used in contexts such as the logs viewer, where a file and line number are
298
+ # less meaningful. The format can vary by language. For example: qual.if.ied.
299
+ # Class.method (Java), dir/package.func (Go), function (Python).
300
+ # Corresponds to the JSON property `function`
301
+ # @return [String]
302
+ attr_accessor :function
303
+
304
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
305
+ # available.
306
+ # Corresponds to the JSON property `line`
307
+ # @return [String]
308
+ attr_accessor :line
309
+
310
+ def initialize(**args)
311
+ update!(**args)
312
+ end
313
+
314
+ # Update properties of this object
315
+ def update!(**args)
316
+ @file = args[:file] if args.key?(:file)
317
+ @function = args[:function] if args.key?(:function)
318
+ @line = args[:line] if args.key?(:line)
319
+ end
320
+ end
321
+
322
+ # Result returned from ListLogEntries.
323
+ class ListLogEntriesResponse
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # A list of log entries.
327
+ # Corresponds to the JSON property `entries`
328
+ # @return [Array<Google::Apis::LoggingV2::LogEntry>]
329
+ attr_accessor :entries
330
+
331
+ # If there might be more results than those appearing in this response, then
332
+ # nextPageToken is included. To get the next set of results, call this method
333
+ # again using the value of nextPageToken as pageToken.If a value for
334
+ # next_page_token appears and the entries field is empty, it means that the
335
+ # search found no log entries so far but it did not have time to search all the
336
+ # possible log entries. Retry the method with this value for page_token to
337
+ # continue the search. Alternatively, consider speeding up the search by
338
+ # changing your filter to specify a single log name or resource type, or to
339
+ # narrow the time range of the search.
340
+ # Corresponds to the JSON property `nextPageToken`
341
+ # @return [String]
342
+ attr_accessor :next_page_token
343
+
344
+ def initialize(**args)
345
+ update!(**args)
346
+ end
347
+
348
+ # Update properties of this object
349
+ def update!(**args)
350
+ @entries = args[:entries] if args.key?(:entries)
351
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
352
+ end
353
+ end
354
+
355
+ # Application log line emitted while processing a request.
356
+ class LogLine
357
+ include Google::Apis::Core::Hashable
358
+
359
+ # Severity of this log entry.
360
+ # Corresponds to the JSON property `severity`
361
+ # @return [String]
362
+ attr_accessor :severity
363
+
364
+ # App-provided log message.
365
+ # Corresponds to the JSON property `logMessage`
366
+ # @return [String]
367
+ attr_accessor :log_message
368
+
369
+ # Specifies a location in a source code file.
370
+ # Corresponds to the JSON property `sourceLocation`
371
+ # @return [Google::Apis::LoggingV2::SourceLocation]
372
+ attr_accessor :source_location
373
+
374
+ # Approximate time when this log entry was made.
375
+ # Corresponds to the JSON property `time`
376
+ # @return [String]
377
+ attr_accessor :time
378
+
379
+ def initialize(**args)
380
+ update!(**args)
381
+ end
382
+
383
+ # Update properties of this object
384
+ def update!(**args)
385
+ @severity = args[:severity] if args.key?(:severity)
386
+ @log_message = args[:log_message] if args.key?(:log_message)
387
+ @source_location = args[:source_location] if args.key?(:source_location)
388
+ @time = args[:time] if args.key?(:time)
389
+ end
390
+ end
391
+
392
+ # Result returned from ListLogMetrics.
393
+ class ListLogMetricsResponse
394
+ include Google::Apis::Core::Hashable
395
+
396
+ # A list of logs-based metrics.
397
+ # Corresponds to the JSON property `metrics`
398
+ # @return [Array<Google::Apis::LoggingV2::LogMetric>]
399
+ attr_accessor :metrics
400
+
401
+ # If there might be more results than appear in this response, then
402
+ # nextPageToken is included. To get the next set of results, call this method
403
+ # again using the value of nextPageToken as pageToken.
404
+ # Corresponds to the JSON property `nextPageToken`
405
+ # @return [String]
406
+ attr_accessor :next_page_token
407
+
408
+ def initialize(**args)
409
+ update!(**args)
410
+ end
411
+
412
+ # Update properties of this object
413
+ def update!(**args)
414
+ @metrics = args[:metrics] if args.key?(:metrics)
415
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
416
+ end
417
+ end
418
+
419
+ # A generic empty message that you can re-use to avoid defining duplicated empty
420
+ # messages in your APIs. A typical example is to use it as the request or the
421
+ # response type of an API method. For instance:
422
+ # service Foo `
423
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
424
+ # `
425
+ # The JSON representation for Empty is empty JSON object ``.
426
+ class Empty
427
+ include Google::Apis::Core::Hashable
428
+
429
+ def initialize(**args)
430
+ update!(**args)
431
+ end
432
+
433
+ # Update properties of this object
434
+ def update!(**args)
435
+ end
436
+ end
437
+
438
+ # An individual entry in a log.
439
+ class LogEntry
440
+ include Google::Apis::Core::Hashable
441
+
442
+ # The log entry payload, represented as a Unicode string (UTF-8).
443
+ # Corresponds to the JSON property `textPayload`
444
+ # @return [String]
445
+ attr_accessor :text_payload
446
+
447
+ # The log entry payload, represented as a protocol buffer. Some Google Cloud
448
+ # Platform services use this field for their log entry payloads.
449
+ # Corresponds to the JSON property `protoPayload`
450
+ # @return [Hash<String,Object>]
451
+ attr_accessor :proto_payload
452
+
453
+ # Optional. Resource name of the trace associated with the log entry, if any. If
454
+ # it contains a relative resource name, the name is assumed to be relative to //
455
+ # tracing.googleapis.com. Example: projects/my-projectid/traces/
456
+ # 06796866738c859f2f19b7cfb3214824
457
+ # Corresponds to the JSON property `trace`
458
+ # @return [String]
459
+ attr_accessor :trace
460
+
461
+ # Optional. A set of user-defined (key, value) data that provides additional
462
+ # information about the log entry.
463
+ # Corresponds to the JSON property `labels`
464
+ # @return [Hash<String,String>]
465
+ attr_accessor :labels
466
+
467
+ # Optional. The severity of the log entry. The default value is LogSeverity.
468
+ # DEFAULT.
469
+ # Corresponds to the JSON property `severity`
470
+ # @return [String]
471
+ attr_accessor :severity
472
+
473
+ # Additional information about the source code location that produced the log
474
+ # entry.
475
+ # Corresponds to the JSON property `sourceLocation`
476
+ # @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
477
+ attr_accessor :source_location
478
+
479
+ # Optional. The time the event described by the log entry occurred. If omitted
480
+ # in a new log entry, Stackdriver Logging will insert the time the log entry is
481
+ # received. Stackdriver Logging might reject log entries whose time stamps are
482
+ # more than a couple of hours in the future. Log entries with time stamps in the
483
+ # past are accepted.
484
+ # Corresponds to the JSON property `timestamp`
485
+ # @return [String]
486
+ attr_accessor :timestamp
487
+
488
+ # Required. The resource name of the log to which this log entry belongs:
489
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
490
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
491
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
492
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
493
+ # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
494
+ # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
495
+ # be less than 512 characters long and can only include the following characters:
496
+ # upper and lower case alphanumeric characters, forward-slash, underscore,
497
+ # hyphen, and period.For backward compatibility, if log_name begins with a
498
+ # forward-slash, such as /projects/..., then the log entry is ingested as usual
499
+ # but the forward-slash is removed. Listing the log entry will not show the
500
+ # leading slash and filtering for a log name with a leading slash will never
501
+ # return any results.
502
+ # Corresponds to the JSON property `logName`
503
+ # @return [String]
504
+ attr_accessor :log_name
505
+
506
+ # A common proto for logging HTTP requests. Only contains semantics defined by
507
+ # the HTTP specification. Product-specific logging information MUST be defined
508
+ # in a separate message.
509
+ # Corresponds to the JSON property `httpRequest`
510
+ # @return [Google::Apis::LoggingV2::HttpRequest]
511
+ attr_accessor :http_request
512
+
513
+ # An object representing a resource that can be used for monitoring, logging,
514
+ # billing, or other purposes. Examples include virtual machine instances,
515
+ # databases, and storage devices such as disks. The type field identifies a
516
+ # MonitoredResourceDescriptor object that describes the resource's schema.
517
+ # Information in the labels field identifies the actual resource and its
518
+ # attributes according to the schema. For example, a particular Compute Engine
519
+ # VM instance could be represented by the following object, because the
520
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
521
+ # zone":
522
+ # ` "type": "gce_instance",
523
+ # "labels": ` "instance_id": "12345678901234",
524
+ # "zone": "us-central1-a" ``
525
+ # Corresponds to the JSON property `resource`
526
+ # @return [Google::Apis::LoggingV2::MonitoredResource]
527
+ attr_accessor :resource
528
+
529
+ # The log entry payload, represented as a structure that is expressed as a JSON
530
+ # object.
531
+ # Corresponds to the JSON property `jsonPayload`
532
+ # @return [Hash<String,Object>]
533
+ attr_accessor :json_payload
534
+
535
+ # Optional. A unique identifier for the log entry. If you provide a value, then
536
+ # Stackdriver Logging considers other log entries in the same project, with the
537
+ # same timestamp, and with the same insert_id to be duplicates which can be
538
+ # removed. If omitted in new log entries, then Stackdriver Logging will insert
539
+ # its own unique identifier. The insert_id is used to order log entries that
540
+ # have the same timestamp value.
541
+ # Corresponds to the JSON property `insertId`
542
+ # @return [String]
543
+ attr_accessor :insert_id
544
+
545
+ # Additional information about a potentially long-running operation with which a
546
+ # log entry is associated.
547
+ # Corresponds to the JSON property `operation`
548
+ # @return [Google::Apis::LoggingV2::LogEntryOperation]
549
+ attr_accessor :operation
550
+
551
+ def initialize(**args)
552
+ update!(**args)
553
+ end
554
+
555
+ # Update properties of this object
556
+ def update!(**args)
557
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
558
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
559
+ @trace = args[:trace] if args.key?(:trace)
560
+ @labels = args[:labels] if args.key?(:labels)
561
+ @severity = args[:severity] if args.key?(:severity)
562
+ @source_location = args[:source_location] if args.key?(:source_location)
563
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
564
+ @log_name = args[:log_name] if args.key?(:log_name)
565
+ @http_request = args[:http_request] if args.key?(:http_request)
566
+ @resource = args[:resource] if args.key?(:resource)
567
+ @json_payload = args[:json_payload] if args.key?(:json_payload)
568
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
569
+ @operation = args[:operation] if args.key?(:operation)
570
+ end
571
+ end
572
+
573
+ # Specifies a location in a source code file.
574
+ class SourceLocation
575
+ include Google::Apis::Core::Hashable
576
+
577
+ # Source file name. Depending on the runtime environment, this might be a simple
578
+ # name or a fully-qualified name.
579
+ # Corresponds to the JSON property `file`
580
+ # @return [String]
581
+ attr_accessor :file
582
+
583
+ # Human-readable name of the function or method being invoked, with optional
584
+ # context such as the class or package name. This information is used in
585
+ # contexts such as the logs viewer, where a file and line number are less
586
+ # meaningful. The format can vary by language. For example: qual.if.ied.Class.
587
+ # method (Java), dir/package.func (Go), function (Python).
588
+ # Corresponds to the JSON property `functionName`
589
+ # @return [String]
590
+ attr_accessor :function_name
591
+
592
+ # Line within the source file.
593
+ # Corresponds to the JSON property `line`
594
+ # @return [String]
595
+ attr_accessor :line
596
+
597
+ def initialize(**args)
598
+ update!(**args)
599
+ end
600
+
601
+ # Update properties of this object
602
+ def update!(**args)
603
+ @file = args[:file] if args.key?(:file)
604
+ @function_name = args[:function_name] if args.key?(:function_name)
605
+ @line = args[:line] if args.key?(:line)
606
+ end
607
+ end
608
+
609
+ # The parameters to ListLogEntries.
610
+ class ListLogEntriesRequest
611
+ include Google::Apis::Core::Hashable
612
+
613
+ # Deprecated. Use resource_names instead. One or more project identifiers or
614
+ # project numbers from which to retrieve log entries. Example: "my-project-1A".
615
+ # If present, these project identifiers are converted to resource name format
616
+ # and added to the list of resources in resource_names.
617
+ # Corresponds to the JSON property `projectIds`
618
+ # @return [Array<String>]
619
+ attr_accessor :project_ids
620
+
621
+ # Optional. A filter that chooses which log entries to return. See Advanced Logs
622
+ # Filters. Only log entries that match the filter are returned. An empty filter
623
+ # matches all log entries in the resources listed in resource_names. Referencing
624
+ # a parent resource that is not listed in resource_names will cause the filter
625
+ # to return no results. The maximum length of the filter is 20000 characters.
626
+ # Corresponds to the JSON property `filter`
627
+ # @return [String]
628
+ attr_accessor :filter
629
+
630
+ # Optional. If present, then retrieve the next batch of results from the
631
+ # preceding call to this method. page_token must be the value of next_page_token
632
+ # from the previous response. The values of other method parameters should be
633
+ # identical to those in the previous call.
634
+ # Corresponds to the JSON property `pageToken`
635
+ # @return [String]
636
+ attr_accessor :page_token
637
+
638
+ # Optional. The maximum number of results to return from this request. Non-
639
+ # positive values are ignored. The presence of next_page_token in the response
640
+ # indicates that more results might be available.
641
+ # Corresponds to the JSON property `pageSize`
642
+ # @return [Fixnum]
643
+ attr_accessor :page_size
644
+
645
+ # Optional. How the results should be sorted. Presently, the only permitted
646
+ # values are "timestamp asc" (default) and "timestamp desc". The first option
647
+ # returns entries in order of increasing values of LogEntry.timestamp (oldest
648
+ # first), and the second option returns entries in order of decreasing
649
+ # timestamps (newest first). Entries with equal timestamps are returned in order
650
+ # of their insert_id values.
651
+ # Corresponds to the JSON property `orderBy`
652
+ # @return [String]
653
+ attr_accessor :order_by
654
+
655
+ # Required. Names of one or more parent resources from which to retrieve log
656
+ # entries:
657
+ # "projects/[PROJECT_ID]"
658
+ # "organizations/[ORGANIZATION_ID]"
659
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
660
+ # "folders/[FOLDER_ID]"
661
+ # Projects listed in the project_ids field are added to this list.
662
+ # Corresponds to the JSON property `resourceNames`
663
+ # @return [Array<String>]
664
+ attr_accessor :resource_names
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ @project_ids = args[:project_ids] if args.key?(:project_ids)
673
+ @filter = args[:filter] if args.key?(:filter)
674
+ @page_token = args[:page_token] if args.key?(:page_token)
675
+ @page_size = args[:page_size] if args.key?(:page_size)
676
+ @order_by = args[:order_by] if args.key?(:order_by)
677
+ @resource_names = args[:resource_names] if args.key?(:resource_names)
678
+ end
679
+ end
680
+
681
+ # Complete log information about a single HTTP request to an App Engine
682
+ # application.
683
+ class RequestLog
684
+ include Google::Apis::Core::Hashable
685
+
686
+ # Module of the application that handled this request.
687
+ # Corresponds to the JSON property `moduleId`
688
+ # @return [String]
689
+ attr_accessor :module_id
690
+
691
+ # Time when the request finished.
692
+ # Corresponds to the JSON property `endTime`
693
+ # @return [String]
694
+ attr_accessor :end_time
695
+
696
+ # User agent that made the request.
697
+ # Corresponds to the JSON property `userAgent`
698
+ # @return [String]
699
+ attr_accessor :user_agent
700
+
701
+ # Whether this was a loading request for the instance.
702
+ # Corresponds to the JSON property `wasLoadingRequest`
703
+ # @return [Boolean]
704
+ attr_accessor :was_loading_request
705
+ alias_method :was_loading_request?, :was_loading_request
706
+
707
+ # Source code for the application that handled this request. There can be more
708
+ # than one source reference per deployed application if source code is
709
+ # distributed among multiple repositories.
710
+ # Corresponds to the JSON property `sourceReference`
711
+ # @return [Array<Google::Apis::LoggingV2::SourceReference>]
712
+ attr_accessor :source_reference
713
+
714
+ # Size in bytes sent back to client by request.
715
+ # Corresponds to the JSON property `responseSize`
716
+ # @return [String]
717
+ attr_accessor :response_size
718
+
719
+ # Stackdriver Trace identifier for this request.
720
+ # Corresponds to the JSON property `traceId`
721
+ # @return [String]
722
+ attr_accessor :trace_id
723
+
724
+ # A list of log lines emitted by the application while serving this request.
725
+ # Corresponds to the JSON property `line`
726
+ # @return [Array<Google::Apis::LoggingV2::LogLine>]
727
+ attr_accessor :line
728
+
729
+ # Queue name of the request, in the case of an offline request.
730
+ # Corresponds to the JSON property `taskQueueName`
731
+ # @return [String]
732
+ attr_accessor :task_queue_name
733
+
734
+ # Referrer URL of request.
735
+ # Corresponds to the JSON property `referrer`
736
+ # @return [String]
737
+ attr_accessor :referrer
738
+
739
+ # Globally unique identifier for a request, which is based on the request start
740
+ # time. Request IDs for requests which started later will compare greater as
741
+ # strings than those for requests which started earlier.
742
+ # Corresponds to the JSON property `requestId`
743
+ # @return [String]
744
+ attr_accessor :request_id
745
+
746
+ # The logged-in user who made the request.Most likely, this is the part of the
747
+ # user's email before the @ sign. The field value is the same for different
748
+ # requests from the same user, but different users can have similar names. This
749
+ # information is also available to the application via the App Engine Users API.
750
+ # This field will be populated starting with App Engine 1.9.21.
751
+ # Corresponds to the JSON property `nickname`
752
+ # @return [String]
753
+ attr_accessor :nickname
754
+
755
+ # Time this request spent in the pending request queue.
756
+ # Corresponds to the JSON property `pendingTime`
757
+ # @return [String]
758
+ attr_accessor :pending_time
759
+
760
+ # Contains the path and query portion of the URL that was requested. For example,
761
+ # if the URL was "http://example.com/app?name=val", the resource would be "/app?
762
+ # name=val". The fragment identifier, which is identified by the # character, is
763
+ # not included.
764
+ # Corresponds to the JSON property `resource`
765
+ # @return [String]
766
+ attr_accessor :resource
767
+
768
+ # HTTP response status code. Example: 200, 404.
769
+ # Corresponds to the JSON property `status`
770
+ # @return [Fixnum]
771
+ attr_accessor :status
772
+
773
+ # Task name of the request, in the case of an offline request.
774
+ # Corresponds to the JSON property `taskName`
775
+ # @return [String]
776
+ attr_accessor :task_name
777
+
778
+ # File or class that handled the request.
779
+ # Corresponds to the JSON property `urlMapEntry`
780
+ # @return [String]
781
+ attr_accessor :url_map_entry
782
+
783
+ # If the instance processing this request belongs to a manually scaled module,
784
+ # then this is the 0-based index of the instance. Otherwise, this value is -1.
785
+ # Corresponds to the JSON property `instanceIndex`
786
+ # @return [Fixnum]
787
+ attr_accessor :instance_index
788
+
789
+ # Internet host and port number of the resource being requested.
790
+ # Corresponds to the JSON property `host`
791
+ # @return [String]
792
+ attr_accessor :host
793
+
794
+ # Whether this request is finished or active.
795
+ # Corresponds to the JSON property `finished`
796
+ # @return [Boolean]
797
+ attr_accessor :finished
798
+ alias_method :finished?, :finished
799
+
800
+ # HTTP version of request. Example: "HTTP/1.1".
801
+ # Corresponds to the JSON property `httpVersion`
802
+ # @return [String]
803
+ attr_accessor :http_version
804
+
805
+ # Time when the request started.
806
+ # Corresponds to the JSON property `startTime`
807
+ # @return [String]
808
+ attr_accessor :start_time
809
+
810
+ # Latency of the request.
811
+ # Corresponds to the JSON property `latency`
812
+ # @return [String]
813
+ attr_accessor :latency
814
+
815
+ # Origin IP address.
816
+ # Corresponds to the JSON property `ip`
817
+ # @return [String]
818
+ attr_accessor :ip
819
+
820
+ # Application that handled this request.
821
+ # Corresponds to the JSON property `appId`
822
+ # @return [String]
823
+ attr_accessor :app_id
824
+
825
+ # App Engine release version.
826
+ # Corresponds to the JSON property `appEngineRelease`
827
+ # @return [String]
828
+ attr_accessor :app_engine_release
829
+
830
+ # Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".
831
+ # Corresponds to the JSON property `method`
832
+ # @return [String]
833
+ attr_accessor :method_prop
834
+
835
+ # An indication of the relative cost of serving this request.
836
+ # Corresponds to the JSON property `cost`
837
+ # @return [Float]
838
+ attr_accessor :cost
839
+
840
+ # An identifier for the instance that handled the request.
841
+ # Corresponds to the JSON property `instanceId`
842
+ # @return [String]
843
+ attr_accessor :instance_id
844
+
845
+ # Number of CPU megacycles used to process request.
846
+ # Corresponds to the JSON property `megaCycles`
847
+ # @return [String]
848
+ attr_accessor :mega_cycles
849
+
850
+ # Whether this is the first RequestLog entry for this request. If an active
851
+ # request has several RequestLog entries written to Stackdriver Logging, then
852
+ # this field will be set for one of them.
853
+ # Corresponds to the JSON property `first`
854
+ # @return [Boolean]
855
+ attr_accessor :first
856
+ alias_method :first?, :first
857
+
858
+ # Version of the application that handled this request.
859
+ # Corresponds to the JSON property `versionId`
860
+ # @return [String]
861
+ attr_accessor :version_id
862
+
863
+ def initialize(**args)
864
+ update!(**args)
865
+ end
866
+
867
+ # Update properties of this object
868
+ def update!(**args)
869
+ @module_id = args[:module_id] if args.key?(:module_id)
870
+ @end_time = args[:end_time] if args.key?(:end_time)
871
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
872
+ @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request)
873
+ @source_reference = args[:source_reference] if args.key?(:source_reference)
874
+ @response_size = args[:response_size] if args.key?(:response_size)
875
+ @trace_id = args[:trace_id] if args.key?(:trace_id)
876
+ @line = args[:line] if args.key?(:line)
877
+ @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
878
+ @referrer = args[:referrer] if args.key?(:referrer)
879
+ @request_id = args[:request_id] if args.key?(:request_id)
880
+ @nickname = args[:nickname] if args.key?(:nickname)
881
+ @pending_time = args[:pending_time] if args.key?(:pending_time)
882
+ @resource = args[:resource] if args.key?(:resource)
883
+ @status = args[:status] if args.key?(:status)
884
+ @task_name = args[:task_name] if args.key?(:task_name)
885
+ @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
886
+ @instance_index = args[:instance_index] if args.key?(:instance_index)
887
+ @host = args[:host] if args.key?(:host)
888
+ @finished = args[:finished] if args.key?(:finished)
889
+ @http_version = args[:http_version] if args.key?(:http_version)
890
+ @start_time = args[:start_time] if args.key?(:start_time)
891
+ @latency = args[:latency] if args.key?(:latency)
892
+ @ip = args[:ip] if args.key?(:ip)
893
+ @app_id = args[:app_id] if args.key?(:app_id)
894
+ @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
895
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
896
+ @cost = args[:cost] if args.key?(:cost)
897
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
898
+ @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
899
+ @first = args[:first] if args.key?(:first)
900
+ @version_id = args[:version_id] if args.key?(:version_id)
901
+ end
902
+ end
903
+
904
+ # Result returned from ListMonitoredResourceDescriptors.
905
+ class ListMonitoredResourceDescriptorsResponse
906
+ include Google::Apis::Core::Hashable
907
+
908
+ # A list of resource descriptors.
909
+ # Corresponds to the JSON property `resourceDescriptors`
910
+ # @return [Array<Google::Apis::LoggingV2::MonitoredResourceDescriptor>]
911
+ attr_accessor :resource_descriptors
912
+
913
+ # If there might be more results than those appearing in this response, then
914
+ # nextPageToken is included. To get the next set of results, call this method
915
+ # again using the value of nextPageToken as pageToken.
916
+ # Corresponds to the JSON property `nextPageToken`
917
+ # @return [String]
918
+ attr_accessor :next_page_token
919
+
920
+ def initialize(**args)
921
+ update!(**args)
922
+ end
923
+
924
+ # Update properties of this object
925
+ def update!(**args)
926
+ @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
927
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
928
+ end
929
+ end
930
+
931
+ # A reference to a particular snapshot of the source tree used to build and
932
+ # deploy an application.
933
+ class SourceReference
934
+ include Google::Apis::Core::Hashable
935
+
936
+ # Optional. A URI string identifying the repository. Example: "https://github.
937
+ # com/GoogleCloudPlatform/kubernetes.git"
938
+ # Corresponds to the JSON property `repository`
939
+ # @return [String]
940
+ attr_accessor :repository
941
+
942
+ # The canonical and persistent identifier of the deployed revision. Example (git)
943
+ # : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
944
+ # Corresponds to the JSON property `revisionId`
945
+ # @return [String]
946
+ attr_accessor :revision_id
947
+
948
+ def initialize(**args)
949
+ update!(**args)
950
+ end
951
+
952
+ # Update properties of this object
953
+ def update!(**args)
954
+ @repository = args[:repository] if args.key?(:repository)
955
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
956
+ end
957
+ end
958
+
959
+ # Describes a logs-based metric. The value of the metric is the number of log
960
+ # entries that match a logs filter in a given time interval.
961
+ class LogMetric
962
+ include Google::Apis::Core::Hashable
963
+
964
+ # Output only. The API version that created or updated this metric. The version
965
+ # also dictates the syntax of the filter expression. When a value for this field
966
+ # is missing, the default value of V2 should be assumed.
967
+ # Corresponds to the JSON property `version`
968
+ # @return [String]
969
+ attr_accessor :version
970
+
971
+ # Required. An advanced logs filter which is used to match log entries. Example:
972
+ # "resource.type=gae_app AND severity>=ERROR"
973
+ # The maximum length of the filter is 20000 characters.
974
+ # Corresponds to the JSON property `filter`
975
+ # @return [String]
976
+ attr_accessor :filter
977
+
978
+ # Required. The client-assigned metric identifier. Examples: "error_count", "
979
+ # nginx/requests".Metric identifiers are limited to 100 characters and can
980
+ # include only the following characters: A-Z, a-z, 0-9, and the special
981
+ # characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
982
+ # of name pieces, and it cannot be the first character of the name.The metric
983
+ # identifier in this field must not be URL-encoded (https://en.wikipedia.org/
984
+ # wiki/Percent-encoding). However, when the metric identifier appears as the [
985
+ # METRIC_ID] part of a metric_name API parameter, then the metric identifier
986
+ # must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
987
+ # Corresponds to the JSON property `name`
988
+ # @return [String]
989
+ attr_accessor :name
990
+
991
+ # Optional. A description of this metric, which is used in documentation.
992
+ # Corresponds to the JSON property `description`
993
+ # @return [String]
994
+ attr_accessor :description
995
+
996
+ def initialize(**args)
997
+ update!(**args)
998
+ end
999
+
1000
+ # Update properties of this object
1001
+ def update!(**args)
1002
+ @version = args[:version] if args.key?(:version)
1003
+ @filter = args[:filter] if args.key?(:filter)
1004
+ @name = args[:name] if args.key?(:name)
1005
+ @description = args[:description] if args.key?(:description)
1006
+ end
1007
+ end
1008
+
1009
+ # Additional information about a potentially long-running operation with which a
1010
+ # log entry is associated.
1011
+ class LogEntryOperation
1012
+ include Google::Apis::Core::Hashable
1013
+
1014
+ # Optional. Set this to True if this is the last log entry in the operation.
1015
+ # Corresponds to the JSON property `last`
1016
+ # @return [Boolean]
1017
+ attr_accessor :last
1018
+ alias_method :last?, :last
1019
+
1020
+ # Optional. An arbitrary operation identifier. Log entries with the same
1021
+ # identifier are assumed to be part of the same operation.
1022
+ # Corresponds to the JSON property `id`
1023
+ # @return [String]
1024
+ attr_accessor :id
1025
+
1026
+ # Optional. An arbitrary producer identifier. The combination of id and producer
1027
+ # must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
1028
+ # "github.com/MyProject/MyApplication".
1029
+ # Corresponds to the JSON property `producer`
1030
+ # @return [String]
1031
+ attr_accessor :producer
1032
+
1033
+ # Optional. Set this to True if this is the first log entry in the operation.
1034
+ # Corresponds to the JSON property `first`
1035
+ # @return [Boolean]
1036
+ attr_accessor :first
1037
+ alias_method :first?, :first
1038
+
1039
+ def initialize(**args)
1040
+ update!(**args)
1041
+ end
1042
+
1043
+ # Update properties of this object
1044
+ def update!(**args)
1045
+ @last = args[:last] if args.key?(:last)
1046
+ @id = args[:id] if args.key?(:id)
1047
+ @producer = args[:producer] if args.key?(:producer)
1048
+ @first = args[:first] if args.key?(:first)
1049
+ end
1050
+ end
1051
+
1052
+ # Result returned from WriteLogEntries. empty
1053
+ class WriteLogEntriesResponse
1054
+ include Google::Apis::Core::Hashable
1055
+
1056
+ def initialize(**args)
1057
+ update!(**args)
1058
+ end
1059
+
1060
+ # Update properties of this object
1061
+ def update!(**args)
1062
+ end
1063
+ end
1064
+
1065
+ # An object representing a resource that can be used for monitoring, logging,
1066
+ # billing, or other purposes. Examples include virtual machine instances,
1067
+ # databases, and storage devices such as disks. The type field identifies a
1068
+ # MonitoredResourceDescriptor object that describes the resource's schema.
1069
+ # Information in the labels field identifies the actual resource and its
1070
+ # attributes according to the schema. For example, a particular Compute Engine
1071
+ # VM instance could be represented by the following object, because the
1072
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
1073
+ # zone":
1074
+ # ` "type": "gce_instance",
1075
+ # "labels": ` "instance_id": "12345678901234",
1076
+ # "zone": "us-central1-a" ``
1077
+ class MonitoredResource
1078
+ include Google::Apis::Core::Hashable
1079
+
1080
+ # Required. The monitored resource type. This field must match the type field of
1081
+ # a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
1082
+ # database is "cloudsql_database".
1083
+ # Corresponds to the JSON property `type`
1084
+ # @return [String]
1085
+ attr_accessor :type
1086
+
1087
+ # Required. Values for all of the labels listed in the associated monitored
1088
+ # resource descriptor. For example, Cloud SQL databases use the labels "
1089
+ # database_id" and "zone".
1090
+ # Corresponds to the JSON property `labels`
1091
+ # @return [Hash<String,String>]
1092
+ attr_accessor :labels
1093
+
1094
+ def initialize(**args)
1095
+ update!(**args)
1096
+ end
1097
+
1098
+ # Update properties of this object
1099
+ def update!(**args)
1100
+ @type = args[:type] if args.key?(:type)
1101
+ @labels = args[:labels] if args.key?(:labels)
1102
+ end
1103
+ end
1104
+
1105
+ # Describes a sink used to export log entries to one of the following
1106
+ # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
1107
+ # Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
1108
+ # The sink must be created within a project, organization, billing account, or
1109
+ # folder.
1110
+ class LogSink
1111
+ include Google::Apis::Core::Hashable
1112
+
1113
+ # Required. The client-assigned sink identifier, unique within the project.
1114
+ # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
1115
+ # characters and can include only the following characters: upper and lower-case
1116
+ # alphanumeric characters, underscores, hyphens, and periods.
1117
+ # Corresponds to the JSON property `name`
1118
+ # @return [String]
1119
+ attr_accessor :name
1120
+
1121
+ # Optional. An advanced logs filter. The only exported log entries are those
1122
+ # that are in the resource owning the sink and that match the filter. The filter
1123
+ # must use the log entry format specified by the output_version_format parameter.
1124
+ # For example, in the v2 format:
1125
+ # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
1126
+ # Corresponds to the JSON property `filter`
1127
+ # @return [String]
1128
+ attr_accessor :filter
1129
+
1130
+ # Required. The export destination:
1131
+ # "storage.googleapis.com/[GCS_BUCKET]"
1132
+ # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
1133
+ # "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
1134
+ # The sink's writer_identity, set when the sink is created, must have permission
1135
+ # to write to the destination or else the log entries are not exported. For more
1136
+ # information, see Exporting Logs With Sinks.
1137
+ # Corresponds to the JSON property `destination`
1138
+ # @return [String]
1139
+ attr_accessor :destination
1140
+
1141
+ # Optional. The time at which this sink will stop exporting log entries. Log
1142
+ # entries are exported only if their timestamp is earlier than the end time. If
1143
+ # this field is not supplied, there is no end time. If both a start time and an
1144
+ # end time are provided, then the end time must be later than the start time.
1145
+ # Corresponds to the JSON property `endTime`
1146
+ # @return [String]
1147
+ attr_accessor :end_time
1148
+
1149
+ # Output only. An IAM identity&mdash;a service account or group&mdash;under
1150
+ # which Stackdriver Logging writes the exported log entries to the sink's
1151
+ # destination. This field is set by sinks.create and sinks.update, based on the
1152
+ # setting of unique_writer_identity in those methods.Until you grant this
1153
+ # identity write-access to the destination, log entry exports from this sink
1154
+ # will fail. For more information, see Granting access for a resource. Consult
1155
+ # the destination service's documentation to determine the appropriate IAM roles
1156
+ # to assign to the identity.
1157
+ # Corresponds to the JSON property `writerIdentity`
1158
+ # @return [String]
1159
+ attr_accessor :writer_identity
1160
+
1161
+ # Optional. The time at which this sink will begin exporting log entries. Log
1162
+ # entries are exported only if their timestamp is not earlier than the start
1163
+ # time. The default value of this field is the time the sink is created or
1164
+ # updated.
1165
+ # Corresponds to the JSON property `startTime`
1166
+ # @return [String]
1167
+ attr_accessor :start_time
1168
+
1169
+ # Optional. The log entry format to use for this sink's exported log entries.
1170
+ # The v2 format is used by default. The v1 format is deprecated and should be
1171
+ # used only as part of a migration effort to v2. See Migration to the v2 API.
1172
+ # Corresponds to the JSON property `outputVersionFormat`
1173
+ # @return [String]
1174
+ attr_accessor :output_version_format
1175
+
1176
+ def initialize(**args)
1177
+ update!(**args)
1178
+ end
1179
+
1180
+ # Update properties of this object
1181
+ def update!(**args)
1182
+ @name = args[:name] if args.key?(:name)
1183
+ @filter = args[:filter] if args.key?(:filter)
1184
+ @destination = args[:destination] if args.key?(:destination)
1185
+ @end_time = args[:end_time] if args.key?(:end_time)
1186
+ @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
1187
+ @start_time = args[:start_time] if args.key?(:start_time)
1188
+ @output_version_format = args[:output_version_format] if args.key?(:output_version_format)
1189
+ end
1190
+ end
1191
+
1192
+ # The parameters to WriteLogEntries.
1193
+ class WriteLogEntriesRequest
1194
+ include Google::Apis::Core::Hashable
1195
+
1196
+ # Optional. A default log resource name that is assigned to all log entries in
1197
+ # entries that do not specify a value for log_name:
1198
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
1199
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
1200
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
1201
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
1202
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
1203
+ # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
1204
+ # 2Factivity". For more information about log names, see LogEntry.
1205
+ # Corresponds to the JSON property `logName`
1206
+ # @return [String]
1207
+ attr_accessor :log_name
1208
+
1209
+ # Required. The log entries to write. Values supplied for the fields log_name,
1210
+ # resource, and labels in this entries.write request are inserted into those log
1211
+ # entries in this list that do not provide their own values.Stackdriver Logging
1212
+ # also creates and inserts values for timestamp and insert_id if the entries do
1213
+ # not provide them. The created insert_id for the N'th entry in this list will
1214
+ # be greater than earlier entries and less than later entries. Otherwise, the
1215
+ # order of log entries in this list does not matter.To improve throughput and to
1216
+ # avoid exceeding the quota limit for calls to entries.write, you should write
1217
+ # multiple log entries at once rather than calling this method for each
1218
+ # individual log entry.
1219
+ # Corresponds to the JSON property `entries`
1220
+ # @return [Array<Google::Apis::LoggingV2::LogEntry>]
1221
+ attr_accessor :entries
1222
+
1223
+ # Optional. Whether valid entries should be written even if some other entries
1224
+ # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
1225
+ # written, then the response status is the error associated with one of the
1226
+ # failed entries and the response includes error details keyed by the entries'
1227
+ # zero-based index in the entries.write method.
1228
+ # Corresponds to the JSON property `partialSuccess`
1229
+ # @return [Boolean]
1230
+ attr_accessor :partial_success
1231
+ alias_method :partial_success?, :partial_success
1232
+
1233
+ # Optional. Default labels that are added to the labels field of all log entries
1234
+ # in entries. If a log entry already has a label with the same key as a label in
1235
+ # this parameter, then the log entry's label is not changed. See LogEntry.
1236
+ # Corresponds to the JSON property `labels`
1237
+ # @return [Hash<String,String>]
1238
+ attr_accessor :labels
1239
+
1240
+ # An object representing a resource that can be used for monitoring, logging,
1241
+ # billing, or other purposes. Examples include virtual machine instances,
1242
+ # databases, and storage devices such as disks. The type field identifies a
1243
+ # MonitoredResourceDescriptor object that describes the resource's schema.
1244
+ # Information in the labels field identifies the actual resource and its
1245
+ # attributes according to the schema. For example, a particular Compute Engine
1246
+ # VM instance could be represented by the following object, because the
1247
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
1248
+ # zone":
1249
+ # ` "type": "gce_instance",
1250
+ # "labels": ` "instance_id": "12345678901234",
1251
+ # "zone": "us-central1-a" ``
1252
+ # Corresponds to the JSON property `resource`
1253
+ # @return [Google::Apis::LoggingV2::MonitoredResource]
1254
+ attr_accessor :resource
1255
+
1256
+ def initialize(**args)
1257
+ update!(**args)
1258
+ end
1259
+
1260
+ # Update properties of this object
1261
+ def update!(**args)
1262
+ @log_name = args[:log_name] if args.key?(:log_name)
1263
+ @entries = args[:entries] if args.key?(:entries)
1264
+ @partial_success = args[:partial_success] if args.key?(:partial_success)
1265
+ @labels = args[:labels] if args.key?(:labels)
1266
+ @resource = args[:resource] if args.key?(:resource)
1267
+ end
1268
+ end
1269
+ end
1270
+ end
1271
+ end