plainrouter-sdk 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/plainrouter/client.rb +73 -1
- data/lib/plainrouter/openapi/api/action_dry_run_api_api.rb +96 -0
- data/lib/plainrouter/openapi/api/action_proposal_api_api.rb +96 -0
- data/lib/plainrouter/openapi/api/action_read_api_api.rb +404 -0
- data/lib/plainrouter/openapi/api/event_api.rb +15 -15
- data/lib/plainrouter/openapi/api/operations_api.rb +24 -28
- data/lib/plainrouter/openapi/api/sandbox_api.rb +74 -17
- data/lib/plainrouter/openapi/api_client.rb +2 -2
- data/lib/plainrouter/openapi/api_error.rb +2 -2
- data/lib/plainrouter/openapi/api_model_base.rb +2 -2
- data/lib/plainrouter/openapi/configuration.rb +10 -3
- data/lib/plainrouter/openapi/models/action_batch_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_batch_read_data.rb +450 -0
- data/lib/plainrouter/openapi/models/action_current_disposition.rb +294 -0
- data/lib/plainrouter/openapi/models/action_decision_receipt_read.rb +244 -0
- data/lib/plainrouter/openapi/models/action_decision_receipt_read_chain_entry.rb +190 -0
- data/lib/plainrouter/openapi/models/action_detail_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read_dry_run.rb +166 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read_dry_run_actions_inner.rb +103 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read_dry_run_actions_inner_any_of.rb +376 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read_dry_run_actions_inner_any_of1.rb +268 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read_dry_run_actions_inner_any_of_diff.rb +162 -0
- data/lib/plainrouter/openapi/models/action_dry_run_read_dry_run_actions_inner_any_of_target_entity.rb +199 -0
- data/lib/plainrouter/openapi/models/action_list_read.rb +192 -0
- data/lib/plainrouter/openapi/models/action_list_read_meta.rb +242 -0
- data/lib/plainrouter/openapi/models/action_policy_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_policy_read_data.rb +380 -0
- data/lib/plainrouter/openapi/models/action_proposal_input.rb +378 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner.rb +115 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of1.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of10.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of10_params.rb +356 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of11.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of11_params.rb +173 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of12.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of12_params.rb +188 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of13.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of13_params.rb +259 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of2.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of3.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of4.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of4_target_entity.rb +253 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of5.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of6.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of7.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of8.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of9.rb +303 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of_params.rb +173 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of_target_entity.rb +264 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_evidence_inner.rb +262 -0
- data/lib/plainrouter/openapi/models/action_proposal_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_proposal_read_proposal.rb +452 -0
- data/lib/plainrouter/openapi/models/action_proposal_read_proposal_actions_inner.rb +386 -0
- data/lib/plainrouter/openapi/models/action_proposal_read_proposal_actions_inner_params.rb +103 -0
- data/lib/plainrouter/openapi/models/action_proposal_read_proposal_proposed_by.rb +202 -0
- data/lib/plainrouter/openapi/models/action_read_item.rb +516 -0
- data/lib/plainrouter/openapi/models/create_event200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/create_event202_response.rb +218 -0
- data/lib/plainrouter/openapi/models/create_event202_response_warnings_inner.rb +240 -0
- data/lib/plainrouter/openapi/models/create_event_request.rb +2 -2
- data/lib/plainrouter/openapi/models/create_event_request_any_of.rb +2 -2
- data/lib/plainrouter/openapi/models/create_event_request_any_of1.rb +2 -2
- data/lib/plainrouter/openapi/models/create_event_request_any_of_event_time.rb +2 -2
- data/lib/plainrouter/openapi/models/create_event_request_any_of_value_data.rb +2 -2
- data/lib/plainrouter/openapi/models/delete_user_data200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/delete_user_data_request.rb +35 -36
- data/lib/plainrouter/openapi/models/delivery_status.rb +2 -2
- data/lib/plainrouter/openapi/models/destination.rb +30 -3
- data/lib/plainrouter/openapi/models/destination_credential_source.rb +3 -4
- data/lib/plainrouter/openapi/models/destination_status.rb +2 -2
- data/lib/plainrouter/openapi/models/destination_type.rb +2 -2
- data/lib/plainrouter/openapi/models/emq_snapshot.rb +30 -3
- data/lib/plainrouter/openapi/models/error_message.rb +2 -2
- data/lib/plainrouter/openapi/models/event.rb +89 -45
- data/lib/plainrouter/openapi/models/get_emq_report200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/get_emq_report200_response_snapshots_inner.rb +30 -3
- data/lib/plainrouter/openapi/models/get_event200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/get_event200_response_deliveries_inner.rb +30 -3
- data/lib/plainrouter/openapi/models/get_event200_response_event.rb +31 -4
- data/lib/plainrouter/openapi/models/get_event200_response_event_consent.rb +2 -2
- data/lib/plainrouter/openapi/models/get_event200_response_event_deliveries_inner.rb +30 -3
- data/lib/plainrouter/openapi/models/get_event200_response_event_user_data_hashed.rb +104 -0
- data/lib/plainrouter/openapi/models/get_event200_response_lineage.rb +2 -2
- data/lib/plainrouter/openapi/models/get_event200_response_lineage_children_inner.rb +31 -4
- data/lib/plainrouter/openapi/models/get_event200_response_lineage_parent.rb +31 -4
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner.rb +30 -3
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner_buckets_value.rb +2 -2
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner_event_counts.rb +2 -2
- data/lib/plainrouter/openapi/models/get_reconciliation_report200_response_reports_inner_event_counts_accepted.rb +2 -2
- data/lib/plainrouter/openapi/models/get_sandbox200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/get_sandbox200_response_self_serve_key.rb +32 -6
- data/lib/plainrouter/openapi/models/{create_sandbox_key201_response.rb → get_sandbox200_response_self_serve_key_issued_key.rb} +6 -6
- data/lib/plainrouter/openapi/models/{create_sandbox_key201_response_use.rb → get_sandbox200_response_self_serve_key_issued_key_use.rb} +5 -5
- data/lib/plainrouter/openapi/models/get_sandbox200_response_try.rb +2 -2
- data/lib/plainrouter/openapi/models/get_sandbox200_response_try_body.rb +2 -2
- data/lib/plainrouter/openapi/models/get_sandbox200_response_try_body_value_data.rb +2 -2
- data/lib/plainrouter/openapi/models/ingestion_warning_code.rb +39 -0
- data/lib/plainrouter/openapi/models/jurisdiction_policy_class.rb +2 -2
- data/lib/plainrouter/openapi/models/list_events200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/list_events200_response_events.rb +2 -2
- data/lib/plainrouter/openapi/models/list_events200_response_events_links_inner.rb +2 -2
- data/lib/plainrouter/openapi/models/list_events200_response_metrics.rb +2 -2
- data/lib/plainrouter/openapi/models/list_events_by_cursor200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/list_events_by_cursor200_response_events.rb +2 -2
- data/lib/plainrouter/openapi/models/reconciliation_report.rb +31 -3
- data/lib/plainrouter/openapi/models/replay_deliveries202_response.rb +2 -2
- data/lib/plainrouter/openapi/models/replay_deliveries_request.rb +2 -2
- data/lib/plainrouter/openapi/models/send_test_purchase200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/send_test_purchase422_response.rb +2 -2
- data/lib/plainrouter/openapi/models/send_test_purchase_request.rb +2 -2
- data/lib/plainrouter/openapi/models/set_destination_test_mode200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/set_destination_test_mode200_response_destination.rb +30 -3
- data/lib/plainrouter/openapi/models/set_destination_test_mode_request.rb +2 -2
- data/lib/plainrouter/openapi/models/traffic_class.rb +2 -2
- data/lib/plainrouter/openapi/models/validate_sandbox_event200_response.rb +2 -2
- data/lib/plainrouter/openapi/models/validate_sandbox_event_request.rb +2 -2
- data/lib/plainrouter/openapi/models/validate_sandbox_event_request_value_data.rb +2 -2
- data/lib/plainrouter/openapi/models/validation_error.rb +2 -2
- data/lib/plainrouter/openapi/version.rb +3 -3
- data/lib/plainrouter/openapi.rb +58 -4
- data/lib/plainrouter/version.rb +1 -1
- metadata +64 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Plainrouter Conversion API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Plainrouter public Signals Conversion API.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.5.0
|
|
7
7
|
|
|
@@ -17,6 +17,9 @@ module PlainRouter::OpenAPI
|
|
|
17
17
|
class Destination < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
attr_accessor :workspace_id
|
|
21
|
+
|
|
22
|
+
# Deprecated alias of workspace_id; contains the workspace ID in decimal string form.
|
|
20
23
|
attr_accessor :signal_tracker_id
|
|
21
24
|
|
|
22
25
|
attr_accessor :platform_ad_account_id
|
|
@@ -59,6 +62,7 @@ module PlainRouter::OpenAPI
|
|
|
59
62
|
def self.attribute_map
|
|
60
63
|
{
|
|
61
64
|
:'id' => :'id',
|
|
65
|
+
:'workspace_id' => :'workspace_id',
|
|
62
66
|
:'signal_tracker_id' => :'signal_tracker_id',
|
|
63
67
|
:'platform_ad_account_id' => :'platform_ad_account_id',
|
|
64
68
|
:'type' => :'type',
|
|
@@ -84,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
84
88
|
def self.openapi_types
|
|
85
89
|
{
|
|
86
90
|
:'id' => :'String',
|
|
91
|
+
:'workspace_id' => :'Integer',
|
|
87
92
|
:'signal_tracker_id' => :'String',
|
|
88
93
|
:'platform_ad_account_id' => :'Integer',
|
|
89
94
|
:'type' => :'DestinationType',
|
|
@@ -126,6 +131,12 @@ module PlainRouter::OpenAPI
|
|
|
126
131
|
self.id = nil
|
|
127
132
|
end
|
|
128
133
|
|
|
134
|
+
if attributes.key?(:'workspace_id')
|
|
135
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
136
|
+
else
|
|
137
|
+
self.workspace_id = nil
|
|
138
|
+
end
|
|
139
|
+
|
|
129
140
|
if attributes.key?(:'signal_tracker_id')
|
|
130
141
|
self.signal_tracker_id = attributes[:'signal_tracker_id']
|
|
131
142
|
else
|
|
@@ -186,6 +197,10 @@ module PlainRouter::OpenAPI
|
|
|
186
197
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
187
198
|
end
|
|
188
199
|
|
|
200
|
+
if @workspace_id.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "workspace_id", workspace_id cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
189
204
|
if @signal_tracker_id.nil?
|
|
190
205
|
invalid_properties.push('invalid value for "signal_tracker_id", signal_tracker_id cannot be nil.')
|
|
191
206
|
end
|
|
@@ -214,6 +229,7 @@ module PlainRouter::OpenAPI
|
|
|
214
229
|
def valid?
|
|
215
230
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
216
231
|
return false if @id.nil?
|
|
232
|
+
return false if @workspace_id.nil?
|
|
217
233
|
return false if @signal_tracker_id.nil?
|
|
218
234
|
return false if @type.nil?
|
|
219
235
|
return false if @credential_source.nil?
|
|
@@ -232,6 +248,16 @@ module PlainRouter::OpenAPI
|
|
|
232
248
|
@id = id
|
|
233
249
|
end
|
|
234
250
|
|
|
251
|
+
# Custom attribute writer method with validation
|
|
252
|
+
# @param [Object] workspace_id Value to be assigned
|
|
253
|
+
def workspace_id=(workspace_id)
|
|
254
|
+
if workspace_id.nil?
|
|
255
|
+
fail ArgumentError, 'workspace_id cannot be nil'
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
@workspace_id = workspace_id
|
|
259
|
+
end
|
|
260
|
+
|
|
235
261
|
# Custom attribute writer method with validation
|
|
236
262
|
# @param [Object] signal_tracker_id Value to be assigned
|
|
237
263
|
def signal_tracker_id=(signal_tracker_id)
|
|
@@ -288,6 +314,7 @@ module PlainRouter::OpenAPI
|
|
|
288
314
|
return true if self.equal?(o)
|
|
289
315
|
self.class == o.class &&
|
|
290
316
|
id == o.id &&
|
|
317
|
+
workspace_id == o.workspace_id &&
|
|
291
318
|
signal_tracker_id == o.signal_tracker_id &&
|
|
292
319
|
platform_ad_account_id == o.platform_ad_account_id &&
|
|
293
320
|
type == o.type &&
|
|
@@ -307,7 +334,7 @@ module PlainRouter::OpenAPI
|
|
|
307
334
|
# Calculates hash code according to all attributes.
|
|
308
335
|
# @return [Integer] Hash code
|
|
309
336
|
def hash
|
|
310
|
-
[id, signal_tracker_id, platform_ad_account_id, type, credential_source, config, status, created_at, updated_at].hash
|
|
337
|
+
[id, workspace_id, signal_tracker_id, platform_ad_account_id, type, credential_source, config, status, created_at, updated_at].hash
|
|
311
338
|
end
|
|
312
339
|
|
|
313
340
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Plainrouter Conversion API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Plainrouter public Signals Conversion API.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.5.0
|
|
7
7
|
|
|
@@ -16,10 +16,9 @@ require 'time'
|
|
|
16
16
|
module PlainRouter::OpenAPI
|
|
17
17
|
class DestinationCredentialSource
|
|
18
18
|
OAUTH_CONNECTION = "oauth_connection".freeze
|
|
19
|
-
MANAGED_TOKEN = "managed_token".freeze
|
|
20
19
|
|
|
21
20
|
def self.all_vars
|
|
22
|
-
@all_vars ||= [OAUTH_CONNECTION
|
|
21
|
+
@all_vars ||= [OAUTH_CONNECTION].freeze
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
# Builds the enum from string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Plainrouter Conversion API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Plainrouter public Signals Conversion API.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.5.0
|
|
7
7
|
|
|
@@ -17,6 +17,9 @@ module PlainRouter::OpenAPI
|
|
|
17
17
|
class EmqSnapshot < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
attr_accessor :workspace_id
|
|
21
|
+
|
|
22
|
+
# Deprecated alias of workspace_id; contains the workspace ID in decimal string form.
|
|
20
23
|
attr_accessor :signal_tracker_id
|
|
21
24
|
|
|
22
25
|
attr_accessor :destination_id
|
|
@@ -39,6 +42,7 @@ module PlainRouter::OpenAPI
|
|
|
39
42
|
def self.attribute_map
|
|
40
43
|
{
|
|
41
44
|
:'id' => :'id',
|
|
45
|
+
:'workspace_id' => :'workspace_id',
|
|
42
46
|
:'signal_tracker_id' => :'signal_tracker_id',
|
|
43
47
|
:'destination_id' => :'destination_id',
|
|
44
48
|
:'score' => :'score',
|
|
@@ -65,6 +69,7 @@ module PlainRouter::OpenAPI
|
|
|
65
69
|
def self.openapi_types
|
|
66
70
|
{
|
|
67
71
|
:'id' => :'Integer',
|
|
72
|
+
:'workspace_id' => :'Integer',
|
|
68
73
|
:'signal_tracker_id' => :'String',
|
|
69
74
|
:'destination_id' => :'String',
|
|
70
75
|
:'score' => :'Float',
|
|
@@ -109,6 +114,12 @@ module PlainRouter::OpenAPI
|
|
|
109
114
|
self.id = nil
|
|
110
115
|
end
|
|
111
116
|
|
|
117
|
+
if attributes.key?(:'workspace_id')
|
|
118
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
119
|
+
else
|
|
120
|
+
self.workspace_id = nil
|
|
121
|
+
end
|
|
122
|
+
|
|
112
123
|
if attributes.key?(:'signal_tracker_id')
|
|
113
124
|
self.signal_tracker_id = attributes[:'signal_tracker_id']
|
|
114
125
|
else
|
|
@@ -175,6 +186,10 @@ module PlainRouter::OpenAPI
|
|
|
175
186
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
176
187
|
end
|
|
177
188
|
|
|
189
|
+
if @workspace_id.nil?
|
|
190
|
+
invalid_properties.push('invalid value for "workspace_id", workspace_id cannot be nil.')
|
|
191
|
+
end
|
|
192
|
+
|
|
178
193
|
if @signal_tracker_id.nil?
|
|
179
194
|
invalid_properties.push('invalid value for "signal_tracker_id", signal_tracker_id cannot be nil.')
|
|
180
195
|
end
|
|
@@ -203,6 +218,7 @@ module PlainRouter::OpenAPI
|
|
|
203
218
|
def valid?
|
|
204
219
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
205
220
|
return false if @id.nil?
|
|
221
|
+
return false if @workspace_id.nil?
|
|
206
222
|
return false if @signal_tracker_id.nil?
|
|
207
223
|
return false if @destination_id.nil?
|
|
208
224
|
return false if @score.nil?
|
|
@@ -221,6 +237,16 @@ module PlainRouter::OpenAPI
|
|
|
221
237
|
@id = id
|
|
222
238
|
end
|
|
223
239
|
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] workspace_id Value to be assigned
|
|
242
|
+
def workspace_id=(workspace_id)
|
|
243
|
+
if workspace_id.nil?
|
|
244
|
+
fail ArgumentError, 'workspace_id cannot be nil'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
@workspace_id = workspace_id
|
|
248
|
+
end
|
|
249
|
+
|
|
224
250
|
# Custom attribute writer method with validation
|
|
225
251
|
# @param [Object] signal_tracker_id Value to be assigned
|
|
226
252
|
def signal_tracker_id=(signal_tracker_id)
|
|
@@ -277,6 +303,7 @@ module PlainRouter::OpenAPI
|
|
|
277
303
|
return true if self.equal?(o)
|
|
278
304
|
self.class == o.class &&
|
|
279
305
|
id == o.id &&
|
|
306
|
+
workspace_id == o.workspace_id &&
|
|
280
307
|
signal_tracker_id == o.signal_tracker_id &&
|
|
281
308
|
destination_id == o.destination_id &&
|
|
282
309
|
score == o.score &&
|
|
@@ -297,7 +324,7 @@ module PlainRouter::OpenAPI
|
|
|
297
324
|
# Calculates hash code according to all attributes.
|
|
298
325
|
# @return [Integer] Hash code
|
|
299
326
|
def hash
|
|
300
|
-
[id, signal_tracker_id, destination_id, score, week_over_week_change, alerted, platform_response, measured_at, created_at, updated_at].hash
|
|
327
|
+
[id, workspace_id, signal_tracker_id, destination_id, score, week_over_week_change, alerted, platform_response, measured_at, created_at, updated_at].hash
|
|
301
328
|
end
|
|
302
329
|
|
|
303
330
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Plainrouter Conversion API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Plainrouter public Signals Conversion API.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.5.0
|
|
7
7
|
|
|
@@ -17,8 +17,6 @@ module PlainRouter::OpenAPI
|
|
|
17
17
|
class Event < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
attr_accessor :signal_tracker_id
|
|
21
|
-
|
|
22
20
|
attr_accessor :parent_event_id
|
|
23
21
|
|
|
24
22
|
attr_accessor :event_name
|
|
@@ -51,6 +49,8 @@ module PlainRouter::OpenAPI
|
|
|
51
49
|
|
|
52
50
|
attr_accessor :traffic_class
|
|
53
51
|
|
|
52
|
+
attr_accessor :workspace_id
|
|
53
|
+
|
|
54
54
|
attr_accessor :consent
|
|
55
55
|
|
|
56
56
|
attr_accessor :user_data_hashed
|
|
@@ -65,6 +65,10 @@ module PlainRouter::OpenAPI
|
|
|
65
65
|
|
|
66
66
|
attr_accessor :payload_expired
|
|
67
67
|
|
|
68
|
+
attr_accessor :consent_source
|
|
69
|
+
|
|
70
|
+
attr_accessor :consent_ui_version
|
|
71
|
+
|
|
68
72
|
attr_accessor :deliveries
|
|
69
73
|
|
|
70
74
|
class EnumAttributeValidator
|
|
@@ -93,7 +97,6 @@ module PlainRouter::OpenAPI
|
|
|
93
97
|
def self.attribute_map
|
|
94
98
|
{
|
|
95
99
|
:'id' => :'id',
|
|
96
|
-
:'signal_tracker_id' => :'signal_tracker_id',
|
|
97
100
|
:'parent_event_id' => :'parent_event_id',
|
|
98
101
|
:'event_name' => :'event_name',
|
|
99
102
|
:'event_time' => :'event_time',
|
|
@@ -110,6 +113,7 @@ module PlainRouter::OpenAPI
|
|
|
110
113
|
:'consent_normalization_version' => :'consent_normalization_version',
|
|
111
114
|
:'policy_class' => :'policy_class',
|
|
112
115
|
:'traffic_class' => :'traffic_class',
|
|
116
|
+
:'workspace_id' => :'workspace_id',
|
|
113
117
|
:'consent' => :'consent',
|
|
114
118
|
:'user_data_hashed' => :'user_data_hashed',
|
|
115
119
|
:'click_ids' => :'click_ids',
|
|
@@ -117,6 +121,8 @@ module PlainRouter::OpenAPI
|
|
|
117
121
|
:'value_data' => :'value_data',
|
|
118
122
|
:'event_source' => :'event_source',
|
|
119
123
|
:'payload_expired' => :'payload_expired',
|
|
124
|
+
:'consent_source' => :'consent_source',
|
|
125
|
+
:'consent_ui_version' => :'consent_ui_version',
|
|
120
126
|
:'deliveries' => :'deliveries'
|
|
121
127
|
}
|
|
122
128
|
end
|
|
@@ -135,7 +141,6 @@ module PlainRouter::OpenAPI
|
|
|
135
141
|
def self.openapi_types
|
|
136
142
|
{
|
|
137
143
|
:'id' => :'String',
|
|
138
|
-
:'signal_tracker_id' => :'String',
|
|
139
144
|
:'parent_event_id' => :'String',
|
|
140
145
|
:'event_name' => :'String',
|
|
141
146
|
:'event_time' => :'Time',
|
|
@@ -152,13 +157,16 @@ module PlainRouter::OpenAPI
|
|
|
152
157
|
:'consent_normalization_version' => :'String',
|
|
153
158
|
:'policy_class' => :'JurisdictionPolicyClass',
|
|
154
159
|
:'traffic_class' => :'TrafficClass',
|
|
160
|
+
:'workspace_id' => :'Integer',
|
|
155
161
|
:'consent' => :'String',
|
|
156
|
-
:'user_data_hashed' => :'
|
|
162
|
+
:'user_data_hashed' => :'GetEvent200ResponseEventUserDataHashed',
|
|
157
163
|
:'click_ids' => :'String',
|
|
158
164
|
:'session' => :'String',
|
|
159
165
|
:'value_data' => :'String',
|
|
160
166
|
:'event_source' => :'String',
|
|
161
167
|
:'payload_expired' => :'Boolean',
|
|
168
|
+
:'consent_source' => :'String',
|
|
169
|
+
:'consent_ui_version' => :'Integer',
|
|
162
170
|
:'deliveries' => :'Array<Object>'
|
|
163
171
|
}
|
|
164
172
|
end
|
|
@@ -170,6 +178,7 @@ module PlainRouter::OpenAPI
|
|
|
170
178
|
:'order_id',
|
|
171
179
|
:'value_amount',
|
|
172
180
|
:'value_currency',
|
|
181
|
+
:'user_data_hashed',
|
|
173
182
|
])
|
|
174
183
|
end
|
|
175
184
|
|
|
@@ -195,12 +204,6 @@ module PlainRouter::OpenAPI
|
|
|
195
204
|
self.id = nil
|
|
196
205
|
end
|
|
197
206
|
|
|
198
|
-
if attributes.key?(:'signal_tracker_id')
|
|
199
|
-
self.signal_tracker_id = attributes[:'signal_tracker_id']
|
|
200
|
-
else
|
|
201
|
-
self.signal_tracker_id = nil
|
|
202
|
-
end
|
|
203
|
-
|
|
204
207
|
if attributes.key?(:'parent_event_id')
|
|
205
208
|
self.parent_event_id = attributes[:'parent_event_id']
|
|
206
209
|
else
|
|
@@ -297,6 +300,12 @@ module PlainRouter::OpenAPI
|
|
|
297
300
|
self.traffic_class = nil
|
|
298
301
|
end
|
|
299
302
|
|
|
303
|
+
if attributes.key?(:'workspace_id')
|
|
304
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
305
|
+
else
|
|
306
|
+
self.workspace_id = nil
|
|
307
|
+
end
|
|
308
|
+
|
|
300
309
|
if attributes.key?(:'consent')
|
|
301
310
|
self.consent = attributes[:'consent']
|
|
302
311
|
else
|
|
@@ -339,6 +348,14 @@ module PlainRouter::OpenAPI
|
|
|
339
348
|
self.payload_expired = nil
|
|
340
349
|
end
|
|
341
350
|
|
|
351
|
+
if attributes.key?(:'consent_source')
|
|
352
|
+
self.consent_source = attributes[:'consent_source']
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
if attributes.key?(:'consent_ui_version')
|
|
356
|
+
self.consent_ui_version = attributes[:'consent_ui_version']
|
|
357
|
+
end
|
|
358
|
+
|
|
342
359
|
if attributes.key?(:'deliveries')
|
|
343
360
|
if (value = attributes[:'deliveries']).is_a?(Array)
|
|
344
361
|
self.deliveries = value
|
|
@@ -357,10 +374,6 @@ module PlainRouter::OpenAPI
|
|
|
357
374
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
358
375
|
end
|
|
359
376
|
|
|
360
|
-
if @signal_tracker_id.nil?
|
|
361
|
-
invalid_properties.push('invalid value for "signal_tracker_id", signal_tracker_id cannot be nil.')
|
|
362
|
-
end
|
|
363
|
-
|
|
364
377
|
if @event_name.nil?
|
|
365
378
|
invalid_properties.push('invalid value for "event_name", event_name cannot be nil.')
|
|
366
379
|
end
|
|
@@ -409,12 +422,12 @@ module PlainRouter::OpenAPI
|
|
|
409
422
|
invalid_properties.push('invalid value for "traffic_class", traffic_class cannot be nil.')
|
|
410
423
|
end
|
|
411
424
|
|
|
412
|
-
if @
|
|
413
|
-
invalid_properties.push('invalid value for "
|
|
425
|
+
if @workspace_id.nil?
|
|
426
|
+
invalid_properties.push('invalid value for "workspace_id", workspace_id cannot be nil.')
|
|
414
427
|
end
|
|
415
428
|
|
|
416
|
-
if @
|
|
417
|
-
invalid_properties.push('invalid value for "
|
|
429
|
+
if @consent.nil?
|
|
430
|
+
invalid_properties.push('invalid value for "consent", consent cannot be nil.')
|
|
418
431
|
end
|
|
419
432
|
|
|
420
433
|
if @click_ids.nil?
|
|
@@ -437,6 +450,14 @@ module PlainRouter::OpenAPI
|
|
|
437
450
|
invalid_properties.push('invalid value for "payload_expired", payload_expired cannot be nil.')
|
|
438
451
|
end
|
|
439
452
|
|
|
453
|
+
if !@consent_ui_version.nil? && @consent_ui_version > 999999
|
|
454
|
+
invalid_properties.push('invalid value for "consent_ui_version", must be smaller than or equal to 999999.')
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
if !@consent_ui_version.nil? && @consent_ui_version < 1
|
|
458
|
+
invalid_properties.push('invalid value for "consent_ui_version", must be greater than or equal to 1.')
|
|
459
|
+
end
|
|
460
|
+
|
|
440
461
|
if @deliveries.nil?
|
|
441
462
|
invalid_properties.push('invalid value for "deliveries", deliveries cannot be nil.')
|
|
442
463
|
end
|
|
@@ -449,7 +470,6 @@ module PlainRouter::OpenAPI
|
|
|
449
470
|
def valid?
|
|
450
471
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
451
472
|
return false if @id.nil?
|
|
452
|
-
return false if @signal_tracker_id.nil?
|
|
453
473
|
return false if @event_name.nil?
|
|
454
474
|
return false if @event_time.nil?
|
|
455
475
|
return false if @action_source.nil?
|
|
@@ -462,13 +482,17 @@ module PlainRouter::OpenAPI
|
|
|
462
482
|
return false if @consent_normalization_version.nil?
|
|
463
483
|
return false if @policy_class.nil?
|
|
464
484
|
return false if @traffic_class.nil?
|
|
485
|
+
return false if @workspace_id.nil?
|
|
465
486
|
return false if @consent.nil?
|
|
466
|
-
return false if @user_data_hashed.nil?
|
|
467
487
|
return false if @click_ids.nil?
|
|
468
488
|
return false if @session.nil?
|
|
469
489
|
return false if @value_data.nil?
|
|
470
490
|
return false if @event_source.nil?
|
|
471
491
|
return false if @payload_expired.nil?
|
|
492
|
+
consent_source_validator = EnumAttributeValidator.new('String', ["explicit", "tcf", "consent_mode", "plainrouter", "cmp:cookiebot", "cmp:usercentrics", "cmp:cookieyes", "cmp:consentstack", "cmp:iubenda"])
|
|
493
|
+
return false unless consent_source_validator.valid?(@consent_source)
|
|
494
|
+
return false if !@consent_ui_version.nil? && @consent_ui_version > 999999
|
|
495
|
+
return false if !@consent_ui_version.nil? && @consent_ui_version < 1
|
|
472
496
|
return false if @deliveries.nil?
|
|
473
497
|
true
|
|
474
498
|
end
|
|
@@ -483,16 +507,6 @@ module PlainRouter::OpenAPI
|
|
|
483
507
|
@id = id
|
|
484
508
|
end
|
|
485
509
|
|
|
486
|
-
# Custom attribute writer method with validation
|
|
487
|
-
# @param [Object] signal_tracker_id Value to be assigned
|
|
488
|
-
def signal_tracker_id=(signal_tracker_id)
|
|
489
|
-
if signal_tracker_id.nil?
|
|
490
|
-
fail ArgumentError, 'signal_tracker_id cannot be nil'
|
|
491
|
-
end
|
|
492
|
-
|
|
493
|
-
@signal_tracker_id = signal_tracker_id
|
|
494
|
-
end
|
|
495
|
-
|
|
496
510
|
# Custom attribute writer method with validation
|
|
497
511
|
# @param [Object] event_name Value to be assigned
|
|
498
512
|
def event_name=(event_name)
|
|
@@ -614,23 +628,23 @@ module PlainRouter::OpenAPI
|
|
|
614
628
|
end
|
|
615
629
|
|
|
616
630
|
# Custom attribute writer method with validation
|
|
617
|
-
# @param [Object]
|
|
618
|
-
def
|
|
619
|
-
if
|
|
620
|
-
fail ArgumentError, '
|
|
631
|
+
# @param [Object] workspace_id Value to be assigned
|
|
632
|
+
def workspace_id=(workspace_id)
|
|
633
|
+
if workspace_id.nil?
|
|
634
|
+
fail ArgumentError, 'workspace_id cannot be nil'
|
|
621
635
|
end
|
|
622
636
|
|
|
623
|
-
@
|
|
637
|
+
@workspace_id = workspace_id
|
|
624
638
|
end
|
|
625
639
|
|
|
626
640
|
# Custom attribute writer method with validation
|
|
627
|
-
# @param [Object]
|
|
628
|
-
def
|
|
629
|
-
if
|
|
630
|
-
fail ArgumentError, '
|
|
641
|
+
# @param [Object] consent Value to be assigned
|
|
642
|
+
def consent=(consent)
|
|
643
|
+
if consent.nil?
|
|
644
|
+
fail ArgumentError, 'consent cannot be nil'
|
|
631
645
|
end
|
|
632
646
|
|
|
633
|
-
@
|
|
647
|
+
@consent = consent
|
|
634
648
|
end
|
|
635
649
|
|
|
636
650
|
# Custom attribute writer method with validation
|
|
@@ -683,6 +697,34 @@ module PlainRouter::OpenAPI
|
|
|
683
697
|
@payload_expired = payload_expired
|
|
684
698
|
end
|
|
685
699
|
|
|
700
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
701
|
+
# @param [Object] consent_source Object to be assigned
|
|
702
|
+
def consent_source=(consent_source)
|
|
703
|
+
validator = EnumAttributeValidator.new('String', ["explicit", "tcf", "consent_mode", "plainrouter", "cmp:cookiebot", "cmp:usercentrics", "cmp:cookieyes", "cmp:consentstack", "cmp:iubenda"])
|
|
704
|
+
unless validator.valid?(consent_source)
|
|
705
|
+
fail ArgumentError, "invalid value for \"consent_source\", must be one of #{validator.allowable_values}."
|
|
706
|
+
end
|
|
707
|
+
@consent_source = consent_source
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# Custom attribute writer method with validation
|
|
711
|
+
# @param [Object] consent_ui_version Value to be assigned
|
|
712
|
+
def consent_ui_version=(consent_ui_version)
|
|
713
|
+
if consent_ui_version.nil?
|
|
714
|
+
fail ArgumentError, 'consent_ui_version cannot be nil'
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
if consent_ui_version > 999999
|
|
718
|
+
fail ArgumentError, 'invalid value for "consent_ui_version", must be smaller than or equal to 999999.'
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
if consent_ui_version < 1
|
|
722
|
+
fail ArgumentError, 'invalid value for "consent_ui_version", must be greater than or equal to 1.'
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
@consent_ui_version = consent_ui_version
|
|
726
|
+
end
|
|
727
|
+
|
|
686
728
|
# Custom attribute writer method with validation
|
|
687
729
|
# @param [Object] deliveries Value to be assigned
|
|
688
730
|
def deliveries=(deliveries)
|
|
@@ -699,7 +741,6 @@ module PlainRouter::OpenAPI
|
|
|
699
741
|
return true if self.equal?(o)
|
|
700
742
|
self.class == o.class &&
|
|
701
743
|
id == o.id &&
|
|
702
|
-
signal_tracker_id == o.signal_tracker_id &&
|
|
703
744
|
parent_event_id == o.parent_event_id &&
|
|
704
745
|
event_name == o.event_name &&
|
|
705
746
|
event_time == o.event_time &&
|
|
@@ -716,6 +757,7 @@ module PlainRouter::OpenAPI
|
|
|
716
757
|
consent_normalization_version == o.consent_normalization_version &&
|
|
717
758
|
policy_class == o.policy_class &&
|
|
718
759
|
traffic_class == o.traffic_class &&
|
|
760
|
+
workspace_id == o.workspace_id &&
|
|
719
761
|
consent == o.consent &&
|
|
720
762
|
user_data_hashed == o.user_data_hashed &&
|
|
721
763
|
click_ids == o.click_ids &&
|
|
@@ -723,6 +765,8 @@ module PlainRouter::OpenAPI
|
|
|
723
765
|
value_data == o.value_data &&
|
|
724
766
|
event_source == o.event_source &&
|
|
725
767
|
payload_expired == o.payload_expired &&
|
|
768
|
+
consent_source == o.consent_source &&
|
|
769
|
+
consent_ui_version == o.consent_ui_version &&
|
|
726
770
|
deliveries == o.deliveries
|
|
727
771
|
end
|
|
728
772
|
|
|
@@ -735,7 +779,7 @@ module PlainRouter::OpenAPI
|
|
|
735
779
|
# Calculates hash code according to all attributes.
|
|
736
780
|
# @return [Integer] Hash code
|
|
737
781
|
def hash
|
|
738
|
-
[id,
|
|
782
|
+
[id, parent_event_id, event_name, event_time, action_source, event_class, order_id, value_amount, value_currency, created_at, consent_basis, measurement_class, attribution_join, enforcement_scope, consent_normalization_version, policy_class, traffic_class, workspace_id, consent, user_data_hashed, click_ids, session, value_data, event_source, payload_expired, consent_source, consent_ui_version, deliveries].hash
|
|
739
783
|
end
|
|
740
784
|
|
|
741
785
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Plainrouter Conversion API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Plainrouter public Signals Conversion API.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 0.5.0
|
|
7
7
|
|
|
@@ -17,6 +17,9 @@ module PlainRouter::OpenAPI
|
|
|
17
17
|
class GetEmqReport200ResponseSnapshotsInner < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
attr_accessor :workspace_id
|
|
21
|
+
|
|
22
|
+
# Deprecated alias of workspace_id; contains the workspace ID in decimal string form.
|
|
20
23
|
attr_accessor :signal_tracker_id
|
|
21
24
|
|
|
22
25
|
attr_accessor :destination_id
|
|
@@ -39,6 +42,7 @@ module PlainRouter::OpenAPI
|
|
|
39
42
|
def self.attribute_map
|
|
40
43
|
{
|
|
41
44
|
:'id' => :'id',
|
|
45
|
+
:'workspace_id' => :'workspace_id',
|
|
42
46
|
:'signal_tracker_id' => :'signal_tracker_id',
|
|
43
47
|
:'destination_id' => :'destination_id',
|
|
44
48
|
:'score' => :'score',
|
|
@@ -65,6 +69,7 @@ module PlainRouter::OpenAPI
|
|
|
65
69
|
def self.openapi_types
|
|
66
70
|
{
|
|
67
71
|
:'id' => :'Integer',
|
|
72
|
+
:'workspace_id' => :'Integer',
|
|
68
73
|
:'signal_tracker_id' => :'String',
|
|
69
74
|
:'destination_id' => :'String',
|
|
70
75
|
:'score' => :'Float',
|
|
@@ -109,6 +114,12 @@ module PlainRouter::OpenAPI
|
|
|
109
114
|
self.id = nil
|
|
110
115
|
end
|
|
111
116
|
|
|
117
|
+
if attributes.key?(:'workspace_id')
|
|
118
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
119
|
+
else
|
|
120
|
+
self.workspace_id = nil
|
|
121
|
+
end
|
|
122
|
+
|
|
112
123
|
if attributes.key?(:'signal_tracker_id')
|
|
113
124
|
self.signal_tracker_id = attributes[:'signal_tracker_id']
|
|
114
125
|
else
|
|
@@ -173,6 +184,10 @@ module PlainRouter::OpenAPI
|
|
|
173
184
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
174
185
|
end
|
|
175
186
|
|
|
187
|
+
if @workspace_id.nil?
|
|
188
|
+
invalid_properties.push('invalid value for "workspace_id", workspace_id cannot be nil.')
|
|
189
|
+
end
|
|
190
|
+
|
|
176
191
|
if @signal_tracker_id.nil?
|
|
177
192
|
invalid_properties.push('invalid value for "signal_tracker_id", signal_tracker_id cannot be nil.')
|
|
178
193
|
end
|
|
@@ -201,6 +216,7 @@ module PlainRouter::OpenAPI
|
|
|
201
216
|
def valid?
|
|
202
217
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
203
218
|
return false if @id.nil?
|
|
219
|
+
return false if @workspace_id.nil?
|
|
204
220
|
return false if @signal_tracker_id.nil?
|
|
205
221
|
return false if @destination_id.nil?
|
|
206
222
|
return false if @score.nil?
|
|
@@ -219,6 +235,16 @@ module PlainRouter::OpenAPI
|
|
|
219
235
|
@id = id
|
|
220
236
|
end
|
|
221
237
|
|
|
238
|
+
# Custom attribute writer method with validation
|
|
239
|
+
# @param [Object] workspace_id Value to be assigned
|
|
240
|
+
def workspace_id=(workspace_id)
|
|
241
|
+
if workspace_id.nil?
|
|
242
|
+
fail ArgumentError, 'workspace_id cannot be nil'
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
@workspace_id = workspace_id
|
|
246
|
+
end
|
|
247
|
+
|
|
222
248
|
# Custom attribute writer method with validation
|
|
223
249
|
# @param [Object] signal_tracker_id Value to be assigned
|
|
224
250
|
def signal_tracker_id=(signal_tracker_id)
|
|
@@ -275,6 +301,7 @@ module PlainRouter::OpenAPI
|
|
|
275
301
|
return true if self.equal?(o)
|
|
276
302
|
self.class == o.class &&
|
|
277
303
|
id == o.id &&
|
|
304
|
+
workspace_id == o.workspace_id &&
|
|
278
305
|
signal_tracker_id == o.signal_tracker_id &&
|
|
279
306
|
destination_id == o.destination_id &&
|
|
280
307
|
score == o.score &&
|
|
@@ -295,7 +322,7 @@ module PlainRouter::OpenAPI
|
|
|
295
322
|
# Calculates hash code according to all attributes.
|
|
296
323
|
# @return [Integer] Hash code
|
|
297
324
|
def hash
|
|
298
|
-
[id, signal_tracker_id, destination_id, score, week_over_week_change, alerted, platform_response, measured_at, created_at, updated_at].hash
|
|
325
|
+
[id, workspace_id, signal_tracker_id, destination_id, score, week_over_week_change, alerted, platform_response, measured_at, created_at, updated_at].hash
|
|
299
326
|
end
|
|
300
327
|
|
|
301
328
|
# Builds the object from hash
|