datadog_api_client 2.31.0 → 2.32.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 (213) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +80 -4
  4. data/.generator/schemas/v2/openapi.yaml +2417 -93
  5. data/.generator/src/generator/cli.py +1 -1
  6. data/.generator/src/generator/formatter.py +3 -0
  7. data/.generator/src/generator/templates/api.j2 +1 -1
  8. data/.generator/src/generator/templates/inflector.j2 +1 -1
  9. data/CHANGELOG.md +35 -0
  10. data/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb +1 -0
  11. data/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb +1 -0
  12. data/examples/v2/action-connection/CreateActionConnection.rb +1 -1
  13. data/examples/v2/action-connection/DeleteActionConnection.rb +4 -1
  14. data/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb +21 -0
  15. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb +25 -0
  16. data/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb +8 -0
  17. data/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb +8 -0
  18. data/examples/v2/observability-pipelines/CreatePipeline.rb +44 -0
  19. data/examples/v2/observability-pipelines/DeletePipeline.rb +11 -0
  20. data/examples/v2/observability-pipelines/GetPipeline.rb +11 -0
  21. data/examples/v2/observability-pipelines/UpdatePipeline.rb +48 -0
  22. data/examples/v2/on-call/CreateOnCallSchedule.rb +61 -0
  23. data/examples/v2/on-call/DeleteOnCallSchedule.rb +8 -0
  24. data/examples/v2/on-call/GetOnCallSchedule.rb +8 -0
  25. data/examples/v2/on-call/UpdateOnCallSchedule.rb +68 -0
  26. data/examples/v2/rum-retention-filters/CreateRetentionFilter.rb +0 -3
  27. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb +6 -0
  28. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
  29. data/examples/v2/software-catalog/UpsertCatalogEntity.rb +1 -0
  30. data/lib/datadog_api_client/configuration.rb +5 -0
  31. data/lib/datadog_api_client/inflector.rb +122 -3
  32. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
  33. data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_type.rb +1 -0
  34. data/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +11 -1
  35. data/lib/datadog_api_client/v1/models/synthetics_step_type.rb +1 -0
  36. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
  37. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
  38. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
  39. data/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb +108 -0
  40. data/lib/datadog_api_client/v2/api/downtimes_api.rb +2 -0
  41. data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +319 -0
  42. data/lib/datadog_api_client/v2/api/on_call_api.rb +301 -0
  43. data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +7 -3
  44. data/lib/datadog_api_client/v2/api/rum_retention_filters_api.rb +13 -13
  45. data/lib/datadog_api_client/v2/models/api_trigger.rb +1 -1
  46. data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
  47. data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
  48. data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_tags_category.rb +1 -1
  49. data/lib/datadog_api_client/v2/models/case_trigger.rb +1 -1
  50. data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
  51. data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
  52. data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
  53. data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +135 -0
  54. data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
  55. data/lib/datadog_api_client/v2/models/{rum_retention_filter_source.rb → entity_response_included_incident_type.rb} +3 -6
  56. data/lib/datadog_api_client/v2/models/entity_response_included_oncall.rb +1 -1
  57. data/lib/datadog_api_client/v2/models/{service_definition_v2_dot2_type.rb → entity_response_included_oncall_type.rb} +3 -9
  58. data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
  59. data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_type.rb +26 -0
  60. data/lib/datadog_api_client/v2/models/entity_response_included_related_entity.rb +1 -1
  61. data/lib/datadog_api_client/v2/models/entity_response_included_related_entity_type.rb +26 -0
  62. data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
  63. data/lib/datadog_api_client/v2/models/entity_response_included_schema_type.rb +26 -0
  64. data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +13 -1
  65. data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +13 -1
  66. data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +13 -1
  67. data/lib/datadog_api_client/v2/models/github_webhook_trigger.rb +1 -1
  68. data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
  69. data/lib/datadog_api_client/v2/models/historical_job_query.rb +11 -1
  70. data/lib/datadog_api_client/v2/models/incident_trigger.rb +1 -1
  71. data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
  72. data/lib/datadog_api_client/v2/models/interface_attributes.rb +13 -1
  73. data/lib/datadog_api_client/v2/models/layer.rb +135 -0
  74. data/lib/datadog_api_client/v2/models/layer_attributes.rb +157 -0
  75. data/lib/datadog_api_client/v2/models/layer_attributes_interval.rb +144 -0
  76. data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items.rb +136 -0
  77. data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_end_day.rb +32 -0
  78. data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +32 -0
  79. data/lib/datadog_api_client/v2/models/layer_relationships.rb +105 -0
  80. data/lib/datadog_api_client/v2/models/layer_relationships_members.rb +107 -0
  81. data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items.rb +116 -0
  82. data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items_type.rb +26 -0
  83. data/lib/datadog_api_client/v2/models/layer_type.rb +26 -0
  84. data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
  85. data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
  86. data/lib/datadog_api_client/v2/models/logs_query_options.rb +4 -1
  87. data/lib/datadog_api_client/v2/models/monitor_trigger.rb +1 -1
  88. data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
  89. data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +135 -0
  90. data/lib/datadog_api_client/v2/models/observability_pipeline.rb +123 -0
  91. data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +211 -0
  92. data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor_type.rb +26 -0
  93. data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +171 -0
  94. data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +62 -0
  95. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +67 -0
  96. data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +63 -0
  97. data/lib/datadog_api_client/v2/models/observability_pipeline_create_request.rb +123 -0
  98. data/lib/datadog_api_client/v2/models/observability_pipeline_create_request_data.rb +144 -0
  99. data/lib/datadog_api_client/v2/models/observability_pipeline_data.rb +165 -0
  100. data/lib/datadog_api_client/v2/models/observability_pipeline_data_attributes.rb +144 -0
  101. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +154 -0
  102. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source_type.rb +26 -0
  103. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +167 -0
  104. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination_type.rb +26 -0
  105. data/lib/datadog_api_client/v2/models/observability_pipeline_field_value.rb +144 -0
  106. data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +188 -0
  107. data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor_type.rb +26 -0
  108. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +220 -0
  109. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_librdkafka_option.rb +144 -0
  110. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_sasl.rb +105 -0
  111. data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_type.rb +26 -0
  112. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +209 -0
  113. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor_type.rb +26 -0
  114. data/lib/datadog_api_client/v2/models/observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb +28 -0
  115. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +285 -0
  116. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_limit.rb +144 -0
  117. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_limit_enforce_type.rb +27 -0
  118. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_override.rb +146 -0
  119. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_type.rb +26 -0
  120. data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +211 -0
  121. data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor_type.rb +26 -0
  122. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +211 -0
  123. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor_field.rb +165 -0
  124. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor_type.rb +26 -0
  125. data/lib/datadog_api_client/v2/models/observability_pipeline_tls.rb +143 -0
  126. data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +16 -5
  127. data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +16 -5
  128. data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +16 -5
  129. data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +16 -5
  130. data/lib/datadog_api_client/v2/models/rum_retention_filter_create_data.rb +1 -11
  131. data/lib/datadog_api_client/v2/models/rum_retention_filter_data.rb +1 -11
  132. data/lib/datadog_api_client/v2/models/rum_retention_filter_update_data.rb +1 -11
  133. data/lib/datadog_api_client/v2/models/rum_retention_filters_order_request.rb +1 -1
  134. data/lib/datadog_api_client/v2/models/rum_retention_filters_response.rb +1 -1
  135. data/lib/datadog_api_client/v2/models/schedule.rb +117 -0
  136. data/lib/datadog_api_client/v2/models/schedule_create_request.rb +123 -0
  137. data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +154 -0
  138. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +179 -0
  139. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +231 -0
  140. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_interval.rb +144 -0
  141. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_members_items.rb +105 -0
  142. data/lib/datadog_api_client/v2/models/{rum_retention_filter_meta.rb → schedule_create_request_data_attributes_layers_items_members_items_user.rb} +11 -11
  143. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items.rb +136 -0
  144. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +32 -0
  145. data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +32 -0
  146. data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +105 -0
  147. data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams.rb +107 -0
  148. data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items.rb +116 -0
  149. data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items_type.rb +26 -0
  150. data/lib/datadog_api_client/v2/models/schedule_create_request_data_type.rb +26 -0
  151. data/lib/datadog_api_client/v2/models/schedule_data.rb +135 -0
  152. data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +127 -0
  153. data/lib/datadog_api_client/v2/models/schedule_data_included_item.rb +65 -0
  154. data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +115 -0
  155. data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers.rb +107 -0
  156. data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items.rb +115 -0
  157. data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items_type.rb +26 -0
  158. data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams.rb +107 -0
  159. data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items.rb +115 -0
  160. data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items_type.rb +26 -0
  161. data/lib/datadog_api_client/v2/models/schedule_data_type.rb +26 -0
  162. data/lib/datadog_api_client/v2/models/schedule_member.rb +125 -0
  163. data/lib/datadog_api_client/v2/models/schedule_member_relationships.rb +105 -0
  164. data/lib/datadog_api_client/v2/models/schedule_member_relationships_user.rb +105 -0
  165. data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data.rb +115 -0
  166. data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data_type.rb +26 -0
  167. data/lib/datadog_api_client/v2/models/schedule_member_type.rb +26 -0
  168. data/lib/datadog_api_client/v2/models/schedule_trigger.rb +1 -1
  169. data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
  170. data/lib/datadog_api_client/v2/models/schedule_update_request.rb +123 -0
  171. data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +175 -0
  172. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +179 -0
  173. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +180 -0
  174. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +144 -0
  175. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_members_items.rb +106 -0
  176. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_members_items_user.rb +105 -0
  177. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items.rb +136 -0
  178. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +32 -0
  179. data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +32 -0
  180. data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +105 -0
  181. data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams.rb +107 -0
  182. data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items.rb +115 -0
  183. data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items_type.rb +26 -0
  184. data/lib/datadog_api_client/v2/models/schedule_update_request_data_type.rb +26 -0
  185. data/lib/datadog_api_client/v2/models/schedule_user.rb +125 -0
  186. data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +115 -0
  187. data/lib/datadog_api_client/v2/models/schedule_user_type.rb +26 -0
  188. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options.rb +13 -3
  189. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_type.rb +1 -0
  190. data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +31 -0
  191. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  192. data/lib/datadog_api_client/v2/models/security_trigger.rb +1 -1
  193. data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
  194. data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +135 -0
  195. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +1 -1
  196. data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb +107 -0
  197. data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb +125 -0
  198. data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb +215 -0
  199. data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb +26 -0
  200. data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
  201. data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +135 -0
  202. data/lib/datadog_api_client/v2/models/team_reference.rb +135 -0
  203. data/lib/datadog_api_client/v2/models/team_reference_attributes.rb +135 -0
  204. data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +105 -0
  205. data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users.rb +107 -0
  206. data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items.rb +115 -0
  207. data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items_type.rb +26 -0
  208. data/lib/datadog_api_client/v2/models/team_reference_type.rb +26 -0
  209. data/lib/datadog_api_client/v2/models/trigger.rb +4 -0
  210. data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +1 -1
  211. data/lib/datadog_api_client/version.rb +1 -1
  212. metadata +136 -6
  213. data/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +0 -8
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
24
24
  # The aggregation type.
25
25
  attr_accessor :aggregation
26
26
 
27
+ # Source of events, either logs or audit trail.
28
+ attr_accessor :data_source
29
+
27
30
  # Field for which the cardinality is measured. Sent as an array.
28
31
  attr_accessor :distinct_fields
29
32
 
@@ -49,6 +52,7 @@ module DatadogAPIClient::V2
49
52
  def self.attribute_map
50
53
  {
51
54
  :'aggregation' => :'aggregation',
55
+ :'data_source' => :'dataSource',
52
56
  :'distinct_fields' => :'distinctFields',
53
57
  :'group_by_fields' => :'groupByFields',
54
58
  :'has_optional_group_by_fields' => :'hasOptionalGroupByFields',
@@ -63,6 +67,7 @@ module DatadogAPIClient::V2
63
67
  def self.openapi_types
64
68
  {
65
69
  :'aggregation' => :'SecurityMonitoringRuleQueryAggregation',
70
+ :'data_source' => :'SecurityMonitoringStandardDataSource',
66
71
  :'distinct_fields' => :'Array<String>',
67
72
  :'group_by_fields' => :'Array<String>',
68
73
  :'has_optional_group_by_fields' => :'Boolean',
@@ -94,6 +99,10 @@ module DatadogAPIClient::V2
94
99
  self.aggregation = attributes[:'aggregation']
95
100
  end
96
101
 
102
+ if attributes.key?(:'data_source')
103
+ self.data_source = attributes[:'data_source']
104
+ end
105
+
97
106
  if attributes.key?(:'distinct_fields')
98
107
  if (value = attributes[:'distinct_fields']).is_a?(Array)
99
108
  self.distinct_fields = value
@@ -152,6 +161,7 @@ module DatadogAPIClient::V2
152
161
  return true if self.equal?(o)
153
162
  self.class == o.class &&
154
163
  aggregation == o.aggregation &&
164
+ data_source == o.data_source &&
155
165
  distinct_fields == o.distinct_fields &&
156
166
  group_by_fields == o.group_by_fields &&
157
167
  has_optional_group_by_fields == o.has_optional_group_by_fields &&
@@ -165,7 +175,7 @@ module DatadogAPIClient::V2
165
175
  # @return [Integer] Hash code
166
176
  # @!visibility private
167
177
  def hash
168
- [aggregation, distinct_fields, group_by_fields, has_optional_group_by_fields, metrics, name, query, additional_properties].hash
178
+ [aggregation, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metrics, name, query, additional_properties].hash
169
179
  end
170
180
  end
171
181
  end
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # Trigger a workflow VIA an Incident. For automatic triggering a handle must be configured and the workflow must be published.
20
+ # Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the workflow must be published.
21
21
  class IncidentTrigger
22
22
  include BaseGenericModel
23
23
 
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class IncidentTriggerWrapper
22
22
  include BaseGenericModel
23
23
 
24
- # Trigger a workflow VIA an Incident. For automatic triggering a handle must be configured and the workflow must be published.
24
+ # Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the workflow must be published.
25
25
  attr_reader :incident_trigger
26
26
 
27
27
  # A list of steps that run first after a trigger fires.
@@ -30,6 +30,9 @@ module DatadogAPIClient::V2
30
30
  # The interface index
31
31
  attr_accessor :index
32
32
 
33
+ # The interface IP addresses
34
+ attr_accessor :ip_addresses
35
+
33
36
  # The interface MAC address
34
37
  attr_accessor :mac_address
35
38
 
@@ -48,6 +51,7 @@ module DatadogAPIClient::V2
48
51
  :'_alias' => :'alias',
49
52
  :'description' => :'description',
50
53
  :'index' => :'index',
54
+ :'ip_addresses' => :'ip_addresses',
51
55
  :'mac_address' => :'mac_address',
52
56
  :'name' => :'name',
53
57
  :'status' => :'status'
@@ -61,6 +65,7 @@ module DatadogAPIClient::V2
61
65
  :'_alias' => :'String',
62
66
  :'description' => :'String',
63
67
  :'index' => :'Integer',
68
+ :'ip_addresses' => :'Array<String>',
64
69
  :'mac_address' => :'String',
65
70
  :'name' => :'String',
66
71
  :'status' => :'InterfaceAttributesStatus'
@@ -97,6 +102,12 @@ module DatadogAPIClient::V2
97
102
  self.index = attributes[:'index']
98
103
  end
99
104
 
105
+ if attributes.key?(:'ip_addresses')
106
+ if (value = attributes[:'ip_addresses']).is_a?(Array)
107
+ self.ip_addresses = value
108
+ end
109
+ end
110
+
100
111
  if attributes.key?(:'mac_address')
101
112
  self.mac_address = attributes[:'mac_address']
102
113
  end
@@ -139,6 +150,7 @@ module DatadogAPIClient::V2
139
150
  _alias == o._alias &&
140
151
  description == o.description &&
141
152
  index == o.index &&
153
+ ip_addresses == o.ip_addresses &&
142
154
  mac_address == o.mac_address &&
143
155
  name == o.name &&
144
156
  status == o.status &&
@@ -149,7 +161,7 @@ module DatadogAPIClient::V2
149
161
  # @return [Integer] Hash code
150
162
  # @!visibility private
151
163
  def hash
152
- [_alias, description, index, mac_address, name, status, additional_properties].hash
164
+ [_alias, description, index, ip_addresses, mac_address, name, status, additional_properties].hash
153
165
  end
154
166
  end
155
167
  end
@@ -0,0 +1,135 @@
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
+ # Encapsulates a layer resource, holding attributes like rotation details, plus relationships to the members covering that layer.
21
+ class Layer
22
+ include BaseGenericModel
23
+
24
+ # Describes key properties of a Layer, including rotation details, name, start/end times, and any restrictions.
25
+ attr_accessor :attributes
26
+
27
+ # A unique identifier for this layer.
28
+ attr_accessor :id
29
+
30
+ # Holds references to objects related to the Layer entity, such as its members.
31
+ attr_accessor :relationships
32
+
33
+ # Layers resource type.
34
+ attr_accessor :type
35
+
36
+ attr_accessor :additional_properties
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ # @!visibility private
40
+ def self.attribute_map
41
+ {
42
+ :'attributes' => :'attributes',
43
+ :'id' => :'id',
44
+ :'relationships' => :'relationships',
45
+ :'type' => :'type'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ # @!visibility private
51
+ def self.openapi_types
52
+ {
53
+ :'attributes' => :'LayerAttributes',
54
+ :'id' => :'String',
55
+ :'relationships' => :'LayerRelationships',
56
+ :'type' => :'LayerType'
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::Layer` initialize method"
66
+ end
67
+
68
+ self.additional_properties = {}
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ self.additional_properties[k.to_sym] = v
73
+ else
74
+ h[k.to_sym] = v
75
+ end
76
+ }
77
+
78
+ if attributes.key?(:'attributes')
79
+ self.attributes = attributes[:'attributes']
80
+ end
81
+
82
+ if attributes.key?(:'id')
83
+ self.id = attributes[:'id']
84
+ end
85
+
86
+ if attributes.key?(:'relationships')
87
+ self.relationships = attributes[:'relationships']
88
+ end
89
+
90
+ if attributes.key?(:'type')
91
+ self.type = attributes[:'type']
92
+ end
93
+ end
94
+
95
+ # Returns the object in the form of hash, with additionalProperties support.
96
+ # @return [Hash] Returns the object in the form of hash
97
+ # @!visibility private
98
+ def to_hash
99
+ hash = {}
100
+ self.class.attribute_map.each_pair do |attr, param|
101
+ value = self.send(attr)
102
+ if value.nil?
103
+ is_nullable = self.class.openapi_nullable.include?(attr)
104
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
105
+ end
106
+
107
+ hash[param] = _to_hash(value)
108
+ end
109
+ self.additional_properties.each_pair do |attr, value|
110
+ hash[attr] = value
111
+ end
112
+ hash
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param o [Object] Object to be compared
117
+ # @!visibility private
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ attributes == o.attributes &&
122
+ id == o.id &&
123
+ relationships == o.relationships &&
124
+ type == o.type &&
125
+ additional_properties == o.additional_properties
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ # @!visibility private
131
+ def hash
132
+ [attributes, id, relationships, type, additional_properties].hash
133
+ end
134
+ end
135
+ end
@@ -0,0 +1,157 @@
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
+ # Describes key properties of a Layer, including rotation details, name, start/end times, and any restrictions.
21
+ class LayerAttributes
22
+ include BaseGenericModel
23
+
24
+ # When the layer becomes active (ISO 8601).
25
+ attr_accessor :effective_date
26
+
27
+ # When the layer ceases to be active (ISO 8601).
28
+ attr_accessor :end_date
29
+
30
+ # Defines how often the rotation repeats, using a combination of days and optional seconds.
31
+ attr_accessor :interval
32
+
33
+ # The name of this layer.
34
+ attr_accessor :name
35
+
36
+ # An optional list of time restrictions for when this layer is in effect.
37
+ attr_accessor :restrictions
38
+
39
+ # The date/time when the rotation starts (ISO 8601).
40
+ attr_accessor :rotation_start
41
+
42
+ attr_accessor :additional_properties
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ # @!visibility private
46
+ def self.attribute_map
47
+ {
48
+ :'effective_date' => :'effective_date',
49
+ :'end_date' => :'end_date',
50
+ :'interval' => :'interval',
51
+ :'name' => :'name',
52
+ :'restrictions' => :'restrictions',
53
+ :'rotation_start' => :'rotation_start'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ # @!visibility private
59
+ def self.openapi_types
60
+ {
61
+ :'effective_date' => :'Time',
62
+ :'end_date' => :'Time',
63
+ :'interval' => :'LayerAttributesInterval',
64
+ :'name' => :'String',
65
+ :'restrictions' => :'Array<LayerAttributesRestrictionsItems>',
66
+ :'rotation_start' => :'Time'
67
+ }
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param attributes [Hash] Model attributes in the form of hash
72
+ # @!visibility private
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LayerAttributes` initialize method"
76
+ end
77
+
78
+ self.additional_properties = {}
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!self.class.attribute_map.key?(k.to_sym))
82
+ self.additional_properties[k.to_sym] = v
83
+ else
84
+ h[k.to_sym] = v
85
+ end
86
+ }
87
+
88
+ if attributes.key?(:'effective_date')
89
+ self.effective_date = attributes[:'effective_date']
90
+ end
91
+
92
+ if attributes.key?(:'end_date')
93
+ self.end_date = attributes[:'end_date']
94
+ end
95
+
96
+ if attributes.key?(:'interval')
97
+ self.interval = attributes[:'interval']
98
+ end
99
+
100
+ if attributes.key?(:'name')
101
+ self.name = attributes[:'name']
102
+ end
103
+
104
+ if attributes.key?(:'restrictions')
105
+ if (value = attributes[:'restrictions']).is_a?(Array)
106
+ self.restrictions = value
107
+ end
108
+ end
109
+
110
+ if attributes.key?(:'rotation_start')
111
+ self.rotation_start = attributes[:'rotation_start']
112
+ end
113
+ end
114
+
115
+ # Returns the object in the form of hash, with additionalProperties support.
116
+ # @return [Hash] Returns the object in the form of hash
117
+ # @!visibility private
118
+ def to_hash
119
+ hash = {}
120
+ self.class.attribute_map.each_pair do |attr, param|
121
+ value = self.send(attr)
122
+ if value.nil?
123
+ is_nullable = self.class.openapi_nullable.include?(attr)
124
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
125
+ end
126
+
127
+ hash[param] = _to_hash(value)
128
+ end
129
+ self.additional_properties.each_pair do |attr, value|
130
+ hash[attr] = value
131
+ end
132
+ hash
133
+ end
134
+
135
+ # Checks equality by comparing each attribute.
136
+ # @param o [Object] Object to be compared
137
+ # @!visibility private
138
+ def ==(o)
139
+ return true if self.equal?(o)
140
+ self.class == o.class &&
141
+ effective_date == o.effective_date &&
142
+ end_date == o.end_date &&
143
+ interval == o.interval &&
144
+ name == o.name &&
145
+ restrictions == o.restrictions &&
146
+ rotation_start == o.rotation_start &&
147
+ additional_properties == o.additional_properties
148
+ end
149
+
150
+ # Calculates hash code according to all attributes.
151
+ # @return [Integer] Hash code
152
+ # @!visibility private
153
+ def hash
154
+ [effective_date, end_date, interval, name, restrictions, rotation_start, additional_properties].hash
155
+ end
156
+ end
157
+ end
@@ -0,0 +1,144 @@
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
+ # Defines how often the rotation repeats, using a combination of days and optional seconds.
21
+ class LayerAttributesInterval
22
+ include BaseGenericModel
23
+
24
+ # The number of days in each rotation cycle.
25
+ attr_reader :days
26
+
27
+ # Any additional seconds for the rotation cycle (up to 30 days).
28
+ attr_reader :seconds
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'days' => :'days',
37
+ :'seconds' => :'seconds'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'days' => :'Integer',
46
+ :'seconds' => :'Integer'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LayerAttributesInterval` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'days')
69
+ self.days = attributes[:'days']
70
+ end
71
+
72
+ if attributes.key?(:'seconds')
73
+ self.seconds = attributes[:'seconds']
74
+ end
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ # @!visibility private
80
+ def valid?
81
+ return false if !@days.nil? && @days > 400
82
+ return false if !@seconds.nil? && @seconds > 2592000
83
+ true
84
+ end
85
+
86
+ # Custom attribute writer method with validation
87
+ # @param days [Object] Object to be assigned
88
+ # @!visibility private
89
+ def days=(days)
90
+ if !days.nil? && days > 400
91
+ fail ArgumentError, 'invalid value for "days", must be smaller than or equal to 400.'
92
+ end
93
+ @days = days
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param seconds [Object] Object to be assigned
98
+ # @!visibility private
99
+ def seconds=(seconds)
100
+ if !seconds.nil? && seconds > 2592000
101
+ fail ArgumentError, 'invalid value for "seconds", must be smaller than or equal to 2592000.'
102
+ end
103
+ @seconds = seconds
104
+ end
105
+
106
+ # Returns the object in the form of hash, with additionalProperties support.
107
+ # @return [Hash] Returns the object in the form of hash
108
+ # @!visibility private
109
+ def to_hash
110
+ hash = {}
111
+ self.class.attribute_map.each_pair do |attr, param|
112
+ value = self.send(attr)
113
+ if value.nil?
114
+ is_nullable = self.class.openapi_nullable.include?(attr)
115
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
116
+ end
117
+
118
+ hash[param] = _to_hash(value)
119
+ end
120
+ self.additional_properties.each_pair do |attr, value|
121
+ hash[attr] = value
122
+ end
123
+ hash
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param o [Object] Object to be compared
128
+ # @!visibility private
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ days == o.days &&
133
+ seconds == o.seconds &&
134
+ additional_properties == o.additional_properties
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ # @!visibility private
140
+ def hash
141
+ [days, seconds, additional_properties].hash
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,136 @@
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 a time restriction within a layer, specifying the days and times
21
+ # when this layer is active or inactive.
22
+ class LayerAttributesRestrictionsItems
23
+ include BaseGenericModel
24
+
25
+ # Defines the end day of the restriction within a Layer.
26
+ attr_accessor :end_day
27
+
28
+ # The time of day the restriction ends (hh:mm:ss).
29
+ attr_accessor :end_time
30
+
31
+ # Defines the start day of the restriction within a Layer.
32
+ attr_accessor :start_day
33
+
34
+ # The time of day the restriction begins (hh:mm:ss).
35
+ attr_accessor :start_time
36
+
37
+ attr_accessor :additional_properties
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ # @!visibility private
41
+ def self.attribute_map
42
+ {
43
+ :'end_day' => :'end_day',
44
+ :'end_time' => :'end_time',
45
+ :'start_day' => :'start_day',
46
+ :'start_time' => :'start_time'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ # @!visibility private
52
+ def self.openapi_types
53
+ {
54
+ :'end_day' => :'LayerAttributesRestrictionsItemsEndDay',
55
+ :'end_time' => :'String',
56
+ :'start_day' => :'LayerAttributesRestrictionsItemsStartDay',
57
+ :'start_time' => :'String'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param attributes [Hash] Model attributes in the form of hash
63
+ # @!visibility private
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LayerAttributesRestrictionsItems` initialize method"
67
+ end
68
+
69
+ self.additional_properties = {}
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!self.class.attribute_map.key?(k.to_sym))
73
+ self.additional_properties[k.to_sym] = v
74
+ else
75
+ h[k.to_sym] = v
76
+ end
77
+ }
78
+
79
+ if attributes.key?(:'end_day')
80
+ self.end_day = attributes[:'end_day']
81
+ end
82
+
83
+ if attributes.key?(:'end_time')
84
+ self.end_time = attributes[:'end_time']
85
+ end
86
+
87
+ if attributes.key?(:'start_day')
88
+ self.start_day = attributes[:'start_day']
89
+ end
90
+
91
+ if attributes.key?(:'start_time')
92
+ self.start_time = attributes[:'start_time']
93
+ end
94
+ end
95
+
96
+ # Returns the object in the form of hash, with additionalProperties support.
97
+ # @return [Hash] Returns the object in the form of hash
98
+ # @!visibility private
99
+ def to_hash
100
+ hash = {}
101
+ self.class.attribute_map.each_pair do |attr, param|
102
+ value = self.send(attr)
103
+ if value.nil?
104
+ is_nullable = self.class.openapi_nullable.include?(attr)
105
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
106
+ end
107
+
108
+ hash[param] = _to_hash(value)
109
+ end
110
+ self.additional_properties.each_pair do |attr, value|
111
+ hash[attr] = value
112
+ end
113
+ hash
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param o [Object] Object to be compared
118
+ # @!visibility private
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ end_day == o.end_day &&
123
+ end_time == o.end_time &&
124
+ start_day == o.start_day &&
125
+ start_time == o.start_time &&
126
+ additional_properties == o.additional_properties
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ # @!visibility private
132
+ def hash
133
+ [end_day, end_time, start_day, start_time, additional_properties].hash
134
+ end
135
+ end
136
+ end