google-apis-datastream_v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,457 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatastreamV1
24
+
25
+ # The request message for Operations.CancelOperation.
26
+ class CancelOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # A generic empty message that you can re-use to avoid defining duplicated empty
39
+ # messages in your APIs. A typical example is to use it as the request or the
40
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
41
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
42
+ # `Empty` is empty JSON object ````.
43
+ class Empty
44
+ include Google::Apis::Core::Hashable
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ end
53
+ end
54
+
55
+ # Represent a user-facing Error.
56
+ class Error
57
+ include Google::Apis::Core::Hashable
58
+
59
+ # Additional information about the error.
60
+ # Corresponds to the JSON property `details`
61
+ # @return [Hash<String,String>]
62
+ attr_accessor :details
63
+
64
+ # The time when the error occurred.
65
+ # Corresponds to the JSON property `errorTime`
66
+ # @return [String]
67
+ attr_accessor :error_time
68
+
69
+ # A unique identifier for this specific error, allowing it to be traced
70
+ # throughout the system in logs and API responses.
71
+ # Corresponds to the JSON property `errorUuid`
72
+ # @return [String]
73
+ attr_accessor :error_uuid
74
+
75
+ # A message containing more information about the error that occurred.
76
+ # Corresponds to the JSON property `message`
77
+ # @return [String]
78
+ attr_accessor :message
79
+
80
+ # A title that explains the reason for the error.
81
+ # Corresponds to the JSON property `reason`
82
+ # @return [String]
83
+ attr_accessor :reason
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @details = args[:details] if args.key?(:details)
92
+ @error_time = args[:error_time] if args.key?(:error_time)
93
+ @error_uuid = args[:error_uuid] if args.key?(:error_uuid)
94
+ @message = args[:message] if args.key?(:message)
95
+ @reason = args[:reason] if args.key?(:reason)
96
+ end
97
+ end
98
+
99
+ # The response message for Locations.ListLocations.
100
+ class ListLocationsResponse
101
+ include Google::Apis::Core::Hashable
102
+
103
+ # A list of locations that matches the specified filter in the request.
104
+ # Corresponds to the JSON property `locations`
105
+ # @return [Array<Google::Apis::DatastreamV1::Location>]
106
+ attr_accessor :locations
107
+
108
+ # The standard List next-page token.
109
+ # Corresponds to the JSON property `nextPageToken`
110
+ # @return [String]
111
+ attr_accessor :next_page_token
112
+
113
+ def initialize(**args)
114
+ update!(**args)
115
+ end
116
+
117
+ # Update properties of this object
118
+ def update!(**args)
119
+ @locations = args[:locations] if args.key?(:locations)
120
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
121
+ end
122
+ end
123
+
124
+ # The response message for Operations.ListOperations.
125
+ class ListOperationsResponse
126
+ include Google::Apis::Core::Hashable
127
+
128
+ # The standard List next-page token.
129
+ # Corresponds to the JSON property `nextPageToken`
130
+ # @return [String]
131
+ attr_accessor :next_page_token
132
+
133
+ # A list of operations that matches the specified filter in the request.
134
+ # Corresponds to the JSON property `operations`
135
+ # @return [Array<Google::Apis::DatastreamV1::Operation>]
136
+ attr_accessor :operations
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
145
+ @operations = args[:operations] if args.key?(:operations)
146
+ end
147
+ end
148
+
149
+ # A resource that represents Google Cloud Platform location.
150
+ class Location
151
+ include Google::Apis::Core::Hashable
152
+
153
+ # The friendly name for this location, typically a nearby city name. For example,
154
+ # "Tokyo".
155
+ # Corresponds to the JSON property `displayName`
156
+ # @return [String]
157
+ attr_accessor :display_name
158
+
159
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
160
+ # region": "us-east1"`
161
+ # Corresponds to the JSON property `labels`
162
+ # @return [Hash<String,String>]
163
+ attr_accessor :labels
164
+
165
+ # The canonical id for this location. For example: `"us-east1"`.
166
+ # Corresponds to the JSON property `locationId`
167
+ # @return [String]
168
+ attr_accessor :location_id
169
+
170
+ # Service-specific metadata. For example the available capacity at the given
171
+ # location.
172
+ # Corresponds to the JSON property `metadata`
173
+ # @return [Hash<String,Object>]
174
+ attr_accessor :metadata
175
+
176
+ # Resource name for the location, which may vary between implementations. For
177
+ # example: `"projects/example-project/locations/us-east1"`
178
+ # Corresponds to the JSON property `name`
179
+ # @return [String]
180
+ attr_accessor :name
181
+
182
+ def initialize(**args)
183
+ update!(**args)
184
+ end
185
+
186
+ # Update properties of this object
187
+ def update!(**args)
188
+ @display_name = args[:display_name] if args.key?(:display_name)
189
+ @labels = args[:labels] if args.key?(:labels)
190
+ @location_id = args[:location_id] if args.key?(:location_id)
191
+ @metadata = args[:metadata] if args.key?(:metadata)
192
+ @name = args[:name] if args.key?(:name)
193
+ end
194
+ end
195
+
196
+ # This resource represents a long-running operation that is the result of a
197
+ # network API call.
198
+ class Operation
199
+ include Google::Apis::Core::Hashable
200
+
201
+ # If the value is `false`, it means the operation is still in progress. If `true`
202
+ # , the operation is completed, and either `error` or `response` is available.
203
+ # Corresponds to the JSON property `done`
204
+ # @return [Boolean]
205
+ attr_accessor :done
206
+ alias_method :done?, :done
207
+
208
+ # The `Status` type defines a logical error model that is suitable for different
209
+ # programming environments, including REST APIs and RPC APIs. It is used by [
210
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
211
+ # data: error code, error message, and error details. You can find out more
212
+ # about this error model and how to work with it in the [API Design Guide](https:
213
+ # //cloud.google.com/apis/design/errors).
214
+ # Corresponds to the JSON property `error`
215
+ # @return [Google::Apis::DatastreamV1::Status]
216
+ attr_accessor :error
217
+
218
+ # Service-specific metadata associated with the operation. It typically contains
219
+ # progress information and common metadata such as create time. Some services
220
+ # might not provide such metadata. Any method that returns a long-running
221
+ # operation should document the metadata type, if any.
222
+ # Corresponds to the JSON property `metadata`
223
+ # @return [Hash<String,Object>]
224
+ attr_accessor :metadata
225
+
226
+ # The server-assigned name, which is only unique within the same service that
227
+ # originally returns it. If you use the default HTTP mapping, the `name` should
228
+ # be a resource name ending with `operations/`unique_id``.
229
+ # Corresponds to the JSON property `name`
230
+ # @return [String]
231
+ attr_accessor :name
232
+
233
+ # The normal response of the operation in case of success. If the original
234
+ # method returns no data on success, such as `Delete`, the response is `google.
235
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
236
+ # the response should be the resource. For other methods, the response should
237
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
238
+ # example, if the original method name is `TakeSnapshot()`, the inferred
239
+ # response type is `TakeSnapshotResponse`.
240
+ # Corresponds to the JSON property `response`
241
+ # @return [Hash<String,Object>]
242
+ attr_accessor :response
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @done = args[:done] if args.key?(:done)
251
+ @error = args[:error] if args.key?(:error)
252
+ @metadata = args[:metadata] if args.key?(:metadata)
253
+ @name = args[:name] if args.key?(:name)
254
+ @response = args[:response] if args.key?(:response)
255
+ end
256
+ end
257
+
258
+ # Represents the metadata of the long-running operation.
259
+ class OperationMetadata
260
+ include Google::Apis::Core::Hashable
261
+
262
+ # Output only. API version used to start the operation.
263
+ # Corresponds to the JSON property `apiVersion`
264
+ # @return [String]
265
+ attr_accessor :api_version
266
+
267
+ # Output only. The time the operation was created.
268
+ # Corresponds to the JSON property `createTime`
269
+ # @return [String]
270
+ attr_accessor :create_time
271
+
272
+ # Output only. The time the operation finished running.
273
+ # Corresponds to the JSON property `endTime`
274
+ # @return [String]
275
+ attr_accessor :end_time
276
+
277
+ # Output only. Identifies whether the user has requested cancellation of the
278
+ # operation. Operations that have successfully been cancelled have Operation.
279
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
280
+ # CANCELLED`.
281
+ # Corresponds to the JSON property `requestedCancellation`
282
+ # @return [Boolean]
283
+ attr_accessor :requested_cancellation
284
+ alias_method :requested_cancellation?, :requested_cancellation
285
+
286
+ # Output only. Human-readable status of the operation, if any.
287
+ # Corresponds to the JSON property `statusMessage`
288
+ # @return [String]
289
+ attr_accessor :status_message
290
+
291
+ # Output only. Server-defined resource path for the target of the operation.
292
+ # Corresponds to the JSON property `target`
293
+ # @return [String]
294
+ attr_accessor :target
295
+
296
+ # Contains the current validation results.
297
+ # Corresponds to the JSON property `validationResult`
298
+ # @return [Google::Apis::DatastreamV1::ValidationResult]
299
+ attr_accessor :validation_result
300
+
301
+ # Output only. Name of the verb executed by the operation.
302
+ # Corresponds to the JSON property `verb`
303
+ # @return [String]
304
+ attr_accessor :verb
305
+
306
+ def initialize(**args)
307
+ update!(**args)
308
+ end
309
+
310
+ # Update properties of this object
311
+ def update!(**args)
312
+ @api_version = args[:api_version] if args.key?(:api_version)
313
+ @create_time = args[:create_time] if args.key?(:create_time)
314
+ @end_time = args[:end_time] if args.key?(:end_time)
315
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
316
+ @status_message = args[:status_message] if args.key?(:status_message)
317
+ @target = args[:target] if args.key?(:target)
318
+ @validation_result = args[:validation_result] if args.key?(:validation_result)
319
+ @verb = args[:verb] if args.key?(:verb)
320
+ end
321
+ end
322
+
323
+ # The `Status` type defines a logical error model that is suitable for different
324
+ # programming environments, including REST APIs and RPC APIs. It is used by [
325
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
326
+ # data: error code, error message, and error details. You can find out more
327
+ # about this error model and how to work with it in the [API Design Guide](https:
328
+ # //cloud.google.com/apis/design/errors).
329
+ class Status
330
+ include Google::Apis::Core::Hashable
331
+
332
+ # The status code, which should be an enum value of google.rpc.Code.
333
+ # Corresponds to the JSON property `code`
334
+ # @return [Fixnum]
335
+ attr_accessor :code
336
+
337
+ # A list of messages that carry the error details. There is a common set of
338
+ # message types for APIs to use.
339
+ # Corresponds to the JSON property `details`
340
+ # @return [Array<Hash<String,Object>>]
341
+ attr_accessor :details
342
+
343
+ # A developer-facing error message, which should be in English. Any user-facing
344
+ # error message should be localized and sent in the google.rpc.Status.details
345
+ # field, or localized by the client.
346
+ # Corresponds to the JSON property `message`
347
+ # @return [String]
348
+ attr_accessor :message
349
+
350
+ def initialize(**args)
351
+ update!(**args)
352
+ end
353
+
354
+ # Update properties of this object
355
+ def update!(**args)
356
+ @code = args[:code] if args.key?(:code)
357
+ @details = args[:details] if args.key?(:details)
358
+ @message = args[:message] if args.key?(:message)
359
+ end
360
+ end
361
+
362
+ # A validation to perform on a stream.
363
+ class Validation
364
+ include Google::Apis::Core::Hashable
365
+
366
+ # A custom code identifying this validation.
367
+ # Corresponds to the JSON property `code`
368
+ # @return [String]
369
+ attr_accessor :code
370
+
371
+ # A short description of the validation.
372
+ # Corresponds to the JSON property `description`
373
+ # @return [String]
374
+ attr_accessor :description
375
+
376
+ # Messages reflecting the validation results.
377
+ # Corresponds to the JSON property `message`
378
+ # @return [Array<Google::Apis::DatastreamV1::ValidationMessage>]
379
+ attr_accessor :message
380
+
381
+ # Validation execution status.
382
+ # Corresponds to the JSON property `state`
383
+ # @return [String]
384
+ attr_accessor :state
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @code = args[:code] if args.key?(:code)
393
+ @description = args[:description] if args.key?(:description)
394
+ @message = args[:message] if args.key?(:message)
395
+ @state = args[:state] if args.key?(:state)
396
+ end
397
+ end
398
+
399
+ # Represent user-facing validation result message.
400
+ class ValidationMessage
401
+ include Google::Apis::Core::Hashable
402
+
403
+ # A custom code identifying this specific message.
404
+ # Corresponds to the JSON property `code`
405
+ # @return [String]
406
+ attr_accessor :code
407
+
408
+ # Message severity level (warning or error).
409
+ # Corresponds to the JSON property `level`
410
+ # @return [String]
411
+ attr_accessor :level
412
+
413
+ # The result of the validation.
414
+ # Corresponds to the JSON property `message`
415
+ # @return [String]
416
+ attr_accessor :message
417
+
418
+ # Additional metadata related to the result.
419
+ # Corresponds to the JSON property `metadata`
420
+ # @return [Hash<String,String>]
421
+ attr_accessor :metadata
422
+
423
+ def initialize(**args)
424
+ update!(**args)
425
+ end
426
+
427
+ # Update properties of this object
428
+ def update!(**args)
429
+ @code = args[:code] if args.key?(:code)
430
+ @level = args[:level] if args.key?(:level)
431
+ @message = args[:message] if args.key?(:message)
432
+ @metadata = args[:metadata] if args.key?(:metadata)
433
+ end
434
+ end
435
+
436
+ # Contains the current validation results.
437
+ class ValidationResult
438
+ include Google::Apis::Core::Hashable
439
+
440
+ # A list of validations (includes both executed as well as not executed
441
+ # validations).
442
+ # Corresponds to the JSON property `validations`
443
+ # @return [Array<Google::Apis::DatastreamV1::Validation>]
444
+ attr_accessor :validations
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @validations = args[:validations] if args.key?(:validations)
453
+ end
454
+ end
455
+ end
456
+ end
457
+ end
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module DatastreamV1
18
+ # Version of the google-apis-datastream_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20211026"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,215 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatastreamV1
24
+
25
+ class CancelOperationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Error
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListLocationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ListOperationsResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Location
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Operation
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class OperationMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Status
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Validation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ValidationMessage
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ValidationResult
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class CancelOperationRequest
98
+ # @private
99
+ class Representation < Google::Apis::Core::JsonRepresentation
100
+ end
101
+ end
102
+
103
+ class Empty
104
+ # @private
105
+ class Representation < Google::Apis::Core::JsonRepresentation
106
+ end
107
+ end
108
+
109
+ class Error
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ hash :details, as: 'details'
113
+ property :error_time, as: 'errorTime'
114
+ property :error_uuid, as: 'errorUuid'
115
+ property :message, as: 'message'
116
+ property :reason, as: 'reason'
117
+ end
118
+ end
119
+
120
+ class ListLocationsResponse
121
+ # @private
122
+ class Representation < Google::Apis::Core::JsonRepresentation
123
+ collection :locations, as: 'locations', class: Google::Apis::DatastreamV1::Location, decorator: Google::Apis::DatastreamV1::Location::Representation
124
+
125
+ property :next_page_token, as: 'nextPageToken'
126
+ end
127
+ end
128
+
129
+ class ListOperationsResponse
130
+ # @private
131
+ class Representation < Google::Apis::Core::JsonRepresentation
132
+ property :next_page_token, as: 'nextPageToken'
133
+ collection :operations, as: 'operations', class: Google::Apis::DatastreamV1::Operation, decorator: Google::Apis::DatastreamV1::Operation::Representation
134
+
135
+ end
136
+ end
137
+
138
+ class Location
139
+ # @private
140
+ class Representation < Google::Apis::Core::JsonRepresentation
141
+ property :display_name, as: 'displayName'
142
+ hash :labels, as: 'labels'
143
+ property :location_id, as: 'locationId'
144
+ hash :metadata, as: 'metadata'
145
+ property :name, as: 'name'
146
+ end
147
+ end
148
+
149
+ class Operation
150
+ # @private
151
+ class Representation < Google::Apis::Core::JsonRepresentation
152
+ property :done, as: 'done'
153
+ property :error, as: 'error', class: Google::Apis::DatastreamV1::Status, decorator: Google::Apis::DatastreamV1::Status::Representation
154
+
155
+ hash :metadata, as: 'metadata'
156
+ property :name, as: 'name'
157
+ hash :response, as: 'response'
158
+ end
159
+ end
160
+
161
+ class OperationMetadata
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ property :api_version, as: 'apiVersion'
165
+ property :create_time, as: 'createTime'
166
+ property :end_time, as: 'endTime'
167
+ property :requested_cancellation, as: 'requestedCancellation'
168
+ property :status_message, as: 'statusMessage'
169
+ property :target, as: 'target'
170
+ property :validation_result, as: 'validationResult', class: Google::Apis::DatastreamV1::ValidationResult, decorator: Google::Apis::DatastreamV1::ValidationResult::Representation
171
+
172
+ property :verb, as: 'verb'
173
+ end
174
+ end
175
+
176
+ class Status
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ property :code, as: 'code'
180
+ collection :details, as: 'details'
181
+ property :message, as: 'message'
182
+ end
183
+ end
184
+
185
+ class Validation
186
+ # @private
187
+ class Representation < Google::Apis::Core::JsonRepresentation
188
+ property :code, as: 'code'
189
+ property :description, as: 'description'
190
+ collection :message, as: 'message', class: Google::Apis::DatastreamV1::ValidationMessage, decorator: Google::Apis::DatastreamV1::ValidationMessage::Representation
191
+
192
+ property :state, as: 'state'
193
+ end
194
+ end
195
+
196
+ class ValidationMessage
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :code, as: 'code'
200
+ property :level, as: 'level'
201
+ property :message, as: 'message'
202
+ hash :metadata, as: 'metadata'
203
+ end
204
+ end
205
+
206
+ class ValidationResult
207
+ # @private
208
+ class Representation < Google::Apis::Core::JsonRepresentation
209
+ collection :validations, as: 'validations', class: Google::Apis::DatastreamV1::Validation, decorator: Google::Apis::DatastreamV1::Validation::Representation
210
+
211
+ end
212
+ end
213
+ end
214
+ end
215
+ end