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
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class PatchTableRequestDataAttributesSchema
22
22
  include BaseGenericModel
23
23
 
24
- # The schema fields.
24
+ # The schema fields. Maximum of 200 columns.
25
25
  attr_reader :fields
26
26
 
27
27
  # List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows. Primary keys cannot be changed after table creation.
@@ -83,6 +83,8 @@ module DatadogAPIClient::V2
83
83
  # @!visibility private
84
84
  def valid?
85
85
  return false if @fields.nil?
86
+ return false if @fields.length > 200
87
+ return false if @fields.length < 1
86
88
  return false if @primary_keys.nil?
87
89
  true
88
90
  end
@@ -94,6 +96,12 @@ module DatadogAPIClient::V2
94
96
  if fields.nil?
95
97
  fail ArgumentError, 'invalid value for "fields", fields cannot be nil.'
96
98
  end
99
+ if fields.length > 200
100
+ fail ArgumentError, 'invalid value for "fields", number of items must be less than or equal to 200.'
101
+ end
102
+ if fields.length < 1
103
+ fail ArgumentError, 'invalid value for "fields", number of items must be greater than or equal to 1.'
104
+ end
97
105
  @fields = fields
98
106
  end
99
107
 
@@ -24,8 +24,6 @@ module DatadogAPIClient::V2
24
24
  # The definition of `ReadinessGateThresholdType` object.
25
25
  attr_reader :threshold_type
26
26
 
27
- attr_accessor :additional_properties
28
-
29
27
  # Attribute mapping from ruby-style variable name to JSON key.
30
28
  # @!visibility private
31
29
  def self.attribute_map
@@ -50,14 +48,12 @@ module DatadogAPIClient::V2
50
48
  fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ReadinessGate` initialize method"
51
49
  end
52
50
 
53
- self.additional_properties = {}
54
51
  # check to see if the attribute exists and convert string to symbol for hash key
55
52
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
53
  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
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ReadinessGate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
55
  end
56
+ h[k.to_sym] = v
61
57
  }
62
58
 
63
59
  if attributes.key?(:'threshold_type')
@@ -83,41 +79,20 @@ module DatadogAPIClient::V2
83
79
  @threshold_type = threshold_type
84
80
  end
85
81
 
86
- # Returns the object in the form of hash, with additionalProperties support.
87
- # @return [Hash] Returns the object in the form of hash
88
- # @!visibility private
89
- def to_hash
90
- hash = {}
91
- self.class.attribute_map.each_pair do |attr, param|
92
- value = self.send(attr)
93
- if value.nil?
94
- is_nullable = self.class.openapi_nullable.include?(attr)
95
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
96
- end
97
-
98
- hash[param] = _to_hash(value)
99
- end
100
- self.additional_properties.each_pair do |attr, value|
101
- hash[attr] = value
102
- end
103
- hash
104
- end
105
-
106
82
  # Checks equality by comparing each attribute.
107
83
  # @param o [Object] Object to be compared
108
84
  # @!visibility private
109
85
  def ==(o)
110
86
  return true if self.equal?(o)
111
87
  self.class == o.class &&
112
- threshold_type == o.threshold_type &&
113
- additional_properties == o.additional_properties
88
+ threshold_type == o.threshold_type
114
89
  end
115
90
 
116
91
  # Calculates hash code according to all attributes.
117
92
  # @return [Integer] Hash code
118
93
  # @!visibility private
119
94
  def hash
120
- [threshold_type, additional_properties].hash
95
+ [threshold_type].hash
121
96
  end
122
97
  end
123
98
  end
@@ -25,9 +25,7 @@ module DatadogAPIClient::V2
25
25
  attr_reader :kind
26
26
 
27
27
  # The definition of `RetryStrategyLinear` object.
28
- attr_accessor :linear
29
-
30
- attr_accessor :additional_properties
28
+ attr_reader :linear
31
29
 
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  # @!visibility private
@@ -55,14 +53,12 @@ module DatadogAPIClient::V2
55
53
  fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetryStrategy` 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::RetryStrategy`. 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?(:'kind')
@@ -79,6 +75,7 @@ module DatadogAPIClient::V2
79
75
  # @!visibility private
80
76
  def valid?
81
77
  return false if @kind.nil?
78
+ return false if @linear.nil?
82
79
  true
83
80
  end
84
81
 
@@ -92,24 +89,14 @@ module DatadogAPIClient::V2
92
89
  @kind = kind
93
90
  end
94
91
 
95
- # Returns the object in the form of hash, with additionalProperties support.
96
- # @return [Hash] Returns the object in the form of hash
92
+ # Custom attribute writer method with validation
93
+ # @param linear [Object] Object to be assigned
97
94
  # @!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
95
+ def linear=(linear)
96
+ if linear.nil?
97
+ fail ArgumentError, 'invalid value for "linear", linear cannot be nil.'
111
98
  end
112
- hash
99
+ @linear = linear
113
100
  end
114
101
 
115
102
  # Checks equality by comparing each attribute.
@@ -119,15 +106,14 @@ module DatadogAPIClient::V2
119
106
  return true if self.equal?(o)
120
107
  self.class == o.class &&
121
108
  kind == o.kind &&
122
- linear == o.linear &&
123
- additional_properties == o.additional_properties
109
+ linear == o.linear
124
110
  end
125
111
 
126
112
  # Calculates hash code according to all attributes.
127
113
  # @return [Integer] Hash code
128
114
  # @!visibility private
129
115
  def hash
130
- [kind, linear, additional_properties].hash
116
+ [kind, linear].hash
131
117
  end
132
118
  end
133
119
  end
@@ -27,8 +27,6 @@ module DatadogAPIClient::V2
27
27
  # The `RetryStrategyLinear` `maxRetries`.
28
28
  attr_reader :max_retries
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
@@ -43,7 +41,7 @@ module DatadogAPIClient::V2
43
41
  def self.openapi_types
44
42
  {
45
43
  :'interval' => :'String',
46
- :'max_retries' => :'Float'
44
+ :'max_retries' => :'Integer'
47
45
  }
48
46
  end
49
47
 
@@ -55,14 +53,12 @@ module DatadogAPIClient::V2
55
53
  fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetryStrategyLinear` 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::RetryStrategyLinear`. 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?(:'interval')
@@ -79,7 +75,11 @@ module DatadogAPIClient::V2
79
75
  # @!visibility private
80
76
  def valid?
81
77
  return false if @interval.nil?
78
+ pattern = Regexp.new(/^[1-9][0-9]*s$/)
79
+ return false if @interval !~ pattern
82
80
  return false if @max_retries.nil?
81
+ return false if @max_retries > 2147483647
82
+ return false if @max_retries < 0
83
83
  true
84
84
  end
85
85
 
@@ -90,6 +90,10 @@ module DatadogAPIClient::V2
90
90
  if interval.nil?
91
91
  fail ArgumentError, 'invalid value for "interval", interval cannot be nil.'
92
92
  end
93
+ pattern = Regexp.new(/^[1-9][0-9]*s$/)
94
+ if interval !~ pattern
95
+ fail ArgumentError, "invalid value for \"interval\", must conform to the pattern #{pattern}."
96
+ end
93
97
  @interval = interval
94
98
  end
95
99
 
@@ -100,27 +104,13 @@ module DatadogAPIClient::V2
100
104
  if max_retries.nil?
101
105
  fail ArgumentError, 'invalid value for "max_retries", max_retries cannot be nil.'
102
106
  end
103
- @max_retries = max_retries
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)
107
+ if max_retries > 2147483647
108
+ fail ArgumentError, 'invalid value for "max_retries", must be smaller than or equal to 2147483647.'
119
109
  end
120
- self.additional_properties.each_pair do |attr, value|
121
- hash[attr] = value
110
+ if max_retries < 0
111
+ fail ArgumentError, 'invalid value for "max_retries", must be greater than or equal to 0.'
122
112
  end
123
- hash
113
+ @max_retries = max_retries
124
114
  end
125
115
 
126
116
  # Checks equality by comparing each attribute.
@@ -130,15 +120,14 @@ module DatadogAPIClient::V2
130
120
  return true if self.equal?(o)
131
121
  self.class == o.class &&
132
122
  interval == o.interval &&
133
- max_retries == o.max_retries &&
134
- additional_properties == o.additional_properties
123
+ max_retries == o.max_retries
135
124
  end
136
125
 
137
126
  # Calculates hash code according to all attributes.
138
127
  # @return [Integer] Hash code
139
128
  # @!visibility private
140
129
  def hash
141
- [interval, max_retries, additional_properties].hash
130
+ [interval, max_retries].hash
142
131
  end
143
132
  end
144
133
  end
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # Trigger a workflow from a Schedule. The workflow must be published.
25
25
  attr_reader :schedule_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 Security Signal or Finding. For automatic triggering a handle must be configured and the workflow must be published.
25
25
  attr_reader :security_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 Self Service.
25
25
  attr_reader :self_service_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 Slack. The workflow must be published.
25
25
  attr_reader :slack_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 Software Catalog.
25
25
  attr_reader :software_catalog_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
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # The spec defines what the workflow does.
20
+ # A complete Workflow Automation definition, including its triggers, steps, and connections.
21
21
  class Spec
22
22
  include BaseGenericModel
23
23
 
@@ -30,7 +30,8 @@ module DatadogAPIClient::V2
30
30
  # The unique identifier of a connection defined in the spec.
31
31
  attr_accessor :connection_label
32
32
 
33
- # The definition of `StepDisplay` object.
33
+ # The position of a step on the workflow canvas. Omit `display` from every step to use
34
+ # automatic layout, or provide it for every step to preserve a manual layout.
34
35
  attr_accessor :display
35
36
 
36
37
  # The `Step` `errorHandlers`.
@@ -39,7 +40,7 @@ module DatadogAPIClient::V2
39
40
  # Name of the step.
40
41
  attr_reader :name
41
42
 
42
- # A list of subsequent actions to run.
43
+ # A list of subsequent actions to run. This list is empty for a terminal step.
43
44
  attr_accessor :outbound_edges
44
45
 
45
46
  # A list of inputs for an action.
@@ -148,7 +149,9 @@ module DatadogAPIClient::V2
148
149
  # @!visibility private
149
150
  def valid?
150
151
  return false if @action_id.nil?
152
+ return false if @action_id.to_s.length < 1
151
153
  return false if @name.nil?
154
+ return false if @name.to_s.length < 1
152
155
  true
153
156
  end
154
157
 
@@ -159,6 +162,9 @@ module DatadogAPIClient::V2
159
162
  if action_id.nil?
160
163
  fail ArgumentError, 'invalid value for "action_id", action_id cannot be nil.'
161
164
  end
165
+ if action_id.to_s.length < 1
166
+ fail ArgumentError, 'invalid value for "action_id", the character length must be great than or equal to 1.'
167
+ end
162
168
  @action_id = action_id
163
169
  end
164
170
 
@@ -169,6 +175,9 @@ module DatadogAPIClient::V2
169
175
  if name.nil?
170
176
  fail ArgumentError, 'invalid value for "name", name cannot be nil.'
171
177
  end
178
+ if name.to_s.length < 1
179
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
180
+ end
172
181
  @name = name
173
182
  end
174
183
 
@@ -17,7 +17,8 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # The definition of `StepDisplay` object.
20
+ # The position of a step on the workflow canvas. Omit `display` from every step to use
21
+ # automatic layout, or provide it for every step to preserve a manual layout.
21
22
  class StepDisplay
22
23
  include BaseGenericModel
23
24
 
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class TableResultV2DataAttributesSchema
22
22
  include BaseGenericModel
23
23
 
24
- # The schema fields.
24
+ # The schema fields. Maximum of 200 columns.
25
25
  attr_reader :fields
26
26
 
27
27
  # List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows.
@@ -83,6 +83,8 @@ module DatadogAPIClient::V2
83
83
  # @!visibility private
84
84
  def valid?
85
85
  return false if @fields.nil?
86
+ return false if @fields.length > 200
87
+ return false if @fields.length < 1
86
88
  return false if @primary_keys.nil?
87
89
  true
88
90
  end
@@ -94,6 +96,12 @@ module DatadogAPIClient::V2
94
96
  if fields.nil?
95
97
  fail ArgumentError, 'invalid value for "fields", fields cannot be nil.'
96
98
  end
99
+ if fields.length > 200
100
+ fail ArgumentError, 'invalid value for "fields", number of items must be less than or equal to 200.'
101
+ end
102
+ if fields.length < 1
103
+ fail ArgumentError, 'invalid value for "fields", number of items must be greater than or equal to 1.'
104
+ end
97
105
  @fields = fields
98
106
  end
99
107
 
@@ -26,6 +26,7 @@ module DatadogAPIClient::V2
26
26
  # List of class defined in oneOf (OpenAPI v3)
27
27
  def openapi_one_of
28
28
  [
29
+ :'AgentTriggerWrapper',
29
30
  :'APITriggerWrapper',
30
31
  :'AppTriggerWrapper',
31
32
  :'CaseTriggerWrapper',
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
33
33
  # Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published.
34
34
  attr_accessor :published
35
35
 
36
- # The spec defines what the workflow does.
36
+ # A complete Workflow Automation definition, including its triggers, steps, and connections.
37
37
  attr_reader :spec
38
38
 
39
39
  # Tags of the workflow.
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
33
33
  # Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published.
34
34
  attr_accessor :published
35
35
 
36
- # The spec defines what the workflow does.
36
+ # A complete Workflow Automation definition, including its triggers, steps, and connections.
37
37
  attr_accessor :spec
38
38
 
39
39
  # Tags of the workflow.
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
33
33
  # Whether the workflow is published. Unpublished workflows can only be run manually. Automatic triggers such as Schedule do not fire until the workflow is published.
34
34
  attr_accessor :published
35
35
 
36
- # The spec defines what the workflow does.
36
+ # A complete Workflow Automation definition, including its triggers, steps, and connections.
37
37
  attr_accessor :spec
38
38
 
39
39
  # Tags of the workflow.
@@ -21,10 +21,10 @@ module DatadogAPIClient::V2
21
21
  class WorkflowTriggerWrapper
22
22
  include BaseGenericModel
23
23
 
24
- # A list of steps that run first after a trigger fires.
24
+ # Names of existing workflow steps that run first after a trigger fires.
25
25
  attr_accessor :start_step_names
26
26
 
27
- # Trigger a workflow from the Datadog UI. Only required if no other trigger exists.
27
+ # Trigger a workflow from the Datadog UI. When present, this must be the workflow's only trigger.
28
28
  attr_reader :workflow_trigger
29
29
 
30
30
  attr_accessor :additional_properties
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '2.57.0'
4
+ VERSION = '2.58.0'
5
5
  end