datadog_api_client 2.24.0 → 2.25.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/.apigentools-info +4 -4
- data/.generator/conftest.py +2 -0
- data/.generator/schemas/v1/openapi.yaml +265 -8
- data/.generator/schemas/v2/openapi.yaml +1471 -32
- data/.generator/src/generator/openapi.py +4 -0
- data/CHANGELOG.md +41 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +1 -1
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +7 -1
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +7 -1
- data/examples/v1/dashboards/CreateDashboard_985012506.rb +61 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.rb +163 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +2 -0
- data/examples/v2/cloud-cost-management/DeleteCustomCostsFile.rb +5 -0
- data/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCustomCostsFile.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCustomCostsFiles.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.rb +5 -0
- data/examples/v2/cloud-cost-management/UploadCustomCostsFile.rb +15 -0
- data/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb +19 -0
- data/examples/v2/network-device-monitoring/GetDevice.rb +5 -0
- data/examples/v2/network-device-monitoring/GetInterfaces.rb +5 -0
- data/examples/v2/network-device-monitoring/ListDeviceUserTags.rb +5 -0
- data/examples/v2/network-device-monitoring/ListDevices.rb +10 -0
- data/examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb +18 -0
- data/examples/v2/roles/CreateRole.rb +0 -3
- data/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +8 -0
- data/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +36 -0
- data/examples/v2/service-scorecards/UpdateScorecardRule.rb +24 -0
- data/examples/v2/workflow-automation/CancelWorkflowInstance.rb +5 -0
- data/examples/v2/workflow-automation/CreateWorkflowInstance.rb +13 -0
- data/examples/v2/workflow-automation/GetWorkflowInstance.rb +5 -0
- data/examples/v2/workflow-automation/ListWorkflowInstances.rb +5 -0
- data/lib/datadog_api_client/configuration.rb +1 -0
- data/lib/datadog_api_client/inflector.rb +53 -1
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +12 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +7 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +14 -1
- data/lib/datadog_api_client/v1/models/azure_account_metrics_config.rb +85 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +24 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +61 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +81 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +61 -1
- data/lib/datadog_api_client/v2/api/api_management_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +6 -0
- data/lib/datadog_api_client/v2/api/case_management_api.rb +13 -13
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +260 -0
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +362 -0
- data/lib/datadog_api_client/v2/api/organizations_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +15 -7
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +134 -0
- data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +79 -1
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +8 -0
- data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +307 -0
- data/lib/datadog_api_client/v2/models/api_key_relationships.rb +9 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_resource_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/custom_cost_get_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_cost_list_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_cost_upload_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_get_response.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_line_item.rb +173 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_list_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata.rb +152 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata_high_level.rb +100 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb +164 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content_high_level.rb +100 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_upload_response.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_costs_file_usage_charge_period.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_costs_user.rb +100 -0
- data/lib/datadog_api_client/v2/models/device_attributes.rb +272 -0
- data/lib/datadog_api_client/v2/models/device_attributes_interface_statuses.rb +110 -0
- data/lib/datadog_api_client/v2/models/devices_list_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/get_device_attributes.rb +262 -0
- data/lib/datadog_api_client/v2/models/get_device_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/get_device_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/get_interfaces_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/get_interfaces_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/interface_attributes.rb +130 -0
- data/lib/datadog_api_client/v2/models/interface_attributes_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/list_devices_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/list_devices_response_metadata.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_devices_response_metadata_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_tags_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_tags_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/list_tags_response_data_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/role_relationships.rb +4 -14
- data/lib/datadog_api_client/v2/models/role_update_attributes.rb +32 -4
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_payload.rb +63 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/update_rule_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_rule_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/update_rule_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_rule_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/user_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/workflow_instance_create_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_create_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_create_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_create_response_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_instance_list_item.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_list_instances_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/workflow_list_instances_response_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_cancel_instance_response_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_get_instance_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/worklflow_get_instance_response_data_attributes.rb +80 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +76 -2
|
@@ -0,0 +1,262 @@
|
|
|
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 device attributes
|
|
21
|
+
class GetDeviceAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A description of the device.
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# The type of the device.
|
|
28
|
+
attr_accessor :device_type
|
|
29
|
+
|
|
30
|
+
# The integration of the device.
|
|
31
|
+
attr_accessor :integration
|
|
32
|
+
|
|
33
|
+
# The IP address of the device.
|
|
34
|
+
attr_accessor :ip_address
|
|
35
|
+
|
|
36
|
+
# The location of the device.
|
|
37
|
+
attr_accessor :location
|
|
38
|
+
|
|
39
|
+
# The model of the device.
|
|
40
|
+
attr_accessor :model
|
|
41
|
+
|
|
42
|
+
# The name of the device.
|
|
43
|
+
attr_accessor :name
|
|
44
|
+
|
|
45
|
+
# The operating system hostname of the device.
|
|
46
|
+
attr_accessor :os_hostname
|
|
47
|
+
|
|
48
|
+
# The operating system name of the device.
|
|
49
|
+
attr_accessor :os_name
|
|
50
|
+
|
|
51
|
+
# The operating system version of the device.
|
|
52
|
+
attr_accessor :os_version
|
|
53
|
+
|
|
54
|
+
# The ping status of the device.
|
|
55
|
+
attr_accessor :ping_status
|
|
56
|
+
|
|
57
|
+
# The product name of the device.
|
|
58
|
+
attr_accessor :product_name
|
|
59
|
+
|
|
60
|
+
# The serial number of the device.
|
|
61
|
+
attr_accessor :serial_number
|
|
62
|
+
|
|
63
|
+
# The status of the device.
|
|
64
|
+
attr_accessor :status
|
|
65
|
+
|
|
66
|
+
# The subnet of the device.
|
|
67
|
+
attr_accessor :subnet
|
|
68
|
+
|
|
69
|
+
# The device `sys_object_id`.
|
|
70
|
+
attr_accessor :sys_object_id
|
|
71
|
+
|
|
72
|
+
# A list of tags associated with the device.
|
|
73
|
+
attr_accessor :tags
|
|
74
|
+
|
|
75
|
+
# The vendor of the device.
|
|
76
|
+
attr_accessor :vendor
|
|
77
|
+
|
|
78
|
+
# The version of the device.
|
|
79
|
+
attr_accessor :version
|
|
80
|
+
|
|
81
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
82
|
+
# @!visibility private
|
|
83
|
+
def self.attribute_map
|
|
84
|
+
{
|
|
85
|
+
:'description' => :'description',
|
|
86
|
+
:'device_type' => :'device_type',
|
|
87
|
+
:'integration' => :'integration',
|
|
88
|
+
:'ip_address' => :'ip_address',
|
|
89
|
+
:'location' => :'location',
|
|
90
|
+
:'model' => :'model',
|
|
91
|
+
:'name' => :'name',
|
|
92
|
+
:'os_hostname' => :'os_hostname',
|
|
93
|
+
:'os_name' => :'os_name',
|
|
94
|
+
:'os_version' => :'os_version',
|
|
95
|
+
:'ping_status' => :'ping_status',
|
|
96
|
+
:'product_name' => :'product_name',
|
|
97
|
+
:'serial_number' => :'serial_number',
|
|
98
|
+
:'status' => :'status',
|
|
99
|
+
:'subnet' => :'subnet',
|
|
100
|
+
:'sys_object_id' => :'sys_object_id',
|
|
101
|
+
:'tags' => :'tags',
|
|
102
|
+
:'vendor' => :'vendor',
|
|
103
|
+
:'version' => :'version'
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Attribute type mapping.
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def self.openapi_types
|
|
110
|
+
{
|
|
111
|
+
:'description' => :'String',
|
|
112
|
+
:'device_type' => :'String',
|
|
113
|
+
:'integration' => :'String',
|
|
114
|
+
:'ip_address' => :'String',
|
|
115
|
+
:'location' => :'String',
|
|
116
|
+
:'model' => :'String',
|
|
117
|
+
:'name' => :'String',
|
|
118
|
+
:'os_hostname' => :'String',
|
|
119
|
+
:'os_name' => :'String',
|
|
120
|
+
:'os_version' => :'String',
|
|
121
|
+
:'ping_status' => :'String',
|
|
122
|
+
:'product_name' => :'String',
|
|
123
|
+
:'serial_number' => :'String',
|
|
124
|
+
:'status' => :'String',
|
|
125
|
+
:'subnet' => :'String',
|
|
126
|
+
:'sys_object_id' => :'String',
|
|
127
|
+
:'tags' => :'Array<String>',
|
|
128
|
+
:'vendor' => :'String',
|
|
129
|
+
:'version' => :'String'
|
|
130
|
+
}
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Initializes the object
|
|
134
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
135
|
+
# @!visibility private
|
|
136
|
+
def initialize(attributes = {})
|
|
137
|
+
if (!attributes.is_a?(Hash))
|
|
138
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetDeviceAttributes` initialize method"
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
142
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
143
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
144
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetDeviceAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
145
|
+
end
|
|
146
|
+
h[k.to_sym] = v
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'description')
|
|
150
|
+
self.description = attributes[:'description']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'device_type')
|
|
154
|
+
self.device_type = attributes[:'device_type']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'integration')
|
|
158
|
+
self.integration = attributes[:'integration']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'ip_address')
|
|
162
|
+
self.ip_address = attributes[:'ip_address']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'location')
|
|
166
|
+
self.location = attributes[:'location']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'model')
|
|
170
|
+
self.model = attributes[:'model']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'name')
|
|
174
|
+
self.name = attributes[:'name']
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'os_hostname')
|
|
178
|
+
self.os_hostname = attributes[:'os_hostname']
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'os_name')
|
|
182
|
+
self.os_name = attributes[:'os_name']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'os_version')
|
|
186
|
+
self.os_version = attributes[:'os_version']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'ping_status')
|
|
190
|
+
self.ping_status = attributes[:'ping_status']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.key?(:'product_name')
|
|
194
|
+
self.product_name = attributes[:'product_name']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.key?(:'serial_number')
|
|
198
|
+
self.serial_number = attributes[:'serial_number']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.key?(:'status')
|
|
202
|
+
self.status = attributes[:'status']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'subnet')
|
|
206
|
+
self.subnet = attributes[:'subnet']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'sys_object_id')
|
|
210
|
+
self.sys_object_id = attributes[:'sys_object_id']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'tags')
|
|
214
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
215
|
+
self.tags = value
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'vendor')
|
|
220
|
+
self.vendor = attributes[:'vendor']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'version')
|
|
224
|
+
self.version = attributes[:'version']
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Checks equality by comparing each attribute.
|
|
229
|
+
# @param o [Object] Object to be compared
|
|
230
|
+
# @!visibility private
|
|
231
|
+
def ==(o)
|
|
232
|
+
return true if self.equal?(o)
|
|
233
|
+
self.class == o.class &&
|
|
234
|
+
description == o.description &&
|
|
235
|
+
device_type == o.device_type &&
|
|
236
|
+
integration == o.integration &&
|
|
237
|
+
ip_address == o.ip_address &&
|
|
238
|
+
location == o.location &&
|
|
239
|
+
model == o.model &&
|
|
240
|
+
name == o.name &&
|
|
241
|
+
os_hostname == o.os_hostname &&
|
|
242
|
+
os_name == o.os_name &&
|
|
243
|
+
os_version == o.os_version &&
|
|
244
|
+
ping_status == o.ping_status &&
|
|
245
|
+
product_name == o.product_name &&
|
|
246
|
+
serial_number == o.serial_number &&
|
|
247
|
+
status == o.status &&
|
|
248
|
+
subnet == o.subnet &&
|
|
249
|
+
sys_object_id == o.sys_object_id &&
|
|
250
|
+
tags == o.tags &&
|
|
251
|
+
vendor == o.vendor &&
|
|
252
|
+
version == o.version
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Calculates hash code according to all attributes.
|
|
256
|
+
# @return [Integer] Hash code
|
|
257
|
+
# @!visibility private
|
|
258
|
+
def hash
|
|
259
|
+
[description, device_type, integration, ip_address, location, model, name, os_hostname, os_name, os_version, ping_status, product_name, serial_number, status, subnet, sys_object_id, tags, vendor, version].hash
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
# Get device response data.
|
|
21
|
+
class GetDeviceData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The device attributes
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# The device ID
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# The type of the resource. The value should always be device.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
# @!visibility private
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
39
|
+
:'type' => :'type'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'attributes' => :'GetDeviceAttributes',
|
|
48
|
+
:'id' => :'String',
|
|
49
|
+
:'type' => :'String'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Initializes the object
|
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetDeviceData` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetDeviceData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'attributes')
|
|
70
|
+
self.attributes = attributes[:'attributes']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'id')
|
|
74
|
+
self.id = attributes[:'id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'type')
|
|
78
|
+
self.type = attributes[:'type']
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Checks equality by comparing each attribute.
|
|
83
|
+
# @param o [Object] Object to be compared
|
|
84
|
+
# @!visibility private
|
|
85
|
+
def ==(o)
|
|
86
|
+
return true if self.equal?(o)
|
|
87
|
+
self.class == o.class &&
|
|
88
|
+
attributes == o.attributes &&
|
|
89
|
+
id == o.id &&
|
|
90
|
+
type == o.type
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Calculates hash code according to all attributes.
|
|
94
|
+
# @return [Integer] Hash code
|
|
95
|
+
# @!visibility private
|
|
96
|
+
def hash
|
|
97
|
+
[attributes, id, type].hash
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
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 `GetDevice` operation's response.
|
|
21
|
+
class GetDeviceResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Get device response data.
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
# @!visibility private
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'data' => :'data'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'data' => :'GetDeviceData'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Initializes the object
|
|
44
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
45
|
+
# @!visibility private
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
if (!attributes.is_a?(Hash))
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetDeviceResponse` initialize method"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetDeviceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
55
|
+
end
|
|
56
|
+
h[k.to_sym] = v
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if attributes.key?(:'data')
|
|
60
|
+
self.data = attributes[:'data']
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Checks equality by comparing each attribute.
|
|
65
|
+
# @param o [Object] Object to be compared
|
|
66
|
+
# @!visibility private
|
|
67
|
+
def ==(o)
|
|
68
|
+
return true if self.equal?(o)
|
|
69
|
+
self.class == o.class &&
|
|
70
|
+
data == o.data
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Calculates hash code according to all attributes.
|
|
74
|
+
# @return [Integer] Hash code
|
|
75
|
+
# @!visibility private
|
|
76
|
+
def hash
|
|
77
|
+
[data].hash
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
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 interfaces list data
|
|
21
|
+
class GetInterfacesData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The interface attributes
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# The interface ID
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# The type of the resource. The value should always be interface.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
# @!visibility private
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
39
|
+
:'type' => :'type'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'attributes' => :'InterfaceAttributes',
|
|
48
|
+
:'id' => :'String',
|
|
49
|
+
:'type' => :'String'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Initializes the object
|
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetInterfacesData` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetInterfacesData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'attributes')
|
|
70
|
+
self.attributes = attributes[:'attributes']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'id')
|
|
74
|
+
self.id = attributes[:'id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'type')
|
|
78
|
+
self.type = attributes[:'type']
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Checks equality by comparing each attribute.
|
|
83
|
+
# @param o [Object] Object to be compared
|
|
84
|
+
# @!visibility private
|
|
85
|
+
def ==(o)
|
|
86
|
+
return true if self.equal?(o)
|
|
87
|
+
self.class == o.class &&
|
|
88
|
+
attributes == o.attributes &&
|
|
89
|
+
id == o.id &&
|
|
90
|
+
type == o.type
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Calculates hash code according to all attributes.
|
|
94
|
+
# @return [Integer] Hash code
|
|
95
|
+
# @!visibility private
|
|
96
|
+
def hash
|
|
97
|
+
[attributes, id, type].hash
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
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 `GetInterfaces` operation's response.
|
|
21
|
+
class GetInterfacesResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Get Interfaces response
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
# @!visibility private
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'data' => :'data'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'data' => :'Array<GetInterfacesData>'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Initializes the object
|
|
44
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
45
|
+
# @!visibility private
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
if (!attributes.is_a?(Hash))
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GetInterfacesResponse` initialize method"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::GetInterfacesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
55
|
+
end
|
|
56
|
+
h[k.to_sym] = v
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if attributes.key?(:'data')
|
|
60
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
61
|
+
self.data = value
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Checks equality by comparing each attribute.
|
|
67
|
+
# @param o [Object] Object to be compared
|
|
68
|
+
# @!visibility private
|
|
69
|
+
def ==(o)
|
|
70
|
+
return true if self.equal?(o)
|
|
71
|
+
self.class == o.class &&
|
|
72
|
+
data == o.data
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Calculates hash code according to all attributes.
|
|
76
|
+
# @return [Integer] Hash code
|
|
77
|
+
# @!visibility private
|
|
78
|
+
def hash
|
|
79
|
+
[data].hash
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class HourlyUsageAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The account name.
|
|
25
|
+
attr_accessor :account_name
|
|
26
|
+
|
|
27
|
+
# The account public ID.
|
|
28
|
+
attr_accessor :account_public_id
|
|
29
|
+
|
|
24
30
|
# List of the measured usage values for the product family for the org for the time period.
|
|
25
31
|
attr_accessor :measurements
|
|
26
32
|
|
|
@@ -43,6 +49,8 @@ module DatadogAPIClient::V2
|
|
|
43
49
|
# @!visibility private
|
|
44
50
|
def self.attribute_map
|
|
45
51
|
{
|
|
52
|
+
:'account_name' => :'account_name',
|
|
53
|
+
:'account_public_id' => :'account_public_id',
|
|
46
54
|
:'measurements' => :'measurements',
|
|
47
55
|
:'org_name' => :'org_name',
|
|
48
56
|
:'product_family' => :'product_family',
|
|
@@ -56,6 +64,8 @@ module DatadogAPIClient::V2
|
|
|
56
64
|
# @!visibility private
|
|
57
65
|
def self.openapi_types
|
|
58
66
|
{
|
|
67
|
+
:'account_name' => :'String',
|
|
68
|
+
:'account_public_id' => :'String',
|
|
59
69
|
:'measurements' => :'Array<HourlyUsageMeasurement>',
|
|
60
70
|
:'org_name' => :'String',
|
|
61
71
|
:'product_family' => :'String',
|
|
@@ -81,6 +91,14 @@ module DatadogAPIClient::V2
|
|
|
81
91
|
h[k.to_sym] = v
|
|
82
92
|
}
|
|
83
93
|
|
|
94
|
+
if attributes.key?(:'account_name')
|
|
95
|
+
self.account_name = attributes[:'account_name']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'account_public_id')
|
|
99
|
+
self.account_public_id = attributes[:'account_public_id']
|
|
100
|
+
end
|
|
101
|
+
|
|
84
102
|
if attributes.key?(:'measurements')
|
|
85
103
|
if (value = attributes[:'measurements']).is_a?(Array)
|
|
86
104
|
self.measurements = value
|
|
@@ -114,6 +132,8 @@ module DatadogAPIClient::V2
|
|
|
114
132
|
def ==(o)
|
|
115
133
|
return true if self.equal?(o)
|
|
116
134
|
self.class == o.class &&
|
|
135
|
+
account_name == o.account_name &&
|
|
136
|
+
account_public_id == o.account_public_id &&
|
|
117
137
|
measurements == o.measurements &&
|
|
118
138
|
org_name == o.org_name &&
|
|
119
139
|
product_family == o.product_family &&
|
|
@@ -126,7 +146,7 @@ module DatadogAPIClient::V2
|
|
|
126
146
|
# @return [Integer] Hash code
|
|
127
147
|
# @!visibility private
|
|
128
148
|
def hash
|
|
129
|
-
[measurements, org_name, product_family, public_id, region, timestamp].hash
|
|
149
|
+
[account_name, account_public_id, measurements, org_name, product_family, public_id, region, timestamp].hash
|
|
130
150
|
end
|
|
131
151
|
end
|
|
132
152
|
end
|