google-apis-discoveryengine_v1alpha 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 633981eb76f6c2c89e37cedb8c4381bcd8b5e57df08f367bc4b7db199ef2a8a0
4
- data.tar.gz: 0f7d31328c4f252515fcd2463b34352d5512d15847f1891a20785341d02f6795
3
+ metadata.gz: e80bc0a060abfba4d51761f865a4b2a997b290d857129d7a1d3e69faa5135e6e
4
+ data.tar.gz: 64fe05484aeb4e7acdd5a6a7e337104e192f248245f8c4da9d912c08f37dba41
5
5
  SHA512:
6
- metadata.gz: c05fbe2a7aa7450b7fe6747ffd013cefac7078ec000227c74a8f63882691c039492b49f62fcc1f65987a39ae1612cef1cfb345c2cc184cc0d746cf8687b02838
7
- data.tar.gz: ef189648e37d24995ee9b95e772bf7131ce2ebb57be9071604b30241b512469f5b069b11bb42fd304ac3b2aac13bfd342a2f6e4222ef8c8dde579103f12d098d
6
+ metadata.gz: 76b0cf23a4e201c3116ca30aabfe9742a9b702f3feb875507e6a742003cfa753841dfe4b798c65c3638994422b0e59566158c3785ca9d22246cf351a03de6599
7
+ data.tar.gz: b7851ff4400e89059368e184d7ff83ee7241dddfb1193c7d6085e4c32c980e86174626d1f5069129f7516850b16b97e4e6d3f58f0cf51d0defc477d5cd25144c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.3.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230105
6
+ * Regenerated using generator version 0.11.1
7
+
3
8
  ### v0.2.0 (2022-12-11)
4
9
 
5
10
  * Regenerated from discovery document revision 20221207
@@ -70,6 +70,210 @@ module Google
70
70
  end
71
71
  end
72
72
 
73
+ # A description of the context in which an error occurred.
74
+ class GoogleCloudDiscoveryengineLoggingErrorContext
75
+ include Google::Apis::Core::Hashable
76
+
77
+ # HTTP request data that is related to a reported error.
78
+ # Corresponds to the JSON property `httpRequest`
79
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingHttpRequestContext]
80
+ attr_accessor :http_request
81
+
82
+ # Indicates a location in the source code of the service for which errors are
83
+ # reported.
84
+ # Corresponds to the JSON property `reportLocation`
85
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingSourceLocation]
86
+ attr_accessor :report_location
87
+
88
+ def initialize(**args)
89
+ update!(**args)
90
+ end
91
+
92
+ # Update properties of this object
93
+ def update!(**args)
94
+ @http_request = args[:http_request] if args.key?(:http_request)
95
+ @report_location = args[:report_location] if args.key?(:report_location)
96
+ end
97
+ end
98
+
99
+ # An error log which is reported to the Error Reporting system.
100
+ class GoogleCloudDiscoveryengineLoggingErrorLog
101
+ include Google::Apis::Core::Hashable
102
+
103
+ # A description of the context in which an error occurred.
104
+ # Corresponds to the JSON property `context`
105
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingErrorContext]
106
+ attr_accessor :context
107
+
108
+ # The error payload that is populated on LRO import APIs. Including: "google.
109
+ # cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments" "google.cloud.
110
+ # discoveryengine.v1alpha.UserEventService.ImportUserEvents"
111
+ # Corresponds to the JSON property `importPayload`
112
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingImportErrorContext]
113
+ attr_accessor :import_payload
114
+
115
+ # A message describing the error.
116
+ # Corresponds to the JSON property `message`
117
+ # @return [String]
118
+ attr_accessor :message
119
+
120
+ # The API request payload, represented as a protocol buffer. Most API request
121
+ # types are supported. For example: "type.googleapis.com/google.cloud.
122
+ # discoveryengine.v1alpha.DocumentService.CreateDocumentRequest" "type.
123
+ # googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.
124
+ # WriteUserEventRequest"
125
+ # Corresponds to the JSON property `requestPayload`
126
+ # @return [Hash<String,Object>]
127
+ attr_accessor :request_payload
128
+
129
+ # The API response payload, represented as a protocol buffer. This is used to
130
+ # log some "soft errors", where the response is valid but we consider there are
131
+ # some quality issues like unjoined events. The following API responses are
132
+ # supported and no PII is included: "google.cloud.discoveryengine.v1alpha.
133
+ # RecommendationService.Recommend" "google.cloud.discoveryengine.v1alpha.
134
+ # UserEventService.WriteUserEvent" "google.cloud.discoveryengine.v1alpha.
135
+ # UserEventService.CollectUserEvent"
136
+ # Corresponds to the JSON property `responsePayload`
137
+ # @return [Hash<String,Object>]
138
+ attr_accessor :response_payload
139
+
140
+ # Describes a running service that sends errors.
141
+ # Corresponds to the JSON property `serviceContext`
142
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingServiceContext]
143
+ attr_accessor :service_context
144
+
145
+ # The `Status` type defines a logical error model that is suitable for different
146
+ # programming environments, including REST APIs and RPC APIs. It is used by [
147
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
148
+ # data: error code, error message, and error details. You can find out more
149
+ # about this error model and how to work with it in the [API Design Guide](https:
150
+ # //cloud.google.com/apis/design/errors).
151
+ # Corresponds to the JSON property `status`
152
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus]
153
+ attr_accessor :status
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @context = args[:context] if args.key?(:context)
162
+ @import_payload = args[:import_payload] if args.key?(:import_payload)
163
+ @message = args[:message] if args.key?(:message)
164
+ @request_payload = args[:request_payload] if args.key?(:request_payload)
165
+ @response_payload = args[:response_payload] if args.key?(:response_payload)
166
+ @service_context = args[:service_context] if args.key?(:service_context)
167
+ @status = args[:status] if args.key?(:status)
168
+ end
169
+ end
170
+
171
+ # HTTP request data that is related to a reported error.
172
+ class GoogleCloudDiscoveryengineLoggingHttpRequestContext
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # The HTTP response status code for the request.
176
+ # Corresponds to the JSON property `responseStatusCode`
177
+ # @return [Fixnum]
178
+ attr_accessor :response_status_code
179
+
180
+ def initialize(**args)
181
+ update!(**args)
182
+ end
183
+
184
+ # Update properties of this object
185
+ def update!(**args)
186
+ @response_status_code = args[:response_status_code] if args.key?(:response_status_code)
187
+ end
188
+ end
189
+
190
+ # The error payload that is populated on LRO import APIs. Including: "google.
191
+ # cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments" "google.cloud.
192
+ # discoveryengine.v1alpha.UserEventService.ImportUserEvents"
193
+ class GoogleCloudDiscoveryengineLoggingImportErrorContext
194
+ include Google::Apis::Core::Hashable
195
+
196
+ # The detailed content which caused the error on importing a document.
197
+ # Corresponds to the JSON property `document`
198
+ # @return [String]
199
+ attr_accessor :document
200
+
201
+ # Google Cloud Storage file path of the import source. Can be set for batch
202
+ # operation error.
203
+ # Corresponds to the JSON property `gcsPath`
204
+ # @return [String]
205
+ attr_accessor :gcs_path
206
+
207
+ # Line number of the content in file. Should be empty for permission or batch
208
+ # operation error.
209
+ # Corresponds to the JSON property `lineNumber`
210
+ # @return [String]
211
+ attr_accessor :line_number
212
+
213
+ # The operation resource name of the LRO.
214
+ # Corresponds to the JSON property `operation`
215
+ # @return [String]
216
+ attr_accessor :operation
217
+
218
+ # The detailed content which caused the error on importing a user event.
219
+ # Corresponds to the JSON property `userEvent`
220
+ # @return [String]
221
+ attr_accessor :user_event
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @document = args[:document] if args.key?(:document)
230
+ @gcs_path = args[:gcs_path] if args.key?(:gcs_path)
231
+ @line_number = args[:line_number] if args.key?(:line_number)
232
+ @operation = args[:operation] if args.key?(:operation)
233
+ @user_event = args[:user_event] if args.key?(:user_event)
234
+ end
235
+ end
236
+
237
+ # Describes a running service that sends errors.
238
+ class GoogleCloudDiscoveryengineLoggingServiceContext
239
+ include Google::Apis::Core::Hashable
240
+
241
+ # An identifier of the service. For example, "discoveryengine.googleapis.com".
242
+ # Corresponds to the JSON property `service`
243
+ # @return [String]
244
+ attr_accessor :service
245
+
246
+ def initialize(**args)
247
+ update!(**args)
248
+ end
249
+
250
+ # Update properties of this object
251
+ def update!(**args)
252
+ @service = args[:service] if args.key?(:service)
253
+ end
254
+ end
255
+
256
+ # Indicates a location in the source code of the service for which errors are
257
+ # reported.
258
+ class GoogleCloudDiscoveryengineLoggingSourceLocation
259
+ include Google::Apis::Core::Hashable
260
+
261
+ # Human-readable name of a function or method. For example, " google.cloud.
262
+ # discoveryengine.v1alpha.RecommendationService.Recommend".
263
+ # Corresponds to the JSON property `functionName`
264
+ # @return [String]
265
+ attr_accessor :function_name
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @function_name = args[:function_name] if args.key?(:function_name)
274
+ end
275
+ end
276
+
73
277
  # BigQuery source import data from.
74
278
  class GoogleCloudDiscoveryengineV1alphaBigQuerySource
75
279
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221207"
25
+ REVISION = "20230105"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,42 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class GoogleCloudDiscoveryengineLoggingErrorContext
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudDiscoveryengineLoggingErrorLog
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudDiscoveryengineLoggingHttpRequestContext
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudDiscoveryengineLoggingImportErrorContext
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudDiscoveryengineLoggingServiceContext
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudDiscoveryengineLoggingSourceLocation
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
31
67
  class GoogleCloudDiscoveryengineV1alphaBigQuerySource
32
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
69
 
@@ -253,6 +289,65 @@ module Google
253
289
  end
254
290
  end
255
291
 
292
+ class GoogleCloudDiscoveryengineLoggingErrorContext
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :http_request, as: 'httpRequest', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingHttpRequestContext, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingHttpRequestContext::Representation
296
+
297
+ property :report_location, as: 'reportLocation', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingSourceLocation, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingSourceLocation::Representation
298
+
299
+ end
300
+ end
301
+
302
+ class GoogleCloudDiscoveryengineLoggingErrorLog
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :context, as: 'context', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingErrorContext, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingErrorContext::Representation
306
+
307
+ property :import_payload, as: 'importPayload', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingImportErrorContext, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingImportErrorContext::Representation
308
+
309
+ property :message, as: 'message'
310
+ hash :request_payload, as: 'requestPayload'
311
+ hash :response_payload, as: 'responsePayload'
312
+ property :service_context, as: 'serviceContext', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingServiceContext, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingServiceContext::Representation
313
+
314
+ property :status, as: 'status', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
315
+
316
+ end
317
+ end
318
+
319
+ class GoogleCloudDiscoveryengineLoggingHttpRequestContext
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :response_status_code, as: 'responseStatusCode'
323
+ end
324
+ end
325
+
326
+ class GoogleCloudDiscoveryengineLoggingImportErrorContext
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ property :document, as: 'document'
330
+ property :gcs_path, as: 'gcsPath'
331
+ property :line_number, as: 'lineNumber'
332
+ property :operation, as: 'operation'
333
+ property :user_event, as: 'userEvent'
334
+ end
335
+ end
336
+
337
+ class GoogleCloudDiscoveryengineLoggingServiceContext
338
+ # @private
339
+ class Representation < Google::Apis::Core::JsonRepresentation
340
+ property :service, as: 'service'
341
+ end
342
+ end
343
+
344
+ class GoogleCloudDiscoveryengineLoggingSourceLocation
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ property :function_name, as: 'functionName'
348
+ end
349
+ end
350
+
256
351
  class GoogleCloudDiscoveryengineV1alphaBigQuerySource
257
352
  # @private
258
353
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.3.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Discovery Engine API V1alpha