datadog_api_client 2.46.0 → 2.47.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 +105 -7
- data/.generator/schemas/v2/openapi.yaml +1285 -324
- data/CHANGELOG.md +26 -0
- data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
- data/examples/v2/apm/GetServiceList.rb +5 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
- data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
- data/examples/v2/events/CreateEvent.rb +1 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
- data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
- data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
- data/examples/v2/security-monitoring/CreateCases.rb +2 -2
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +1 -1
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +2 -2
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +14 -69
- data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
- data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
- data/lib/datadog_api_client/configuration.rb +4 -3
- data/lib/datadog_api_client/inflector.rb +43 -6
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
- data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
- data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +71 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
- data/lib/datadog_api_client/v2/api/on_call_api.rb +277 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +99 -11
- data/lib/datadog_api_client/v2/api/teams_api.rb +6 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +3 -3
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_array_included.rb → cloud_workload_security_agent_rule_action_set_value.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +3 -15
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +43 -3
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +35 -14
- data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case.rb → create_user_notification_channel_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +2 -2
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +4 -4
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/library.rb +13 -1
- data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_attributes_fields.rb → list_deployment_rules_response_data_attributes.rb} +12 -10
- data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
- data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
- data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case_data.rb → service_list_data.rb} +17 -18
- data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +55 -9
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +0 -56
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +0 -64
|
@@ -24,9 +24,6 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Attributes of the Jira issue to attach security findings to.
|
|
25
25
|
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
-
# The unique identifier of the Jira issue attachment request.
|
|
28
|
-
attr_accessor :id
|
|
29
|
-
|
|
30
27
|
# Relationships of the Jira issue to attach security findings to.
|
|
31
28
|
attr_accessor :relationships
|
|
32
29
|
|
|
@@ -40,7 +37,6 @@ module DatadogAPIClient::V2
|
|
|
40
37
|
def self.attribute_map
|
|
41
38
|
{
|
|
42
39
|
:'attributes' => :'attributes',
|
|
43
|
-
:'id' => :'id',
|
|
44
40
|
:'relationships' => :'relationships',
|
|
45
41
|
:'type' => :'type'
|
|
46
42
|
}
|
|
@@ -51,7 +47,6 @@ module DatadogAPIClient::V2
|
|
|
51
47
|
def self.openapi_types
|
|
52
48
|
{
|
|
53
49
|
:'attributes' => :'AttachJiraIssueRequestDataAttributes',
|
|
54
|
-
:'id' => :'String',
|
|
55
50
|
:'relationships' => :'AttachJiraIssueRequestDataRelationships',
|
|
56
51
|
:'type' => :'JiraIssuesDataType'
|
|
57
52
|
}
|
|
@@ -79,10 +74,6 @@ module DatadogAPIClient::V2
|
|
|
79
74
|
self.attributes = attributes[:'attributes']
|
|
80
75
|
end
|
|
81
76
|
|
|
82
|
-
if attributes.key?(:'id')
|
|
83
|
-
self.id = attributes[:'id']
|
|
84
|
-
end
|
|
85
|
-
|
|
86
77
|
if attributes.key?(:'relationships')
|
|
87
78
|
self.relationships = attributes[:'relationships']
|
|
88
79
|
end
|
|
@@ -137,7 +128,6 @@ module DatadogAPIClient::V2
|
|
|
137
128
|
return true if self.equal?(o)
|
|
138
129
|
self.class == o.class &&
|
|
139
130
|
attributes == o.attributes &&
|
|
140
|
-
id == o.id &&
|
|
141
131
|
relationships == o.relationships &&
|
|
142
132
|
type == o.type &&
|
|
143
133
|
additional_properties == o.additional_properties
|
|
@@ -147,7 +137,7 @@ module DatadogAPIClient::V2
|
|
|
147
137
|
# @return [Integer] Hash code
|
|
148
138
|
# @!visibility private
|
|
149
139
|
def hash
|
|
150
|
-
[attributes,
|
|
140
|
+
[attributes, relationships, type, additional_properties].hash
|
|
151
141
|
end
|
|
152
142
|
end
|
|
153
143
|
end
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class AttachJiraIssueRequestDataAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# URL of the Jira issue to attach security findings to.
|
|
25
25
|
attr_reader :jira_issue_url
|
|
26
26
|
|
|
27
27
|
attr_accessor :additional_properties
|
|
@@ -38,6 +38,9 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# AWS Regions to collect data from. Defaults to `include_all`.
|
|
39
39
|
attr_accessor :aws_regions
|
|
40
40
|
|
|
41
|
+
# AWS Cloud Cost Management config.
|
|
42
|
+
attr_accessor :ccm_config
|
|
43
|
+
|
|
41
44
|
# AWS Logs Collection config.
|
|
42
45
|
attr_accessor :logs_config
|
|
43
46
|
|
|
@@ -61,6 +64,7 @@ module DatadogAPIClient::V2
|
|
|
61
64
|
:'aws_account_id' => :'aws_account_id',
|
|
62
65
|
:'aws_partition' => :'aws_partition',
|
|
63
66
|
:'aws_regions' => :'aws_regions',
|
|
67
|
+
:'ccm_config' => :'ccm_config',
|
|
64
68
|
:'logs_config' => :'logs_config',
|
|
65
69
|
:'metrics_config' => :'metrics_config',
|
|
66
70
|
:'resources_config' => :'resources_config',
|
|
@@ -77,6 +81,7 @@ module DatadogAPIClient::V2
|
|
|
77
81
|
:'aws_account_id' => :'String',
|
|
78
82
|
:'aws_partition' => :'AWSAccountPartition',
|
|
79
83
|
:'aws_regions' => :'AWSRegions',
|
|
84
|
+
:'ccm_config' => :'AWSCCMConfig',
|
|
80
85
|
:'logs_config' => :'AWSLogsConfig',
|
|
81
86
|
:'metrics_config' => :'AWSMetricsConfig',
|
|
82
87
|
:'resources_config' => :'AWSResourcesConfig',
|
|
@@ -132,6 +137,10 @@ module DatadogAPIClient::V2
|
|
|
132
137
|
self.aws_regions = attributes[:'aws_regions']
|
|
133
138
|
end
|
|
134
139
|
|
|
140
|
+
if attributes.key?(:'ccm_config')
|
|
141
|
+
self.ccm_config = attributes[:'ccm_config']
|
|
142
|
+
end
|
|
143
|
+
|
|
135
144
|
if attributes.key?(:'logs_config')
|
|
136
145
|
self.logs_config = attributes[:'logs_config']
|
|
137
146
|
end
|
|
@@ -220,6 +229,7 @@ module DatadogAPIClient::V2
|
|
|
220
229
|
aws_account_id == o.aws_account_id &&
|
|
221
230
|
aws_partition == o.aws_partition &&
|
|
222
231
|
aws_regions == o.aws_regions &&
|
|
232
|
+
ccm_config == o.ccm_config &&
|
|
223
233
|
logs_config == o.logs_config &&
|
|
224
234
|
metrics_config == o.metrics_config &&
|
|
225
235
|
resources_config == o.resources_config &&
|
|
@@ -231,7 +241,7 @@ module DatadogAPIClient::V2
|
|
|
231
241
|
# @return [Integer] Hash code
|
|
232
242
|
# @!visibility private
|
|
233
243
|
def hash
|
|
234
|
-
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, logs_config, metrics_config, resources_config, traces_config, additional_properties].hash
|
|
244
|
+
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, ccm_config, logs_config, metrics_config, resources_config, traces_config, additional_properties].hash
|
|
235
245
|
end
|
|
236
246
|
end
|
|
237
247
|
end
|
|
@@ -38,6 +38,9 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# AWS Regions to collect data from. Defaults to `include_all`.
|
|
39
39
|
attr_accessor :aws_regions
|
|
40
40
|
|
|
41
|
+
# AWS Cloud Cost Management config.
|
|
42
|
+
attr_accessor :ccm_config
|
|
43
|
+
|
|
41
44
|
# Timestamp of when the account integration was created.
|
|
42
45
|
attr_accessor :created_at
|
|
43
46
|
|
|
@@ -67,6 +70,7 @@ module DatadogAPIClient::V2
|
|
|
67
70
|
:'aws_account_id' => :'aws_account_id',
|
|
68
71
|
:'aws_partition' => :'aws_partition',
|
|
69
72
|
:'aws_regions' => :'aws_regions',
|
|
73
|
+
:'ccm_config' => :'ccm_config',
|
|
70
74
|
:'created_at' => :'created_at',
|
|
71
75
|
:'logs_config' => :'logs_config',
|
|
72
76
|
:'metrics_config' => :'metrics_config',
|
|
@@ -85,6 +89,7 @@ module DatadogAPIClient::V2
|
|
|
85
89
|
:'aws_account_id' => :'String',
|
|
86
90
|
:'aws_partition' => :'AWSAccountPartition',
|
|
87
91
|
:'aws_regions' => :'AWSRegions',
|
|
92
|
+
:'ccm_config' => :'AWSCCMConfig',
|
|
88
93
|
:'created_at' => :'Time',
|
|
89
94
|
:'logs_config' => :'AWSLogsConfig',
|
|
90
95
|
:'metrics_config' => :'AWSMetricsConfig',
|
|
@@ -142,6 +147,10 @@ module DatadogAPIClient::V2
|
|
|
142
147
|
self.aws_regions = attributes[:'aws_regions']
|
|
143
148
|
end
|
|
144
149
|
|
|
150
|
+
if attributes.key?(:'ccm_config')
|
|
151
|
+
self.ccm_config = attributes[:'ccm_config']
|
|
152
|
+
end
|
|
153
|
+
|
|
145
154
|
if attributes.key?(:'created_at')
|
|
146
155
|
self.created_at = attributes[:'created_at']
|
|
147
156
|
end
|
|
@@ -216,6 +225,7 @@ module DatadogAPIClient::V2
|
|
|
216
225
|
aws_account_id == o.aws_account_id &&
|
|
217
226
|
aws_partition == o.aws_partition &&
|
|
218
227
|
aws_regions == o.aws_regions &&
|
|
228
|
+
ccm_config == o.ccm_config &&
|
|
219
229
|
created_at == o.created_at &&
|
|
220
230
|
logs_config == o.logs_config &&
|
|
221
231
|
metrics_config == o.metrics_config &&
|
|
@@ -229,7 +239,7 @@ module DatadogAPIClient::V2
|
|
|
229
239
|
# @return [Integer] Hash code
|
|
230
240
|
# @!visibility private
|
|
231
241
|
def hash
|
|
232
|
-
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, created_at, logs_config, metrics_config, modified_at, resources_config, traces_config, additional_properties].hash
|
|
242
|
+
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, ccm_config, created_at, logs_config, metrics_config, modified_at, resources_config, traces_config, additional_properties].hash
|
|
233
243
|
end
|
|
234
244
|
end
|
|
235
245
|
end
|
|
@@ -38,6 +38,9 @@ module DatadogAPIClient::V2
|
|
|
38
38
|
# AWS Regions to collect data from. Defaults to `include_all`.
|
|
39
39
|
attr_accessor :aws_regions
|
|
40
40
|
|
|
41
|
+
# AWS Cloud Cost Management config.
|
|
42
|
+
attr_accessor :ccm_config
|
|
43
|
+
|
|
41
44
|
# AWS Logs Collection config.
|
|
42
45
|
attr_accessor :logs_config
|
|
43
46
|
|
|
@@ -61,6 +64,7 @@ module DatadogAPIClient::V2
|
|
|
61
64
|
:'aws_account_id' => :'aws_account_id',
|
|
62
65
|
:'aws_partition' => :'aws_partition',
|
|
63
66
|
:'aws_regions' => :'aws_regions',
|
|
67
|
+
:'ccm_config' => :'ccm_config',
|
|
64
68
|
:'logs_config' => :'logs_config',
|
|
65
69
|
:'metrics_config' => :'metrics_config',
|
|
66
70
|
:'resources_config' => :'resources_config',
|
|
@@ -77,6 +81,7 @@ module DatadogAPIClient::V2
|
|
|
77
81
|
:'aws_account_id' => :'String',
|
|
78
82
|
:'aws_partition' => :'AWSAccountPartition',
|
|
79
83
|
:'aws_regions' => :'AWSRegions',
|
|
84
|
+
:'ccm_config' => :'AWSCCMConfig',
|
|
80
85
|
:'logs_config' => :'AWSLogsConfig',
|
|
81
86
|
:'metrics_config' => :'AWSMetricsConfig',
|
|
82
87
|
:'resources_config' => :'AWSResourcesConfig',
|
|
@@ -132,6 +137,10 @@ module DatadogAPIClient::V2
|
|
|
132
137
|
self.aws_regions = attributes[:'aws_regions']
|
|
133
138
|
end
|
|
134
139
|
|
|
140
|
+
if attributes.key?(:'ccm_config')
|
|
141
|
+
self.ccm_config = attributes[:'ccm_config']
|
|
142
|
+
end
|
|
143
|
+
|
|
135
144
|
if attributes.key?(:'logs_config')
|
|
136
145
|
self.logs_config = attributes[:'logs_config']
|
|
137
146
|
end
|
|
@@ -198,6 +207,7 @@ module DatadogAPIClient::V2
|
|
|
198
207
|
aws_account_id == o.aws_account_id &&
|
|
199
208
|
aws_partition == o.aws_partition &&
|
|
200
209
|
aws_regions == o.aws_regions &&
|
|
210
|
+
ccm_config == o.ccm_config &&
|
|
201
211
|
logs_config == o.logs_config &&
|
|
202
212
|
metrics_config == o.metrics_config &&
|
|
203
213
|
resources_config == o.resources_config &&
|
|
@@ -209,7 +219,7 @@ module DatadogAPIClient::V2
|
|
|
209
219
|
# @return [Integer] Hash code
|
|
210
220
|
# @!visibility private
|
|
211
221
|
def hash
|
|
212
|
-
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, logs_config, metrics_config, resources_config, traces_config, additional_properties].hash
|
|
222
|
+
[account_tags, auth_config, aws_account_id, aws_partition, aws_regions, ccm_config, logs_config, metrics_config, resources_config, traces_config, additional_properties].hash
|
|
213
223
|
end
|
|
214
224
|
end
|
|
215
225
|
end
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
# AWS Cloud Cost Management config.
|
|
21
|
+
class AWSCCMConfig
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# List of data export configurations for Cost and Usage Reports.
|
|
25
|
+
attr_accessor :data_export_configs
|
|
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
|
+
:'data_export_configs' => :'data_export_configs'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'data_export_configs' => :'Array<DataExportConfig>'
|
|
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::AWSCCMConfig` 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?(:'data_export_configs')
|
|
64
|
+
if (value = attributes[:'data_export_configs']).is_a?(Array)
|
|
65
|
+
self.data_export_configs = value
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
71
|
+
# @return [Hash] Returns the object in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def to_hash
|
|
74
|
+
hash = {}
|
|
75
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
76
|
+
value = self.send(attr)
|
|
77
|
+
if value.nil?
|
|
78
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
79
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
hash[param] = _to_hash(value)
|
|
83
|
+
end
|
|
84
|
+
self.additional_properties.each_pair do |attr, value|
|
|
85
|
+
hash[attr] = value
|
|
86
|
+
end
|
|
87
|
+
hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param o [Object] Object to be compared
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def ==(o)
|
|
94
|
+
return true if self.equal?(o)
|
|
95
|
+
self.class == o.class &&
|
|
96
|
+
data_export_configs == o.data_export_configs &&
|
|
97
|
+
additional_properties == o.additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def hash
|
|
104
|
+
[data_export_configs, additional_properties].hash
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -21,13 +21,13 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class CaseInsightsItems
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Reference of the insight.
|
|
25
25
|
attr_accessor :ref
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Unique identifier of the resource. For example, the unique identifier of a security finding.
|
|
28
28
|
attr_accessor :resource_id
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# Type of the resource. For example, the type of a security finding is "SECURITY_FINDING".
|
|
31
31
|
attr_accessor :type
|
|
32
32
|
|
|
33
33
|
attr_accessor :additional_properties
|
|
@@ -51,6 +51,9 @@ module DatadogAPIClient::V2
|
|
|
51
51
|
# Whether the policy is pinned
|
|
52
52
|
attr_accessor :pinned
|
|
53
53
|
|
|
54
|
+
# The type of the policy
|
|
55
|
+
attr_accessor :policy_type
|
|
56
|
+
|
|
54
57
|
# The version of the policy
|
|
55
58
|
attr_accessor :policy_version
|
|
56
59
|
|
|
@@ -88,6 +91,7 @@ module DatadogAPIClient::V2
|
|
|
88
91
|
:'monitoring_rules_count' => :'monitoringRulesCount',
|
|
89
92
|
:'name' => :'name',
|
|
90
93
|
:'pinned' => :'pinned',
|
|
94
|
+
:'policy_type' => :'policyType',
|
|
91
95
|
:'policy_version' => :'policyVersion',
|
|
92
96
|
:'priority' => :'priority',
|
|
93
97
|
:'rule_count' => :'ruleCount',
|
|
@@ -112,6 +116,7 @@ module DatadogAPIClient::V2
|
|
|
112
116
|
:'monitoring_rules_count' => :'Integer',
|
|
113
117
|
:'name' => :'String',
|
|
114
118
|
:'pinned' => :'Boolean',
|
|
119
|
+
:'policy_type' => :'String',
|
|
115
120
|
:'policy_version' => :'String',
|
|
116
121
|
:'priority' => :'Integer',
|
|
117
122
|
:'rule_count' => :'Integer',
|
|
@@ -184,6 +189,10 @@ module DatadogAPIClient::V2
|
|
|
184
189
|
self.pinned = attributes[:'pinned']
|
|
185
190
|
end
|
|
186
191
|
|
|
192
|
+
if attributes.key?(:'policy_type')
|
|
193
|
+
self.policy_type = attributes[:'policy_type']
|
|
194
|
+
end
|
|
195
|
+
|
|
187
196
|
if attributes.key?(:'policy_version')
|
|
188
197
|
self.policy_version = attributes[:'policy_version']
|
|
189
198
|
end
|
|
@@ -302,6 +311,7 @@ module DatadogAPIClient::V2
|
|
|
302
311
|
monitoring_rules_count == o.monitoring_rules_count &&
|
|
303
312
|
name == o.name &&
|
|
304
313
|
pinned == o.pinned &&
|
|
314
|
+
policy_type == o.policy_type &&
|
|
305
315
|
policy_version == o.policy_version &&
|
|
306
316
|
priority == o.priority &&
|
|
307
317
|
rule_count == o.rule_count &&
|
|
@@ -316,7 +326,7 @@ module DatadogAPIClient::V2
|
|
|
316
326
|
# @return [Integer] Hash code
|
|
317
327
|
# @!visibility private
|
|
318
328
|
def hash
|
|
319
|
-
[blocking_rules_count, datadog_managed, description, disabled_rules_count, enabled, host_tags, host_tags_lists, monitoring_rules_count, name, pinned, policy_version, priority, rule_count, update_date, updated_at, updater, versions, additional_properties].hash
|
|
329
|
+
[blocking_rules_count, datadog_managed, description, disabled_rules_count, enabled, host_tags, host_tags_lists, monitoring_rules_count, name, pinned, policy_type, policy_version, priority, rule_count, update_date, updated_at, updater, versions, additional_properties].hash
|
|
320
330
|
end
|
|
321
331
|
end
|
|
322
332
|
end
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# SECL expression used to target the container to apply the action on
|
|
25
25
|
attr_accessor :filter
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Hash file specified by the field attribute
|
|
28
28
|
attr_accessor :_hash
|
|
29
29
|
|
|
30
30
|
# Kill system call applied on the container matching the rule
|
|
@@ -55,7 +55,7 @@ module DatadogAPIClient::V2
|
|
|
55
55
|
def self.openapi_types
|
|
56
56
|
{
|
|
57
57
|
:'filter' => :'String',
|
|
58
|
-
:'_hash' => :'
|
|
58
|
+
:'_hash' => :'CloudWorkloadSecurityAgentRuleActionHash',
|
|
59
59
|
:'kill' => :'CloudWorkloadSecurityAgentRuleKill',
|
|
60
60
|
:'metadata' => :'CloudWorkloadSecurityAgentRuleActionMetadata',
|
|
61
61
|
:'set' => :'CloudWorkloadSecurityAgentRuleActionSet'
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Hash file specified by the field attribute
|
|
21
|
+
class CloudWorkloadSecurityAgentRuleActionHash
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The field of the hash action
|
|
25
|
+
attr_accessor :field
|
|
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
|
+
:'field' => :'field'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'field' => :'String'
|
|
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::CloudWorkloadSecurityAgentRuleActionHash` 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?(:'field')
|
|
64
|
+
self.field = attributes[:'field']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
field == o.field &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[field, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -17,8 +17,8 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
21
|
-
module
|
|
20
|
+
# The value of the set action
|
|
21
|
+
module CloudWorkloadSecurityAgentRuleActionSetValue
|
|
22
22
|
class << self
|
|
23
23
|
include BaseOneOfModel
|
|
24
24
|
include BaseOneOfModelNoDiscriminator
|
|
@@ -26,9 +26,9 @@ module DatadogAPIClient::V2
|
|
|
26
26
|
# List of class defined in oneOf (OpenAPI v3)
|
|
27
27
|
def openapi_one_of
|
|
28
28
|
[
|
|
29
|
-
:'
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
29
|
+
:'String',
|
|
30
|
+
:'Integer',
|
|
31
|
+
:'Boolean'
|
|
32
32
|
]
|
|
33
33
|
end
|
|
34
34
|
# Builds the object
|
|
@@ -24,9 +24,6 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Attributes of the case to create.
|
|
25
25
|
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
-
# The unique identifier of the case.
|
|
28
|
-
attr_accessor :id
|
|
29
|
-
|
|
30
27
|
# Relationships of the case to create.
|
|
31
28
|
attr_accessor :relationships
|
|
32
29
|
|
|
@@ -40,7 +37,6 @@ module DatadogAPIClient::V2
|
|
|
40
37
|
def self.attribute_map
|
|
41
38
|
{
|
|
42
39
|
:'attributes' => :'attributes',
|
|
43
|
-
:'id' => :'id',
|
|
44
40
|
:'relationships' => :'relationships',
|
|
45
41
|
:'type' => :'type'
|
|
46
42
|
}
|
|
@@ -51,7 +47,6 @@ module DatadogAPIClient::V2
|
|
|
51
47
|
def self.openapi_types
|
|
52
48
|
{
|
|
53
49
|
:'attributes' => :'CreateCaseRequestDataAttributes',
|
|
54
|
-
:'id' => :'String',
|
|
55
50
|
:'relationships' => :'CreateCaseRequestDataRelationships',
|
|
56
51
|
:'type' => :'CaseDataType'
|
|
57
52
|
}
|
|
@@ -79,10 +74,6 @@ module DatadogAPIClient::V2
|
|
|
79
74
|
self.attributes = attributes[:'attributes']
|
|
80
75
|
end
|
|
81
76
|
|
|
82
|
-
if attributes.key?(:'id')
|
|
83
|
-
self.id = attributes[:'id']
|
|
84
|
-
end
|
|
85
|
-
|
|
86
77
|
if attributes.key?(:'relationships')
|
|
87
78
|
self.relationships = attributes[:'relationships']
|
|
88
79
|
end
|
|
@@ -137,7 +128,6 @@ module DatadogAPIClient::V2
|
|
|
137
128
|
return true if self.equal?(o)
|
|
138
129
|
self.class == o.class &&
|
|
139
130
|
attributes == o.attributes &&
|
|
140
|
-
id == o.id &&
|
|
141
131
|
relationships == o.relationships &&
|
|
142
132
|
type == o.type &&
|
|
143
133
|
additional_properties == o.additional_properties
|
|
@@ -147,7 +137,7 @@ module DatadogAPIClient::V2
|
|
|
147
137
|
# @return [Integer] Hash code
|
|
148
138
|
# @!visibility private
|
|
149
139
|
def hash
|
|
150
|
-
[attributes,
|
|
140
|
+
[attributes, relationships, type, additional_properties].hash
|
|
151
141
|
end
|
|
152
142
|
end
|
|
153
143
|
end
|
|
@@ -21,16 +21,16 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class CreateCaseRequestDataAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Unique identifier of the user assigned to the case.
|
|
25
25
|
attr_accessor :assignee_id
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Description of the case. If not provided, the description will be automatically generated.
|
|
28
28
|
attr_accessor :description
|
|
29
29
|
|
|
30
30
|
# Case priority
|
|
31
31
|
attr_accessor :priority
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# Title of the case. If not provided, the title will be automatically generated.
|
|
34
34
|
attr_accessor :title
|
|
35
35
|
|
|
36
36
|
attr_accessor :additional_properties
|