datadog_api_client 2.40.0 → 2.41.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/.generated-info +2 -2
- data/.generator/schemas/v1/openapi.yaml +35 -0
- data/.generator/schemas/v2/openapi.yaml +3544 -93
- data/CHANGELOG.md +30 -0
- data/examples/v1/dashboards/CreateDashboard_3066042014.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_3451918078.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_4262729673.rb +1 -0
- data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
- data/examples/v2/agentless-scanning/GetAwsScanOptions.rb +8 -0
- data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/datasets/CreateDataset.rb +1 -1
- data/examples/v2/datasets/UpdateDataset.rb +1 -1
- data/examples/v2/error-tracking/GetIssue.rb +8 -0
- data/examples/v2/error-tracking/SearchIssues.rb +17 -0
- data/examples/v2/error-tracking/UpdateIssueAssignee.rb +15 -0
- data/examples/v2/error-tracking/UpdateIssueState.rb +18 -0
- data/examples/v2/incidents/CreateIncidentNotificationTemplate.rb +31 -0
- data/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb +8 -0
- data/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb +11 -0
- data/examples/v2/incidents/GetIncidentNotificationTemplate.rb +11 -0
- data/examples/v2/incidents/ListIncidentNotificationTemplates.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb +24 -0
- data/examples/v2/org-connections/CreateOrgConnections.rb +24 -0
- data/examples/v2/org-connections/DeleteOrgConnections.rb +8 -0
- data/examples/v2/org-connections/ListOrgConnections.rb +5 -0
- data/examples/v2/org-connections/UpdateOrgConnections.rb +21 -0
- data/examples/v2/rum/CreateRUMApplication_1946294560.rb +17 -0
- data/examples/v2/rum/UpdateRUMApplication_394074053.rb +20 -0
- data/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +3 -3
- data/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +1 -1
- data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb +8 -0
- data/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb +36 -0
- data/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb +8 -0
- data/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb +24 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb +18 -0
- data/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb +37 -0
- data/examples/v2/service-scorecards/UpdateScorecardOutcomesAsync.rb +27 -0
- data/examples/v2/spa/GetSPARecommendations.rb +8 -0
- data/examples/v2/teams/SyncTeams.rb +18 -0
- data/examples/v2/teams/SyncTeams_3215592344.rb +18 -0
- data/lib/datadog_api_client/configuration.rb +12 -0
- data/lib/datadog_api_client/inflector.rb +166 -0
- data/lib/datadog_api_client/v1/models/logs_api_limit_reached_response.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +13 -3
- data/lib/datadog_api_client/v1/models/widget_legacy_live_span.rb +11 -1
- data/lib/datadog_api_client/v1/models/widget_new_fixed_span.rb +11 -1
- data/lib/datadog_api_client/v1/models/widget_new_live_span.rb +11 -1
- data/lib/datadog_api_client/v2/api/action_connection_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +67 -2
- data/lib/datadog_api_client/v2/api/app_builder_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +14 -6
- data/lib/datadog_api_client/v2/api/error_tracking_api.rb +306 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +369 -0
- data/lib/datadog_api_client/v2/api/monitors_api.rb +20 -0
- data/lib/datadog_api_client/v2/api/org_connections_api.rb +290 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +514 -0
- data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +73 -0
- data/lib/datadog_api_client/v2/api/spa_api.rb +102 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +8 -8
- data/lib/datadog_api_client/v2/models/aws_cur_config.rb +1 -1
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +4 -4
- data/lib/datadog_api_client/v2/models/azure_uc_config.rb +1 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +1 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_recommendation.rb +123 -0
- data/lib/datadog_api_client/v2/models/cpu.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_incident_notification_template_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dataset_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/dataset_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/dataset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/estimation.rb +145 -0
- data/lib/datadog_api_client/v2/models/get_issue_include_query_parameter_item.rb +28 -0
- data/lib/datadog_api_client/v2/models/google_meet_configuration_reference.rb +113 -0
- data/lib/datadog_api_client/v2/models/google_meet_configuration_reference_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta_page.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_attributes.rb +228 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_create_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_create_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_create_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_included_items.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_update_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_type_object.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_type_relationships.rb +155 -0
- data/lib/datadog_api_client/v2/models/issue.rb +175 -0
- data/lib/datadog_api_client/v2/models/issue_assignee_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_attributes.rb +227 -0
- data/lib/datadog_api_client/v2/models/issue_case.rb +175 -0
- data/lib/datadog_api_client/v2/models/issue_case_attributes.rb +237 -0
- data/lib/datadog_api_client/v2/models/issue_case_insight.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_case_jira_issue.rb +115 -0
- data/lib/datadog_api_client/v2/models/issue_case_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/issue_case_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_case_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_case_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/issue_case_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/issue_language.rb +52 -0
- data/lib/datadog_api_client/v2/models/issue_platform.rb +33 -0
- data/lib/datadog_api_client/v2/models/issue_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/issue_state.rb +30 -0
- data/lib/datadog_api_client/v2/models/issue_team.rb +165 -0
- data/lib/datadog_api_client/v2/models/issue_team_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_team_owners_relationship.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_team_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_update_assignee_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_user.rb +165 -0
- data/lib/datadog_api_client/v2/models/issue_user_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_user_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issues_search_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +195 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb +29 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb +29 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb +28 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issues_search_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/issues_search_result.rb +175 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_included.rb +65 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_issue_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference.rb +113 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +252 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +4 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +208 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression_algorithm.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +215 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +207 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +253 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +240 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited.rb +152 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +196 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing.rb +66 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited.rb +152 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_connection.rb +186 -0
- data/lib/datadog_api_client/v2/models/org_connection_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/org_connection_create.rb +165 -0
- data/lib/datadog_api_client/v2/models/org_connection_create_attributes.rb +129 -0
- data/lib/datadog_api_client/v2/models/org_connection_create_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_list_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/org_connection_list_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_connection_list_response_meta_page.rb +115 -0
- data/lib/datadog_api_client/v2/models/org_connection_org_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_connection_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_connection_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_connection_type_enum.rb +27 -0
- data/lib/datadog_api_client/v2/models/org_connection_update.rb +165 -0
- data/lib/datadog_api_client/v2/models/org_connection_update_attributes.rb +129 -0
- data/lib/datadog_api_client/v2/models/org_connection_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_user_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_incident_notification_template_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/recommendation_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/recommendation_document.rb +123 -0
- data/lib/datadog_api_client/v2/models/recommendation_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_type.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_type_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rule_attributes.rb +33 -1
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/rum_event_processing_scale.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_event_processing_state.rb +28 -0
- data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_scale.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_state.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_product_scales.rb +115 -0
- data/lib/datadog_api_client/v2/models/search_issues_include_query_parameter_item.rb +29 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +11 -1
- data/lib/datadog_api_client/v2/models/shift.rb +2 -2
- data/lib/datadog_api_client/v2/models/shift_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/shift_data_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/shift_included.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_source.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_bulk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_request_item.rb +175 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/zoom_configuration_reference.rb +113 -0
- data/lib/datadog_api_client/v2/models/zoom_configuration_reference_data.rb +144 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +196 -1
@@ -0,0 +1,186 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# An org connection.
|
21
|
+
class OrgConnection
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Org connection attributes.
|
25
|
+
attr_reader :attributes
|
26
|
+
|
27
|
+
# The unique identifier of the org connection.
|
28
|
+
attr_reader :id
|
29
|
+
|
30
|
+
# Related organizations and user.
|
31
|
+
attr_reader :relationships
|
32
|
+
|
33
|
+
# Org connection type.
|
34
|
+
attr_reader :type
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'attributes' => :'attributes',
|
43
|
+
:'id' => :'id',
|
44
|
+
:'relationships' => :'relationships',
|
45
|
+
:'type' => :'type'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'attributes' => :'OrgConnectionAttributes',
|
54
|
+
:'id' => :'UUID',
|
55
|
+
:'relationships' => :'OrgConnectionRelationships',
|
56
|
+
:'type' => :'OrgConnectionType'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConnection` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'attributes')
|
79
|
+
self.attributes = attributes[:'attributes']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'relationships')
|
87
|
+
self.relationships = attributes[:'relationships']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
# @!visibility private
|
98
|
+
def valid?
|
99
|
+
return false if @attributes.nil?
|
100
|
+
return false if @id.nil?
|
101
|
+
return false if @relationships.nil?
|
102
|
+
return false if @type.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param attributes [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def attributes=(attributes)
|
110
|
+
if attributes.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
112
|
+
end
|
113
|
+
@attributes = attributes
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param id [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def id=(id)
|
120
|
+
if id.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
122
|
+
end
|
123
|
+
@id = id
|
124
|
+
end
|
125
|
+
|
126
|
+
# Custom attribute writer method with validation
|
127
|
+
# @param relationships [Object] Object to be assigned
|
128
|
+
# @!visibility private
|
129
|
+
def relationships=(relationships)
|
130
|
+
if relationships.nil?
|
131
|
+
fail ArgumentError, 'invalid value for "relationships", relationships cannot be nil.'
|
132
|
+
end
|
133
|
+
@relationships = relationships
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method with validation
|
137
|
+
# @param type [Object] Object to be assigned
|
138
|
+
# @!visibility private
|
139
|
+
def type=(type)
|
140
|
+
if type.nil?
|
141
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
142
|
+
end
|
143
|
+
@type = type
|
144
|
+
end
|
145
|
+
|
146
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
147
|
+
# @return [Hash] Returns the object in the form of hash
|
148
|
+
# @!visibility private
|
149
|
+
def to_hash
|
150
|
+
hash = {}
|
151
|
+
self.class.attribute_map.each_pair do |attr, param|
|
152
|
+
value = self.send(attr)
|
153
|
+
if value.nil?
|
154
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
155
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
156
|
+
end
|
157
|
+
|
158
|
+
hash[param] = _to_hash(value)
|
159
|
+
end
|
160
|
+
self.additional_properties.each_pair do |attr, value|
|
161
|
+
hash[attr] = value
|
162
|
+
end
|
163
|
+
hash
|
164
|
+
end
|
165
|
+
|
166
|
+
# Checks equality by comparing each attribute.
|
167
|
+
# @param o [Object] Object to be compared
|
168
|
+
# @!visibility private
|
169
|
+
def ==(o)
|
170
|
+
return true if self.equal?(o)
|
171
|
+
self.class == o.class &&
|
172
|
+
attributes == o.attributes &&
|
173
|
+
id == o.id &&
|
174
|
+
relationships == o.relationships &&
|
175
|
+
type == o.type &&
|
176
|
+
additional_properties == o.additional_properties
|
177
|
+
end
|
178
|
+
|
179
|
+
# Calculates hash code according to all attributes.
|
180
|
+
# @return [Integer] Hash code
|
181
|
+
# @!visibility private
|
182
|
+
def hash
|
183
|
+
[attributes, id, relationships, type, additional_properties].hash
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
@@ -0,0 +1,146 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Org connection attributes.
|
21
|
+
class OrgConnectionAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# List of connection types.
|
25
|
+
attr_reader :connection_types
|
26
|
+
|
27
|
+
# Timestamp when the connection was created.
|
28
|
+
attr_reader :created_at
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'connection_types' => :'connection_types',
|
37
|
+
:'created_at' => :'created_at'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'connection_types' => :'Array<OrgConnectionTypeEnum>',
|
46
|
+
:'created_at' => :'Time'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConnectionAttributes` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'connection_types')
|
69
|
+
if (value = attributes[:'connection_types']).is_a?(Array)
|
70
|
+
self.connection_types = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'created_at')
|
75
|
+
self.created_at = attributes[:'created_at']
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
# @!visibility private
|
82
|
+
def valid?
|
83
|
+
return false if @connection_types.nil?
|
84
|
+
return false if @created_at.nil?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Custom attribute writer method with validation
|
89
|
+
# @param connection_types [Object] Object to be assigned
|
90
|
+
# @!visibility private
|
91
|
+
def connection_types=(connection_types)
|
92
|
+
if connection_types.nil?
|
93
|
+
fail ArgumentError, 'invalid value for "connection_types", connection_types cannot be nil.'
|
94
|
+
end
|
95
|
+
@connection_types = connection_types
|
96
|
+
end
|
97
|
+
|
98
|
+
# Custom attribute writer method with validation
|
99
|
+
# @param created_at [Object] Object to be assigned
|
100
|
+
# @!visibility private
|
101
|
+
def created_at=(created_at)
|
102
|
+
if created_at.nil?
|
103
|
+
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
|
104
|
+
end
|
105
|
+
@created_at = created_at
|
106
|
+
end
|
107
|
+
|
108
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
109
|
+
# @return [Hash] Returns the object in the form of hash
|
110
|
+
# @!visibility private
|
111
|
+
def to_hash
|
112
|
+
hash = {}
|
113
|
+
self.class.attribute_map.each_pair do |attr, param|
|
114
|
+
value = self.send(attr)
|
115
|
+
if value.nil?
|
116
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
117
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
118
|
+
end
|
119
|
+
|
120
|
+
hash[param] = _to_hash(value)
|
121
|
+
end
|
122
|
+
self.additional_properties.each_pair do |attr, value|
|
123
|
+
hash[attr] = value
|
124
|
+
end
|
125
|
+
hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Checks equality by comparing each attribute.
|
129
|
+
# @param o [Object] Object to be compared
|
130
|
+
# @!visibility private
|
131
|
+
def ==(o)
|
132
|
+
return true if self.equal?(o)
|
133
|
+
self.class == o.class &&
|
134
|
+
connection_types == o.connection_types &&
|
135
|
+
created_at == o.created_at &&
|
136
|
+
additional_properties == o.additional_properties
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Integer] Hash code
|
141
|
+
# @!visibility private
|
142
|
+
def hash
|
143
|
+
[connection_types, created_at, additional_properties].hash
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Org connection creation data.
|
21
|
+
class OrgConnectionCreate
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Attributes for creating an org connection.
|
25
|
+
attr_reader :attributes
|
26
|
+
|
27
|
+
# Relationships for org connection creation.
|
28
|
+
attr_reader :relationships
|
29
|
+
|
30
|
+
# Org connection type.
|
31
|
+
attr_reader :type
|
32
|
+
|
33
|
+
attr_accessor :additional_properties
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
# @!visibility private
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'attributes' => :'attributes',
|
40
|
+
:'relationships' => :'relationships',
|
41
|
+
:'type' => :'type'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'attributes' => :'OrgConnectionCreateAttributes',
|
50
|
+
:'relationships' => :'OrgConnectionCreateRelationships',
|
51
|
+
:'type' => :'OrgConnectionType'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
57
|
+
# @!visibility private
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConnectionCreate` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
self.additional_properties = {}
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
self.additional_properties[k.to_sym] = v
|
68
|
+
else
|
69
|
+
h[k.to_sym] = v
|
70
|
+
end
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'attributes')
|
74
|
+
self.attributes = attributes[:'attributes']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'relationships')
|
78
|
+
self.relationships = attributes[:'relationships']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'type')
|
82
|
+
self.type = attributes[:'type']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
# @!visibility private
|
89
|
+
def valid?
|
90
|
+
return false if @attributes.nil?
|
91
|
+
return false if @relationships.nil?
|
92
|
+
return false if @type.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param attributes [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def attributes=(attributes)
|
100
|
+
if attributes.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
102
|
+
end
|
103
|
+
@attributes = attributes
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param relationships [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def relationships=(relationships)
|
110
|
+
if relationships.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "relationships", relationships cannot be nil.'
|
112
|
+
end
|
113
|
+
@relationships = relationships
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param type [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def type=(type)
|
120
|
+
if type.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
122
|
+
end
|
123
|
+
@type = type
|
124
|
+
end
|
125
|
+
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
128
|
+
# @!visibility private
|
129
|
+
def to_hash
|
130
|
+
hash = {}
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
132
|
+
value = self.send(attr)
|
133
|
+
if value.nil?
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
136
|
+
end
|
137
|
+
|
138
|
+
hash[param] = _to_hash(value)
|
139
|
+
end
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
141
|
+
hash[attr] = value
|
142
|
+
end
|
143
|
+
hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param o [Object] Object to be compared
|
148
|
+
# @!visibility private
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
attributes == o.attributes &&
|
153
|
+
relationships == o.relationships &&
|
154
|
+
type == o.type &&
|
155
|
+
additional_properties == o.additional_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Integer] Hash code
|
160
|
+
# @!visibility private
|
161
|
+
def hash
|
162
|
+
[attributes, relationships, type, additional_properties].hash
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,129 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Attributes for creating an org connection.
|
21
|
+
class OrgConnectionCreateAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# List of connection types to establish.
|
25
|
+
attr_reader :connection_types
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'connection_types' => :'connection_types'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'connection_types' => :'Array<OrgConnectionTypeEnum>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrgConnectionCreateAttributes` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'connection_types')
|
64
|
+
if (value = attributes[:'connection_types']).is_a?(Array)
|
65
|
+
self.connection_types = value
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
# @!visibility private
|
73
|
+
def valid?
|
74
|
+
return false if @connection_types.nil?
|
75
|
+
return false if @connection_types.length < 1
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Custom attribute writer method with validation
|
80
|
+
# @param connection_types [Object] Object to be assigned
|
81
|
+
# @!visibility private
|
82
|
+
def connection_types=(connection_types)
|
83
|
+
if connection_types.nil?
|
84
|
+
fail ArgumentError, 'invalid value for "connection_types", connection_types cannot be nil.'
|
85
|
+
end
|
86
|
+
if connection_types.length < 1
|
87
|
+
fail ArgumentError, 'invalid value for "connection_types", number of items must be greater than or equal to 1.'
|
88
|
+
end
|
89
|
+
@connection_types = connection_types
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
93
|
+
# @return [Hash] Returns the object in the form of hash
|
94
|
+
# @!visibility private
|
95
|
+
def to_hash
|
96
|
+
hash = {}
|
97
|
+
self.class.attribute_map.each_pair do |attr, param|
|
98
|
+
value = self.send(attr)
|
99
|
+
if value.nil?
|
100
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
101
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
102
|
+
end
|
103
|
+
|
104
|
+
hash[param] = _to_hash(value)
|
105
|
+
end
|
106
|
+
self.additional_properties.each_pair do |attr, value|
|
107
|
+
hash[attr] = value
|
108
|
+
end
|
109
|
+
hash
|
110
|
+
end
|
111
|
+
|
112
|
+
# Checks equality by comparing each attribute.
|
113
|
+
# @param o [Object] Object to be compared
|
114
|
+
# @!visibility private
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
connection_types == o.connection_types &&
|
119
|
+
additional_properties == o.additional_properties
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Integer] Hash code
|
124
|
+
# @!visibility private
|
125
|
+
def hash
|
126
|
+
[connection_types, additional_properties].hash
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|