datadog_api_client 2.45.0 → 2.46.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/.generator/schemas/v1/openapi.yaml +81 -0
- data/.generator/schemas/v2/openapi.yaml +3968 -94
- data/.pre-commit-config.yaml +4 -0
- data/CHANGELOG.md +20 -0
- data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
- data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
- data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
- data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
- data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
- data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
- data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
- data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
- data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
- data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
- data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
- data/examples/v2/reference-tables/DeleteRows.rb +14 -0
- data/examples/v2/reference-tables/UpsertRows.rb +19 -0
- data/examples/v2/security-monitoring/AttachCase.rb +26 -0
- data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
- data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
- data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
- data/examples/v2/security-monitoring/CreateCases.rb +56 -0
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +96 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +56 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +64 -0
- data/examples/v2/security-monitoring/DetachCase.rb +21 -0
- data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
- data/examples/v2/{team-connections → teams}/CreateTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/DeleteTeamConnections.rb +1 -1
- data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +8 -0
- data/examples/v2/{team-connections → teams}/ListTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_1473516764.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_2418873869.rb +1 -1
- data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
- data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
- data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +25 -3
- data/lib/datadog_api_client/inflector.rb +141 -3
- data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
- data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +632 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +166 -1
- data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +144 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +355 -5
- data/lib/datadog_api_client/v2/api/teams_api.rb +628 -1
- data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
- data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +137 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes_fields.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → deployment_rule_options_faulty_deployment_detection.rb} +21 -19
- data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
- data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
- data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/findings.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
- data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
- data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
- data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +101 -36
- data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
- data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_response_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data_attributes.rb +165 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +190 -9
- data/lib/datadog_api_client/v2/api/team_connections_api.rb +0 -272
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +0 -138
|
@@ -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
|
+
# Represents detailed information about a specific Datadog Agent.
|
|
21
|
+
class FleetAgentInfo
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes for agent information.
|
|
25
|
+
attr_reader :attributes
|
|
26
|
+
|
|
27
|
+
# The unique agent key identifier.
|
|
28
|
+
attr_reader :id
|
|
29
|
+
|
|
30
|
+
# The type of Agent info resource.
|
|
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
|
+
:'id' => :'id',
|
|
41
|
+
:'type' => :'type'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'attributes' => :'FleetAgentInfoAttributes',
|
|
50
|
+
:'id' => :'String',
|
|
51
|
+
:'type' => :'FleetAgentInfoResourceType'
|
|
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::FleetAgentInfo` 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?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
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 @id.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 id [Object] Object to be assigned
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def id=(id)
|
|
110
|
+
if id.nil?
|
|
111
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
112
|
+
end
|
|
113
|
+
@id = id
|
|
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
|
+
id == o.id &&
|
|
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, id, type, additional_properties].hash
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -0,0 +1,137 @@
|
|
|
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 agent information.
|
|
21
|
+
class FleetAgentInfoAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Detailed information about a Datadog Agent.
|
|
25
|
+
attr_accessor :agent_infos
|
|
26
|
+
|
|
27
|
+
# Configuration information organized by layers.
|
|
28
|
+
attr_accessor :configuration_files
|
|
29
|
+
|
|
30
|
+
# List of detected integrations.
|
|
31
|
+
attr_accessor :detected_integrations
|
|
32
|
+
|
|
33
|
+
# Integrations organized by their status.
|
|
34
|
+
attr_accessor :integrations
|
|
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
|
+
:'agent_infos' => :'agent_infos',
|
|
43
|
+
:'configuration_files' => :'configuration_files',
|
|
44
|
+
:'detected_integrations' => :'detected_integrations',
|
|
45
|
+
:'integrations' => :'integrations'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'agent_infos' => :'FleetAgentInfoDetails',
|
|
54
|
+
:'configuration_files' => :'FleetConfigurationLayer',
|
|
55
|
+
:'detected_integrations' => :'Array<FleetDetectedIntegration>',
|
|
56
|
+
:'integrations' => :'FleetIntegrationsByStatus'
|
|
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::FleetAgentInfoAttributes` 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?(:'agent_infos')
|
|
79
|
+
self.agent_infos = attributes[:'agent_infos']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'configuration_files')
|
|
83
|
+
self.configuration_files = attributes[:'configuration_files']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'detected_integrations')
|
|
87
|
+
if (value = attributes[:'detected_integrations']).is_a?(Array)
|
|
88
|
+
self.detected_integrations = value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'integrations')
|
|
93
|
+
self.integrations = attributes[:'integrations']
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
98
|
+
# @return [Hash] Returns the object in the form of hash
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def to_hash
|
|
101
|
+
hash = {}
|
|
102
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
103
|
+
value = self.send(attr)
|
|
104
|
+
if value.nil?
|
|
105
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
106
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
hash[param] = _to_hash(value)
|
|
110
|
+
end
|
|
111
|
+
self.additional_properties.each_pair do |attr, value|
|
|
112
|
+
hash[attr] = value
|
|
113
|
+
end
|
|
114
|
+
hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Checks equality by comparing each attribute.
|
|
118
|
+
# @param o [Object] Object to be compared
|
|
119
|
+
# @!visibility private
|
|
120
|
+
def ==(o)
|
|
121
|
+
return true if self.equal?(o)
|
|
122
|
+
self.class == o.class &&
|
|
123
|
+
agent_infos == o.agent_infos &&
|
|
124
|
+
configuration_files == o.configuration_files &&
|
|
125
|
+
detected_integrations == o.detected_integrations &&
|
|
126
|
+
integrations == o.integrations &&
|
|
127
|
+
additional_properties == o.additional_properties
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Calculates hash code according to all attributes.
|
|
131
|
+
# @return [Integer] Hash code
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def hash
|
|
134
|
+
[agent_infos, configuration_files, detected_integrations, integrations, additional_properties].hash
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,403 @@
|
|
|
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
|
+
# Detailed information about a Datadog Agent.
|
|
21
|
+
class FleetAgentInfoDetails
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The Datadog Agent version.
|
|
25
|
+
attr_accessor :agent_version
|
|
26
|
+
|
|
27
|
+
# The API key name (if available and not redacted).
|
|
28
|
+
attr_accessor :api_key_name
|
|
29
|
+
|
|
30
|
+
# The API key UUID.
|
|
31
|
+
attr_accessor :api_key_uuid
|
|
32
|
+
|
|
33
|
+
# The cloud provider where the agent is running.
|
|
34
|
+
attr_accessor :cloud_provider
|
|
35
|
+
|
|
36
|
+
# Kubernetes cluster name (if applicable).
|
|
37
|
+
attr_accessor :cluster_name
|
|
38
|
+
|
|
39
|
+
# The unique agent key identifier.
|
|
40
|
+
attr_accessor :datadog_agent_key
|
|
41
|
+
|
|
42
|
+
# Datadog products enabled on the agent.
|
|
43
|
+
attr_accessor :enabled_products
|
|
44
|
+
|
|
45
|
+
# Environments the agent is reporting from.
|
|
46
|
+
attr_accessor :env
|
|
47
|
+
|
|
48
|
+
# Timestamp when the agent was first seen.
|
|
49
|
+
attr_accessor :first_seen_at
|
|
50
|
+
|
|
51
|
+
# The hostname of the agent.
|
|
52
|
+
attr_accessor :hostname
|
|
53
|
+
|
|
54
|
+
# Alternative hostname list for the agent.
|
|
55
|
+
attr_accessor :hostname_aliases
|
|
56
|
+
|
|
57
|
+
# The version of the installer used.
|
|
58
|
+
attr_accessor :install_method_installer_version
|
|
59
|
+
|
|
60
|
+
# The tool used to install the agent.
|
|
61
|
+
attr_accessor :install_method_tool
|
|
62
|
+
|
|
63
|
+
# IP addresses of the agent.
|
|
64
|
+
attr_accessor :ip_addresses
|
|
65
|
+
|
|
66
|
+
# Whether single-step instrumentation is enabled.
|
|
67
|
+
attr_accessor :is_single_step_instrumentation_enabled
|
|
68
|
+
|
|
69
|
+
# Timestamp of the last agent restart.
|
|
70
|
+
attr_accessor :last_restart_at
|
|
71
|
+
|
|
72
|
+
# The operating system.
|
|
73
|
+
attr_accessor :os
|
|
74
|
+
|
|
75
|
+
# The operating system version.
|
|
76
|
+
attr_accessor :os_version
|
|
77
|
+
|
|
78
|
+
# OpenTelemetry collector version (if applicable).
|
|
79
|
+
attr_accessor :otel_collector_version
|
|
80
|
+
|
|
81
|
+
# List of OpenTelemetry collector versions (if applicable).
|
|
82
|
+
attr_accessor :otel_collector_versions
|
|
83
|
+
|
|
84
|
+
# OpenTelemetry collectors associated with the agent (if applicable).
|
|
85
|
+
attr_accessor :otel_collectors
|
|
86
|
+
|
|
87
|
+
# Kubernetes pod name (if applicable).
|
|
88
|
+
attr_accessor :pod_name
|
|
89
|
+
|
|
90
|
+
# The Python version used by the agent.
|
|
91
|
+
attr_accessor :python_version
|
|
92
|
+
|
|
93
|
+
# Regions where the agent is running.
|
|
94
|
+
attr_accessor :region
|
|
95
|
+
|
|
96
|
+
# Remote agent management status.
|
|
97
|
+
attr_accessor :remote_agent_management
|
|
98
|
+
|
|
99
|
+
# Remote configuration status.
|
|
100
|
+
attr_accessor :remote_config_status
|
|
101
|
+
|
|
102
|
+
# Services running on the agent.
|
|
103
|
+
attr_accessor :services
|
|
104
|
+
|
|
105
|
+
# Tags associated with the agent.
|
|
106
|
+
attr_accessor :tags
|
|
107
|
+
|
|
108
|
+
# Team associated with the agent.
|
|
109
|
+
attr_accessor :team
|
|
110
|
+
|
|
111
|
+
attr_accessor :additional_properties
|
|
112
|
+
|
|
113
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
114
|
+
# @!visibility private
|
|
115
|
+
def self.attribute_map
|
|
116
|
+
{
|
|
117
|
+
:'agent_version' => :'agent_version',
|
|
118
|
+
:'api_key_name' => :'api_key_name',
|
|
119
|
+
:'api_key_uuid' => :'api_key_uuid',
|
|
120
|
+
:'cloud_provider' => :'cloud_provider',
|
|
121
|
+
:'cluster_name' => :'cluster_name',
|
|
122
|
+
:'datadog_agent_key' => :'datadog_agent_key',
|
|
123
|
+
:'enabled_products' => :'enabled_products',
|
|
124
|
+
:'env' => :'env',
|
|
125
|
+
:'first_seen_at' => :'first_seen_at',
|
|
126
|
+
:'hostname' => :'hostname',
|
|
127
|
+
:'hostname_aliases' => :'hostname_aliases',
|
|
128
|
+
:'install_method_installer_version' => :'install_method_installer_version',
|
|
129
|
+
:'install_method_tool' => :'install_method_tool',
|
|
130
|
+
:'ip_addresses' => :'ip_addresses',
|
|
131
|
+
:'is_single_step_instrumentation_enabled' => :'is_single_step_instrumentation_enabled',
|
|
132
|
+
:'last_restart_at' => :'last_restart_at',
|
|
133
|
+
:'os' => :'os',
|
|
134
|
+
:'os_version' => :'os_version',
|
|
135
|
+
:'otel_collector_version' => :'otel_collector_version',
|
|
136
|
+
:'otel_collector_versions' => :'otel_collector_versions',
|
|
137
|
+
:'otel_collectors' => :'otel_collectors',
|
|
138
|
+
:'pod_name' => :'pod_name',
|
|
139
|
+
:'python_version' => :'python_version',
|
|
140
|
+
:'region' => :'region',
|
|
141
|
+
:'remote_agent_management' => :'remote_agent_management',
|
|
142
|
+
:'remote_config_status' => :'remote_config_status',
|
|
143
|
+
:'services' => :'services',
|
|
144
|
+
:'tags' => :'tags',
|
|
145
|
+
:'team' => :'team'
|
|
146
|
+
}
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Attribute type mapping.
|
|
150
|
+
# @!visibility private
|
|
151
|
+
def self.openapi_types
|
|
152
|
+
{
|
|
153
|
+
:'agent_version' => :'String',
|
|
154
|
+
:'api_key_name' => :'String',
|
|
155
|
+
:'api_key_uuid' => :'String',
|
|
156
|
+
:'cloud_provider' => :'String',
|
|
157
|
+
:'cluster_name' => :'String',
|
|
158
|
+
:'datadog_agent_key' => :'String',
|
|
159
|
+
:'enabled_products' => :'Array<String>',
|
|
160
|
+
:'env' => :'Array<String>',
|
|
161
|
+
:'first_seen_at' => :'Integer',
|
|
162
|
+
:'hostname' => :'String',
|
|
163
|
+
:'hostname_aliases' => :'Array<String>',
|
|
164
|
+
:'install_method_installer_version' => :'String',
|
|
165
|
+
:'install_method_tool' => :'String',
|
|
166
|
+
:'ip_addresses' => :'Array<String>',
|
|
167
|
+
:'is_single_step_instrumentation_enabled' => :'Boolean',
|
|
168
|
+
:'last_restart_at' => :'Integer',
|
|
169
|
+
:'os' => :'String',
|
|
170
|
+
:'os_version' => :'String',
|
|
171
|
+
:'otel_collector_version' => :'String',
|
|
172
|
+
:'otel_collector_versions' => :'Array<String>',
|
|
173
|
+
:'otel_collectors' => :'Array<Hash<String, Object>>',
|
|
174
|
+
:'pod_name' => :'String',
|
|
175
|
+
:'python_version' => :'String',
|
|
176
|
+
:'region' => :'Array<String>',
|
|
177
|
+
:'remote_agent_management' => :'String',
|
|
178
|
+
:'remote_config_status' => :'String',
|
|
179
|
+
:'services' => :'Array<String>',
|
|
180
|
+
:'tags' => :'Array<String>',
|
|
181
|
+
:'team' => :'String'
|
|
182
|
+
}
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Initializes the object
|
|
186
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
187
|
+
# @!visibility private
|
|
188
|
+
def initialize(attributes = {})
|
|
189
|
+
if (!attributes.is_a?(Hash))
|
|
190
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetAgentInfoDetails` initialize method"
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
self.additional_properties = {}
|
|
194
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
195
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
196
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
197
|
+
self.additional_properties[k.to_sym] = v
|
|
198
|
+
else
|
|
199
|
+
h[k.to_sym] = v
|
|
200
|
+
end
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'agent_version')
|
|
204
|
+
self.agent_version = attributes[:'agent_version']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'api_key_name')
|
|
208
|
+
self.api_key_name = attributes[:'api_key_name']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'api_key_uuid')
|
|
212
|
+
self.api_key_uuid = attributes[:'api_key_uuid']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'cloud_provider')
|
|
216
|
+
self.cloud_provider = attributes[:'cloud_provider']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'cluster_name')
|
|
220
|
+
self.cluster_name = attributes[:'cluster_name']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'datadog_agent_key')
|
|
224
|
+
self.datadog_agent_key = attributes[:'datadog_agent_key']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'enabled_products')
|
|
228
|
+
if (value = attributes[:'enabled_products']).is_a?(Array)
|
|
229
|
+
self.enabled_products = value
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if attributes.key?(:'env')
|
|
234
|
+
if (value = attributes[:'env']).is_a?(Array)
|
|
235
|
+
self.env = value
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'first_seen_at')
|
|
240
|
+
self.first_seen_at = attributes[:'first_seen_at']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'hostname')
|
|
244
|
+
self.hostname = attributes[:'hostname']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'hostname_aliases')
|
|
248
|
+
if (value = attributes[:'hostname_aliases']).is_a?(Array)
|
|
249
|
+
self.hostname_aliases = value
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'install_method_installer_version')
|
|
254
|
+
self.install_method_installer_version = attributes[:'install_method_installer_version']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'install_method_tool')
|
|
258
|
+
self.install_method_tool = attributes[:'install_method_tool']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'ip_addresses')
|
|
262
|
+
if (value = attributes[:'ip_addresses']).is_a?(Array)
|
|
263
|
+
self.ip_addresses = value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'is_single_step_instrumentation_enabled')
|
|
268
|
+
self.is_single_step_instrumentation_enabled = attributes[:'is_single_step_instrumentation_enabled']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.key?(:'last_restart_at')
|
|
272
|
+
self.last_restart_at = attributes[:'last_restart_at']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'os')
|
|
276
|
+
self.os = attributes[:'os']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'os_version')
|
|
280
|
+
self.os_version = attributes[:'os_version']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.key?(:'otel_collector_version')
|
|
284
|
+
self.otel_collector_version = attributes[:'otel_collector_version']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.key?(:'otel_collector_versions')
|
|
288
|
+
if (value = attributes[:'otel_collector_versions']).is_a?(Array)
|
|
289
|
+
self.otel_collector_versions = value
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if attributes.key?(:'otel_collectors')
|
|
294
|
+
if (value = attributes[:'otel_collectors']).is_a?(Array)
|
|
295
|
+
self.otel_collectors = value
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.key?(:'pod_name')
|
|
300
|
+
self.pod_name = attributes[:'pod_name']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'python_version')
|
|
304
|
+
self.python_version = attributes[:'python_version']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'region')
|
|
308
|
+
if (value = attributes[:'region']).is_a?(Array)
|
|
309
|
+
self.region = value
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'remote_agent_management')
|
|
314
|
+
self.remote_agent_management = attributes[:'remote_agent_management']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'remote_config_status')
|
|
318
|
+
self.remote_config_status = attributes[:'remote_config_status']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'services')
|
|
322
|
+
if (value = attributes[:'services']).is_a?(Array)
|
|
323
|
+
self.services = value
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.key?(:'tags')
|
|
328
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
329
|
+
self.tags = value
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'team')
|
|
334
|
+
self.team = attributes[:'team']
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
339
|
+
# @return [Hash] Returns the object in the form of hash
|
|
340
|
+
# @!visibility private
|
|
341
|
+
def to_hash
|
|
342
|
+
hash = {}
|
|
343
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
344
|
+
value = self.send(attr)
|
|
345
|
+
if value.nil?
|
|
346
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
347
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
hash[param] = _to_hash(value)
|
|
351
|
+
end
|
|
352
|
+
self.additional_properties.each_pair do |attr, value|
|
|
353
|
+
hash[attr] = value
|
|
354
|
+
end
|
|
355
|
+
hash
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Checks equality by comparing each attribute.
|
|
359
|
+
# @param o [Object] Object to be compared
|
|
360
|
+
# @!visibility private
|
|
361
|
+
def ==(o)
|
|
362
|
+
return true if self.equal?(o)
|
|
363
|
+
self.class == o.class &&
|
|
364
|
+
agent_version == o.agent_version &&
|
|
365
|
+
api_key_name == o.api_key_name &&
|
|
366
|
+
api_key_uuid == o.api_key_uuid &&
|
|
367
|
+
cloud_provider == o.cloud_provider &&
|
|
368
|
+
cluster_name == o.cluster_name &&
|
|
369
|
+
datadog_agent_key == o.datadog_agent_key &&
|
|
370
|
+
enabled_products == o.enabled_products &&
|
|
371
|
+
env == o.env &&
|
|
372
|
+
first_seen_at == o.first_seen_at &&
|
|
373
|
+
hostname == o.hostname &&
|
|
374
|
+
hostname_aliases == o.hostname_aliases &&
|
|
375
|
+
install_method_installer_version == o.install_method_installer_version &&
|
|
376
|
+
install_method_tool == o.install_method_tool &&
|
|
377
|
+
ip_addresses == o.ip_addresses &&
|
|
378
|
+
is_single_step_instrumentation_enabled == o.is_single_step_instrumentation_enabled &&
|
|
379
|
+
last_restart_at == o.last_restart_at &&
|
|
380
|
+
os == o.os &&
|
|
381
|
+
os_version == o.os_version &&
|
|
382
|
+
otel_collector_version == o.otel_collector_version &&
|
|
383
|
+
otel_collector_versions == o.otel_collector_versions &&
|
|
384
|
+
otel_collectors == o.otel_collectors &&
|
|
385
|
+
pod_name == o.pod_name &&
|
|
386
|
+
python_version == o.python_version &&
|
|
387
|
+
region == o.region &&
|
|
388
|
+
remote_agent_management == o.remote_agent_management &&
|
|
389
|
+
remote_config_status == o.remote_config_status &&
|
|
390
|
+
services == o.services &&
|
|
391
|
+
tags == o.tags &&
|
|
392
|
+
team == o.team &&
|
|
393
|
+
additional_properties == o.additional_properties
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
# Calculates hash code according to all attributes.
|
|
397
|
+
# @return [Integer] Hash code
|
|
398
|
+
# @!visibility private
|
|
399
|
+
def hash
|
|
400
|
+
[agent_version, api_key_name, api_key_uuid, cloud_provider, cluster_name, datadog_agent_key, enabled_products, env, first_seen_at, hostname, hostname_aliases, install_method_installer_version, install_method_tool, ip_addresses, is_single_step_instrumentation_enabled, last_restart_at, os, os_version, otel_collector_version, otel_collector_versions, otel_collectors, pod_name, python_version, region, remote_agent_management, remote_config_status, services, tags, team, additional_properties].hash
|
|
401
|
+
end
|
|
402
|
+
end
|
|
403
|
+
end
|