plainrouter-sdk 0.2.0 → 0.6.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 +16 -2
- data/lib/plainrouter/client.rb +338 -3
- data/lib/plainrouter/closed_input_objects.json +3896 -0
- data/lib/plainrouter/closed_input_validator.rb +246 -0
- data/lib/plainrouter/integer_input_fields.json +579 -0
- data/lib/plainrouter/openapi/api/action_dry_run_api_api.rb +2 -2
- data/lib/plainrouter/openapi/api/action_proposal_api_api.rb +2 -2
- data/lib/plainrouter/openapi/api/action_read_api_api.rb +71 -31
- data/lib/plainrouter/openapi/api/action_rule_api_api.rb +350 -0
- data/lib/plainrouter/openapi/api/ad_test_api_api.rb +263 -0
- data/lib/plainrouter/openapi/api/agent_context_api.rb +93 -0
- data/lib/plainrouter/openapi/api/cookie_declaration_api.rb +90 -0
- data/lib/plainrouter/openapi/api/creative_api.rb +422 -0
- data/lib/plainrouter/openapi/api/deployment_plan_api.rb +561 -0
- data/lib/plainrouter/openapi/api/draft_batch_file_import_api.rb +142 -0
- data/lib/plainrouter/openapi/api/launch_policy_api.rb +242 -0
- data/lib/plainrouter/openapi/api/meta_inventory_exposure_api.rb +254 -0
- data/lib/plainrouter/openapi/api_client.rb +3 -0
- data/lib/plainrouter/openapi/api_model_base.rb +2 -0
- data/lib/plainrouter/openapi/configuration.rb +76 -0
- data/lib/plainrouter/openapi/models/action_batch_read_data.rb +42 -4
- data/lib/plainrouter/openapi/models/action_current_disposition.rb +13 -1
- 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_dry_run_read_dry_run.rb +42 -4
- data/lib/plainrouter/openapi/models/action_list_read_meta.rb +33 -4
- data/lib/plainrouter/openapi/models/action_policy_read_data.rb +3 -105
- data/lib/plainrouter/openapi/models/action_policy_result.rb +374 -0
- data/lib/plainrouter/openapi/models/action_proposal_input.rb +103 -4
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner.rb +1 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of1.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of10.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of10_params.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of11.rb +3 -1
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of12.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of12_params.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of13.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of13_params.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of2.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of3.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of4.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of4_target_entity.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of5.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of6.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of7.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of8.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of9.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of_params.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of_target_entity.rb +2 -0
- data/lib/plainrouter/openapi/models/action_proposal_input_evidence_inner.rb +4 -2
- data/lib/plainrouter/openapi/models/action_proposal_read_proposal.rb +42 -4
- data/lib/plainrouter/openapi/models/action_read_item.rb +72 -4
- data/lib/plainrouter/openapi/models/action_read_item_counted_evidence.rb +319 -0
- data/lib/plainrouter/openapi/models/action_read_item_counted_evidence_counted.rb +174 -0
- data/lib/plainrouter/openapi/models/action_read_item_counted_evidence_coverage.rb +162 -0
- data/lib/plainrouter/openapi/models/action_read_item_counted_evidence_meta_reported.rb +198 -0
- data/lib/plainrouter/openapi/models/action_read_item_counted_evidence_target.rb +190 -0
- data/lib/plainrouter/openapi/models/action_read_item_counted_evidence_window.rb +225 -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/action_receipt_unavailable.rb +164 -0
- data/lib/plainrouter/openapi/models/action_receipt_unavailable_error.rb +214 -0
- data/lib/plainrouter/openapi/models/action_rule_detail_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_rule_detail_read_rule.rb +402 -0
- data/lib/plainrouter/openapi/models/action_rule_detail_read_rule_current_revision.rb +388 -0
- data/lib/plainrouter/openapi/models/action_rule_detail_read_rule_runs_inner.rb +396 -0
- data/lib/plainrouter/openapi/models/action_rule_detail_read_rule_runs_inner_decisions_inner.rb +382 -0
- data/lib/plainrouter/openapi/models/action_rule_detail_read_rule_window.rb +242 -0
- data/lib/plainrouter/openapi/models/action_rule_write_read.rb +164 -0
- data/lib/plainrouter/openapi/models/action_rule_write_read_rule.rb +373 -0
- data/lib/plainrouter/openapi/models/actions_api_decision_receipt404_response.rb +103 -0
- data/lib/plainrouter/openapi/models/actions_api_dry_run401_response.rb +103 -0
- data/lib/plainrouter/openapi/models/actions_rules_index200_response.rb +164 -0
- data/lib/plainrouter/openapi/models/actions_rules_index200_response_rules.rb +196 -0
- data/lib/plainrouter/openapi/models/actions_rules_index200_response_rules_data_inner.rb +344 -0
- data/lib/plainrouter/openapi/models/actions_rules_index200_response_rules_data_inner_account.rb +157 -0
- data/lib/plainrouter/openapi/models/actions_rules_index200_response_rules_data_inner_counts.rb +156 -0
- data/lib/plainrouter/openapi/models/actions_rules_index403_response.rb +103 -0
- data/lib/plainrouter/openapi/models/actions_rules_index403_response_any_of.rb +214 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request.rb +317 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request_definition.rb +105 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request_definition_any_of.rb +317 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request_definition_any_of1.rb +361 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request_definition_any_of2.rb +361 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request_definition_any_of_cost_ratio.rb +104 -0
- data/lib/plainrouter/openapi/models/actions_rules_store_request_window.rb +103 -0
- data/lib/plainrouter/openapi/models/actions_rules_update_request.rb +267 -0
- data/lib/plainrouter/openapi/models/actions_rules_update_request_definition.rb +105 -0
- data/lib/plainrouter/openapi/models/actions_rules_update_request_definition_any_of.rb +317 -0
- data/lib/plainrouter/openapi/models/actions_rules_update_request_definition_any_of1.rb +361 -0
- data/lib/plainrouter/openapi/models/actions_rules_update_request_definition_any_of2.rb +361 -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_context200_response.rb +214 -0
- data/lib/plainrouter/openapi/models/agent_context200_response_agent.rb +268 -0
- data/lib/plainrouter/openapi/models/agent_context200_response_platform_ad_account.rb +292 -0
- data/lib/plainrouter/openapi/models/agent_context200_response_platform_ad_account_workspace.rb +190 -0
- data/lib/plainrouter/openapi/models/agent_context401_response.rb +103 -0
- data/lib/plainrouter/openapi/models/agent_context_auth_error.rb +190 -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_event202_response_warnings_inner.rb +2 -2
- data/lib/plainrouter/openapi/models/create_event_request_any_of.rb +1 -1
- data/lib/plainrouter/openapi/models/create_event_request_any_of1.rb +1 -1
- data/lib/plainrouter/openapi/models/creative_intake_read.rb +164 -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/creative_mcp_grant_operation.rb +44 -0
- data/lib/plainrouter/openapi/models/creative_mcp_preview.rb +283 -0
- data/lib/plainrouter/openapi/models/creative_mcp_refusal.rb +45 -0
- data/lib/plainrouter/openapi/models/creative_mcp_tool.rb +44 -0
- data/lib/plainrouter/openapi/models/delivery_status.rb +2 -1
- data/lib/plainrouter/openapi/models/deployment_plan_read.rb +306 -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 +73 -9
- data/lib/plainrouter/openapi/models/destination_config.rb +103 -0
- data/lib/plainrouter/openapi/models/destination_status.rb +2 -1
- data/lib/plainrouter/openapi/models/destination_type.rb +2 -1
- data/lib/plainrouter/openapi/models/draft_batch_mode.rb +41 -0
- data/lib/plainrouter/openapi/models/execute_deployment_plan_request.rb +200 -0
- data/lib/plainrouter/openapi/models/get_account_inventory200_response.rb +341 -0
- data/lib/plainrouter/openapi/models/get_account_inventory200_response_summary.rb +158 -0
- data/lib/plainrouter/openapi/models/get_account_inventory404_response.rb +188 -0
- data/lib/plainrouter/openapi/models/get_cookie_declaration404_response.rb +103 -0
- data/lib/plainrouter/openapi/models/get_event200_response_deliveries_inner.rb +25 -1
- data/lib/plainrouter/openapi/models/get_event200_response_event_deliveries_inner.rb +25 -1
- data/lib/plainrouter/openapi/models/get_inventory_metrics200_response.rb +345 -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/{action_proposal_input_actions_inner_any_of11_params.rb → get_inventory_metrics200_response_effective_range.rb} +41 -24
- 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_pagination_value.rb +202 -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/ingestion_warning_code.rb +2 -1
- data/lib/plainrouter/openapi/models/launch_creatives_index200_response.rb +164 -0
- data/lib/plainrouter/openapi/models/launch_creatives_index200_response_creatives.rb +196 -0
- data/lib/plainrouter/openapi/models/launch_creatives_index200_response_creatives_data_inner.rb +451 -0
- data/lib/plainrouter/openapi/models/launch_creatives_index200_response_creatives_data_inner_tags.rb +104 -0
- data/lib/plainrouter/openapi/models/launch_creatives_status200_response.rb +166 -0
- 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_copy422_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 +347 -0
- data/lib/plainrouter/openapi/models/launch_plans_index200_response_plans_next_page_arguments.rb +104 -0
- data/lib/plainrouter/openapi/models/launch_plans_index200_response_plans_next_page_arguments_any_of.rb +190 -0
- data/lib/plainrouter/openapi/models/launch_plans_index200_response_plans_next_page_arguments_any_of1.rb +190 -0
- data/lib/plainrouter/openapi/models/launch_plans_show200_response.rb +164 -0
- data/lib/plainrouter/openapi/models/launch_plans_store201_response.rb +166 -0
- data/lib/plainrouter/openapi/models/launch_plans_validate422_response.rb +103 -0
- data/lib/plainrouter/openapi/models/launch_policies_index200_response.rb +164 -0
- data/lib/plainrouter/openapi/models/launch_policies_index200_response_policies.rb +453 -0
- data/lib/plainrouter/openapi/models/{list_events200_response_events_links_inner.rb → launch_policies_index200_response_policies_links_inner.rb} +3 -3
- data/lib/plainrouter/openapi/models/launch_policies_store201_response.rb +166 -0
- data/lib/plainrouter/openapi/models/launch_policy.rb +346 -0
- data/lib/plainrouter/openapi/models/launcher_file_import403_response.rb +216 -0
- data/lib/plainrouter/openapi/models/launcher_file_import422_response.rb +103 -0
- data/lib/plainrouter/openapi/models/launcher_file_import422_response_any_of.rb +242 -0
- data/lib/plainrouter/openapi/models/launcher_file_import422_response_any_of_syntactic_row_failures_inner.rb +190 -0
- data/lib/plainrouter/openapi/models/list_events200_response_events.rb +1 -1
- 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/plan_validate_rejected.rb +164 -0
- data/lib/plainrouter/openapi/models/plan_validate_rejected_error.rb +191 -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/proposal_unavailable.rb +164 -0
- data/lib/plainrouter/openapi/models/proposal_unavailable_error.rb +214 -0
- data/lib/plainrouter/openapi/models/set_destination_test_mode200_response_destination.rb +67 -1
- 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/store_deployment_plan_request.rb +570 -0
- data/lib/plainrouter/openapi/models/store_deployment_plan_request_ad_set_spec.rb +220 -0
- data/lib/plainrouter/openapi/models/store_deployment_plan_request_copy.rb +266 -0
- data/lib/plainrouter/openapi/models/store_deployment_plan_request_creative_overrides_inner.rb +217 -0
- data/lib/plainrouter/openapi/models/store_launch_policy_request.rb +260 -0
- data/lib/plainrouter/openapi/models/update_creative_status_request.rb +188 -0
- data/lib/plainrouter/openapi/models/update_deployment_plan_request.rb +511 -0
- 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 +1 -1
- data/lib/plainrouter/openapi.rb +190 -2
- data/lib/plainrouter/proposal_errors.rb +31 -0
- data/lib/plainrouter/version.rb +1 -1
- data/lib/plainrouter.rb +1 -0
- metadata +196 -4
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf12` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -72,6 +72,7 @@ module PlainRouter::OpenAPI
|
|
|
72
72
|
# Initializes the object
|
|
73
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
74
|
def initialize(attributes = {})
|
|
75
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
75
76
|
if (!attributes.is_a?(Hash))
|
|
76
77
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf12Params` initialize method"
|
|
77
78
|
end
|
|
@@ -148,6 +149,7 @@ module PlainRouter::OpenAPI
|
|
|
148
149
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
149
150
|
# @return [Object] Returns the model itself
|
|
150
151
|
def self.build_from_hash(attributes)
|
|
152
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
151
153
|
return nil unless attributes.is_a?(Hash)
|
|
152
154
|
attributes = attributes.transform_keys(&:to_sym)
|
|
153
155
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf13` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -81,6 +81,7 @@ module PlainRouter::OpenAPI
|
|
|
81
81
|
# Initializes the object
|
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
83
|
def initialize(attributes = {})
|
|
84
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
84
85
|
if (!attributes.is_a?(Hash))
|
|
85
86
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf13Params` initialize method"
|
|
86
87
|
end
|
|
@@ -219,6 +220,7 @@ module PlainRouter::OpenAPI
|
|
|
219
220
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
220
221
|
# @return [Object] Returns the model itself
|
|
221
222
|
def self.build_from_hash(attributes)
|
|
223
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
222
224
|
return nil unless attributes.is_a?(Hash)
|
|
223
225
|
attributes = attributes.transform_keys(&:to_sym)
|
|
224
226
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf2` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf3` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf4` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of4_target_entity.rb
CHANGED
|
@@ -81,6 +81,7 @@ module PlainRouter::OpenAPI
|
|
|
81
81
|
# Initializes the object
|
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
83
|
def initialize(attributes = {})
|
|
84
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
84
85
|
if (!attributes.is_a?(Hash))
|
|
85
86
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf4TargetEntity` initialize method"
|
|
86
87
|
end
|
|
@@ -213,6 +214,7 @@ module PlainRouter::OpenAPI
|
|
|
213
214
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
214
215
|
# @return [Object] Returns the model itself
|
|
215
216
|
def self.build_from_hash(attributes)
|
|
217
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
216
218
|
return nil unless attributes.is_a?(Hash)
|
|
217
219
|
attributes = attributes.transform_keys(&:to_sym)
|
|
218
220
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf5` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf6` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf7` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf8` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -88,6 +88,7 @@ module PlainRouter::OpenAPI
|
|
|
88
88
|
# Initializes the object
|
|
89
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
90
|
def initialize(attributes = {})
|
|
91
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
91
92
|
if (!attributes.is_a?(Hash))
|
|
92
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOf9` initialize method"
|
|
93
94
|
end
|
|
@@ -263,6 +264,7 @@ module PlainRouter::OpenAPI
|
|
|
263
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
264
265
|
# @return [Object] Returns the model itself
|
|
265
266
|
def self.build_from_hash(attributes)
|
|
267
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
266
268
|
return nil unless attributes.is_a?(Hash)
|
|
267
269
|
attributes = attributes.transform_keys(&:to_sym)
|
|
268
270
|
transformed_hash = {}
|
|
@@ -50,6 +50,7 @@ module PlainRouter::OpenAPI
|
|
|
50
50
|
# Initializes the object
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
52
|
def initialize(attributes = {})
|
|
53
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
53
54
|
if (!attributes.is_a?(Hash))
|
|
54
55
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOfParams` initialize method"
|
|
55
56
|
end
|
|
@@ -133,6 +134,7 @@ module PlainRouter::OpenAPI
|
|
|
133
134
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
135
|
# @return [Object] Returns the model itself
|
|
135
136
|
def self.build_from_hash(attributes)
|
|
137
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
136
138
|
return nil unless attributes.is_a?(Hash)
|
|
137
139
|
attributes = attributes.transform_keys(&:to_sym)
|
|
138
140
|
transformed_hash = {}
|
data/lib/plainrouter/openapi/models/action_proposal_input_actions_inner_any_of_target_entity.rb
CHANGED
|
@@ -81,6 +81,7 @@ module PlainRouter::OpenAPI
|
|
|
81
81
|
# Initializes the object
|
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
83
|
def initialize(attributes = {})
|
|
84
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
84
85
|
if (!attributes.is_a?(Hash))
|
|
85
86
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputActionsInnerAnyOfTargetEntity` initialize method"
|
|
86
87
|
end
|
|
@@ -224,6 +225,7 @@ module PlainRouter::OpenAPI
|
|
|
224
225
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
225
226
|
# @return [Object] Returns the model itself
|
|
226
227
|
def self.build_from_hash(attributes)
|
|
228
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
227
229
|
return nil unless attributes.is_a?(Hash)
|
|
228
230
|
attributes = attributes.transform_keys(&:to_sym)
|
|
229
231
|
transformed_hash = {}
|
|
@@ -80,6 +80,7 @@ module PlainRouter::OpenAPI
|
|
|
80
80
|
# Initializes the object
|
|
81
81
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
82
82
|
def initialize(attributes = {})
|
|
83
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
83
84
|
if (!attributes.is_a?(Hash))
|
|
84
85
|
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::ActionProposalInputEvidenceInner` initialize method"
|
|
85
86
|
end
|
|
@@ -145,7 +146,7 @@ module PlainRouter::OpenAPI
|
|
|
145
146
|
def valid?
|
|
146
147
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
147
148
|
return false if @source_tool.nil?
|
|
148
|
-
source_tool_validator = EnumAttributeValidator.new('String', ["get_account_state", "get_signal_health", "get_performance", "get-creative-library", "staged-asset-manifest"])
|
|
149
|
+
source_tool_validator = EnumAttributeValidator.new('String', ["get_account_state", "get_signal_health", "get_performance", "get_inventory_metrics", "get-creative-library", "staged-asset-manifest"])
|
|
149
150
|
return false unless source_tool_validator.valid?(@source_tool)
|
|
150
151
|
return false if @fields_used.nil?
|
|
151
152
|
return false if @fields_used.length > 50
|
|
@@ -157,7 +158,7 @@ module PlainRouter::OpenAPI
|
|
|
157
158
|
# Custom attribute writer method checking allowed values (enum).
|
|
158
159
|
# @param [Object] source_tool Object to be assigned
|
|
159
160
|
def source_tool=(source_tool)
|
|
160
|
-
validator = EnumAttributeValidator.new('String', ["get_account_state", "get_signal_health", "get_performance", "get-creative-library", "staged-asset-manifest"])
|
|
161
|
+
validator = EnumAttributeValidator.new('String', ["get_account_state", "get_signal_health", "get_performance", "get_inventory_metrics", "get-creative-library", "staged-asset-manifest"])
|
|
161
162
|
unless validator.valid?(source_tool)
|
|
162
163
|
fail ArgumentError, "invalid value for \"source_tool\", must be one of #{validator.allowable_values}."
|
|
163
164
|
end
|
|
@@ -222,6 +223,7 @@ module PlainRouter::OpenAPI
|
|
|
222
223
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
223
224
|
# @return [Object] Returns the model itself
|
|
224
225
|
def self.build_from_hash(attributes)
|
|
226
|
+
ClosedInputValidator.validate_model!(self, attributes)
|
|
225
227
|
return nil unless attributes.is_a?(Hash)
|
|
226
228
|
attributes = attributes.transform_keys(&:to_sym)
|
|
227
229
|
transformed_hash = {}
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PlainRouter::OpenAPI
|
|
17
|
+
# Complete projection rows are paged within 80,000 JSON bytes, accounting for both MCP representations. Defaults are bounded. Follow next_cursor with the same scope and filters. One oversized row is explicitly refused; fields are never silently clipped.
|
|
17
18
|
class ActionProposalReadProposal < ApiModelBase
|
|
18
19
|
attr_accessor :id
|
|
19
20
|
|
|
@@ -39,6 +40,14 @@ module PlainRouter::OpenAPI
|
|
|
39
40
|
|
|
40
41
|
attr_accessor :actions
|
|
41
42
|
|
|
43
|
+
attr_accessor :next_cursor
|
|
44
|
+
|
|
45
|
+
attr_accessor :truncated
|
|
46
|
+
|
|
47
|
+
attr_accessor :continuation
|
|
48
|
+
|
|
49
|
+
attr_accessor :total
|
|
50
|
+
|
|
42
51
|
class EnumAttributeValidator
|
|
43
52
|
attr_reader :datatype
|
|
44
53
|
attr_reader :allowable_values
|
|
@@ -75,7 +84,11 @@ module PlainRouter::OpenAPI
|
|
|
75
84
|
:'approval_queue_url' => :'approval_queue_url',
|
|
76
85
|
:'rationale' => :'rationale',
|
|
77
86
|
:'proposed_by' => :'proposed_by',
|
|
78
|
-
:'actions' => :'actions'
|
|
87
|
+
:'actions' => :'actions',
|
|
88
|
+
:'next_cursor' => :'next_cursor',
|
|
89
|
+
:'truncated' => :'truncated',
|
|
90
|
+
:'continuation' => :'continuation',
|
|
91
|
+
:'total' => :'total'
|
|
79
92
|
}
|
|
80
93
|
end
|
|
81
94
|
|
|
@@ -103,7 +116,11 @@ module PlainRouter::OpenAPI
|
|
|
103
116
|
:'approval_queue_url' => :'String',
|
|
104
117
|
:'rationale' => :'String',
|
|
105
118
|
:'proposed_by' => :'ActionProposalReadProposalProposedBy',
|
|
106
|
-
:'actions' => :'Array<ActionProposalReadProposalActionsInner>'
|
|
119
|
+
:'actions' => :'Array<ActionProposalReadProposalActionsInner>',
|
|
120
|
+
:'next_cursor' => :'Integer',
|
|
121
|
+
:'truncated' => :'Boolean',
|
|
122
|
+
:'continuation' => :'String',
|
|
123
|
+
:'total' => :'Integer'
|
|
107
124
|
}
|
|
108
125
|
end
|
|
109
126
|
|
|
@@ -112,6 +129,7 @@ module PlainRouter::OpenAPI
|
|
|
112
129
|
Set.new([
|
|
113
130
|
:'scope',
|
|
114
131
|
:'evidence_provenance',
|
|
132
|
+
:'next_cursor',
|
|
115
133
|
])
|
|
116
134
|
end
|
|
117
135
|
|
|
@@ -206,6 +224,22 @@ module PlainRouter::OpenAPI
|
|
|
206
224
|
else
|
|
207
225
|
self.actions = nil
|
|
208
226
|
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'next_cursor')
|
|
229
|
+
self.next_cursor = attributes[:'next_cursor']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'truncated')
|
|
233
|
+
self.truncated = attributes[:'truncated']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'continuation')
|
|
237
|
+
self.continuation = attributes[:'continuation']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'total')
|
|
241
|
+
self.total = attributes[:'total']
|
|
242
|
+
end
|
|
209
243
|
end
|
|
210
244
|
|
|
211
245
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -393,7 +427,11 @@ module PlainRouter::OpenAPI
|
|
|
393
427
|
approval_queue_url == o.approval_queue_url &&
|
|
394
428
|
rationale == o.rationale &&
|
|
395
429
|
proposed_by == o.proposed_by &&
|
|
396
|
-
actions == o.actions
|
|
430
|
+
actions == o.actions &&
|
|
431
|
+
next_cursor == o.next_cursor &&
|
|
432
|
+
truncated == o.truncated &&
|
|
433
|
+
continuation == o.continuation &&
|
|
434
|
+
total == o.total
|
|
397
435
|
end
|
|
398
436
|
|
|
399
437
|
# @see the `==` method
|
|
@@ -405,7 +443,7 @@ module PlainRouter::OpenAPI
|
|
|
405
443
|
# Calculates hash code according to all attributes.
|
|
406
444
|
# @return [Integer] Hash code
|
|
407
445
|
def hash
|
|
408
|
-
[id, scope, evidence_provenance, status, policy_decision, policy_reasons, approval_required, inbox_url, approval_queue_url, rationale, proposed_by, actions].hash
|
|
446
|
+
[id, scope, evidence_provenance, status, policy_decision, policy_reasons, approval_required, inbox_url, approval_queue_url, rationale, proposed_by, actions, next_cursor, truncated, continuation, total].hash
|
|
409
447
|
end
|
|
410
448
|
|
|
411
449
|
# Builds the object from hash
|
|
@@ -29,10 +29,16 @@ module PlainRouter::OpenAPI
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :target_entity_name
|
|
31
31
|
|
|
32
|
+
attr_accessor :counted_evidence
|
|
33
|
+
|
|
32
34
|
attr_accessor :params
|
|
33
35
|
|
|
34
36
|
attr_accessor :rationale
|
|
35
37
|
|
|
38
|
+
attr_accessor :proposer
|
|
39
|
+
|
|
40
|
+
attr_accessor :evidence
|
|
41
|
+
|
|
36
42
|
attr_accessor :status
|
|
37
43
|
|
|
38
44
|
attr_accessor :batch_status
|
|
@@ -43,6 +49,10 @@ module PlainRouter::OpenAPI
|
|
|
43
49
|
|
|
44
50
|
attr_accessor :policy_reasons
|
|
45
51
|
|
|
52
|
+
attr_accessor :policy_result
|
|
53
|
+
|
|
54
|
+
attr_accessor :policy_results
|
|
55
|
+
|
|
46
56
|
class EnumAttributeValidator
|
|
47
57
|
attr_reader :datatype
|
|
48
58
|
attr_reader :allowable_values
|
|
@@ -75,13 +85,18 @@ module PlainRouter::OpenAPI
|
|
|
75
85
|
:'target_entity_type' => :'target_entity_type',
|
|
76
86
|
:'target_entity_id' => :'target_entity_id',
|
|
77
87
|
:'target_entity_name' => :'target_entity_name',
|
|
88
|
+
:'counted_evidence' => :'counted_evidence',
|
|
78
89
|
:'params' => :'params',
|
|
79
90
|
:'rationale' => :'rationale',
|
|
91
|
+
:'proposer' => :'proposer',
|
|
92
|
+
:'evidence' => :'evidence',
|
|
80
93
|
:'status' => :'status',
|
|
81
94
|
:'batch_status' => :'batch_status',
|
|
82
95
|
:'disposition' => :'disposition',
|
|
83
96
|
:'policy_decision' => :'policy_decision',
|
|
84
|
-
:'policy_reasons' => :'policy_reasons'
|
|
97
|
+
:'policy_reasons' => :'policy_reasons',
|
|
98
|
+
:'policy_result' => :'policy_result',
|
|
99
|
+
:'policy_results' => :'policy_results'
|
|
85
100
|
}
|
|
86
101
|
end
|
|
87
102
|
|
|
@@ -105,13 +120,18 @@ module PlainRouter::OpenAPI
|
|
|
105
120
|
:'target_entity_type' => :'String',
|
|
106
121
|
:'target_entity_id' => :'String',
|
|
107
122
|
:'target_entity_name' => :'String',
|
|
123
|
+
:'counted_evidence' => :'ActionReadItemCountedEvidence',
|
|
108
124
|
:'params' => :'ActionProposalReadProposalActionsInnerParams',
|
|
109
125
|
:'rationale' => :'String',
|
|
126
|
+
:'proposer' => :'ActionReadItemProposer',
|
|
127
|
+
:'evidence' => :'ActionReadItemEvidence',
|
|
110
128
|
:'status' => :'String',
|
|
111
129
|
:'batch_status' => :'String',
|
|
112
130
|
:'disposition' => :'ActionCurrentDisposition',
|
|
113
131
|
:'policy_decision' => :'String',
|
|
114
|
-
:'policy_reasons' => :'Array<String>'
|
|
132
|
+
:'policy_reasons' => :'Array<String>',
|
|
133
|
+
:'policy_result' => :'ActionPolicyResult',
|
|
134
|
+
:'policy_results' => :'Array<ActionPolicyResult>'
|
|
115
135
|
}
|
|
116
136
|
end
|
|
117
137
|
|
|
@@ -119,7 +139,9 @@ module PlainRouter::OpenAPI
|
|
|
119
139
|
def self.openapi_nullable
|
|
120
140
|
Set.new([
|
|
121
141
|
:'target_entity_name',
|
|
142
|
+
:'counted_evidence',
|
|
122
143
|
:'policy_decision',
|
|
144
|
+
:'policy_result',
|
|
123
145
|
])
|
|
124
146
|
end
|
|
125
147
|
|
|
@@ -181,6 +203,10 @@ module PlainRouter::OpenAPI
|
|
|
181
203
|
self.target_entity_name = nil
|
|
182
204
|
end
|
|
183
205
|
|
|
206
|
+
if attributes.key?(:'counted_evidence')
|
|
207
|
+
self.counted_evidence = attributes[:'counted_evidence']
|
|
208
|
+
end
|
|
209
|
+
|
|
184
210
|
if attributes.key?(:'params')
|
|
185
211
|
self.params = attributes[:'params']
|
|
186
212
|
else
|
|
@@ -193,6 +219,14 @@ module PlainRouter::OpenAPI
|
|
|
193
219
|
self.rationale = nil
|
|
194
220
|
end
|
|
195
221
|
|
|
222
|
+
if attributes.key?(:'proposer')
|
|
223
|
+
self.proposer = attributes[:'proposer']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'evidence')
|
|
227
|
+
self.evidence = attributes[:'evidence']
|
|
228
|
+
end
|
|
229
|
+
|
|
196
230
|
if attributes.key?(:'status')
|
|
197
231
|
self.status = attributes[:'status']
|
|
198
232
|
else
|
|
@@ -224,6 +258,20 @@ module PlainRouter::OpenAPI
|
|
|
224
258
|
else
|
|
225
259
|
self.policy_reasons = nil
|
|
226
260
|
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'policy_result')
|
|
263
|
+
self.policy_result = attributes[:'policy_result']
|
|
264
|
+
else
|
|
265
|
+
self.policy_result = nil
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'policy_results')
|
|
269
|
+
if (value = attributes[:'policy_results']).is_a?(Array)
|
|
270
|
+
self.policy_results = value
|
|
271
|
+
end
|
|
272
|
+
else
|
|
273
|
+
self.policy_results = nil
|
|
274
|
+
end
|
|
227
275
|
end
|
|
228
276
|
|
|
229
277
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -279,6 +327,10 @@ module PlainRouter::OpenAPI
|
|
|
279
327
|
invalid_properties.push('invalid value for "policy_reasons", policy_reasons cannot be nil.')
|
|
280
328
|
end
|
|
281
329
|
|
|
330
|
+
if @policy_results.nil?
|
|
331
|
+
invalid_properties.push('invalid value for "policy_results", policy_results cannot be nil.')
|
|
332
|
+
end
|
|
333
|
+
|
|
282
334
|
invalid_properties
|
|
283
335
|
end
|
|
284
336
|
|
|
@@ -306,6 +358,7 @@ module PlainRouter::OpenAPI
|
|
|
306
358
|
policy_decision_validator = EnumAttributeValidator.new('String', ["allow", "require_approval", "block"])
|
|
307
359
|
return false unless policy_decision_validator.valid?(@policy_decision)
|
|
308
360
|
return false if @policy_reasons.nil?
|
|
361
|
+
return false if @policy_results.nil?
|
|
309
362
|
true
|
|
310
363
|
end
|
|
311
364
|
|
|
@@ -439,6 +492,16 @@ module PlainRouter::OpenAPI
|
|
|
439
492
|
@policy_reasons = policy_reasons
|
|
440
493
|
end
|
|
441
494
|
|
|
495
|
+
# Custom attribute writer method with validation
|
|
496
|
+
# @param [Object] policy_results Value to be assigned
|
|
497
|
+
def policy_results=(policy_results)
|
|
498
|
+
if policy_results.nil?
|
|
499
|
+
fail ArgumentError, 'policy_results cannot be nil'
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
@policy_results = policy_results
|
|
503
|
+
end
|
|
504
|
+
|
|
442
505
|
# Checks equality by comparing each attribute.
|
|
443
506
|
# @param [Object] Object to be compared
|
|
444
507
|
def ==(o)
|
|
@@ -451,13 +514,18 @@ module PlainRouter::OpenAPI
|
|
|
451
514
|
target_entity_type == o.target_entity_type &&
|
|
452
515
|
target_entity_id == o.target_entity_id &&
|
|
453
516
|
target_entity_name == o.target_entity_name &&
|
|
517
|
+
counted_evidence == o.counted_evidence &&
|
|
454
518
|
params == o.params &&
|
|
455
519
|
rationale == o.rationale &&
|
|
520
|
+
proposer == o.proposer &&
|
|
521
|
+
evidence == o.evidence &&
|
|
456
522
|
status == o.status &&
|
|
457
523
|
batch_status == o.batch_status &&
|
|
458
524
|
disposition == o.disposition &&
|
|
459
525
|
policy_decision == o.policy_decision &&
|
|
460
|
-
policy_reasons == o.policy_reasons
|
|
526
|
+
policy_reasons == o.policy_reasons &&
|
|
527
|
+
policy_result == o.policy_result &&
|
|
528
|
+
policy_results == o.policy_results
|
|
461
529
|
end
|
|
462
530
|
|
|
463
531
|
# @see the `==` method
|
|
@@ -469,7 +537,7 @@ module PlainRouter::OpenAPI
|
|
|
469
537
|
# Calculates hash code according to all attributes.
|
|
470
538
|
# @return [Integer] Hash code
|
|
471
539
|
def hash
|
|
472
|
-
[id, batch_id, workspace_id, type, target_entity_type, target_entity_id, target_entity_name, params, rationale, status, batch_status, disposition, policy_decision, policy_reasons].hash
|
|
540
|
+
[id, batch_id, workspace_id, type, target_entity_type, target_entity_id, target_entity_name, counted_evidence, params, rationale, proposer, evidence, status, batch_status, disposition, policy_decision, policy_reasons, policy_result, policy_results].hash
|
|
473
541
|
end
|
|
474
542
|
|
|
475
543
|
# Builds the object from hash
|