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
|
@@ -0,0 +1,453 @@
|
|
|
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 LaunchPoliciesIndex200ResponsePolicies < ApiModelBase
|
|
18
|
+
attr_accessor :current_page
|
|
19
|
+
|
|
20
|
+
attr_accessor :data
|
|
21
|
+
|
|
22
|
+
attr_accessor :first_page_url
|
|
23
|
+
|
|
24
|
+
attr_accessor :from
|
|
25
|
+
|
|
26
|
+
attr_accessor :last_page_url
|
|
27
|
+
|
|
28
|
+
attr_accessor :last_page
|
|
29
|
+
|
|
30
|
+
# Generated paginator links.
|
|
31
|
+
attr_accessor :links
|
|
32
|
+
|
|
33
|
+
attr_accessor :next_page_url
|
|
34
|
+
|
|
35
|
+
# Base path for paginator generated URLs.
|
|
36
|
+
attr_accessor :path
|
|
37
|
+
|
|
38
|
+
# Number of items shown per page.
|
|
39
|
+
attr_accessor :per_page
|
|
40
|
+
|
|
41
|
+
attr_accessor :prev_page_url
|
|
42
|
+
|
|
43
|
+
# Number of the last item in the slice.
|
|
44
|
+
attr_accessor :to
|
|
45
|
+
|
|
46
|
+
# Total number of items being paginated.
|
|
47
|
+
attr_accessor :total
|
|
48
|
+
|
|
49
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
|
+
def self.attribute_map
|
|
51
|
+
{
|
|
52
|
+
:'current_page' => :'current_page',
|
|
53
|
+
:'data' => :'data',
|
|
54
|
+
:'first_page_url' => :'first_page_url',
|
|
55
|
+
:'from' => :'from',
|
|
56
|
+
:'last_page_url' => :'last_page_url',
|
|
57
|
+
:'last_page' => :'last_page',
|
|
58
|
+
:'links' => :'links',
|
|
59
|
+
:'next_page_url' => :'next_page_url',
|
|
60
|
+
:'path' => :'path',
|
|
61
|
+
:'per_page' => :'per_page',
|
|
62
|
+
:'prev_page_url' => :'prev_page_url',
|
|
63
|
+
:'to' => :'to',
|
|
64
|
+
:'total' => :'total'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns attribute mapping this model knows about
|
|
69
|
+
def self.acceptable_attribute_map
|
|
70
|
+
attribute_map
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Returns all the JSON keys this model knows about
|
|
74
|
+
def self.acceptable_attributes
|
|
75
|
+
acceptable_attribute_map.values
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute type mapping.
|
|
79
|
+
def self.openapi_types
|
|
80
|
+
{
|
|
81
|
+
:'current_page' => :'Integer',
|
|
82
|
+
:'data' => :'Array<LaunchPolicy>',
|
|
83
|
+
:'first_page_url' => :'String',
|
|
84
|
+
:'from' => :'Integer',
|
|
85
|
+
:'last_page_url' => :'String',
|
|
86
|
+
:'last_page' => :'Integer',
|
|
87
|
+
:'links' => :'Array<LaunchPoliciesIndex200ResponsePoliciesLinksInner>',
|
|
88
|
+
:'next_page_url' => :'String',
|
|
89
|
+
:'path' => :'String',
|
|
90
|
+
:'per_page' => :'Integer',
|
|
91
|
+
:'prev_page_url' => :'String',
|
|
92
|
+
:'to' => :'Integer',
|
|
93
|
+
:'total' => :'Integer'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# List of attributes with nullable: true
|
|
98
|
+
def self.openapi_nullable
|
|
99
|
+
Set.new([
|
|
100
|
+
:'first_page_url',
|
|
101
|
+
:'from',
|
|
102
|
+
:'last_page_url',
|
|
103
|
+
:'next_page_url',
|
|
104
|
+
:'path',
|
|
105
|
+
:'prev_page_url',
|
|
106
|
+
:'to',
|
|
107
|
+
])
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Initializes the object
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
def initialize(attributes = {})
|
|
113
|
+
if (!attributes.is_a?(Hash))
|
|
114
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::LaunchPoliciesIndex200ResponsePolicies` initialize method"
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
118
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
119
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
120
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
121
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PlainRouter::OpenAPI::LaunchPoliciesIndex200ResponsePolicies`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
122
|
+
end
|
|
123
|
+
h[k.to_sym] = v
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'current_page')
|
|
127
|
+
self.current_page = attributes[:'current_page']
|
|
128
|
+
else
|
|
129
|
+
self.current_page = nil
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'data')
|
|
133
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
134
|
+
self.data = value
|
|
135
|
+
end
|
|
136
|
+
else
|
|
137
|
+
self.data = nil
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'first_page_url')
|
|
141
|
+
self.first_page_url = attributes[:'first_page_url']
|
|
142
|
+
else
|
|
143
|
+
self.first_page_url = nil
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'from')
|
|
147
|
+
self.from = attributes[:'from']
|
|
148
|
+
else
|
|
149
|
+
self.from = nil
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'last_page_url')
|
|
153
|
+
self.last_page_url = attributes[:'last_page_url']
|
|
154
|
+
else
|
|
155
|
+
self.last_page_url = nil
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'last_page')
|
|
159
|
+
self.last_page = attributes[:'last_page']
|
|
160
|
+
else
|
|
161
|
+
self.last_page = nil
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'links')
|
|
165
|
+
if (value = attributes[:'links']).is_a?(Array)
|
|
166
|
+
self.links = value
|
|
167
|
+
end
|
|
168
|
+
else
|
|
169
|
+
self.links = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'next_page_url')
|
|
173
|
+
self.next_page_url = attributes[:'next_page_url']
|
|
174
|
+
else
|
|
175
|
+
self.next_page_url = nil
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'path')
|
|
179
|
+
self.path = attributes[:'path']
|
|
180
|
+
else
|
|
181
|
+
self.path = nil
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'per_page')
|
|
185
|
+
self.per_page = attributes[:'per_page']
|
|
186
|
+
else
|
|
187
|
+
self.per_page = nil
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'prev_page_url')
|
|
191
|
+
self.prev_page_url = attributes[:'prev_page_url']
|
|
192
|
+
else
|
|
193
|
+
self.prev_page_url = nil
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'to')
|
|
197
|
+
self.to = attributes[:'to']
|
|
198
|
+
else
|
|
199
|
+
self.to = nil
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'total')
|
|
203
|
+
self.total = attributes[:'total']
|
|
204
|
+
else
|
|
205
|
+
self.total = nil
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
210
|
+
# @return Array for valid properties with the reasons
|
|
211
|
+
def list_invalid_properties
|
|
212
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
213
|
+
invalid_properties = Array.new
|
|
214
|
+
if @current_page.nil?
|
|
215
|
+
invalid_properties.push('invalid value for "current_page", current_page cannot be nil.')
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if @current_page < 1
|
|
219
|
+
invalid_properties.push('invalid value for "current_page", must be greater than or equal to 1.')
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if @data.nil?
|
|
223
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if @from < 1
|
|
227
|
+
invalid_properties.push('invalid value for "from", must be greater than or equal to 1.')
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if @last_page.nil?
|
|
231
|
+
invalid_properties.push('invalid value for "last_page", last_page cannot be nil.')
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if @last_page < 1
|
|
235
|
+
invalid_properties.push('invalid value for "last_page", must be greater than or equal to 1.')
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if @links.nil?
|
|
239
|
+
invalid_properties.push('invalid value for "links", links cannot be nil.')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if @per_page.nil?
|
|
243
|
+
invalid_properties.push('invalid value for "per_page", per_page cannot be nil.')
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if @per_page < 0
|
|
247
|
+
invalid_properties.push('invalid value for "per_page", must be greater than or equal to 0.')
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if @to < 1
|
|
251
|
+
invalid_properties.push('invalid value for "to", must be greater than or equal to 1.')
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if @total.nil?
|
|
255
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if @total < 0
|
|
259
|
+
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
invalid_properties
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Check to see if the all the properties in the model are valid
|
|
266
|
+
# @return true if the model is valid
|
|
267
|
+
def valid?
|
|
268
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
269
|
+
return false if @current_page.nil?
|
|
270
|
+
return false if @current_page < 1
|
|
271
|
+
return false if @data.nil?
|
|
272
|
+
return false if @from < 1
|
|
273
|
+
return false if @last_page.nil?
|
|
274
|
+
return false if @last_page < 1
|
|
275
|
+
return false if @links.nil?
|
|
276
|
+
return false if @per_page.nil?
|
|
277
|
+
return false if @per_page < 0
|
|
278
|
+
return false if @to < 1
|
|
279
|
+
return false if @total.nil?
|
|
280
|
+
return false if @total < 0
|
|
281
|
+
true
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Custom attribute writer method with validation
|
|
285
|
+
# @param [Object] current_page Value to be assigned
|
|
286
|
+
def current_page=(current_page)
|
|
287
|
+
if current_page.nil?
|
|
288
|
+
fail ArgumentError, 'current_page cannot be nil'
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if current_page < 1
|
|
292
|
+
fail ArgumentError, 'invalid value for "current_page", must be greater than or equal to 1.'
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
@current_page = current_page
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param [Object] data Value to be assigned
|
|
300
|
+
def data=(data)
|
|
301
|
+
if data.nil?
|
|
302
|
+
fail ArgumentError, 'data cannot be nil'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
@data = data
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Custom attribute writer method with validation
|
|
309
|
+
# @param [Object] from Value to be assigned
|
|
310
|
+
def from=(from)
|
|
311
|
+
if !from.nil? && from < 1
|
|
312
|
+
fail ArgumentError, 'invalid value for "from", must be greater than or equal to 1.'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
@from = from
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Custom attribute writer method with validation
|
|
319
|
+
# @param [Object] last_page Value to be assigned
|
|
320
|
+
def last_page=(last_page)
|
|
321
|
+
if last_page.nil?
|
|
322
|
+
fail ArgumentError, 'last_page cannot be nil'
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if last_page < 1
|
|
326
|
+
fail ArgumentError, 'invalid value for "last_page", must be greater than or equal to 1.'
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
@last_page = last_page
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Custom attribute writer method with validation
|
|
333
|
+
# @param [Object] links Value to be assigned
|
|
334
|
+
def links=(links)
|
|
335
|
+
if links.nil?
|
|
336
|
+
fail ArgumentError, 'links cannot be nil'
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
@links = links
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Custom attribute writer method with validation
|
|
343
|
+
# @param [Object] per_page Value to be assigned
|
|
344
|
+
def per_page=(per_page)
|
|
345
|
+
if per_page.nil?
|
|
346
|
+
fail ArgumentError, 'per_page cannot be nil'
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if per_page < 0
|
|
350
|
+
fail ArgumentError, 'invalid value for "per_page", must be greater than or equal to 0.'
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
@per_page = per_page
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Custom attribute writer method with validation
|
|
357
|
+
# @param [Object] to Value to be assigned
|
|
358
|
+
def to=(to)
|
|
359
|
+
if !to.nil? && to < 1
|
|
360
|
+
fail ArgumentError, 'invalid value for "to", must be greater than or equal to 1.'
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
@to = to
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Custom attribute writer method with validation
|
|
367
|
+
# @param [Object] total Value to be assigned
|
|
368
|
+
def total=(total)
|
|
369
|
+
if total.nil?
|
|
370
|
+
fail ArgumentError, 'total cannot be nil'
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if total < 0
|
|
374
|
+
fail ArgumentError, 'invalid value for "total", must be greater than or equal to 0.'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
@total = total
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Checks equality by comparing each attribute.
|
|
381
|
+
# @param [Object] Object to be compared
|
|
382
|
+
def ==(o)
|
|
383
|
+
return true if self.equal?(o)
|
|
384
|
+
self.class == o.class &&
|
|
385
|
+
current_page == o.current_page &&
|
|
386
|
+
data == o.data &&
|
|
387
|
+
first_page_url == o.first_page_url &&
|
|
388
|
+
from == o.from &&
|
|
389
|
+
last_page_url == o.last_page_url &&
|
|
390
|
+
last_page == o.last_page &&
|
|
391
|
+
links == o.links &&
|
|
392
|
+
next_page_url == o.next_page_url &&
|
|
393
|
+
path == o.path &&
|
|
394
|
+
per_page == o.per_page &&
|
|
395
|
+
prev_page_url == o.prev_page_url &&
|
|
396
|
+
to == o.to &&
|
|
397
|
+
total == o.total
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# @see the `==` method
|
|
401
|
+
# @param [Object] Object to be compared
|
|
402
|
+
def eql?(o)
|
|
403
|
+
self == o
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Calculates hash code according to all attributes.
|
|
407
|
+
# @return [Integer] Hash code
|
|
408
|
+
def hash
|
|
409
|
+
[current_page, data, first_page_url, from, last_page_url, last_page, links, next_page_url, path, per_page, prev_page_url, to, total].hash
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# Builds the object from hash
|
|
413
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
414
|
+
# @return [Object] Returns the model itself
|
|
415
|
+
def self.build_from_hash(attributes)
|
|
416
|
+
return nil unless attributes.is_a?(Hash)
|
|
417
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
418
|
+
transformed_hash = {}
|
|
419
|
+
openapi_types.each_pair do |key, type|
|
|
420
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
421
|
+
transformed_hash["#{key}"] = nil
|
|
422
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
423
|
+
# check to ensure the input is an array given that the attribute
|
|
424
|
+
# is documented as an array but the input is not
|
|
425
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
426
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
427
|
+
end
|
|
428
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
429
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
430
|
+
end
|
|
431
|
+
end
|
|
432
|
+
new(transformed_hash)
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# Returns the object in the form of hash
|
|
436
|
+
# @return [Hash] Returns the object in the form of hash
|
|
437
|
+
def to_hash
|
|
438
|
+
hash = {}
|
|
439
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
440
|
+
value = self.send(attr)
|
|
441
|
+
if value.nil?
|
|
442
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
443
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
hash[param] = _to_hash(value)
|
|
447
|
+
end
|
|
448
|
+
hash
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
end
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PlainRouter::OpenAPI
|
|
17
|
-
class
|
|
17
|
+
class LaunchPoliciesIndex200ResponsePoliciesLinksInner < ApiModelBase
|
|
18
18
|
attr_accessor :url
|
|
19
19
|
|
|
20
20
|
attr_accessor :label
|
|
@@ -60,14 +60,14 @@ module PlainRouter::OpenAPI
|
|
|
60
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
61
|
def initialize(attributes = {})
|
|
62
62
|
if (!attributes.is_a?(Hash))
|
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::LaunchPoliciesIndex200ResponsePoliciesLinksInner` initialize method"
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
67
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
68
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
69
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
70
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PlainRouter::OpenAPI::
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PlainRouter::OpenAPI::LaunchPoliciesIndex200ResponsePoliciesLinksInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
71
71
|
end
|
|
72
72
|
h[k.to_sym] = v
|
|
73
73
|
}
|
|
@@ -0,0 +1,166 @@
|
|
|
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 LaunchPoliciesStore201Response < ApiModelBase
|
|
18
|
+
attr_accessor :policy
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'policy' => :'policy'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'policy' => :'Array<Object>'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PlainRouter::OpenAPI::LaunchPoliciesStore201Response` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PlainRouter::OpenAPI::LaunchPoliciesStore201Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'policy')
|
|
67
|
+
if (value = attributes[:'policy']).is_a?(Array)
|
|
68
|
+
self.policy = value
|
|
69
|
+
end
|
|
70
|
+
else
|
|
71
|
+
self.policy = nil
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
if @policy.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "policy", policy cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
return false if @policy.nil?
|
|
92
|
+
true
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Custom attribute writer method with validation
|
|
96
|
+
# @param [Object] policy Value to be assigned
|
|
97
|
+
def policy=(policy)
|
|
98
|
+
if policy.nil?
|
|
99
|
+
fail ArgumentError, 'policy cannot be nil'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
@policy = policy
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
policy == o.policy
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @see the `==` method
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def eql?(o)
|
|
116
|
+
self == o
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Calculates hash code according to all attributes.
|
|
120
|
+
# @return [Integer] Hash code
|
|
121
|
+
def hash
|
|
122
|
+
[policy].hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Builds the object from hash
|
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
+
# @return [Object] Returns the model itself
|
|
128
|
+
def self.build_from_hash(attributes)
|
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
|
130
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
131
|
+
transformed_hash = {}
|
|
132
|
+
openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = nil
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
139
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
new(transformed_hash)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Returns the object in the form of hash
|
|
149
|
+
# @return [Hash] Returns the object in the form of hash
|
|
150
|
+
def to_hash
|
|
151
|
+
hash = {}
|
|
152
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
153
|
+
value = self.send(attr)
|
|
154
|
+
if value.nil?
|
|
155
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
156
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
hash[param] = _to_hash(value)
|
|
160
|
+
end
|
|
161
|
+
hash
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
end
|