incident_io_api 2.31.0 → 2.33.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/lib/incident_io/models/audit_log_actor_metadata_v2.rb +14 -4
- data/lib/incident_io/models/audit_log_code_repository_accessed_metadata_v2.rb +232 -0
- data/lib/incident_io/models/audit_logs_activity_log_scrubbed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_chat_message_template_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_chat_message_template_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_chat_message_template_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_set_as_default_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_route_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_route_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_route_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_schema_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_scrubbed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_source_config_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_source_config_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_source_config_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_set_as_default_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_api_key_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_api_key_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_api_key_rotated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_api_key_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_catalog_entry_attribute_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_catalog_type_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_catalog_type_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_catalog_type_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_code_repository_accessed_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_connector_config_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_connector_config_token_generated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_connector_config_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_custom_field_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_custom_field_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_custom_field_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_debrief_invite_rule_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_debrief_invite_rule_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_debrief_invite_rule_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_email_otp_login_setting_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_escalation_path_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_template_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_template_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_template_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_scrubbed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_extension_connector_called_v5.rb +326 -0
- data/lib/incident_io/models/audit_logs_extension_plugin_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_extension_plugin_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_extension_plugin_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_follow_up_category_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_category_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_category_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_priority_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_priority_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_priority_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_glossary_entry_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_glossary_entry_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_glossary_entry_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_holiday_user_feed_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_holiday_user_feed_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_holiday_user_feed_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_hris_time_off_policy_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_incident_call_setting_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_call_transcription_session_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_duration_metric_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_duration_metric_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_duration_metric_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_role_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_role_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_role_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_scrubbed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_status_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_status_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_status_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_set_as_default_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_type_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_incident_type_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_type_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_integration_installed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_integration_uninstalled_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_internal_status_page_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_internal_status_page_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_internal_status_page_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_investigation_config_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_investigation_trigger_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_investigation_trigger_deleted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_investigation_trigger_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_ip_allowlist_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_maintenance_window_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_maintenance_window_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_maintenance_window_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_microsoft_entra_tenant_linked_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_mobile_intune_enabled_setting_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_nudge_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_nudge_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_nudge_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_method_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_method_destroyed_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_resumed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_upsell_requested_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_organisation_settings_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_policy_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_policy_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_report_schedule_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_report_schedule_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_report_schedule_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_post_incident_task_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_post_incident_task_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_post_incident_task_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_created_v3.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_deleted_v3.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_updated_v3.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_created_v3.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_deleted_v3.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_updated_v3.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_alert_access_attempted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_escalation_access_attempted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_incident_access_attempted_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_incident_access_requested_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_accessed_via_bot_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_membership_granted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_membership_revoked_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_membership_upgraded_to_direct_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_team_membership_granted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_team_membership_revoked_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_insights_exported_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_insights_measure_queried_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_insights_underlying_data_queried_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_qr_code_mobile_login_setting_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_rbac_role_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_rbac_role_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_rbac_role_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_reliability_review_repository_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_reliability_review_settings_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_reliability_review_spend_limit_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_override_created_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_override_deleted_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_override_updated_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_rule_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_rule_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_rule_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_target_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_target_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_target_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_scim_group_role_mappings_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_scim_group_seat_mappings_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_secret_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_reference_added_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_reference_removed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_rotated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_severity_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_severity_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_severity_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_sub_page_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_sub_page_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_sub_page_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_template_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_template_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_template_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_role_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_role_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_role_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_settings_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_caller_identity_sharing_changed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_installed_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_passthrough_changed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_queried_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_requested_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_access_changed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_overrides_changed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_uninstalled_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_granted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_revoked_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_timeline_item_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_twilio_connection_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_twilio_connection_deleted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_twilio_connection_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_user_api_key_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_api_key_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_deactivated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_logged_in_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_user_reinstated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_role_memberships_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_user_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_workflow_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_workflow_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_workflow_updated_v2.rb +300 -0
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +216 -0
- metadata +217 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 845b36fa19dcf1a1650ccd79b5da5a234ff87e56ead4c93cc9f656f07a10e189
|
|
4
|
+
data.tar.gz: e74685531971721e27fccd8680890ffab380a30b143433dd41fbf600a81450a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd4b1edce8e3735ab6c7cfd750db7321d23d957886656e85716d9bea3dedefa69fe10967c4971be578a8064ac324e49fc13a6699c76cb8b3bd40135d3552ddb7
|
|
7
|
+
data.tar.gz: 34bbec0f6f701ca96c0b670ed3b2666dc454118427e8bcdd907cfd29b7045bf1eba1afd741370137fedf2c7de5da734451df7c81ced606a7785ed0247a9be317
|
|
@@ -33,6 +33,9 @@ module IncidentIo
|
|
|
33
33
|
# The custom role slugs of the user, separated by commas (if it's a user actor)
|
|
34
34
|
attr_accessor :user_custom_role_slugs
|
|
35
35
|
|
|
36
|
+
# How the user made the change, when it wasn't directly (if it's a user actor)
|
|
37
|
+
attr_accessor :via
|
|
38
|
+
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
40
|
def self.attribute_map
|
|
38
41
|
{
|
|
@@ -41,7 +44,8 @@ module IncidentIo
|
|
|
41
44
|
:'external_resource_external_id' => :'external_resource_external_id',
|
|
42
45
|
:'external_resource_type' => :'external_resource_type',
|
|
43
46
|
:'user_base_role_slug' => :'user_base_role_slug',
|
|
44
|
-
:'user_custom_role_slugs' => :'user_custom_role_slugs'
|
|
47
|
+
:'user_custom_role_slugs' => :'user_custom_role_slugs',
|
|
48
|
+
:'via' => :'via'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -63,7 +67,8 @@ module IncidentIo
|
|
|
63
67
|
:'external_resource_external_id' => :'String',
|
|
64
68
|
:'external_resource_type' => :'String',
|
|
65
69
|
:'user_base_role_slug' => :'String',
|
|
66
|
-
:'user_custom_role_slugs' => :'String'
|
|
70
|
+
:'user_custom_role_slugs' => :'String',
|
|
71
|
+
:'via' => :'String'
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -112,6 +117,10 @@ module IncidentIo
|
|
|
112
117
|
if attributes.key?(:'user_custom_role_slugs')
|
|
113
118
|
self.user_custom_role_slugs = attributes[:'user_custom_role_slugs']
|
|
114
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'via')
|
|
122
|
+
self.via = attributes[:'via']
|
|
123
|
+
end
|
|
115
124
|
end
|
|
116
125
|
|
|
117
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -139,7 +148,8 @@ module IncidentIo
|
|
|
139
148
|
external_resource_external_id == o.external_resource_external_id &&
|
|
140
149
|
external_resource_type == o.external_resource_type &&
|
|
141
150
|
user_base_role_slug == o.user_base_role_slug &&
|
|
142
|
-
user_custom_role_slugs == o.user_custom_role_slugs
|
|
151
|
+
user_custom_role_slugs == o.user_custom_role_slugs &&
|
|
152
|
+
via == o.via
|
|
143
153
|
end
|
|
144
154
|
|
|
145
155
|
# @see the `==` method
|
|
@@ -151,7 +161,7 @@ module IncidentIo
|
|
|
151
161
|
# Calculates hash code according to all attributes.
|
|
152
162
|
# @return [Integer] Hash code
|
|
153
163
|
def hash
|
|
154
|
-
[alert_source_id, api_key_roles, external_resource_external_id, external_resource_type, user_base_role_slug, user_custom_role_slugs].hash
|
|
164
|
+
[alert_source_id, api_key_roles, external_resource_external_id, external_resource_type, user_base_role_slug, user_custom_role_slugs, via].hash
|
|
155
165
|
end
|
|
156
166
|
|
|
157
167
|
# Builds the object from hash
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#incident.io
|
|
3
|
+
|
|
4
|
+
#Ruby client for the incident.io API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.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 IncidentIo
|
|
17
|
+
class AuditLogCodeRepositoryAccessedMetadataV2 < ApiModelBase
|
|
18
|
+
# ID of the alert the run was for, when known
|
|
19
|
+
attr_accessor :alert_id
|
|
20
|
+
|
|
21
|
+
# ID of the incident the run was for, when known
|
|
22
|
+
attr_accessor :incident_id
|
|
23
|
+
|
|
24
|
+
# ID of the investigation, when an investigation read the repository
|
|
25
|
+
attr_accessor :investigation_id
|
|
26
|
+
|
|
27
|
+
# The commit the run checked out
|
|
28
|
+
attr_accessor :revision_sha
|
|
29
|
+
|
|
30
|
+
# The kind of agent run that read the repository (investigation, chat, code_agent)
|
|
31
|
+
attr_accessor :run_type
|
|
32
|
+
|
|
33
|
+
# ID of the user who asked, when a chat read the repository
|
|
34
|
+
attr_accessor :user_id
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'alert_id' => :'alert_id',
|
|
40
|
+
:'incident_id' => :'incident_id',
|
|
41
|
+
:'investigation_id' => :'investigation_id',
|
|
42
|
+
:'revision_sha' => :'revision_sha',
|
|
43
|
+
:'run_type' => :'run_type',
|
|
44
|
+
:'user_id' => :'user_id'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'alert_id' => :'String',
|
|
62
|
+
:'incident_id' => :'String',
|
|
63
|
+
:'investigation_id' => :'String',
|
|
64
|
+
:'revision_sha' => :'String',
|
|
65
|
+
:'run_type' => :'String',
|
|
66
|
+
:'user_id' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogCodeRepositoryAccessedMetadataV2` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogCodeRepositoryAccessedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'alert_id')
|
|
93
|
+
self.alert_id = attributes[:'alert_id']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'incident_id')
|
|
97
|
+
self.incident_id = attributes[:'incident_id']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'investigation_id')
|
|
101
|
+
self.investigation_id = attributes[:'investigation_id']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'revision_sha')
|
|
105
|
+
self.revision_sha = attributes[:'revision_sha']
|
|
106
|
+
else
|
|
107
|
+
self.revision_sha = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'run_type')
|
|
111
|
+
self.run_type = attributes[:'run_type']
|
|
112
|
+
else
|
|
113
|
+
self.run_type = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'user_id')
|
|
117
|
+
self.user_id = attributes[:'user_id']
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
122
|
+
# @return Array for valid properties with the reasons
|
|
123
|
+
def list_invalid_properties
|
|
124
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
125
|
+
invalid_properties = Array.new
|
|
126
|
+
if @revision_sha.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "revision_sha", revision_sha cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @run_type.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "run_type", run_type cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
invalid_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Check to see if the all the properties in the model are valid
|
|
138
|
+
# @return true if the model is valid
|
|
139
|
+
def valid?
|
|
140
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
141
|
+
return false if @revision_sha.nil?
|
|
142
|
+
return false if @run_type.nil?
|
|
143
|
+
true
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] revision_sha Value to be assigned
|
|
148
|
+
def revision_sha=(revision_sha)
|
|
149
|
+
if revision_sha.nil?
|
|
150
|
+
fail ArgumentError, 'revision_sha cannot be nil'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@revision_sha = revision_sha
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Custom attribute writer method with validation
|
|
157
|
+
# @param [Object] run_type Value to be assigned
|
|
158
|
+
def run_type=(run_type)
|
|
159
|
+
if run_type.nil?
|
|
160
|
+
fail ArgumentError, 'run_type cannot be nil'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
@run_type = run_type
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Checks equality by comparing each attribute.
|
|
167
|
+
# @param [Object] Object to be compared
|
|
168
|
+
def ==(o)
|
|
169
|
+
return true if self.equal?(o)
|
|
170
|
+
self.class == o.class &&
|
|
171
|
+
alert_id == o.alert_id &&
|
|
172
|
+
incident_id == o.incident_id &&
|
|
173
|
+
investigation_id == o.investigation_id &&
|
|
174
|
+
revision_sha == o.revision_sha &&
|
|
175
|
+
run_type == o.run_type &&
|
|
176
|
+
user_id == o.user_id
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see the `==` method
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def eql?(o)
|
|
182
|
+
self == o
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Calculates hash code according to all attributes.
|
|
186
|
+
# @return [Integer] Hash code
|
|
187
|
+
def hash
|
|
188
|
+
[alert_id, incident_id, investigation_id, revision_sha, run_type, user_id].hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Builds the object from hash
|
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
193
|
+
# @return [Object] Returns the model itself
|
|
194
|
+
def self.build_from_hash(attributes)
|
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
|
196
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
197
|
+
transformed_hash = {}
|
|
198
|
+
openapi_types.each_pair do |key, type|
|
|
199
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
200
|
+
transformed_hash["#{key}"] = nil
|
|
201
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
202
|
+
# check to ensure the input is an array given that the attribute
|
|
203
|
+
# is documented as an array but the input is not
|
|
204
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
205
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
206
|
+
end
|
|
207
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
208
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
new(transformed_hash)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
if value.nil?
|
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
end
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#incident.io
|
|
3
|
+
|
|
4
|
+
#Ruby client for the incident.io API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.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 IncidentIo
|
|
17
|
+
class AuditLogsActivityLogScrubbedV2 < ApiModelBase
|
|
18
|
+
# The type of log entry that this is
|
|
19
|
+
attr_accessor :action
|
|
20
|
+
|
|
21
|
+
attr_accessor :actor
|
|
22
|
+
|
|
23
|
+
attr_accessor :context
|
|
24
|
+
|
|
25
|
+
# When the entry occurred
|
|
26
|
+
attr_accessor :occurred_at
|
|
27
|
+
|
|
28
|
+
# The custom field that was created
|
|
29
|
+
attr_accessor :targets
|
|
30
|
+
|
|
31
|
+
# Which version the event is
|
|
32
|
+
attr_accessor :version
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'action' => :'action',
|
|
38
|
+
:'actor' => :'actor',
|
|
39
|
+
:'context' => :'context',
|
|
40
|
+
:'occurred_at' => :'occurred_at',
|
|
41
|
+
:'targets' => :'targets',
|
|
42
|
+
:'version' => :'version'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns attribute mapping this model knows about
|
|
47
|
+
def self.acceptable_attribute_map
|
|
48
|
+
attribute_map
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
acceptable_attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'action' => :'String',
|
|
60
|
+
:'actor' => :'AuditLogActorV2',
|
|
61
|
+
:'context' => :'AuditLogEntryContextV2',
|
|
62
|
+
:'occurred_at' => :'Time',
|
|
63
|
+
:'targets' => :'Array<AuditLogTargetV2>',
|
|
64
|
+
:'version' => :'Integer'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# List of attributes with nullable: true
|
|
69
|
+
def self.openapi_nullable
|
|
70
|
+
Set.new([
|
|
71
|
+
])
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Initializes the object
|
|
75
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
76
|
+
def initialize(attributes = {})
|
|
77
|
+
if (!attributes.is_a?(Hash))
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsActivityLogScrubbedV2` initialize method"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
82
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
84
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsActivityLogScrubbedV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
86
|
+
end
|
|
87
|
+
h[k.to_sym] = v
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'action')
|
|
91
|
+
self.action = attributes[:'action']
|
|
92
|
+
else
|
|
93
|
+
self.action = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'actor')
|
|
97
|
+
self.actor = attributes[:'actor']
|
|
98
|
+
else
|
|
99
|
+
self.actor = nil
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'context')
|
|
103
|
+
self.context = attributes[:'context']
|
|
104
|
+
else
|
|
105
|
+
self.context = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'occurred_at')
|
|
109
|
+
self.occurred_at = attributes[:'occurred_at']
|
|
110
|
+
else
|
|
111
|
+
self.occurred_at = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'targets')
|
|
115
|
+
if (value = attributes[:'targets']).is_a?(Array)
|
|
116
|
+
self.targets = value
|
|
117
|
+
end
|
|
118
|
+
else
|
|
119
|
+
self.targets = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'version')
|
|
123
|
+
self.version = attributes[:'version']
|
|
124
|
+
else
|
|
125
|
+
self.version = nil
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
|
+
# @return Array for valid properties with the reasons
|
|
131
|
+
def list_invalid_properties
|
|
132
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
133
|
+
invalid_properties = Array.new
|
|
134
|
+
if @action.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @actor.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "actor", actor cannot be nil.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @context.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "context", context cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @occurred_at.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @targets.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "targets", targets cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @version.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
invalid_properties
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
def valid?
|
|
164
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
|
+
return false if @action.nil?
|
|
166
|
+
return false if @actor.nil?
|
|
167
|
+
return false if @context.nil?
|
|
168
|
+
return false if @occurred_at.nil?
|
|
169
|
+
return false if @targets.nil?
|
|
170
|
+
return false if @version.nil?
|
|
171
|
+
true
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] action Value to be assigned
|
|
176
|
+
def action=(action)
|
|
177
|
+
if action.nil?
|
|
178
|
+
fail ArgumentError, 'action cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@action = action
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] actor Value to be assigned
|
|
186
|
+
def actor=(actor)
|
|
187
|
+
if actor.nil?
|
|
188
|
+
fail ArgumentError, 'actor cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@actor = actor
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] context Value to be assigned
|
|
196
|
+
def context=(context)
|
|
197
|
+
if context.nil?
|
|
198
|
+
fail ArgumentError, 'context cannot be nil'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@context = context
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Custom attribute writer method with validation
|
|
205
|
+
# @param [Object] occurred_at Value to be assigned
|
|
206
|
+
def occurred_at=(occurred_at)
|
|
207
|
+
if occurred_at.nil?
|
|
208
|
+
fail ArgumentError, 'occurred_at cannot be nil'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@occurred_at = occurred_at
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] targets Value to be assigned
|
|
216
|
+
def targets=(targets)
|
|
217
|
+
if targets.nil?
|
|
218
|
+
fail ArgumentError, 'targets cannot be nil'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@targets = targets
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param [Object] version Value to be assigned
|
|
226
|
+
def version=(version)
|
|
227
|
+
if version.nil?
|
|
228
|
+
fail ArgumentError, 'version cannot be nil'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@version = version
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Checks equality by comparing each attribute.
|
|
235
|
+
# @param [Object] Object to be compared
|
|
236
|
+
def ==(o)
|
|
237
|
+
return true if self.equal?(o)
|
|
238
|
+
self.class == o.class &&
|
|
239
|
+
action == o.action &&
|
|
240
|
+
actor == o.actor &&
|
|
241
|
+
context == o.context &&
|
|
242
|
+
occurred_at == o.occurred_at &&
|
|
243
|
+
targets == o.targets &&
|
|
244
|
+
version == o.version
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# @see the `==` method
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def eql?(o)
|
|
250
|
+
self == o
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Calculates hash code according to all attributes.
|
|
254
|
+
# @return [Integer] Hash code
|
|
255
|
+
def hash
|
|
256
|
+
[action, actor, context, occurred_at, targets, version].hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Builds the object from hash
|
|
260
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
261
|
+
# @return [Object] Returns the model itself
|
|
262
|
+
def self.build_from_hash(attributes)
|
|
263
|
+
return nil unless attributes.is_a?(Hash)
|
|
264
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
265
|
+
transformed_hash = {}
|
|
266
|
+
openapi_types.each_pair do |key, type|
|
|
267
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = nil
|
|
269
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
270
|
+
# check to ensure the input is an array given that the attribute
|
|
271
|
+
# is documented as an array but the input is not
|
|
272
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
273
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
274
|
+
end
|
|
275
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
276
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
new(transformed_hash)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Returns the object in the form of hash
|
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
|
284
|
+
def to_hash
|
|
285
|
+
hash = {}
|
|
286
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
287
|
+
value = self.send(attr)
|
|
288
|
+
if value.nil?
|
|
289
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
290
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
hash[param] = _to_hash(value)
|
|
294
|
+
end
|
|
295
|
+
hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
end
|