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.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +105 -7
  3. data/.generator/schemas/v2/openapi.yaml +1285 -324
  4. data/CHANGELOG.md +26 -0
  5. data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
  6. data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
  7. data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
  8. data/examples/v2/apm/GetServiceList.rb +5 -0
  9. data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
  10. data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
  11. data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
  12. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
  13. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
  14. data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
  15. data/examples/v2/events/CreateEvent.rb +1 -0
  16. data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
  17. data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
  18. data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
  19. data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
  20. data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
  21. data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
  22. data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
  23. data/examples/v2/security-monitoring/CreateCases.rb +2 -2
  24. data/examples/v2/security-monitoring/CreateCases_2385516013.rb +1 -1
  25. data/examples/v2/security-monitoring/CreateCases_2798851680.rb +2 -2
  26. data/examples/v2/security-monitoring/CreateJiraIssues.rb +14 -69
  27. data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
  28. data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
  29. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
  30. data/lib/datadog_api_client/configuration.rb +4 -3
  31. data/lib/datadog_api_client/inflector.rb +43 -6
  32. data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
  33. data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
  34. data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
  35. data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
  36. data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
  37. data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
  38. data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
  39. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
  40. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
  41. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
  42. data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
  43. data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +71 -0
  44. data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
  45. data/lib/datadog_api_client/v2/api/on_call_api.rb +277 -0
  46. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +99 -11
  47. data/lib/datadog_api_client/v2/api/teams_api.rb +6 -0
  48. data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +1 -1
  49. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +1 -11
  50. data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +1 -1
  51. data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
  52. data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
  53. data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
  54. data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
  55. data/lib/datadog_api_client/v2/models/case_insights_items.rb +3 -3
  56. data/lib/datadog_api_client/v2/models/case_management_project_data.rb +1 -1
  57. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
  58. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
  59. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
  60. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
  61. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
  62. 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
  63. data/lib/datadog_api_client/v2/models/create_case_request_data.rb +1 -11
  64. data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +3 -3
  65. data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
  66. data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +3 -15
  67. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +1 -11
  68. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +43 -3
  69. data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +35 -14
  70. data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
  71. data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
  72. data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
  73. data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
  74. data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case.rb → create_user_notification_channel_request.rb} +5 -5
  75. data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
  76. data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
  77. data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +1 -11
  78. data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
  79. data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +1 -1
  80. data/lib/datadog_api_client/v2/models/finding_data.rb +1 -1
  81. data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +2 -2
  82. data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +4 -4
  83. data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
  84. data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
  85. data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
  86. data/lib/datadog_api_client/v2/models/library.rb +13 -1
  87. data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
  88. data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
  89. data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_attributes_fields.rb → list_deployment_rules_response_data_attributes.rb} +12 -10
  90. data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
  91. data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
  92. data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
  93. data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
  94. data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
  95. data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
  96. data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
  97. data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
  98. data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
  99. data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
  100. data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
  101. data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
  102. data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
  103. data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
  104. data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
  105. data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
  106. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
  107. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
  108. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
  109. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
  110. data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
  111. data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
  112. data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
  113. data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
  114. data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
  115. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
  116. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
  117. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
  118. data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
  119. data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
  120. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
  121. data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
  122. data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
  123. data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
  124. data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
  126. data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
  127. data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case_data.rb → service_list_data.rb} +17 -18
  128. data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
  129. data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
  130. data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
  131. data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
  132. data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
  133. data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
  134. data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
  135. data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
  136. data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
  137. data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
  138. data/lib/datadog_api_client/version.rb +1 -1
  139. metadata +55 -9
  140. data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +0 -56
  141. data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +0 -64
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ObservabilityPipelineAddFieldsProcessor
22
22
  include BaseGenericModel
23
23
 
24
+ # Whether this processor is enabled.
25
+ attr_reader :enabled
26
+
24
27
  # A list of static fields (key-value pairs) that is added to each log event processed by this component.
25
28
  attr_reader :fields
26
29
 
@@ -30,9 +33,6 @@ module DatadogAPIClient::V2
30
33
  # A Datadog search query used to determine which logs this processor targets.
31
34
  attr_reader :include
32
35
 
33
- # A list of component IDs whose output is used as the `input` for this component.
34
- attr_reader :inputs
35
-
36
36
  # The processor type. The value should always be `add_fields`.
37
37
  attr_reader :type
38
38
 
@@ -42,10 +42,10 @@ module DatadogAPIClient::V2
42
42
  # @!visibility private
43
43
  def self.attribute_map
44
44
  {
45
+ :'enabled' => :'enabled',
45
46
  :'fields' => :'fields',
46
47
  :'id' => :'id',
47
48
  :'include' => :'include',
48
- :'inputs' => :'inputs',
49
49
  :'type' => :'type'
50
50
  }
51
51
  end
@@ -54,10 +54,10 @@ module DatadogAPIClient::V2
54
54
  # @!visibility private
55
55
  def self.openapi_types
56
56
  {
57
+ :'enabled' => :'Boolean',
57
58
  :'fields' => :'Array<ObservabilityPipelineFieldValue>',
58
59
  :'id' => :'String',
59
60
  :'include' => :'String',
60
- :'inputs' => :'Array<String>',
61
61
  :'type' => :'ObservabilityPipelineAddFieldsProcessorType'
62
62
  }
63
63
  end
@@ -80,6 +80,10 @@ module DatadogAPIClient::V2
80
80
  end
81
81
  }
82
82
 
83
+ if attributes.key?(:'enabled')
84
+ self.enabled = attributes[:'enabled']
85
+ end
86
+
83
87
  if attributes.key?(:'fields')
84
88
  if (value = attributes[:'fields']).is_a?(Array)
85
89
  self.fields = value
@@ -94,12 +98,6 @@ module DatadogAPIClient::V2
94
98
  self.include = attributes[:'include']
95
99
  end
96
100
 
97
- if attributes.key?(:'inputs')
98
- if (value = attributes[:'inputs']).is_a?(Array)
99
- self.inputs = value
100
- end
101
- end
102
-
103
101
  if attributes.key?(:'type')
104
102
  self.type = attributes[:'type']
105
103
  end
@@ -109,14 +107,24 @@ module DatadogAPIClient::V2
109
107
  # @return true if the model is valid
110
108
  # @!visibility private
111
109
  def valid?
110
+ return false if @enabled.nil?
112
111
  return false if @fields.nil?
113
112
  return false if @id.nil?
114
113
  return false if @include.nil?
115
- return false if @inputs.nil?
116
114
  return false if @type.nil?
117
115
  true
118
116
  end
119
117
 
118
+ # Custom attribute writer method with validation
119
+ # @param enabled [Object] Object to be assigned
120
+ # @!visibility private
121
+ def enabled=(enabled)
122
+ if enabled.nil?
123
+ fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
124
+ end
125
+ @enabled = enabled
126
+ end
127
+
120
128
  # Custom attribute writer method with validation
121
129
  # @param fields [Object] Object to be assigned
122
130
  # @!visibility private
@@ -147,16 +155,6 @@ module DatadogAPIClient::V2
147
155
  @include = include
148
156
  end
149
157
 
150
- # Custom attribute writer method with validation
151
- # @param inputs [Object] Object to be assigned
152
- # @!visibility private
153
- def inputs=(inputs)
154
- if inputs.nil?
155
- fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
156
- end
157
- @inputs = inputs
158
- end
159
-
160
158
  # Custom attribute writer method with validation
161
159
  # @param type [Object] Object to be assigned
162
160
  # @!visibility private
@@ -193,10 +191,10 @@ module DatadogAPIClient::V2
193
191
  def ==(o)
194
192
  return true if self.equal?(o)
195
193
  self.class == o.class &&
194
+ enabled == o.enabled &&
196
195
  fields == o.fields &&
197
196
  id == o.id &&
198
197
  include == o.include &&
199
- inputs == o.inputs &&
200
198
  type == o.type &&
201
199
  additional_properties == o.additional_properties
202
200
  end
@@ -205,7 +203,7 @@ module DatadogAPIClient::V2
205
203
  # @return [Integer] Hash code
206
204
  # @!visibility private
207
205
  def hash
208
- [fields, id, include, inputs, type, additional_properties].hash
206
+ [enabled, fields, id, include, type, additional_properties].hash
209
207
  end
210
208
  end
211
209
  end
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # A list of destination components where processed logs are sent.
25
25
  attr_reader :destinations
26
26
 
27
- # A list of processors that transform or enrich log data.
27
+ # A list of processor groups that transform or enrich log data.
28
28
  attr_accessor :processors
29
29
 
30
30
  # A list of configured data sources for the pipeline.
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  def self.openapi_types
48
48
  {
49
49
  :'destinations' => :'Array<ObservabilityPipelineConfigDestinationItem>',
50
- :'processors' => :'Array<ObservabilityPipelineConfigProcessorItem>',
50
+ :'processors' => :'Array<ObservabilityPipelineConfigProcessorGroup>',
51
51
  :'sources' => :'Array<ObservabilityPipelineConfigSourceItem>'
52
52
  }
53
53
  end
@@ -0,0 +1,211 @@
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
+ # A group of processors.
21
+ class ObservabilityPipelineConfigProcessorGroup
22
+ include BaseGenericModel
23
+
24
+ # Whether this processor group is enabled.
25
+ attr_reader :enabled
26
+
27
+ # The unique identifier for the processor group.
28
+ attr_reader :id
29
+
30
+ # Conditional expression for when this processor group should execute.
31
+ attr_reader :include
32
+
33
+ # A list of IDs for components whose output is used as the input for this processor group.
34
+ attr_reader :inputs
35
+
36
+ # Processors applied sequentially within this group. Events flow through each processor in order.
37
+ attr_reader :processors
38
+
39
+ attr_accessor :additional_properties
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ # @!visibility private
43
+ def self.attribute_map
44
+ {
45
+ :'enabled' => :'enabled',
46
+ :'id' => :'id',
47
+ :'include' => :'include',
48
+ :'inputs' => :'inputs',
49
+ :'processors' => :'processors'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ # @!visibility private
55
+ def self.openapi_types
56
+ {
57
+ :'enabled' => :'Boolean',
58
+ :'id' => :'String',
59
+ :'include' => :'String',
60
+ :'inputs' => :'Array<String>',
61
+ :'processors' => :'Array<ObservabilityPipelineConfigProcessorItem>'
62
+ }
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param attributes [Hash] Model attributes in the form of hash
67
+ # @!visibility private
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup` initialize method"
71
+ end
72
+
73
+ self.additional_properties = {}
74
+ # check to see if the attribute exists and convert string to symbol for hash key
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!self.class.attribute_map.key?(k.to_sym))
77
+ self.additional_properties[k.to_sym] = v
78
+ else
79
+ h[k.to_sym] = v
80
+ end
81
+ }
82
+
83
+ if attributes.key?(:'enabled')
84
+ self.enabled = attributes[:'enabled']
85
+ end
86
+
87
+ if attributes.key?(:'id')
88
+ self.id = attributes[:'id']
89
+ end
90
+
91
+ if attributes.key?(:'include')
92
+ self.include = attributes[:'include']
93
+ end
94
+
95
+ if attributes.key?(:'inputs')
96
+ if (value = attributes[:'inputs']).is_a?(Array)
97
+ self.inputs = value
98
+ end
99
+ end
100
+
101
+ if attributes.key?(:'processors')
102
+ if (value = attributes[:'processors']).is_a?(Array)
103
+ self.processors = value
104
+ end
105
+ end
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ # @!visibility private
111
+ def valid?
112
+ return false if @enabled.nil?
113
+ return false if @id.nil?
114
+ return false if @include.nil?
115
+ return false if @inputs.nil?
116
+ return false if @processors.nil?
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param enabled [Object] Object to be assigned
122
+ # @!visibility private
123
+ def enabled=(enabled)
124
+ if enabled.nil?
125
+ fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
126
+ end
127
+ @enabled = enabled
128
+ end
129
+
130
+ # Custom attribute writer method with validation
131
+ # @param id [Object] Object to be assigned
132
+ # @!visibility private
133
+ def id=(id)
134
+ if id.nil?
135
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
136
+ end
137
+ @id = id
138
+ end
139
+
140
+ # Custom attribute writer method with validation
141
+ # @param include [Object] Object to be assigned
142
+ # @!visibility private
143
+ def include=(include)
144
+ if include.nil?
145
+ fail ArgumentError, 'invalid value for "include", include cannot be nil.'
146
+ end
147
+ @include = include
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param inputs [Object] Object to be assigned
152
+ # @!visibility private
153
+ def inputs=(inputs)
154
+ if inputs.nil?
155
+ fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
156
+ end
157
+ @inputs = inputs
158
+ end
159
+
160
+ # Custom attribute writer method with validation
161
+ # @param processors [Object] Object to be assigned
162
+ # @!visibility private
163
+ def processors=(processors)
164
+ if processors.nil?
165
+ fail ArgumentError, 'invalid value for "processors", processors cannot be nil.'
166
+ end
167
+ @processors = processors
168
+ end
169
+
170
+ # Returns the object in the form of hash, with additionalProperties support.
171
+ # @return [Hash] Returns the object in the form of hash
172
+ # @!visibility private
173
+ def to_hash
174
+ hash = {}
175
+ self.class.attribute_map.each_pair do |attr, param|
176
+ value = self.send(attr)
177
+ if value.nil?
178
+ is_nullable = self.class.openapi_nullable.include?(attr)
179
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
180
+ end
181
+
182
+ hash[param] = _to_hash(value)
183
+ end
184
+ self.additional_properties.each_pair do |attr, value|
185
+ hash[attr] = value
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Checks equality by comparing each attribute.
191
+ # @param o [Object] Object to be compared
192
+ # @!visibility private
193
+ def ==(o)
194
+ return true if self.equal?(o)
195
+ self.class == o.class &&
196
+ enabled == o.enabled &&
197
+ id == o.id &&
198
+ include == o.include &&
199
+ inputs == o.inputs &&
200
+ processors == o.processors &&
201
+ additional_properties == o.additional_properties
202
+ end
203
+
204
+ # Calculates hash code according to all attributes.
205
+ # @return [Integer] Hash code
206
+ # @!visibility private
207
+ def hash
208
+ [enabled, id, include, inputs, processors, additional_properties].hash
209
+ end
210
+ end
211
+ end
@@ -21,15 +21,15 @@ module DatadogAPIClient::V2
21
21
  class ObservabilityPipelineCustomProcessor
22
22
  include BaseGenericModel
23
23
 
24
+ # Whether this processor is enabled.
25
+ attr_reader :enabled
26
+
24
27
  # The unique identifier for this processor.
25
28
  attr_reader :id
26
29
 
27
30
  # A Datadog search query used to determine which logs this processor targets. This field should always be set to `*` for the custom_processor processor.
28
31
  attr_reader :include
29
32
 
30
- # A list of component IDs whose output is used as the input for this processor.
31
- attr_reader :inputs
32
-
33
33
  # Array of VRL remap rules.
34
34
  attr_reader :remaps
35
35
 
@@ -42,9 +42,9 @@ module DatadogAPIClient::V2
42
42
  # @!visibility private
43
43
  def self.attribute_map
44
44
  {
45
+ :'enabled' => :'enabled',
45
46
  :'id' => :'id',
46
47
  :'include' => :'include',
47
- :'inputs' => :'inputs',
48
48
  :'remaps' => :'remaps',
49
49
  :'type' => :'type'
50
50
  }
@@ -54,9 +54,9 @@ module DatadogAPIClient::V2
54
54
  # @!visibility private
55
55
  def self.openapi_types
56
56
  {
57
+ :'enabled' => :'Boolean',
57
58
  :'id' => :'String',
58
59
  :'include' => :'String',
59
- :'inputs' => :'Array<String>',
60
60
  :'remaps' => :'Array<ObservabilityPipelineCustomProcessorRemap>',
61
61
  :'type' => :'ObservabilityPipelineCustomProcessorType'
62
62
  }
@@ -80,6 +80,10 @@ module DatadogAPIClient::V2
80
80
  end
81
81
  }
82
82
 
83
+ if attributes.key?(:'enabled')
84
+ self.enabled = attributes[:'enabled']
85
+ end
86
+
83
87
  if attributes.key?(:'id')
84
88
  self.id = attributes[:'id']
85
89
  end
@@ -88,12 +92,6 @@ module DatadogAPIClient::V2
88
92
  self.include = attributes[:'include']
89
93
  end
90
94
 
91
- if attributes.key?(:'inputs')
92
- if (value = attributes[:'inputs']).is_a?(Array)
93
- self.inputs = value
94
- end
95
- end
96
-
97
95
  if attributes.key?(:'remaps')
98
96
  if (value = attributes[:'remaps']).is_a?(Array)
99
97
  self.remaps = value
@@ -109,15 +107,25 @@ module DatadogAPIClient::V2
109
107
  # @return true if the model is valid
110
108
  # @!visibility private
111
109
  def valid?
110
+ return false if @enabled.nil?
112
111
  return false if @id.nil?
113
112
  return false if @include.nil?
114
- return false if @inputs.nil?
115
113
  return false if @remaps.nil?
116
114
  return false if @remaps.length < 1
117
115
  return false if @type.nil?
118
116
  true
119
117
  end
120
118
 
119
+ # Custom attribute writer method with validation
120
+ # @param enabled [Object] Object to be assigned
121
+ # @!visibility private
122
+ def enabled=(enabled)
123
+ if enabled.nil?
124
+ fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
125
+ end
126
+ @enabled = enabled
127
+ end
128
+
121
129
  # Custom attribute writer method with validation
122
130
  # @param id [Object] Object to be assigned
123
131
  # @!visibility private
@@ -138,16 +146,6 @@ module DatadogAPIClient::V2
138
146
  @include = include
139
147
  end
140
148
 
141
- # Custom attribute writer method with validation
142
- # @param inputs [Object] Object to be assigned
143
- # @!visibility private
144
- def inputs=(inputs)
145
- if inputs.nil?
146
- fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
147
- end
148
- @inputs = inputs
149
- end
150
-
151
149
  # Custom attribute writer method with validation
152
150
  # @param remaps [Object] Object to be assigned
153
151
  # @!visibility private
@@ -197,9 +195,9 @@ module DatadogAPIClient::V2
197
195
  def ==(o)
198
196
  return true if self.equal?(o)
199
197
  self.class == o.class &&
198
+ enabled == o.enabled &&
200
199
  id == o.id &&
201
200
  include == o.include &&
202
- inputs == o.inputs &&
203
201
  remaps == o.remaps &&
204
202
  type == o.type &&
205
203
  additional_properties == o.additional_properties
@@ -209,7 +207,7 @@ module DatadogAPIClient::V2
209
207
  # @return [Integer] Hash code
210
208
  # @!visibility private
211
209
  def hash
212
- [id, include, inputs, remaps, type, additional_properties].hash
210
+ [enabled, id, include, remaps, type, additional_properties].hash
213
211
  end
214
212
  end
215
213
  end
@@ -25,7 +25,7 @@ module DatadogAPIClient::V2
25
25
  attr_reader :drop_on_error
26
26
 
27
27
  # Whether this remap rule is enabled.
28
- attr_reader :enabled
28
+ attr_accessor :enabled
29
29
 
30
30
  # A Datadog search query used to filter events for this specific remap rule.
31
31
  attr_reader :include
@@ -106,7 +106,6 @@ module DatadogAPIClient::V2
106
106
  # @!visibility private
107
107
  def valid?
108
108
  return false if @drop_on_error.nil?
109
- return false if @enabled.nil?
110
109
  return false if @include.nil?
111
110
  return false if @name.nil?
112
111
  return false if @source.nil?
@@ -123,16 +122,6 @@ module DatadogAPIClient::V2
123
122
  @drop_on_error = drop_on_error
124
123
  end
125
124
 
126
- # Custom attribute writer method with validation
127
- # @param enabled [Object] Object to be assigned
128
- # @!visibility private
129
- def enabled=(enabled)
130
- if enabled.nil?
131
- fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
132
- end
133
- @enabled = enabled
134
- end
135
-
136
125
  # Custom attribute writer method with validation
137
126
  # @param include [Object] Object to be assigned
138
127
  # @!visibility private
@@ -24,15 +24,15 @@ module DatadogAPIClient::V2
24
24
  # The action to take on tags with matching keys.
25
25
  attr_reader :action
26
26
 
27
+ # Whether this processor is enabled.
28
+ attr_reader :enabled
29
+
27
30
  # The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the `input` to downstream components).
28
31
  attr_reader :id
29
32
 
30
33
  # A Datadog search query used to determine which logs this processor targets.
31
34
  attr_reader :include
32
35
 
33
- # A list of component IDs whose output is used as the `input` for this component.
34
- attr_reader :inputs
35
-
36
36
  # A list of tag keys.
37
37
  attr_reader :keys
38
38
 
@@ -49,9 +49,9 @@ module DatadogAPIClient::V2
49
49
  def self.attribute_map
50
50
  {
51
51
  :'action' => :'action',
52
+ :'enabled' => :'enabled',
52
53
  :'id' => :'id',
53
54
  :'include' => :'include',
54
- :'inputs' => :'inputs',
55
55
  :'keys' => :'keys',
56
56
  :'mode' => :'mode',
57
57
  :'type' => :'type'
@@ -63,9 +63,9 @@ module DatadogAPIClient::V2
63
63
  def self.openapi_types
64
64
  {
65
65
  :'action' => :'ObservabilityPipelineDatadogTagsProcessorAction',
66
+ :'enabled' => :'Boolean',
66
67
  :'id' => :'String',
67
68
  :'include' => :'String',
68
- :'inputs' => :'Array<String>',
69
69
  :'keys' => :'Array<String>',
70
70
  :'mode' => :'ObservabilityPipelineDatadogTagsProcessorMode',
71
71
  :'type' => :'ObservabilityPipelineDatadogTagsProcessorType'
@@ -94,6 +94,10 @@ module DatadogAPIClient::V2
94
94
  self.action = attributes[:'action']
95
95
  end
96
96
 
97
+ if attributes.key?(:'enabled')
98
+ self.enabled = attributes[:'enabled']
99
+ end
100
+
97
101
  if attributes.key?(:'id')
98
102
  self.id = attributes[:'id']
99
103
  end
@@ -102,12 +106,6 @@ module DatadogAPIClient::V2
102
106
  self.include = attributes[:'include']
103
107
  end
104
108
 
105
- if attributes.key?(:'inputs')
106
- if (value = attributes[:'inputs']).is_a?(Array)
107
- self.inputs = value
108
- end
109
- end
110
-
111
109
  if attributes.key?(:'keys')
112
110
  if (value = attributes[:'keys']).is_a?(Array)
113
111
  self.keys = value
@@ -128,9 +126,9 @@ module DatadogAPIClient::V2
128
126
  # @!visibility private
129
127
  def valid?
130
128
  return false if @action.nil?
129
+ return false if @enabled.nil?
131
130
  return false if @id.nil?
132
131
  return false if @include.nil?
133
- return false if @inputs.nil?
134
132
  return false if @keys.nil?
135
133
  return false if @mode.nil?
136
134
  return false if @type.nil?
@@ -147,6 +145,16 @@ module DatadogAPIClient::V2
147
145
  @action = action
148
146
  end
149
147
 
148
+ # Custom attribute writer method with validation
149
+ # @param enabled [Object] Object to be assigned
150
+ # @!visibility private
151
+ def enabled=(enabled)
152
+ if enabled.nil?
153
+ fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
154
+ end
155
+ @enabled = enabled
156
+ end
157
+
150
158
  # Custom attribute writer method with validation
151
159
  # @param id [Object] Object to be assigned
152
160
  # @!visibility private
@@ -167,16 +175,6 @@ module DatadogAPIClient::V2
167
175
  @include = include
168
176
  end
169
177
 
170
- # Custom attribute writer method with validation
171
- # @param inputs [Object] Object to be assigned
172
- # @!visibility private
173
- def inputs=(inputs)
174
- if inputs.nil?
175
- fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
176
- end
177
- @inputs = inputs
178
- end
179
-
180
178
  # Custom attribute writer method with validation
181
179
  # @param keys [Object] Object to be assigned
182
180
  # @!visibility private
@@ -234,9 +232,9 @@ module DatadogAPIClient::V2
234
232
  return true if self.equal?(o)
235
233
  self.class == o.class &&
236
234
  action == o.action &&
235
+ enabled == o.enabled &&
237
236
  id == o.id &&
238
237
  include == o.include &&
239
- inputs == o.inputs &&
240
238
  keys == o.keys &&
241
239
  mode == o.mode &&
242
240
  type == o.type &&
@@ -247,7 +245,7 @@ module DatadogAPIClient::V2
247
245
  # @return [Integer] Hash code
248
246
  # @!visibility private
249
247
  def hash
250
- [action, id, include, inputs, keys, mode, type, additional_properties].hash
248
+ [action, enabled, id, include, keys, mode, type, additional_properties].hash
251
249
  end
252
250
  end
253
251
  end