google-api-client 0.11.1 → 0.11.2

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