google-api-client 0.11.1 → 0.11.2

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