google-api-client 0.9.25 → 0.9.26

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