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.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +96 -5
- data/.generator/schemas/v2/openapi.yaml +2453 -707
- data/CHANGELOG.md +20 -0
- data/examples/v2/incidents/CreateIncidentAttachment.rb +22 -0
- data/examples/v2/incidents/DeleteIncidentAttachment.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachment.rb +20 -0
- data/examples/v2/on-call/CreateUserNotificationRule.rb +29 -0
- data/examples/v2/on-call/DeleteUserNotificationRule.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationRule.rb +14 -0
- data/examples/v2/on-call/ListUserNotificationRules.rb +11 -0
- data/examples/v2/on-call/UpdateUserNotificationRule.rb +36 -0
- data/examples/v2/product-analytics/SubmitProductAnalyticsEvent.rb +24 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb +48 -0
- data/examples/v2/synthetics/PatchGlobalVariable.rb +19 -0
- data/examples/v2/teams/CreateTeamNotificationRule.rb +23 -0
- data/examples/v2/teams/DeleteTeamConnections.rb +0 -3
- data/examples/v2/teams/DeleteTeamNotificationRule.rb +11 -0
- data/examples/v2/teams/GetTeamNotificationRule.rb +11 -0
- data/examples/v2/teams/GetTeamNotificationRules.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +0 -3
- data/examples/v2/teams/ListTeamConnections.rb +0 -3
- data/examples/v2/teams/ListTeamConnections_2418873869.rb +0 -3
- data/examples/v2/teams/SyncTeams.rb +0 -3
- data/examples/v2/teams/SyncTeams_3215592344.rb +0 -3
- data/examples/v2/teams/UpdateTeamNotificationRule.rb +27 -0
- data/lib/datadog_api_client/configuration.rb +55 -6
- data/lib/datadog_api_client/inflector.rb +92 -20
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -4
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_without_steps.rb +221 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/incidents_api.rb +188 -36
- data/lib/datadog_api_client/v2/api/on_call_api.rb +360 -0
- data/lib/datadog_api_client/v2/api/product_analytics_api.rb +121 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +4 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +79 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +339 -30
- data/lib/datadog_api_client/v2/models/attachment.rb +117 -0
- data/lib/datadog_api_client/v2/models/{incident_attachments_response.rb → attachment_array.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{incident_attachment_data.rb → attachment_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/attachment_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_attachment_type.rb → attachment_data_attributes_attachment_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{incident_attachment_relationships.rb → attachment_data_relationships.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_request.rb → attachment_data_relationships_last_modified_by_user.rb} +6 -11
- data/lib/datadog_api_client/v2/models/attachment_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{incident_attachments_response_included_item.rb → attachment_included.rb} +3 -3
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/{dora_fetch_response.rb → create_attachment_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_data.rb → create_attachment_request_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_object.rb +125 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/{dora_list_response.rb → dora_failures_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{dora_event.rb → dora_incident_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/global_variable_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/global_variable_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attachment_type.rb → global_variable_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/{incident_attachments_postmortem_attributes_attachment_object.rb → json_patch_operation.rb} +40 -30
- data/lib/datadog_api_client/v2/models/json_patch_operation_op.rb +31 -0
- data/lib/datadog_api_client/v2/models/list_on_call_notification_rules_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_response.rb → on_call_notification_rule.rb} +8 -11
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_attributes.rb → on_call_notification_rule_channel_settings.rb} +3 -4
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_attributes.rb → on_call_notification_rules_included.rb} +3 -4
- data/lib/datadog_api_client/v2/models/on_call_phone_notification_rule_method.rb +27 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes_attachment_object.rb → on_call_phone_notification_rule_settings.rb} +30 -30
- data/lib/datadog_api_client/v2/models/patch_attachment_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_error.rb +125 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_errors.rb +107 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item.rb +195 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_account.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_application.rb +124 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_event.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_session.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_usr.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options.rb +155 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_bucket_duration.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_detection_tolerance.rb +31 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_learning_duration.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/synthetics_global_variable.rb +248 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_options.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attributes.rb → synthetics_global_variable_parse_test_options.rb} +44 -35
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parser_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes.rb → synthetics_global_variable_totp_parameters.rb} +38 -40
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_value.rb +126 -0
- data/lib/datadog_api_client/v2/models/synthetics_variable_parser.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_email.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_ms_teams.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_pagerduty.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_slack.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attachment_type.rb → team_notification_rule_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/team_notification_rules_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/user140420082644000.rb +143 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_related_object.rb → user_type.rb} +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +109 -24
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +0 -11
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +0 -38
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +0 -26
|
@@ -0,0 +1,225 @@
|
|
|
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 attributes of the incident event.
|
|
21
|
+
class DORAIncidentObjectAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
|
|
25
|
+
attr_accessor :custom_tags
|
|
26
|
+
|
|
27
|
+
# Environment name that was impacted by the incident.
|
|
28
|
+
attr_accessor :env
|
|
29
|
+
|
|
30
|
+
# Unix timestamp when the incident finished.
|
|
31
|
+
attr_accessor :finished_at
|
|
32
|
+
|
|
33
|
+
# Git info for DORA Metrics events.
|
|
34
|
+
attr_accessor :git
|
|
35
|
+
|
|
36
|
+
# Incident name.
|
|
37
|
+
attr_accessor :name
|
|
38
|
+
|
|
39
|
+
# Service names impacted by the incident.
|
|
40
|
+
attr_accessor :services
|
|
41
|
+
|
|
42
|
+
# Incident severity.
|
|
43
|
+
attr_accessor :severity
|
|
44
|
+
|
|
45
|
+
# Unix timestamp when the incident started.
|
|
46
|
+
attr_reader :started_at
|
|
47
|
+
|
|
48
|
+
# Name of the team owning the services impacted.
|
|
49
|
+
attr_accessor :team
|
|
50
|
+
|
|
51
|
+
# Version to correlate with APM Deployment Tracking.
|
|
52
|
+
attr_accessor :version
|
|
53
|
+
|
|
54
|
+
attr_accessor :additional_properties
|
|
55
|
+
|
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def self.attribute_map
|
|
59
|
+
{
|
|
60
|
+
:'custom_tags' => :'custom_tags',
|
|
61
|
+
:'env' => :'env',
|
|
62
|
+
:'finished_at' => :'finished_at',
|
|
63
|
+
:'git' => :'git',
|
|
64
|
+
:'name' => :'name',
|
|
65
|
+
:'services' => :'services',
|
|
66
|
+
:'severity' => :'severity',
|
|
67
|
+
:'started_at' => :'started_at',
|
|
68
|
+
:'team' => :'team',
|
|
69
|
+
:'version' => :'version'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Attribute type mapping.
|
|
74
|
+
# @!visibility private
|
|
75
|
+
def self.openapi_types
|
|
76
|
+
{
|
|
77
|
+
:'custom_tags' => :'Array<String>',
|
|
78
|
+
:'env' => :'String',
|
|
79
|
+
:'finished_at' => :'Integer',
|
|
80
|
+
:'git' => :'DORAGitInfo',
|
|
81
|
+
:'name' => :'String',
|
|
82
|
+
:'services' => :'Array<String>',
|
|
83
|
+
:'severity' => :'String',
|
|
84
|
+
:'started_at' => :'Integer',
|
|
85
|
+
:'team' => :'String',
|
|
86
|
+
:'version' => :'String'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# List of attributes with nullable: true
|
|
91
|
+
# @!visibility private
|
|
92
|
+
def self.openapi_nullable
|
|
93
|
+
Set.new([
|
|
94
|
+
:'custom_tags',
|
|
95
|
+
])
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Initializes the object
|
|
99
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def initialize(attributes = {})
|
|
102
|
+
if (!attributes.is_a?(Hash))
|
|
103
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentObjectAttributes` initialize method"
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
self.additional_properties = {}
|
|
107
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
108
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
109
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
110
|
+
self.additional_properties[k.to_sym] = v
|
|
111
|
+
else
|
|
112
|
+
h[k.to_sym] = v
|
|
113
|
+
end
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'custom_tags')
|
|
117
|
+
if (value = attributes[:'custom_tags']).is_a?(Array)
|
|
118
|
+
self.custom_tags = value
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'env')
|
|
123
|
+
self.env = attributes[:'env']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'finished_at')
|
|
127
|
+
self.finished_at = attributes[:'finished_at']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'git')
|
|
131
|
+
self.git = attributes[:'git']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'name')
|
|
135
|
+
self.name = attributes[:'name']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'services')
|
|
139
|
+
if (value = attributes[:'services']).is_a?(Array)
|
|
140
|
+
self.services = value
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'severity')
|
|
145
|
+
self.severity = attributes[:'severity']
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'started_at')
|
|
149
|
+
self.started_at = attributes[:'started_at']
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'team')
|
|
153
|
+
self.team = attributes[:'team']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'version')
|
|
157
|
+
self.version = attributes[:'version']
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
# @!visibility private
|
|
164
|
+
def valid?
|
|
165
|
+
return false if @started_at.nil?
|
|
166
|
+
true
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Custom attribute writer method with validation
|
|
170
|
+
# @param started_at [Object] Object to be assigned
|
|
171
|
+
# @!visibility private
|
|
172
|
+
def started_at=(started_at)
|
|
173
|
+
if started_at.nil?
|
|
174
|
+
fail ArgumentError, 'invalid value for "started_at", started_at cannot be nil.'
|
|
175
|
+
end
|
|
176
|
+
@started_at = started_at
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
|
181
|
+
# @!visibility private
|
|
182
|
+
def to_hash
|
|
183
|
+
hash = {}
|
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
185
|
+
value = self.send(attr)
|
|
186
|
+
if value.nil?
|
|
187
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
188
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
hash[param] = _to_hash(value)
|
|
192
|
+
end
|
|
193
|
+
self.additional_properties.each_pair do |attr, value|
|
|
194
|
+
hash[attr] = value
|
|
195
|
+
end
|
|
196
|
+
hash
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Checks equality by comparing each attribute.
|
|
200
|
+
# @param o [Object] Object to be compared
|
|
201
|
+
# @!visibility private
|
|
202
|
+
def ==(o)
|
|
203
|
+
return true if self.equal?(o)
|
|
204
|
+
self.class == o.class &&
|
|
205
|
+
custom_tags == o.custom_tags &&
|
|
206
|
+
env == o.env &&
|
|
207
|
+
finished_at == o.finished_at &&
|
|
208
|
+
git == o.git &&
|
|
209
|
+
name == o.name &&
|
|
210
|
+
services == o.services &&
|
|
211
|
+
severity == o.severity &&
|
|
212
|
+
started_at == o.started_at &&
|
|
213
|
+
team == o.team &&
|
|
214
|
+
version == o.version &&
|
|
215
|
+
additional_properties == o.additional_properties
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Calculates hash code according to all attributes.
|
|
219
|
+
# @return [Integer] Hash code
|
|
220
|
+
# @!visibility private
|
|
221
|
+
def hash
|
|
222
|
+
[custom_tags, env, finished_at, git, name, services, severity, started_at, team, version, additional_properties].hash
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
# Synthetics global variable data. Wrapper around the global variable object.
|
|
21
|
+
class GlobalVariableData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Synthetic global variable.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# Global variable identifier.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# Global variable type.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'attributes' => :'attributes',
|
|
40
|
+
:'id' => :'id',
|
|
41
|
+
:'type' => :'type'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'attributes' => :'SyntheticsGlobalVariable',
|
|
50
|
+
:'id' => :'String',
|
|
51
|
+
:'type' => :'GlobalVariableType'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GlobalVariableData` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'attributes')
|
|
74
|
+
self.attributes = attributes[:'attributes']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'type')
|
|
82
|
+
self.type = attributes[:'type']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
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
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
attributes == o.attributes &&
|
|
113
|
+
id == o.id &&
|
|
114
|
+
type == o.type &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[attributes, id, type, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
# JSON Patch request for global variable.
|
|
21
|
+
class GlobalVariableJsonPatchRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
attr_reader :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' => :'GlobalVariableJsonPatchRequestData'
|
|
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::GlobalVariableJsonPatchRequest` 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
|
+
# Check to see if the all the properties in the model are valid
|
|
69
|
+
# @return true if the model is valid
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def valid?
|
|
72
|
+
return false if @data.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param data [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def data=(data)
|
|
80
|
+
if data.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@data = data
|
|
84
|
+
end
|
|
85
|
+
|
|
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
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
data == o.data &&
|
|
113
|
+
additional_properties == o.additional_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Calculates hash code according to all attributes.
|
|
117
|
+
# @return [Integer] Hash code
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def hash
|
|
120
|
+
[data, additional_properties].hash
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
#
|
|
21
|
+
class GlobalVariableJsonPatchRequestData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# Global variable JSON Patch type.
|
|
28
|
+
attr_accessor :type
|
|
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
|
+
:'attributes' => :'attributes',
|
|
37
|
+
:'type' => :'type'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'attributes' => :'GlobalVariableJsonPatchRequestDataAttributes',
|
|
46
|
+
:'type' => :'GlobalVariableJsonPatchType'
|
|
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::GlobalVariableJsonPatchRequestData` 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?(:'attributes')
|
|
69
|
+
self.attributes = attributes[:'attributes']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'type')
|
|
73
|
+
self.type = attributes[:'type']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
78
|
+
# @return [Hash] Returns the object in the form of hash
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def to_hash
|
|
81
|
+
hash = {}
|
|
82
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
83
|
+
value = self.send(attr)
|
|
84
|
+
if value.nil?
|
|
85
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
86
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
hash[param] = _to_hash(value)
|
|
90
|
+
end
|
|
91
|
+
self.additional_properties.each_pair do |attr, value|
|
|
92
|
+
hash[attr] = value
|
|
93
|
+
end
|
|
94
|
+
hash
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param o [Object] Object to be compared
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def ==(o)
|
|
101
|
+
return true if self.equal?(o)
|
|
102
|
+
self.class == o.class &&
|
|
103
|
+
attributes == o.attributes &&
|
|
104
|
+
type == o.type &&
|
|
105
|
+
additional_properties == o.additional_properties
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Calculates hash code according to all attributes.
|
|
109
|
+
# @return [Integer] Hash code
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def hash
|
|
112
|
+
[attributes, type, additional_properties].hash
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
#
|
|
21
|
+
class GlobalVariableJsonPatchRequestDataAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# JSON Patch operations following RFC 6902.
|
|
25
|
+
attr_accessor :json_patch
|
|
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
|
+
:'json_patch' => :'json_patch'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'json_patch' => :'Array<JsonPatchOperation>'
|
|
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::GlobalVariableJsonPatchRequestDataAttributes` 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?(:'json_patch')
|
|
64
|
+
if (value = attributes[:'json_patch']).is_a?(Array)
|
|
65
|
+
self.json_patch = value
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
71
|
+
# @return [Hash] Returns the object in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def to_hash
|
|
74
|
+
hash = {}
|
|
75
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
76
|
+
value = self.send(attr)
|
|
77
|
+
if value.nil?
|
|
78
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
79
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
hash[param] = _to_hash(value)
|
|
83
|
+
end
|
|
84
|
+
self.additional_properties.each_pair do |attr, value|
|
|
85
|
+
hash[attr] = value
|
|
86
|
+
end
|
|
87
|
+
hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param o [Object] Object to be compared
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def ==(o)
|
|
94
|
+
return true if self.equal?(o)
|
|
95
|
+
self.class == o.class &&
|
|
96
|
+
json_patch == o.json_patch &&
|
|
97
|
+
additional_properties == o.additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def hash
|
|
104
|
+
[json_patch, additional_properties].hash
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|