datadog_api_client 2.47.0 → 2.48.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 (165) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +96 -5
  3. data/.generator/schemas/v2/openapi.yaml +2453 -707
  4. data/CHANGELOG.md +20 -0
  5. data/examples/v2/incidents/CreateIncidentAttachment.rb +22 -0
  6. data/examples/v2/incidents/DeleteIncidentAttachment.rb +8 -0
  7. data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
  8. data/examples/v2/incidents/UpdateIncidentAttachment.rb +20 -0
  9. data/examples/v2/on-call/CreateUserNotificationRule.rb +29 -0
  10. data/examples/v2/on-call/DeleteUserNotificationRule.rb +11 -0
  11. data/examples/v2/on-call/GetUserNotificationRule.rb +14 -0
  12. data/examples/v2/on-call/ListUserNotificationRules.rb +11 -0
  13. data/examples/v2/on-call/UpdateUserNotificationRule.rb +36 -0
  14. data/examples/v2/product-analytics/SubmitProductAnalyticsEvent.rb +24 -0
  15. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb +48 -0
  16. data/examples/v2/synthetics/PatchGlobalVariable.rb +19 -0
  17. data/examples/v2/teams/CreateTeamNotificationRule.rb +23 -0
  18. data/examples/v2/teams/DeleteTeamConnections.rb +0 -3
  19. data/examples/v2/teams/DeleteTeamNotificationRule.rb +11 -0
  20. data/examples/v2/teams/GetTeamNotificationRule.rb +11 -0
  21. data/examples/v2/teams/GetTeamNotificationRules.rb +8 -0
  22. data/examples/v2/teams/GetTeamSync.rb +0 -3
  23. data/examples/v2/teams/ListTeamConnections.rb +0 -3
  24. data/examples/v2/teams/ListTeamConnections_2418873869.rb +0 -3
  25. data/examples/v2/teams/SyncTeams.rb +0 -3
  26. data/examples/v2/teams/SyncTeams_3215592344.rb +0 -3
  27. data/examples/v2/teams/UpdateTeamNotificationRule.rb +27 -0
  28. data/lib/datadog_api_client/configuration.rb +55 -6
  29. data/lib/datadog_api_client/inflector.rb +92 -20
  30. data/lib/datadog_api_client/v1/api/synthetics_api.rb +3 -3
  31. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -4
  32. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
  33. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
  34. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
  35. data/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +1 -1
  36. data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
  37. data/lib/datadog_api_client/v1/models/synthetics_test_details_without_steps.rb +221 -0
  38. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +8 -8
  39. data/lib/datadog_api_client/v2/api/incidents_api.rb +188 -36
  40. data/lib/datadog_api_client/v2/api/on_call_api.rb +360 -0
  41. data/lib/datadog_api_client/v2/api/product_analytics_api.rb +121 -0
  42. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +4 -0
  43. data/lib/datadog_api_client/v2/api/synthetics_api.rb +79 -0
  44. data/lib/datadog_api_client/v2/api/teams_api.rb +339 -30
  45. data/lib/datadog_api_client/v2/models/attachment.rb +117 -0
  46. data/lib/datadog_api_client/v2/models/{incident_attachments_response.rb → attachment_array.rb} +7 -7
  47. data/lib/datadog_api_client/v2/models/{incident_attachment_data.rb → attachment_data.rb} +8 -8
  48. data/lib/datadog_api_client/v2/models/attachment_data_attributes.rb +125 -0
  49. data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment.rb +115 -0
  50. data/lib/datadog_api_client/v2/models/{incident_attachment_attachment_type.rb → attachment_data_attributes_attachment_type.rb} +3 -3
  51. data/lib/datadog_api_client/v2/models/{incident_attachment_relationships.rb → attachment_data_relationships.rb} +5 -5
  52. data/lib/datadog_api_client/v2/models/{incident_attachment_update_request.rb → attachment_data_relationships_last_modified_by_user.rb} +6 -11
  53. data/lib/datadog_api_client/v2/models/attachment_data_relationships_last_modified_by_user_data.rb +144 -0
  54. data/lib/datadog_api_client/v2/models/{incident_attachments_response_included_item.rb → attachment_included.rb} +3 -3
  55. data/lib/datadog_api_client/v2/models/case_create_attributes.rb +11 -1
  56. data/lib/datadog_api_client/v2/models/{dora_fetch_response.rb → create_attachment_request.rb} +5 -5
  57. data/lib/datadog_api_client/v2/models/{incident_attachment_update_data.rb → create_attachment_request_data.rb} +6 -6
  58. data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes.rb +115 -0
  59. data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes_attachment.rb +115 -0
  60. data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request.rb +123 -0
  61. data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request_data.rb +143 -0
  62. data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +1 -0
  63. data/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb +105 -0
  64. data/lib/datadog_api_client/v2/models/dora_deployment_object.rb +125 -0
  65. data/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb +225 -0
  66. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  67. data/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb +107 -0
  68. data/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +105 -0
  69. data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
  70. data/lib/datadog_api_client/v2/models/{dora_list_response.rb → dora_failures_list_response.rb} +5 -5
  71. data/lib/datadog_api_client/v2/models/{dora_event.rb → dora_incident_object.rb} +8 -8
  72. data/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +225 -0
  73. data/lib/datadog_api_client/v2/models/global_variable_data.rb +125 -0
  74. data/lib/datadog_api_client/v2/models/global_variable_json_patch_request.rb +123 -0
  75. data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data.rb +115 -0
  76. data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data_attributes.rb +107 -0
  77. data/lib/datadog_api_client/v2/models/global_variable_json_patch_type.rb +26 -0
  78. data/lib/datadog_api_client/v2/models/global_variable_response.rb +105 -0
  79. data/lib/datadog_api_client/v2/models/{incident_attachment_link_attachment_type.rb → global_variable_type.rb} +3 -3
  80. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  81. data/lib/datadog_api_client/v2/models/{incident_attachments_postmortem_attributes_attachment_object.rb → json_patch_operation.rb} +40 -30
  82. data/lib/datadog_api_client/v2/models/json_patch_operation_op.rb +31 -0
  83. data/lib/datadog_api_client/v2/models/list_on_call_notification_rules_response.rb +119 -0
  84. data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +11 -1
  85. data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +11 -1
  86. data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +11 -1
  87. data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +11 -1
  88. data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +11 -1
  89. data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +11 -1
  90. data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +11 -1
  91. data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +11 -1
  92. data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +11 -1
  93. data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +11 -1
  94. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +11 -1
  95. data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +11 -1
  96. data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +11 -1
  97. data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +11 -1
  98. data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +11 -1
  99. data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +11 -1
  100. data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +11 -1
  101. data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +11 -1
  102. data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +11 -1
  103. data/lib/datadog_api_client/v2/models/{incident_attachment_update_response.rb → on_call_notification_rule.rb} +8 -11
  104. data/lib/datadog_api_client/v2/models/on_call_notification_rule_attributes.rb +125 -0
  105. data/lib/datadog_api_client/v2/models/on_call_notification_rule_category.rb +27 -0
  106. data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship.rb +123 -0
  107. data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship_data.rb +115 -0
  108. data/lib/datadog_api_client/v2/models/{incident_attachment_update_attributes.rb → on_call_notification_rule_channel_settings.rb} +3 -4
  109. data/lib/datadog_api_client/v2/models/on_call_notification_rule_data.rb +153 -0
  110. data/lib/datadog_api_client/v2/models/on_call_notification_rule_relationships.rb +105 -0
  111. data/lib/datadog_api_client/v2/models/on_call_notification_rule_request_attributes.rb +125 -0
  112. data/lib/datadog_api_client/v2/models/on_call_notification_rule_type.rb +26 -0
  113. data/lib/datadog_api_client/v2/models/{incident_attachment_attributes.rb → on_call_notification_rules_included.rb} +3 -4
  114. data/lib/datadog_api_client/v2/models/on_call_phone_notification_rule_method.rb +27 -0
  115. data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes_attachment_object.rb → on_call_phone_notification_rule_settings.rb} +30 -30
  116. data/lib/datadog_api_client/v2/models/patch_attachment_request.rb +105 -0
  117. data/lib/datadog_api_client/v2/models/patch_attachment_request_data.rb +143 -0
  118. data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes.rb +105 -0
  119. data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes_attachment.rb +115 -0
  120. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_error.rb +125 -0
  121. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_errors.rb +107 -0
  122. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item.rb +195 -0
  123. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_account.rb +123 -0
  124. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_application.rb +124 -0
  125. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_event.rb +123 -0
  126. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_session.rb +123 -0
  127. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_type.rb +26 -0
  128. data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_usr.rb +123 -0
  129. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options.rb +155 -0
  130. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_bucket_duration.rb +32 -0
  131. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_detection_tolerance.rb +31 -0
  132. data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_learning_duration.rb +32 -0
  133. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
  134. data/lib/datadog_api_client/v2/models/synthetics_global_variable.rb +248 -0
  135. data/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +107 -0
  136. data/lib/datadog_api_client/v2/models/synthetics_global_variable_options.rb +105 -0
  137. data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attributes.rb → synthetics_global_variable_parse_test_options.rb} +44 -35
  138. data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options_type.rb +29 -0
  139. data/lib/datadog_api_client/v2/models/synthetics_global_variable_parser_type.rb +29 -0
  140. data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes.rb → synthetics_global_variable_totp_parameters.rb} +38 -40
  141. data/lib/datadog_api_client/v2/models/synthetics_global_variable_value.rb +126 -0
  142. data/lib/datadog_api_client/v2/models/synthetics_variable_parser.rb +133 -0
  143. data/lib/datadog_api_client/v2/models/team_notification_rule.rb +154 -0
  144. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes.rb +135 -0
  145. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_email.rb +105 -0
  146. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_ms_teams.rb +105 -0
  147. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_pagerduty.rb +105 -0
  148. data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_slack.rb +115 -0
  149. data/lib/datadog_api_client/v2/models/team_notification_rule_request.rb +123 -0
  150. data/lib/datadog_api_client/v2/models/team_notification_rule_response.rb +105 -0
  151. data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attachment_type.rb → team_notification_rule_type.rb} +3 -3
  152. data/lib/datadog_api_client/v2/models/team_notification_rules_response.rb +117 -0
  153. data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta.rb +105 -0
  154. data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta_page.rb +184 -0
  155. data/lib/datadog_api_client/v2/models/threat_hunting_job_options.rb +11 -1
  156. data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request.rb +123 -0
  157. data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_attributes.rb +125 -0
  158. data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_data.rb +153 -0
  159. data/lib/datadog_api_client/v2/models/user140420082644000.rb +143 -0
  160. data/lib/datadog_api_client/v2/models/{incident_attachment_related_object.rb → user_type.rb} +2 -2
  161. data/lib/datadog_api_client/version.rb +1 -1
  162. metadata +109 -24
  163. data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +0 -11
  164. data/examples/v2/incidents/UpdateIncidentAttachments.rb +0 -38
  165. data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +0 -26
@@ -0,0 +1,26 @@
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
+ # Global variable JSON Patch type.
21
+ class GlobalVariableJsonPatchType
22
+ include BaseEnumModel
23
+
24
+ GLOBAL_VARIABLES_JSON_PATCH = "global_variables_json_patch".freeze
25
+ end
26
+ end
@@ -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
+ # Global variable response.
21
+ class GlobalVariableResponse
22
+ include BaseGenericModel
23
+
24
+ # Synthetics global variable data. Wrapper around the global variable object.
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' => :'GlobalVariableData'
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::GlobalVariableResponse` 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
@@ -17,10 +17,10 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # The type of link attachment attributes.
21
- class IncidentAttachmentLinkAttachmentType
20
+ # Global variable type.
21
+ class GlobalVariableType
22
22
  include BaseEnumModel
23
23
 
24
- LINK = "link".freeze
24
+ GLOBAL_VARIABLES = "global_variables".freeze
25
25
  end
26
26
  end
@@ -27,7 +27,7 @@ module DatadogAPIClient::V2
27
27
  def openapi_one_of
28
28
  [
29
29
  :'IncidentUserData',
30
- :'IncidentAttachmentData'
30
+ :'AttachmentData'
31
31
  ]
32
32
  end
33
33
  # Builds the object
@@ -17,15 +17,18 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # The postmortem attachment.
21
- class IncidentAttachmentsPostmortemAttributesAttachmentObject
20
+ # A JSON Patch operation as per RFC 6902.
21
+ class JsonPatchOperation
22
22
  include BaseGenericModel
23
23
 
24
- # The URL of this notebook attachment.
25
- attr_reader :document_url
24
+ # The operation to perform.
25
+ attr_reader :op
26
26
 
27
- # The title of this postmortem attachment.
28
- attr_reader :title
27
+ # A JSON Pointer path (e.g., "/name", "/value/secure").
28
+ attr_reader :path
29
+
30
+ # The value to use for the operation (not applicable for "remove" and "test" operations).
31
+ attr_accessor :value
29
32
 
30
33
  attr_accessor :additional_properties
31
34
 
@@ -33,8 +36,9 @@ module DatadogAPIClient::V2
33
36
  # @!visibility private
34
37
  def self.attribute_map
35
38
  {
36
- :'document_url' => :'documentUrl',
37
- :'title' => :'title'
39
+ :'op' => :'op',
40
+ :'path' => :'path',
41
+ :'value' => :'value'
38
42
  }
39
43
  end
40
44
 
@@ -42,8 +46,9 @@ module DatadogAPIClient::V2
42
46
  # @!visibility private
43
47
  def self.openapi_types
44
48
  {
45
- :'document_url' => :'String',
46
- :'title' => :'String'
49
+ :'op' => :'JsonPatchOperationOp',
50
+ :'path' => :'String',
51
+ :'value' => :'Object'
47
52
  }
48
53
  end
49
54
 
@@ -52,7 +57,7 @@ module DatadogAPIClient::V2
52
57
  # @!visibility private
53
58
  def initialize(attributes = {})
54
59
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentAttachmentsPostmortemAttributesAttachmentObject` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JsonPatchOperation` initialize method"
56
61
  end
57
62
 
58
63
  self.additional_properties = {}
@@ -65,12 +70,16 @@ module DatadogAPIClient::V2
65
70
  end
66
71
  }
67
72
 
68
- if attributes.key?(:'document_url')
69
- self.document_url = attributes[:'document_url']
73
+ if attributes.key?(:'op')
74
+ self.op = attributes[:'op']
75
+ end
76
+
77
+ if attributes.key?(:'path')
78
+ self.path = attributes[:'path']
70
79
  end
71
80
 
72
- if attributes.key?(:'title')
73
- self.title = attributes[:'title']
81
+ if attributes.key?(:'value')
82
+ self.value = attributes[:'value']
74
83
  end
75
84
  end
76
85
 
@@ -78,29 +87,29 @@ module DatadogAPIClient::V2
78
87
  # @return true if the model is valid
79
88
  # @!visibility private
80
89
  def valid?
81
- return false if @document_url.nil?
82
- return false if @title.nil?
90
+ return false if @op.nil?
91
+ return false if @path.nil?
83
92
  true
84
93
  end
85
94
 
86
95
  # Custom attribute writer method with validation
87
- # @param document_url [Object] Object to be assigned
96
+ # @param op [Object] Object to be assigned
88
97
  # @!visibility private
89
- def document_url=(document_url)
90
- if document_url.nil?
91
- fail ArgumentError, 'invalid value for "document_url", document_url cannot be nil.'
98
+ def op=(op)
99
+ if op.nil?
100
+ fail ArgumentError, 'invalid value for "op", op cannot be nil.'
92
101
  end
93
- @document_url = document_url
102
+ @op = op
94
103
  end
95
104
 
96
105
  # Custom attribute writer method with validation
97
- # @param title [Object] Object to be assigned
106
+ # @param path [Object] Object to be assigned
98
107
  # @!visibility private
99
- def title=(title)
100
- if title.nil?
101
- fail ArgumentError, 'invalid value for "title", title cannot be nil.'
108
+ def path=(path)
109
+ if path.nil?
110
+ fail ArgumentError, 'invalid value for "path", path cannot be nil.'
102
111
  end
103
- @title = title
112
+ @path = path
104
113
  end
105
114
 
106
115
  # Returns the object in the form of hash, with additionalProperties support.
@@ -129,8 +138,9 @@ module DatadogAPIClient::V2
129
138
  def ==(o)
130
139
  return true if self.equal?(o)
131
140
  self.class == o.class &&
132
- document_url == o.document_url &&
133
- title == o.title &&
141
+ op == o.op &&
142
+ path == o.path &&
143
+ value == o.value &&
134
144
  additional_properties == o.additional_properties
135
145
  end
136
146
 
@@ -138,7 +148,7 @@ module DatadogAPIClient::V2
138
148
  # @return [Integer] Hash code
139
149
  # @!visibility private
140
150
  def hash
141
- [document_url, title, additional_properties].hash
151
+ [op, path, value, additional_properties].hash
142
152
  end
143
153
  end
144
154
  end
@@ -0,0 +1,31 @@
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 operation to perform.
21
+ class JsonPatchOperationOp
22
+ include BaseEnumModel
23
+
24
+ ADD = "add".freeze
25
+ REMOVE = "remove".freeze
26
+ REPLACE = "replace".freeze
27
+ MOVE = "move".freeze
28
+ COPY = "copy".freeze
29
+ TEST = "test".freeze
30
+ end
31
+ end
@@ -0,0 +1,119 @@
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 type for listing notification rules for a user
21
+ class ListOnCallNotificationRulesResponse
22
+ include BaseGenericModel
23
+
24
+ #
25
+ attr_accessor :data
26
+
27
+ #
28
+ attr_accessor :included
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
+ :'data' => :'data',
37
+ :'included' => :'included'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'data' => :'Array<OnCallNotificationRuleData>',
46
+ :'included' => :'Array<OnCallNotificationRulesIncluded>'
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::ListOnCallNotificationRulesResponse` 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?(:'data')
69
+ if (value = attributes[:'data']).is_a?(Array)
70
+ self.data = value
71
+ end
72
+ end
73
+
74
+ if attributes.key?(:'included')
75
+ if (value = attributes[:'included']).is_a?(Array)
76
+ self.included = value
77
+ end
78
+ end
79
+ end
80
+
81
+ # Returns the object in the form of hash, with additionalProperties support.
82
+ # @return [Hash] Returns the object in the form of hash
83
+ # @!visibility private
84
+ def to_hash
85
+ hash = {}
86
+ self.class.attribute_map.each_pair do |attr, param|
87
+ value = self.send(attr)
88
+ if value.nil?
89
+ is_nullable = self.class.openapi_nullable.include?(attr)
90
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
91
+ end
92
+
93
+ hash[param] = _to_hash(value)
94
+ end
95
+ self.additional_properties.each_pair do |attr, value|
96
+ hash[attr] = value
97
+ end
98
+ hash
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param o [Object] Object to be compared
103
+ # @!visibility private
104
+ def ==(o)
105
+ return true if self.equal?(o)
106
+ self.class == o.class &&
107
+ data == o.data &&
108
+ included == o.included &&
109
+ additional_properties == o.additional_properties
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ # @!visibility private
115
+ def hash
116
+ [data, included, additional_properties].hash
117
+ end
118
+ end
119
+ end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ObservabilityPipelineAddEnvVarsProcessor
22
22
  include BaseGenericModel
23
23
 
24
+ # The display name for a component.
25
+ attr_accessor :display_name
26
+
24
27
  # Whether this processor is enabled.
25
28
  attr_reader :enabled
26
29
 
@@ -42,6 +45,7 @@ module DatadogAPIClient::V2
42
45
  # @!visibility private
43
46
  def self.attribute_map
44
47
  {
48
+ :'display_name' => :'display_name',
45
49
  :'enabled' => :'enabled',
46
50
  :'id' => :'id',
47
51
  :'include' => :'include',
@@ -54,6 +58,7 @@ module DatadogAPIClient::V2
54
58
  # @!visibility private
55
59
  def self.openapi_types
56
60
  {
61
+ :'display_name' => :'String',
57
62
  :'enabled' => :'Boolean',
58
63
  :'id' => :'String',
59
64
  :'include' => :'String',
@@ -80,6 +85,10 @@ module DatadogAPIClient::V2
80
85
  end
81
86
  }
82
87
 
88
+ if attributes.key?(:'display_name')
89
+ self.display_name = attributes[:'display_name']
90
+ end
91
+
83
92
  if attributes.key?(:'enabled')
84
93
  self.enabled = attributes[:'enabled']
85
94
  end
@@ -191,6 +200,7 @@ module DatadogAPIClient::V2
191
200
  def ==(o)
192
201
  return true if self.equal?(o)
193
202
  self.class == o.class &&
203
+ display_name == o.display_name &&
194
204
  enabled == o.enabled &&
195
205
  id == o.id &&
196
206
  include == o.include &&
@@ -203,7 +213,7 @@ module DatadogAPIClient::V2
203
213
  # @return [Integer] Hash code
204
214
  # @!visibility private
205
215
  def hash
206
- [enabled, id, include, type, variables, additional_properties].hash
216
+ [display_name, enabled, id, include, type, variables, additional_properties].hash
207
217
  end
208
218
  end
209
219
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ObservabilityPipelineAddFieldsProcessor
22
22
  include BaseGenericModel
23
23
 
24
+ # The display name for a component.
25
+ attr_accessor :display_name
26
+
24
27
  # Whether this processor is enabled.
25
28
  attr_reader :enabled
26
29
 
@@ -42,6 +45,7 @@ module DatadogAPIClient::V2
42
45
  # @!visibility private
43
46
  def self.attribute_map
44
47
  {
48
+ :'display_name' => :'display_name',
45
49
  :'enabled' => :'enabled',
46
50
  :'fields' => :'fields',
47
51
  :'id' => :'id',
@@ -54,6 +58,7 @@ module DatadogAPIClient::V2
54
58
  # @!visibility private
55
59
  def self.openapi_types
56
60
  {
61
+ :'display_name' => :'String',
57
62
  :'enabled' => :'Boolean',
58
63
  :'fields' => :'Array<ObservabilityPipelineFieldValue>',
59
64
  :'id' => :'String',
@@ -80,6 +85,10 @@ module DatadogAPIClient::V2
80
85
  end
81
86
  }
82
87
 
88
+ if attributes.key?(:'display_name')
89
+ self.display_name = attributes[:'display_name']
90
+ end
91
+
83
92
  if attributes.key?(:'enabled')
84
93
  self.enabled = attributes[:'enabled']
85
94
  end
@@ -191,6 +200,7 @@ module DatadogAPIClient::V2
191
200
  def ==(o)
192
201
  return true if self.equal?(o)
193
202
  self.class == o.class &&
203
+ display_name == o.display_name &&
194
204
  enabled == o.enabled &&
195
205
  fields == o.fields &&
196
206
  id == o.id &&
@@ -203,7 +213,7 @@ module DatadogAPIClient::V2
203
213
  # @return [Integer] Hash code
204
214
  # @!visibility private
205
215
  def hash
206
- [enabled, fields, id, include, type, additional_properties].hash
216
+ [display_name, enabled, fields, id, include, type, additional_properties].hash
207
217
  end
208
218
  end
209
219
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ObservabilityPipelineConfigProcessorGroup
22
22
  include BaseGenericModel
23
23
 
24
+ # The display name for a component.
25
+ attr_accessor :display_name
26
+
24
27
  # Whether this processor group is enabled.
25
28
  attr_reader :enabled
26
29
 
@@ -42,6 +45,7 @@ module DatadogAPIClient::V2
42
45
  # @!visibility private
43
46
  def self.attribute_map
44
47
  {
48
+ :'display_name' => :'display_name',
45
49
  :'enabled' => :'enabled',
46
50
  :'id' => :'id',
47
51
  :'include' => :'include',
@@ -54,6 +58,7 @@ module DatadogAPIClient::V2
54
58
  # @!visibility private
55
59
  def self.openapi_types
56
60
  {
61
+ :'display_name' => :'String',
57
62
  :'enabled' => :'Boolean',
58
63
  :'id' => :'String',
59
64
  :'include' => :'String',
@@ -80,6 +85,10 @@ module DatadogAPIClient::V2
80
85
  end
81
86
  }
82
87
 
88
+ if attributes.key?(:'display_name')
89
+ self.display_name = attributes[:'display_name']
90
+ end
91
+
83
92
  if attributes.key?(:'enabled')
84
93
  self.enabled = attributes[:'enabled']
85
94
  end
@@ -193,6 +202,7 @@ module DatadogAPIClient::V2
193
202
  def ==(o)
194
203
  return true if self.equal?(o)
195
204
  self.class == o.class &&
205
+ display_name == o.display_name &&
196
206
  enabled == o.enabled &&
197
207
  id == o.id &&
198
208
  include == o.include &&
@@ -205,7 +215,7 @@ module DatadogAPIClient::V2
205
215
  # @return [Integer] Hash code
206
216
  # @!visibility private
207
217
  def hash
208
- [enabled, id, include, inputs, processors, additional_properties].hash
218
+ [display_name, enabled, id, include, inputs, processors, additional_properties].hash
209
219
  end
210
220
  end
211
221
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class ObservabilityPipelineCustomProcessor
22
22
  include BaseGenericModel
23
23
 
24
+ # The display name for a component.
25
+ attr_accessor :display_name
26
+
24
27
  # Whether this processor is enabled.
25
28
  attr_reader :enabled
26
29
 
@@ -42,6 +45,7 @@ module DatadogAPIClient::V2
42
45
  # @!visibility private
43
46
  def self.attribute_map
44
47
  {
48
+ :'display_name' => :'display_name',
45
49
  :'enabled' => :'enabled',
46
50
  :'id' => :'id',
47
51
  :'include' => :'include',
@@ -54,6 +58,7 @@ module DatadogAPIClient::V2
54
58
  # @!visibility private
55
59
  def self.openapi_types
56
60
  {
61
+ :'display_name' => :'String',
57
62
  :'enabled' => :'Boolean',
58
63
  :'id' => :'String',
59
64
  :'include' => :'String',
@@ -80,6 +85,10 @@ module DatadogAPIClient::V2
80
85
  end
81
86
  }
82
87
 
88
+ if attributes.key?(:'display_name')
89
+ self.display_name = attributes[:'display_name']
90
+ end
91
+
83
92
  if attributes.key?(:'enabled')
84
93
  self.enabled = attributes[:'enabled']
85
94
  end
@@ -195,6 +204,7 @@ module DatadogAPIClient::V2
195
204
  def ==(o)
196
205
  return true if self.equal?(o)
197
206
  self.class == o.class &&
207
+ display_name == o.display_name &&
198
208
  enabled == o.enabled &&
199
209
  id == o.id &&
200
210
  include == o.include &&
@@ -207,7 +217,7 @@ module DatadogAPIClient::V2
207
217
  # @return [Integer] Hash code
208
218
  # @!visibility private
209
219
  def hash
210
- [enabled, id, include, remaps, type, additional_properties].hash
220
+ [display_name, enabled, id, include, remaps, type, additional_properties].hash
211
221
  end
212
222
  end
213
223
  end