Skip to content

Commit 546a0b3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b3ed9190 of spec repo
1 parent 05d639f commit 546a0b3

File tree

8 files changed

+600
-4
lines changed

8 files changed

+600
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-24 14:58:39.758624",
8-
"spec_repo_commit": "764de5f0"
7+
"regenerated": "2025-03-25 18:02:39.970535",
8+
"spec_repo_commit": "b3ed9190"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-24 14:58:39.774537",
13-
"spec_repo_commit": "764de5f0"
12+
"regenerated": "2025-03-25 18:02:39.992940",
13+
"spec_repo_commit": "b3ed9190"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10813,6 +10813,17 @@ components:
1081310813
type: string
1081410814
x-enum-varnames:
1081510815
- DATATRANSFORM
10816+
DatabaseMonitoringTriggerWrapper:
10817+
description: Schema for a Database Monitoring-based trigger.
10818+
properties:
10819+
databaseMonitoringTrigger:
10820+
description: Trigger a workflow VIA Database Monitoring.
10821+
type: object
10822+
startStepNames:
10823+
$ref: '#/components/schemas/StartStepNames'
10824+
required:
10825+
- databaseMonitoringTrigger
10826+
type: object
1081610827
Date:
1081710828
description: Date as Unix timestamp in milliseconds.
1081810829
example: 1722439510282
@@ -21317,6 +21328,17 @@ components:
2131721328
meta:
2131821329
$ref: '#/components/schemas/MonthlyCostAttributionMeta'
2131921330
type: object
21331+
NotebookTriggerWrapper:
21332+
description: Schema for a Notebook-based trigger.
21333+
properties:
21334+
notebookTrigger:
21335+
description: Trigger a workflow VIA a Notebook.
21336+
type: object
21337+
startStepNames:
21338+
$ref: '#/components/schemas/StartStepNames'
21339+
required:
21340+
- notebookTrigger
21341+
type: object
2132021342
NotificationRule:
2132121343
description: 'Notification rules allow full control over notifications generated
2132221344
by the various Datadog security products.
@@ -28475,6 +28497,17 @@ components:
2847528497
required:
2847628498
- trigger_source
2847728499
type: object
28500+
SelfServiceTriggerWrapper:
28501+
description: Schema for a Self Service-based trigger.
28502+
properties:
28503+
selfServiceTrigger:
28504+
description: Trigger a workflow VIA Self Service.
28505+
type: object
28506+
startStepNames:
28507+
$ref: '#/components/schemas/StartStepNames'
28508+
required:
28509+
- selfServiceTrigger
28510+
type: object
2847828511
SensitiveDataScannerConfigRequest:
2847928512
description: Group reorder request.
2848028513
properties:
@@ -30249,6 +30282,17 @@ components:
3024930282
required:
3025030283
- attributes
3025130284
type: object
30285+
SoftwareCatalogTriggerWrapper:
30286+
description: Schema for a Software Catalog-based trigger.
30287+
properties:
30288+
softwareCatalogTrigger:
30289+
description: Trigger a workflow VIA Software Catalog.
30290+
type: object
30291+
startStepNames:
30292+
$ref: '#/components/schemas/StartStepNames'
30293+
required:
30294+
- softwareCatalogTrigger
30295+
type: object
3025230296
SortDirection:
3025330297
default: desc
3025430298
description: The direction to sort by.
@@ -32108,13 +32152,17 @@ components:
3210832152
- $ref: '#/components/schemas/AppTriggerWrapper'
3210932153
- $ref: '#/components/schemas/CaseTriggerWrapper'
3211032154
- $ref: '#/components/schemas/ChangeEventTriggerWrapper'
32155+
- $ref: '#/components/schemas/DatabaseMonitoringTriggerWrapper'
3211132156
- $ref: '#/components/schemas/DashboardTriggerWrapper'
3211232157
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
3211332158
- $ref: '#/components/schemas/IncidentTriggerWrapper'
3211432159
- $ref: '#/components/schemas/MonitorTriggerWrapper'
32160+
- $ref: '#/components/schemas/NotebookTriggerWrapper'
3211532161
- $ref: '#/components/schemas/ScheduleTriggerWrapper'
3211632162
- $ref: '#/components/schemas/SecurityTriggerWrapper'
32163+
- $ref: '#/components/schemas/SelfServiceTriggerWrapper'
3211732164
- $ref: '#/components/schemas/SlackTriggerWrapper'
32165+
- $ref: '#/components/schemas/SoftwareCatalogTriggerWrapper'
3211832166
- $ref: '#/components/schemas/WorkflowTriggerWrapper'
3211932167
TriggerRateLimit:
3212032168
description: Defines a rate limit for a trigger.

lib/datadog_api_client/inflector.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,7 @@ def overrides
15181518
"v2.dashboard_list_update_items_response" => "DashboardListUpdateItemsResponse",
15191519
"v2.dashboard_trigger_wrapper" => "DashboardTriggerWrapper",
15201520
"v2.dashboard_type" => "DashboardType",
1521+
"v2.database_monitoring_trigger_wrapper" => "DatabaseMonitoringTriggerWrapper",
15211522
"v2.data_deletion_response_item" => "DataDeletionResponseItem",
15221523
"v2.data_deletion_response_item_attributes" => "DataDeletionResponseItemAttributes",
15231524
"v2.data_deletion_response_meta" => "DataDeletionResponseMeta",
@@ -2224,6 +2225,7 @@ def overrides
22242225
"v2.monthly_cost_attribution_response" => "MonthlyCostAttributionResponse",
22252226
"v2.ms_teams_integration_metadata" => "MSTeamsIntegrationMetadata",
22262227
"v2.ms_teams_integration_metadata_teams_item" => "MSTeamsIntegrationMetadataTeamsItem",
2228+
"v2.notebook_trigger_wrapper" => "NotebookTriggerWrapper",
22272229
"v2.notification_rule" => "NotificationRule",
22282230
"v2.notification_rule_attributes" => "NotificationRuleAttributes",
22292231
"v2.notification_rule_response" => "NotificationRuleResponse",
@@ -2673,6 +2675,7 @@ def overrides
26732675
"v2.security_trigger" => "SecurityTrigger",
26742676
"v2.security_trigger_wrapper" => "SecurityTriggerWrapper",
26752677
"v2.selectors" => "Selectors",
2678+
"v2.self_service_trigger_wrapper" => "SelfServiceTriggerWrapper",
26762679
"v2.sensitive_data_scanner_config_request" => "SensitiveDataScannerConfigRequest",
26772680
"v2.sensitive_data_scanner_configuration" => "SensitiveDataScannerConfiguration",
26782681
"v2.sensitive_data_scanner_configuration_data" => "SensitiveDataScannerConfigurationData",
@@ -2803,6 +2806,7 @@ def overrides
28032806
"v2.slo_report_status_get_response" => "SLOReportStatusGetResponse",
28042807
"v2.slo_report_status_get_response_attributes" => "SLOReportStatusGetResponseAttributes",
28052808
"v2.slo_report_status_get_response_data" => "SLOReportStatusGetResponseData",
2809+
"v2.software_catalog_trigger_wrapper" => "SoftwareCatalogTriggerWrapper",
28062810
"v2.sort_direction" => "SortDirection",
28072811
"v2.span" => "Span",
28082812
"v2.spans_aggregate_bucket" => "SpansAggregateBucket",
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
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+
# Schema for a Database Monitoring-based trigger.
21+
class DatabaseMonitoringTriggerWrapper
22+
include BaseGenericModel
23+
24+
# Trigger a workflow VIA Database Monitoring.
25+
attr_reader :database_monitoring_trigger
26+
27+
# A list of steps that run first after a trigger fires.
28+
attr_accessor :start_step_names
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+
:'database_monitoring_trigger' => :'databaseMonitoringTrigger',
37+
:'start_step_names' => :'startStepNames'
38+
}
39+
end
40+
41+
# Attribute type mapping.
42+
# @!visibility private
43+
def self.openapi_types
44+
{
45+
:'database_monitoring_trigger' => :'Object',
46+
:'start_step_names' => :'Array<String>'
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::DatabaseMonitoringTriggerWrapper` 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?(:'database_monitoring_trigger')
69+
self.database_monitoring_trigger = attributes[:'database_monitoring_trigger']
70+
end
71+
72+
if attributes.key?(:'start_step_names')
73+
if (value = attributes[:'start_step_names']).is_a?(Array)
74+
self.start_step_names = value
75+
end
76+
end
77+
end
78+
79+
# Check to see if the all the properties in the model are valid
80+
# @return true if the model is valid
81+
# @!visibility private
82+
def valid?
83+
return false if @database_monitoring_trigger.nil?
84+
true
85+
end
86+
87+
# Custom attribute writer method with validation
88+
# @param database_monitoring_trigger [Object] Object to be assigned
89+
# @!visibility private
90+
def database_monitoring_trigger=(database_monitoring_trigger)
91+
if database_monitoring_trigger.nil?
92+
fail ArgumentError, 'invalid value for "database_monitoring_trigger", database_monitoring_trigger cannot be nil.'
93+
end
94+
@database_monitoring_trigger = database_monitoring_trigger
95+
end
96+
97+
# Returns the object in the form of hash, with additionalProperties support.
98+
# @return [Hash] Returns the object in the form of hash
99+
# @!visibility private
100+
def to_hash
101+
hash = {}
102+
self.class.attribute_map.each_pair do |attr, param|
103+
value = self.send(attr)
104+
if value.nil?
105+
is_nullable = self.class.openapi_nullable.include?(attr)
106+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
107+
end
108+
109+
hash[param] = _to_hash(value)
110+
end
111+
self.additional_properties.each_pair do |attr, value|
112+
hash[attr] = value
113+
end
114+
hash
115+
end
116+
117+
# Checks equality by comparing each attribute.
118+
# @param o [Object] Object to be compared
119+
# @!visibility private
120+
def ==(o)
121+
return true if self.equal?(o)
122+
self.class == o.class &&
123+
database_monitoring_trigger == o.database_monitoring_trigger &&
124+
start_step_names == o.start_step_names &&
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+
[database_monitoring_trigger, start_step_names, additional_properties].hash
133+
end
134+
end
135+
end

0 commit comments

Comments
 (0)