plainrouter-sdk 0.1.1 → 0.5.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 +11 -4
- data/lib/plainrouter/client.rb +75 -2
- 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/ad_test_api_api.rb +259 -0
- data/lib/plainrouter/openapi/api/cookie_declaration_api.rb +90 -0
- data/lib/plainrouter/openapi/api/creative_api.rb +181 -0
- data/lib/plainrouter/openapi/api/deployment_plan_api.rb +306 -0
- data/lib/plainrouter/openapi/api/event_api.rb +15 -15
- data/lib/plainrouter/openapi/api/meta_inventory_exposure_api.rb +121 -0
- 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 +52 -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 +306 -0
- data/lib/plainrouter/openapi/models/action_current_disposition_outcome_payload.rb +238 -0
- data/lib/plainrouter/openapi/models/action_current_disposition_outcome_payload_baseline.rb +103 -0
- data/lib/plainrouter/openapi/models/action_current_disposition_outcome_payload_baseline_any_of.rb +245 -0
- data/lib/plainrouter/openapi/models/action_current_disposition_outcome_payload_inverse.rb +206 -0
- data/lib/plainrouter/openapi/models/action_current_disposition_outcome_payload_metrics.rb +103 -0
- data/lib/plainrouter/openapi/models/action_current_disposition_outcome_payload_metrics_any_of.rb +276 -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 +278 -0
- data/lib/plainrouter/openapi/models/action_policy_result.rb +374 -0
- data/lib/plainrouter/openapi/models/action_proposal_input.rb +406 -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 +574 -0
- data/lib/plainrouter/openapi/models/action_read_item_evidence.rb +105 -0
- data/lib/plainrouter/openapi/models/action_read_item_evidence_any_of.rb +190 -0
- data/lib/plainrouter/openapi/models/action_read_item_evidence_any_of1.rb +242 -0
- data/lib/plainrouter/openapi/models/action_read_item_evidence_any_of2.rb +217 -0
- data/lib/plainrouter/openapi/models/action_read_item_evidence_any_of_outcome.rb +238 -0
- data/lib/plainrouter/openapi/models/action_read_item_proposer.rb +198 -0
- data/lib/plainrouter/openapi/models/actions_api_dry_run401_response.rb +103 -0
- data/lib/plainrouter/openapi/models/actions_tests_api_index404_response.rb +103 -0
- data/lib/plainrouter/openapi/models/actions_tests_api_store_request.rb +467 -0
- data/lib/plainrouter/openapi/models/actions_tests_api_store_request_maximum_spend_minor.rb +104 -0
- data/lib/plainrouter/openapi/models/ad_test.rb +552 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read.rb +164 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test.rb +675 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_members_inner.rb +232 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_pause_proposals_inner.rb +286 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_verdict.rb +336 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_verdict_daily_facts_inner.rb +374 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_verdict_halt_details.rb +285 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_verdict_halt_details_baseline.rb +190 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_verdict_halt_details_observed_destinations_inner.rb +216 -0
- data/lib/plainrouter/openapi/models/ad_test_create_read_test_verdict_members_inner.rb +349 -0
- data/lib/plainrouter/openapi/models/ad_test_daily_fact_read.rb +374 -0
- data/lib/plainrouter/openapi/models/ad_test_event_choice.rb +190 -0
- data/lib/plainrouter/openapi/models/ad_test_list_read.rb +218 -0
- data/lib/plainrouter/openapi/models/ad_test_list_read_observed_conversion_events_inner.rb +190 -0
- data/lib/plainrouter/openapi/models/ad_test_list_read_tests.rb +396 -0
- data/lib/plainrouter/openapi/models/ad_test_read.rb +675 -0
- data/lib/plainrouter/openapi/models/ad_test_show_read.rb +164 -0
- data/lib/plainrouter/openapi/models/ad_test_verdict_member_read.rb +349 -0
- data/lib/plainrouter/openapi/models/ad_test_verdict_read.rb +336 -0
- data/lib/plainrouter/openapi/models/agent_credential_error.rb +214 -0
- data/lib/plainrouter/openapi/models/api_route_not_found.rb +216 -0
- data/lib/plainrouter/openapi/models/api_route_not_found_error.rb +240 -0
- data/lib/plainrouter/openapi/models/api_route_not_found_request.rb +190 -0
- data/lib/plainrouter/openapi/models/api_route_not_found_resources.rb +190 -0
- data/lib/plainrouter/openapi/models/cookie_declaration.rb +177 -0
- data/lib/plainrouter/openapi/models/cookie_declaration_categories.rb +268 -0
- data/lib/plainrouter/openapi/models/cookie_declaration_categories_necessary.rb +194 -0
- data/lib/plainrouter/openapi/models/cookie_declaration_item.rb +280 -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 +3 -3
- data/lib/plainrouter/openapi/models/create_event_request_any_of1.rb +3 -3
- 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/creative_intake_read.rb +164 -0
- data/lib/plainrouter/openapi/models/creative_intake_read_creative.rb +451 -0
- data/lib/plainrouter/openapi/models/creative_intake_read_creative_tags.rb +104 -0
- data/lib/plainrouter/openapi/models/creative_intake_rejected.rb +164 -0
- data/lib/plainrouter/openapi/models/creative_intake_rejected_error.rb +190 -0
- data/lib/plainrouter/openapi/models/creative_intake_tags.rb +257 -0
- 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/deployment_plan.rb +593 -0
- data/lib/plainrouter/openapi/models/deployment_plan_read.rb +268 -0
- data/lib/plainrouter/openapi/models/deployment_plan_read_copy.rb +266 -0
- data/lib/plainrouter/openapi/models/deployment_plan_read_creatives_inner.rb +320 -0
- data/lib/plainrouter/openapi/models/deployment_plan_read_creatives_inner_copy.rb +267 -0
- 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 +4 -3
- 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/execute_deployment_plan_request.rb +200 -0
- data/lib/plainrouter/openapi/models/get_cookie_declaration404_response.rb +103 -0
- 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_inventory_metrics200_response.rb +324 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_account.rb +264 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_changes_inner.rb +304 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_effective_range.rb +190 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_metrics_inner.rb +492 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_object_metrics_inner.rb +304 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_object_metrics_inner_meta.rb +268 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_staleness.rb +200 -0
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response_sync.rb +186 -0
- 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 +40 -0
- data/lib/plainrouter/openapi/models/jurisdiction_policy_class.rb +2 -2
- data/lib/plainrouter/openapi/models/launch_intent_read.rb +164 -0
- data/lib/plainrouter/openapi/models/launch_intent_read_intent.rb +330 -0
- data/lib/plainrouter/openapi/models/launch_intent_read_intent_actions_inner.rb +238 -0
- data/lib/plainrouter/openapi/models/launch_intent_status.rb +46 -0
- data/lib/plainrouter/openapi/models/launch_plans_copy403_response.rb +103 -0
- data/lib/plainrouter/openapi/models/launch_plans_copy404_response.rb +103 -0
- data/lib/plainrouter/openapi/models/launch_plans_execute422_response.rb +103 -0
- data/lib/plainrouter/openapi/models/launch_plans_index200_response.rb +164 -0
- data/lib/plainrouter/openapi/models/launch_plans_index200_response_plans.rb +244 -0
- data/lib/plainrouter/openapi/models/launch_plans_show200_response.rb +164 -0
- 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/plan_copy_forbidden.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_copy_forbidden_error.rb +214 -0
- data/lib/plainrouter/openapi/models/plan_copy_not_found.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_copy_not_found_error.rb +214 -0
- data/lib/plainrouter/openapi/models/plan_copy_read.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_copy_read_plan.rb +347 -0
- data/lib/plainrouter/openapi/models/plan_copy_rejected.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_copy_rejected_error.rb +214 -0
- data/lib/plainrouter/openapi/models/plan_execute_conflict.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_execute_conflict_error.rb +214 -0
- data/lib/plainrouter/openapi/models/plan_execute_rejected.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_execute_rejected_error.rb +214 -0
- data/lib/plainrouter/openapi/models/proposal_replay_conflict.rb +214 -0
- data/lib/plainrouter/openapi/models/proposal_replay_conflict_errors.rb +178 -0
- 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/store_creative403_response.rb +103 -0
- data/lib/plainrouter/openapi/models/store_creative413_response.rb +103 -0
- data/lib/plainrouter/openapi/models/store_creative422_response.rb +103 -0
- data/lib/plainrouter/openapi/models/store_creative_from_url_request.rb +208 -0
- data/lib/plainrouter/openapi/models/store_creative_from_url_request_tags.rb +257 -0
- data/lib/plainrouter/openapi/models/store_creative_request.rb +219 -0
- data/lib/plainrouter/openapi/models/store_creative_request_tags.rb +257 -0
- 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/models/workspace_lock_timeout.rb +164 -0
- data/lib/plainrouter/openapi/models/workspace_lock_timeout_error.rb +214 -0
- data/lib/plainrouter/openapi/version.rb +3 -3
- data/lib/plainrouter/openapi.rb +164 -4
- data/lib/plainrouter/version.rb +1 -1
- metadata +167 -7
|
@@ -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,9 +16,10 @@ require 'time'
|
|
|
16
16
|
module PlainRouter::OpenAPI
|
|
17
17
|
class DestinationType
|
|
18
18
|
META = "meta".freeze
|
|
19
|
+
GOOGLE_ADS = "google_ads".freeze
|
|
19
20
|
|
|
20
21
|
def self.all_vars
|
|
21
|
-
@all_vars ||= [META].freeze
|
|
22
|
+
@all_vars ||= [META, GOOGLE_ADS].freeze
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
# 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
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Plainrouter Conversion API
|
|
3
|
+
|
|
4
|
+
#Plainrouter public Signals Conversion API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PlainRouter::OpenAPI
|
|
17
|
+
class ExecuteDeploymentPlanRequest < ApiModelBase
|
|
18
|
+
attr_accessor :review_version
|
|
19
|
+
|
|
20
|
+
attr_accessor :intent_key
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'review_version' => :'review_version',
|
|
26
|
+
:'intent_key' => :'intent_key'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'review_version' => :'String',
|
|
44
|
+
:'intent_key' => :'String'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
:'intent_key'
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ExecuteDeploymentPlanRequest` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PlainRouter::OpenAPI::ExecuteDeploymentPlanRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
67
|
+
end
|
|
68
|
+
h[k.to_sym] = v
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'review_version')
|
|
72
|
+
self.review_version = attributes[:'review_version']
|
|
73
|
+
else
|
|
74
|
+
self.review_version = nil
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'intent_key')
|
|
78
|
+
self.intent_key = attributes[:'intent_key']
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
83
|
+
# @return Array for valid properties with the reasons
|
|
84
|
+
def list_invalid_properties
|
|
85
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
86
|
+
invalid_properties = Array.new
|
|
87
|
+
if @review_version.nil?
|
|
88
|
+
invalid_properties.push('invalid value for "review_version", review_version cannot be nil.')
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
pattern = Regexp.new(/^[a-f0-9]{64}$/)
|
|
92
|
+
if @review_version !~ pattern
|
|
93
|
+
invalid_properties.push("invalid value for \"review_version\", must conform to the pattern #{pattern}.")
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if !@intent_key.nil? && @intent_key.to_s.length > 240
|
|
97
|
+
invalid_properties.push('invalid value for "intent_key", the character length must be smaller than or equal to 240.')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
invalid_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Check to see if the all the properties in the model are valid
|
|
104
|
+
# @return true if the model is valid
|
|
105
|
+
def valid?
|
|
106
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
107
|
+
return false if @review_version.nil?
|
|
108
|
+
return false if @review_version !~ Regexp.new(/^[a-f0-9]{64}$/)
|
|
109
|
+
return false if !@intent_key.nil? && @intent_key.to_s.length > 240
|
|
110
|
+
true
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Custom attribute writer method with validation
|
|
114
|
+
# @param [Object] review_version Value to be assigned
|
|
115
|
+
def review_version=(review_version)
|
|
116
|
+
if review_version.nil?
|
|
117
|
+
fail ArgumentError, 'review_version cannot be nil'
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
pattern = Regexp.new(/^[a-f0-9]{64}$/)
|
|
121
|
+
if review_version !~ pattern
|
|
122
|
+
fail ArgumentError, "invalid value for \"review_version\", must conform to the pattern #{pattern}."
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
@review_version = review_version
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Custom attribute writer method with validation
|
|
129
|
+
# @param [Object] intent_key Value to be assigned
|
|
130
|
+
def intent_key=(intent_key)
|
|
131
|
+
if !intent_key.nil? && intent_key.to_s.length > 240
|
|
132
|
+
fail ArgumentError, 'invalid value for "intent_key", the character length must be smaller than or equal to 240.'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
@intent_key = intent_key
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Checks equality by comparing each attribute.
|
|
139
|
+
# @param [Object] Object to be compared
|
|
140
|
+
def ==(o)
|
|
141
|
+
return true if self.equal?(o)
|
|
142
|
+
self.class == o.class &&
|
|
143
|
+
review_version == o.review_version &&
|
|
144
|
+
intent_key == o.intent_key
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# @see the `==` method
|
|
148
|
+
# @param [Object] Object to be compared
|
|
149
|
+
def eql?(o)
|
|
150
|
+
self == o
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Calculates hash code according to all attributes.
|
|
154
|
+
# @return [Integer] Hash code
|
|
155
|
+
def hash
|
|
156
|
+
[review_version, intent_key].hash
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Builds the object from hash
|
|
160
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
161
|
+
# @return [Object] Returns the model itself
|
|
162
|
+
def self.build_from_hash(attributes)
|
|
163
|
+
return nil unless attributes.is_a?(Hash)
|
|
164
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
165
|
+
transformed_hash = {}
|
|
166
|
+
openapi_types.each_pair do |key, type|
|
|
167
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
168
|
+
transformed_hash["#{key}"] = nil
|
|
169
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
170
|
+
# check to ensure the input is an array given that the attribute
|
|
171
|
+
# is documented as an array but the input is not
|
|
172
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
173
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
174
|
+
end
|
|
175
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
176
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
new(transformed_hash)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the object in the form of hash
|
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
|
184
|
+
def to_hash
|
|
185
|
+
hash = {}
|
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
187
|
+
value = self.send(attr)
|
|
188
|
+
if value.nil?
|
|
189
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
190
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
hash[param] = _to_hash(value)
|
|
194
|
+
end
|
|
195
|
+
hash
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
end
|