datadog_api_client 2.57.0 → 2.58.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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +2 -0
  3. data/.generator/schemas/v2/openapi.yaml +748 -397
  4. data/CHANGELOG.md +21 -0
  5. data/examples/v1/monitors/CreateMonitor_1348801712.rb +23 -0
  6. data/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb +5 -0
  7. data/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb +20 -0
  8. data/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb +24 -0
  9. data/examples/v2/governance-console/UpdateGovernanceControl.rb +0 -1
  10. data/examples/v2/status-pages/PatchMaintenanceUpdate.rb +15 -0
  11. data/lib/datadog_api_client/configuration.rb +1 -3
  12. data/lib/datadog_api_client/inflector.rb +33 -14
  13. data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
  14. data/lib/datadog_api_client/v2/api/ci_visibility_git_hub_accounts_api.rb +160 -0
  15. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +73 -0
  16. data/lib/datadog_api_client/v2/api/status_pages_api.rb +83 -1
  17. data/lib/datadog_api_client/v2/models/agent_trigger.rb +105 -0
  18. data/lib/datadog_api_client/v2/models/agent_trigger_wrapper.rb +135 -0
  19. data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
  20. data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
  21. data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
  22. data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
  23. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_attributes.rb +147 -0
  24. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_data.rb → ci_app_git_hub_account_data.rb} +10 -8
  25. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_repository.rb +115 -0
  26. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_response.rb → ci_app_git_hub_account_response.rb} +5 -5
  27. data/lib/datadog_api_client/v2/models/{rum_rate_limit_quota_reached_action.rb → ci_app_git_hub_account_type.rb} +4 -4
  28. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_request.rb → ci_app_git_hub_account_update_request.rb} +5 -5
  29. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_attributes.rb +159 -0
  30. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_data.rb +146 -0
  31. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_repository.rb +148 -0
  32. data/lib/datadog_api_client/v2/models/{rum_rate_limit_adaptive_config.rb → ci_app_git_hub_accounts_response.rb} +19 -25
  33. data/lib/datadog_api_client/v2/models/completion_condition.rb +4 -29
  34. data/lib/datadog_api_client/v2/models/completion_gate.rb +4 -29
  35. data/lib/datadog_api_client/v2/models/create_degradation_request.rb +13 -3
  36. data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +1 -11
  37. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +9 -1
  38. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -1
  39. data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
  40. data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +1 -1
  41. data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +1 -1
  42. data/lib/datadog_api_client/v2/models/degradation_request_meta.rb +105 -0
  43. data/lib/datadog_api_client/v2/models/deployment_gates_fdd_rule_options.rb +13 -1
  44. data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +13 -1
  45. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation.rb +63 -0
  46. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_id.rb +119 -0
  47. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_version.rb +119 -0
  48. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request.rb +123 -0
  49. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_attributes.rb +196 -0
  50. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_data.rb +144 -0
  51. data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +15 -5
  52. data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +1 -1
  53. data/lib/datadog_api_client/v2/models/error_handler.rb +4 -29
  54. data/lib/datadog_api_client/v2/models/fleet_agent_info_details_v2.rb +1 -49
  55. data/lib/datadog_api_client/v2/models/form_trigger_wrapper.rb +1 -1
  56. data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
  57. data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +1 -22
  58. data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +10 -13
  59. data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +1 -11
  60. data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
  61. data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +4 -0
  62. data/lib/datadog_api_client/v2/models/maintenance_update.rb +105 -0
  63. data/lib/datadog_api_client/v2/models/maintenance_update_data.rb +164 -0
  64. data/lib/datadog_api_client/v2/models/maintenance_update_data_attributes.rb +167 -0
  65. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_type.rb → maintenance_update_data_attributes_status.rb} +6 -3
  66. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships.rb +125 -0
  67. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance.rb +123 -0
  68. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance_data.rb +144 -0
  69. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_attributes.rb → maintenance_update_data_relationships_user.rb} +17 -38
  70. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user_data.rb +144 -0
  71. data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
  72. data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +1 -1
  73. data/lib/datadog_api_client/v2/models/on_call_trigger_wrapper.rb +1 -1
  74. data/lib/datadog_api_client/v2/models/outbound_edge.rb +8 -0
  75. data/lib/datadog_api_client/v2/models/parameter.rb +4 -0
  76. data/lib/datadog_api_client/v2/models/patch_degradation_request.rb +13 -3
  77. data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes.rb +11 -1
  78. data/lib/datadog_api_client/v2/models/patch_maintenance_update_request.rb +105 -0
  79. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_data.rb → patch_maintenance_update_request_data.rb} +9 -21
  80. data/lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_attributes.rb +105 -0
  81. data/lib/datadog_api_client/v2/models/{rum_rate_limit_scope_type.rb → patch_maintenance_update_request_data_type.rb} +3 -3
  82. data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +1 -11
  83. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +9 -1
  84. data/lib/datadog_api_client/v2/models/readiness_gate.rb +4 -29
  85. data/lib/datadog_api_client/v2/models/retry_strategy.rb +12 -26
  86. data/lib/datadog_api_client/v2/models/retry_strategy_linear.rb +18 -29
  87. data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
  88. data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
  89. data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +1 -1
  90. data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
  91. data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +1 -1
  92. data/lib/datadog_api_client/v2/models/spec.rb +1 -1
  93. data/lib/datadog_api_client/v2/models/step.rb +11 -2
  94. data/lib/datadog_api_client/v2/models/step_display.rb +2 -1
  95. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +9 -1
  96. data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
  97. data/lib/datadog_api_client/v2/models/workflow_data_attributes.rb +1 -1
  98. data/lib/datadog_api_client/v2/models/workflow_data_update_attributes.rb +1 -1
  99. data/lib/datadog_api_client/v2/models/workflow_list_item_attributes.rb +1 -1
  100. data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +2 -2
  101. data/lib/datadog_api_client/version.rb +1 -1
  102. metadata +39 -18
  103. data/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.rb +0 -8
  104. data/examples/v2/rum-rate-limit/GetRumRateLimitConfig.rb +0 -8
  105. data/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.rb +0 -28
  106. data/lib/datadog_api_client/v2/api/rum_rate_limit_api.rb +0 -277
  107. data/lib/datadog_api_client/v2/models/rum_rate_limit_config_attributes.rb +0 -185
  108. data/lib/datadog_api_client/v2/models/rum_rate_limit_custom_config.rb +0 -223
  109. data/lib/datadog_api_client/v2/models/rum_rate_limit_mode.rb +0 -28
  110. data/lib/datadog_api_client/v2/models/rum_rate_limit_window_type.rb +0 -26
@@ -27,8 +27,6 @@ module DatadogAPIClient::V2
27
27
  # The definition of `RetryStrategy` object.
28
28
  attr_reader :retry_strategy
29
29
 
30
- attr_accessor :additional_properties
31
-
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  # @!visibility private
34
32
  def self.attribute_map
@@ -55,14 +53,12 @@ module DatadogAPIClient::V2
55
53
  fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ErrorHandler` initialize method"
56
54
  end
57
55
 
58
- self.additional_properties = {}
59
56
  # check to see if the attribute exists and convert string to symbol for hash key
60
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
58
  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
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ErrorHandler`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
60
  end
61
+ h[k.to_sym] = v
66
62
  }
67
63
 
68
64
  if attributes.key?(:'fallback_step_name')
@@ -103,26 +99,6 @@ module DatadogAPIClient::V2
103
99
  @retry_strategy = retry_strategy
104
100
  end
105
101
 
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
102
  # Checks equality by comparing each attribute.
127
103
  # @param o [Object] Object to be compared
128
104
  # @!visibility private
@@ -130,15 +106,14 @@ module DatadogAPIClient::V2
130
106
  return true if self.equal?(o)
131
107
  self.class == o.class &&
132
108
  fallback_step_name == o.fallback_step_name &&
133
- retry_strategy == o.retry_strategy &&
134
- additional_properties == o.additional_properties
109
+ retry_strategy == o.retry_strategy
135
110
  end
136
111
 
137
112
  # Calculates hash code according to all attributes.
138
113
  # @return [Integer] Hash code
139
114
  # @!visibility private
140
115
  def hash
141
- [fallback_step_name, retry_strategy, additional_properties].hash
116
+ [fallback_step_name, retry_strategy].hash
142
117
  end
143
118
  end
144
119
  end
@@ -96,21 +96,9 @@ module DatadogAPIClient::V2
96
96
  # The operating system version.
97
97
  attr_accessor :os_version
98
98
 
99
- # OpenTelemetry collector deployment types associated with the agent.
100
- attr_accessor :otel_collector_deployment_types
101
-
102
- # OpenTelemetry collector distributions associated with the agent.
103
- attr_accessor :otel_collector_distributions
104
-
105
- # List of OpenTelemetry collector versions (if applicable).
106
- attr_accessor :otel_collector_versions
107
-
108
99
  # OpenTelemetry collectors associated with the agent (if applicable).
109
100
  attr_accessor :otel_collectors
110
101
 
111
- # OpenTelemetry resource attributes reported by the agent.
112
- attr_accessor :otel_resource_attributes
113
-
114
102
  # Kubernetes pod name (if applicable).
115
103
  attr_accessor :pod_name
116
104
 
@@ -172,11 +160,7 @@ module DatadogAPIClient::V2
172
160
  :'last_restart_at' => :'last_restart_at',
173
161
  :'os' => :'os',
174
162
  :'os_version' => :'os_version',
175
- :'otel_collector_deployment_types' => :'otel_collector_deployment_types',
176
- :'otel_collector_distributions' => :'otel_collector_distributions',
177
- :'otel_collector_versions' => :'otel_collector_versions',
178
163
  :'otel_collectors' => :'otel_collectors',
179
- :'otel_resource_attributes' => :'otel_resource_attributes',
180
164
  :'pod_name' => :'pod_name',
181
165
  :'preferred_ha_active_agent' => :'preferred_ha_active_agent',
182
166
  :'python_version' => :'python_version',
@@ -219,11 +203,7 @@ module DatadogAPIClient::V2
219
203
  :'last_restart_at' => :'Integer',
220
204
  :'os' => :'String',
221
205
  :'os_version' => :'String',
222
- :'otel_collector_deployment_types' => :'Array<String>',
223
- :'otel_collector_distributions' => :'Array<String>',
224
- :'otel_collector_versions' => :'Array<String>',
225
206
  :'otel_collectors' => :'Array<Hash<String, Object>>',
226
- :'otel_resource_attributes' => :'Array<String>',
227
207
  :'pod_name' => :'String',
228
208
  :'preferred_ha_active_agent' => :'String',
229
209
  :'python_version' => :'String',
@@ -365,36 +345,12 @@ module DatadogAPIClient::V2
365
345
  self.os_version = attributes[:'os_version']
366
346
  end
367
347
 
368
- if attributes.key?(:'otel_collector_deployment_types')
369
- if (value = attributes[:'otel_collector_deployment_types']).is_a?(Array)
370
- self.otel_collector_deployment_types = value
371
- end
372
- end
373
-
374
- if attributes.key?(:'otel_collector_distributions')
375
- if (value = attributes[:'otel_collector_distributions']).is_a?(Array)
376
- self.otel_collector_distributions = value
377
- end
378
- end
379
-
380
- if attributes.key?(:'otel_collector_versions')
381
- if (value = attributes[:'otel_collector_versions']).is_a?(Array)
382
- self.otel_collector_versions = value
383
- end
384
- end
385
-
386
348
  if attributes.key?(:'otel_collectors')
387
349
  if (value = attributes[:'otel_collectors']).is_a?(Array)
388
350
  self.otel_collectors = value
389
351
  end
390
352
  end
391
353
 
392
- if attributes.key?(:'otel_resource_attributes')
393
- if (value = attributes[:'otel_resource_attributes']).is_a?(Array)
394
- self.otel_resource_attributes = value
395
- end
396
- end
397
-
398
354
  if attributes.key?(:'pod_name')
399
355
  self.pod_name = attributes[:'pod_name']
400
356
  end
@@ -493,11 +449,7 @@ module DatadogAPIClient::V2
493
449
  last_restart_at == o.last_restart_at &&
494
450
  os == o.os &&
495
451
  os_version == o.os_version &&
496
- otel_collector_deployment_types == o.otel_collector_deployment_types &&
497
- otel_collector_distributions == o.otel_collector_distributions &&
498
- otel_collector_versions == o.otel_collector_versions &&
499
452
  otel_collectors == o.otel_collectors &&
500
- otel_resource_attributes == o.otel_resource_attributes &&
501
453
  pod_name == o.pod_name &&
502
454
  preferred_ha_active_agent == o.preferred_ha_active_agent &&
503
455
  python_version == o.python_version &&
@@ -515,7 +467,7 @@ module DatadogAPIClient::V2
515
467
  # @return [Integer] Hash code
516
468
  # @!visibility private
517
469
  def hash
518
- [active_ha_agent, agent_version, api_key_name, api_key_uuid, cloud_provider, cluster_name, config_id, datadog_agent_key, datadog_data_center, ecs_fargate_cluster_name, ecs_fargate_task_arn, enabled_products, env, first_seen_at, ha_agent_hosts, ha_agent_state, hostname, hostname_aliases, install_method_installer_version, install_method_tool, ip_addresses, is_single_step_instrumentation_enabled, last_restart_at, os, os_version, otel_collector_deployment_types, otel_collector_distributions, otel_collector_versions, otel_collectors, otel_resource_attributes, pod_name, preferred_ha_active_agent, python_version, region, remote_agent_management, remote_config_status, services, support_agent_upgrade, tags, team, additional_properties].hash
470
+ [active_ha_agent, agent_version, api_key_name, api_key_uuid, cloud_provider, cluster_name, config_id, datadog_agent_key, datadog_data_center, ecs_fargate_cluster_name, ecs_fargate_task_arn, enabled_products, env, first_seen_at, ha_agent_hosts, ha_agent_state, hostname, hostname_aliases, install_method_installer_version, install_method_tool, ip_addresses, is_single_step_instrumentation_enabled, last_restart_at, os, os_version, otel_collectors, pod_name, preferred_ha_active_agent, python_version, region, remote_agent_management, remote_config_status, services, support_agent_upgrade, tags, team, additional_properties].hash
519
471
  end
520
472
  end
521
473
  end
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # Trigger a workflow from a Form.
25
25
  attr_reader :form_trigger
26
26
 
27
- # A list of steps that run first after a trigger fires.
27
+ # Names of existing workflow steps that run first after a trigger fires.
28
28
  attr_accessor :start_step_names
29
29
 
30
30
  attr_accessor :additional_properties
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # Trigger a workflow from a GitHub webhook. To trigger a workflow from GitHub, you must set a `webhookSecret`. In your GitHub Webhook Settings, set the Payload URL to "base_url"/api/v2/workflows/"workflow_id"/webhook?orgId="org_id", select application/json for the content type, and be highly recommend enabling SSL verification for security. The workflow must be published.
25
25
  attr_reader :github_webhook_trigger
26
26
 
27
- # A list of steps that run first after a trigger fires.
27
+ # Names of existing workflow steps that run first after a trigger fires.
28
28
  attr_accessor :start_step_names
29
29
 
30
30
  attr_accessor :additional_properties
@@ -36,9 +36,6 @@ module DatadogAPIClient::V2
36
36
  # A human-readable description of what the control detects.
37
37
  attr_reader :description
38
38
 
39
- # How often detections are evaluated for the control.
40
- attr_reader :detection_frequency
41
-
42
39
  # A free-form map of parameter names to their configured values.
43
40
  attr_reader :detection_parameters
44
41
 
@@ -92,7 +89,6 @@ module DatadogAPIClient::V2
92
89
  :'created_at' => :'created_at',
93
90
  :'created_by' => :'created_by',
94
91
  :'description' => :'description',
95
- :'detection_frequency' => :'detection_frequency',
96
92
  :'detection_parameters' => :'detection_parameters',
97
93
  :'insights' => :'insights',
98
94
  :'last_detection_at' => :'last_detection_at',
@@ -119,7 +115,6 @@ module DatadogAPIClient::V2
119
115
  :'created_at' => :'Time',
120
116
  :'created_by' => :'String',
121
117
  :'description' => :'String',
122
- :'detection_frequency' => :'String',
123
118
  :'detection_parameters' => :'Hash<String, Object>',
124
119
  :'insights' => :'Array<String>',
125
120
  :'last_detection_at' => :'Time',
@@ -183,10 +178,6 @@ module DatadogAPIClient::V2
183
178
  self.description = attributes[:'description']
184
179
  end
185
180
 
186
- if attributes.key?(:'detection_frequency')
187
- self.detection_frequency = attributes[:'detection_frequency']
188
- end
189
-
190
181
  if attributes.key?(:'detection_parameters')
191
182
  self.detection_parameters = attributes[:'detection_parameters']
192
183
  end
@@ -259,7 +250,6 @@ module DatadogAPIClient::V2
259
250
  return false if @created_at.nil?
260
251
  return false if @created_by.nil?
261
252
  return false if @description.nil?
262
- return false if @detection_frequency.nil?
263
253
  return false if @detection_parameters.nil?
264
254
  return false if @insights.nil?
265
255
  return false if @mitigated_detections_count.nil?
@@ -326,16 +316,6 @@ module DatadogAPIClient::V2
326
316
  @description = description
327
317
  end
328
318
 
329
- # Custom attribute writer method with validation
330
- # @param detection_frequency [Object] Object to be assigned
331
- # @!visibility private
332
- def detection_frequency=(detection_frequency)
333
- if detection_frequency.nil?
334
- fail ArgumentError, 'invalid value for "detection_frequency", detection_frequency cannot be nil.'
335
- end
336
- @detection_frequency = detection_frequency
337
- end
338
-
339
319
  # Custom attribute writer method with validation
340
320
  # @param detection_parameters [Object] Object to be assigned
341
321
  # @!visibility private
@@ -497,7 +477,6 @@ module DatadogAPIClient::V2
497
477
  created_at == o.created_at &&
498
478
  created_by == o.created_by &&
499
479
  description == o.description &&
500
- detection_frequency == o.detection_frequency &&
501
480
  detection_parameters == o.detection_parameters &&
502
481
  insights == o.insights &&
503
482
  last_detection_at == o.last_detection_at &&
@@ -519,7 +498,7 @@ module DatadogAPIClient::V2
519
498
  # @return [Integer] Hash code
520
499
  # @!visibility private
521
500
  def hash
522
- [active_detections_count, category, created_at, created_by, description, detection_frequency, detection_parameters, insights, last_detection_at, mitigated_detections_count, mitigation_parameters, mitigation_type, mitigations, name, priority, product, resource_type, resource_type_display_name, supported_detection_parameters, type, additional_properties].hash
501
+ [active_detections_count, category, created_at, created_by, description, detection_parameters, insights, last_detection_at, mitigated_detections_count, mitigation_parameters, mitigation_type, mitigations, name, priority, product, resource_type, resource_type_display_name, supported_detection_parameters, type, additional_properties].hash
523
502
  end
524
503
  end
525
504
  end
@@ -36,8 +36,8 @@ module DatadogAPIClient::V2
36
36
  # Whether the parameter must be provided.
37
37
  attr_reader :required
38
38
 
39
- # The supported values for an enumerated parameter.
40
- attr_reader :supported_values
39
+ # The supported values for an enumerated parameter. `null` when the parameter is not an enumerated type.
40
+ attr_accessor :supported_values
41
41
 
42
42
  # The type of the parameter, such as `integer`, `string`, `boolean`, `enum`, or `pattern_list`.
43
43
  attr_reader :type
@@ -72,6 +72,14 @@ module DatadogAPIClient::V2
72
72
  }
73
73
  end
74
74
 
75
+ # List of attributes with nullable: true
76
+ # @!visibility private
77
+ def self.openapi_nullable
78
+ Set.new([
79
+ :'supported_values',
80
+ ])
81
+ end
82
+
75
83
  # Initializes the object
76
84
  # @param attributes [Hash] Model attributes in the form of hash
77
85
  # @!visibility private
@@ -130,7 +138,6 @@ module DatadogAPIClient::V2
130
138
  return false if @display_name.nil?
131
139
  return false if @name.nil?
132
140
  return false if @required.nil?
133
- return false if @supported_values.nil?
134
141
  return false if @type.nil?
135
142
  true
136
143
  end
@@ -185,16 +192,6 @@ module DatadogAPIClient::V2
185
192
  @required = required
186
193
  end
187
194
 
188
- # Custom attribute writer method with validation
189
- # @param supported_values [Object] Object to be assigned
190
- # @!visibility private
191
- def supported_values=(supported_values)
192
- if supported_values.nil?
193
- fail ArgumentError, 'invalid value for "supported_values", supported_values cannot be nil.'
194
- end
195
- @supported_values = supported_values
196
- end
197
-
198
195
  # Custom attribute writer method with validation
199
196
  # @param type [Object] Object to be assigned
200
197
  # @!visibility private
@@ -21,9 +21,6 @@ module DatadogAPIClient::V2
21
21
  class GovernanceControlUpdateAttributes
22
22
  include BaseGenericModel
23
23
 
24
- # How often detections should be evaluated for the control.
25
- attr_accessor :detection_frequency
26
-
27
24
  # A free-form map of parameter names to their configured values.
28
25
  attr_accessor :detection_parameters
29
26
 
@@ -39,7 +36,6 @@ module DatadogAPIClient::V2
39
36
  # @!visibility private
40
37
  def self.attribute_map
41
38
  {
42
- :'detection_frequency' => :'detection_frequency',
43
39
  :'detection_parameters' => :'detection_parameters',
44
40
  :'mitigation_parameters' => :'mitigation_parameters',
45
41
  :'mitigation_type' => :'mitigation_type'
@@ -50,7 +46,6 @@ module DatadogAPIClient::V2
50
46
  # @!visibility private
51
47
  def self.openapi_types
52
48
  {
53
- :'detection_frequency' => :'String',
54
49
  :'detection_parameters' => :'Hash<String, Object>',
55
50
  :'mitigation_parameters' => :'Hash<String, Object>',
56
51
  :'mitigation_type' => :'String'
@@ -75,10 +70,6 @@ module DatadogAPIClient::V2
75
70
  end
76
71
  }
77
72
 
78
- if attributes.key?(:'detection_frequency')
79
- self.detection_frequency = attributes[:'detection_frequency']
80
- end
81
-
82
73
  if attributes.key?(:'detection_parameters')
83
74
  self.detection_parameters = attributes[:'detection_parameters']
84
75
  end
@@ -118,7 +109,6 @@ module DatadogAPIClient::V2
118
109
  def ==(o)
119
110
  return true if self.equal?(o)
120
111
  self.class == o.class &&
121
- detection_frequency == o.detection_frequency &&
122
112
  detection_parameters == o.detection_parameters &&
123
113
  mitigation_parameters == o.mitigation_parameters &&
124
114
  mitigation_type == o.mitigation_type &&
@@ -129,7 +119,7 @@ module DatadogAPIClient::V2
129
119
  # @return [Integer] Hash code
130
120
  # @!visibility private
131
121
  def hash
132
- [detection_frequency, detection_parameters, mitigation_parameters, mitigation_type, additional_properties].hash
122
+ [detection_parameters, mitigation_parameters, mitigation_type, additional_properties].hash
133
123
  end
134
124
  end
135
125
  end
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
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
- # A list of steps that run first after a trigger fires.
27
+ # Names of existing workflow steps that run first after a trigger fires.
28
28
  attr_accessor :start_step_names
29
29
 
30
30
  attr_accessor :additional_properties
@@ -124,6 +124,7 @@ module DatadogAPIClient::V2
124
124
  # @!visibility private
125
125
  def valid?
126
126
  return false if @name.nil?
127
+ return false if @name.to_s.length < 1
127
128
  return false if @type.nil?
128
129
  true
129
130
  end
@@ -135,6 +136,9 @@ module DatadogAPIClient::V2
135
136
  if name.nil?
136
137
  fail ArgumentError, 'invalid value for "name", name cannot be nil.'
137
138
  end
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
141
+ end
138
142
  @name = name
139
143
  end
140
144
 
@@ -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
+ # Response object for a maintenance update.
21
+ class MaintenanceUpdate
22
+ include BaseGenericModel
23
+
24
+ # The data object for a maintenance update.
25
+ attr_accessor :data
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' => :'data'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ # @!visibility private
39
+ def self.openapi_types
40
+ {
41
+ :'data' => :'MaintenanceUpdateData'
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::MaintenanceUpdate` 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')
64
+ self.data = attributes[:'data']
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
+ data == o.data &&
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
+ [data, additional_properties].hash
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,164 @@
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
+ # The data object for a maintenance update.
21
+ class MaintenanceUpdateData
22
+ include BaseGenericModel
23
+
24
+ # Attributes of a maintenance update resource.
25
+ attr_accessor :attributes
26
+
27
+ # The ID of the maintenance update.
28
+ attr_reader :id
29
+
30
+ # Relationships of a maintenance update resource.
31
+ attr_accessor :relationships
32
+
33
+ # Maintenance updates resource type.
34
+ attr_reader :type
35
+
36
+ attr_accessor :additional_properties
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ # @!visibility private
40
+ def self.attribute_map
41
+ {
42
+ :'attributes' => :'attributes',
43
+ :'id' => :'id',
44
+ :'relationships' => :'relationships',
45
+ :'type' => :'type'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ # @!visibility private
51
+ def self.openapi_types
52
+ {
53
+ :'attributes' => :'MaintenanceUpdateDataAttributes',
54
+ :'id' => :'UUID',
55
+ :'relationships' => :'MaintenanceUpdateDataRelationships',
56
+ :'type' => :'PatchMaintenanceUpdateRequestDataType'
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::MaintenanceUpdateData` initialize method"
66
+ end
67
+
68
+ self.additional_properties = {}
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ self.additional_properties[k.to_sym] = v
73
+ else
74
+ h[k.to_sym] = v
75
+ end
76
+ }
77
+
78
+ if attributes.key?(:'attributes')
79
+ self.attributes = attributes[:'attributes']
80
+ end
81
+
82
+ if attributes.key?(:'id')
83
+ self.id = attributes[:'id']
84
+ end
85
+
86
+ if attributes.key?(:'relationships')
87
+ self.relationships = attributes[:'relationships']
88
+ end
89
+
90
+ if attributes.key?(:'type')
91
+ self.type = attributes[:'type']
92
+ end
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ # @!visibility private
98
+ def valid?
99
+ return false if @id.nil?
100
+ return false if @type.nil?
101
+ true
102
+ end
103
+
104
+ # Custom attribute writer method with validation
105
+ # @param id [Object] Object to be assigned
106
+ # @!visibility private
107
+ def id=(id)
108
+ if id.nil?
109
+ fail ArgumentError, 'invalid value for "id", id cannot be nil.'
110
+ end
111
+ @id = id
112
+ end
113
+
114
+ # Custom attribute writer method with validation
115
+ # @param type [Object] Object to be assigned
116
+ # @!visibility private
117
+ def type=(type)
118
+ if type.nil?
119
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
120
+ end
121
+ @type = type
122
+ end
123
+
124
+ # Returns the object in the form of hash, with additionalProperties support.
125
+ # @return [Hash] Returns the object in the form of hash
126
+ # @!visibility private
127
+ def to_hash
128
+ hash = {}
129
+ self.class.attribute_map.each_pair do |attr, param|
130
+ value = self.send(attr)
131
+ if value.nil?
132
+ is_nullable = self.class.openapi_nullable.include?(attr)
133
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
134
+ end
135
+
136
+ hash[param] = _to_hash(value)
137
+ end
138
+ self.additional_properties.each_pair do |attr, value|
139
+ hash[attr] = value
140
+ end
141
+ hash
142
+ end
143
+
144
+ # Checks equality by comparing each attribute.
145
+ # @param o [Object] Object to be compared
146
+ # @!visibility private
147
+ def ==(o)
148
+ return true if self.equal?(o)
149
+ self.class == o.class &&
150
+ attributes == o.attributes &&
151
+ id == o.id &&
152
+ relationships == o.relationships &&
153
+ type == o.type &&
154
+ additional_properties == o.additional_properties
155
+ end
156
+
157
+ # Calculates hash code according to all attributes.
158
+ # @return [Integer] Hash code
159
+ # @!visibility private
160
+ def hash
161
+ [attributes, id, relationships, type, additional_properties].hash
162
+ end
163
+ end
164
+ end