datadog_api_client 2.31.1 → 2.32.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/schemas/v1/openapi.yaml +80 -4
- data/.generator/schemas/v2/openapi.yaml +2404 -55
- data/.generator/src/generator/cli.py +1 -1
- data/.generator/src/generator/formatter.py +3 -0
- data/.generator/src/generator/templates/api.j2 +1 -1
- data/.generator/src/generator/templates/inflector.j2 +1 -1
- data/CHANGELOG.md +27 -0
- data/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb +1 -0
- data/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb +1 -0
- data/examples/v2/action-connection/CreateActionConnection.rb +1 -1
- data/examples/v2/action-connection/DeleteActionConnection.rb +4 -1
- data/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb +21 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb +25 -0
- data/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb +8 -0
- data/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb +8 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +44 -0
- data/examples/v2/observability-pipelines/DeletePipeline.rb +11 -0
- data/examples/v2/observability-pipelines/GetPipeline.rb +11 -0
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +48 -0
- data/examples/v2/on-call/CreateOnCallSchedule.rb +61 -0
- data/examples/v2/on-call/DeleteOnCallSchedule.rb +8 -0
- data/examples/v2/on-call/GetOnCallSchedule.rb +8 -0
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +68 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb +6 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
- data/examples/v2/software-catalog/UpsertCatalogEntity.rb +1 -0
- data/lib/datadog_api_client/configuration.rb +5 -0
- data/lib/datadog_api_client/inflector.rb +122 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_step_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb +108 -0
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +319 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +301 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +7 -3
- data/lib/datadog_api_client/v2/models/api_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_tags_category.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
- data/lib/datadog_api_client/v2/models/{service_definition_v2_dot2_type.rb → entity_response_included_incident_type.rb} +3 -9
- data/lib/datadog_api_client/v2/models/entity_response_included_oncall.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_oncall_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_related_entity.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_entity_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_schema_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +13 -1
- data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +13 -1
- data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +13 -1
- data/lib/datadog_api_client/v2/models/github_webhook_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/interface_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/layer.rb +135 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +157 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_interval.rb +144 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items.rb +136 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_end_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/layer_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/layer_relationships_members.rb +107 -0
- data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items.rb +116 -0
- data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/layer_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_options.rb +4 -1
- data/lib/datadog_api_client/v2/models/monitor_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +171 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +67 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_data_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +167 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_field_value.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +220 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_librdkafka_option.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_sasl.rb +105 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +209 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +285 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_limit.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_limit_enforce_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_override.rb +146 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor_field.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_tls.rb +143 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/schedule.rb +117 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +231 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_interval.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_members_items.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_members_items_user.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items.rb +136 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items.rb +116 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_data.rb +135 -0
- data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/schedule_data_included_item.rb +65 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_member.rb +125 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_member_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +180 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_members_items.rb +106 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_members_items_user.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items.rb +136 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_user.rb +125 -0
- data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +31 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +1 -1
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb +107 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb +215 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_reference_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_reference_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +4 -0
- data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +136 -4
- data/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +0 -8
data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb
ADDED
@@ -0,0 +1,215 @@
|
|
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
|
+
# Attributes for an aggregated connection.
|
21
|
+
class SingleAggregatedConnectionResponseDataAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The total number of bytes sent by the client over the given period.
|
25
|
+
attr_accessor :bytes_sent_by_client
|
26
|
+
|
27
|
+
# The total number of bytes sent by the server over the given period.
|
28
|
+
attr_accessor :bytes_sent_by_server
|
29
|
+
|
30
|
+
# The key, value pairs for each group by.
|
31
|
+
attr_accessor :group_bys
|
32
|
+
|
33
|
+
# The total number of packets sent by the client over the given period.
|
34
|
+
attr_accessor :packets_sent_by_client
|
35
|
+
|
36
|
+
# The total number of packets sent by the server over the given period.
|
37
|
+
attr_accessor :packets_sent_by_server
|
38
|
+
|
39
|
+
# Measured as TCP smoothed round trip time in microseconds (the time between a TCP frame being sent and acknowledged).
|
40
|
+
attr_accessor :rtt_micro_seconds
|
41
|
+
|
42
|
+
# The number of TCP connections in a closed state. Measured in connections per second from the client.
|
43
|
+
attr_accessor :tcp_closed_connections
|
44
|
+
|
45
|
+
# The number of TCP connections in an established state. Measured in connections per second from the client.
|
46
|
+
attr_accessor :tcp_established_connections
|
47
|
+
|
48
|
+
# The number of TCP connections that were refused by the server. Typically this indicates an attempt to connect to an IP/port that is not receiving connections, or a firewall/security misconfiguration.
|
49
|
+
attr_accessor :tcp_refusals
|
50
|
+
|
51
|
+
# The number of TCP connections that were reset by the server.
|
52
|
+
attr_accessor :tcp_resets
|
53
|
+
|
54
|
+
# TCP Retransmits represent detected failures that are retransmitted to ensure delivery. Measured in count of retransmits from the client.
|
55
|
+
attr_accessor :tcp_retransmits
|
56
|
+
|
57
|
+
# The number of TCP connections that timed out from the perspective of the operating system. This can indicate general connectivity and latency issues.
|
58
|
+
attr_accessor :tcp_timeouts
|
59
|
+
|
60
|
+
attr_accessor :additional_properties
|
61
|
+
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
63
|
+
# @!visibility private
|
64
|
+
def self.attribute_map
|
65
|
+
{
|
66
|
+
:'bytes_sent_by_client' => :'bytes_sent_by_client',
|
67
|
+
:'bytes_sent_by_server' => :'bytes_sent_by_server',
|
68
|
+
:'group_bys' => :'group_bys',
|
69
|
+
:'packets_sent_by_client' => :'packets_sent_by_client',
|
70
|
+
:'packets_sent_by_server' => :'packets_sent_by_server',
|
71
|
+
:'rtt_micro_seconds' => :'rtt_micro_seconds',
|
72
|
+
:'tcp_closed_connections' => :'tcp_closed_connections',
|
73
|
+
:'tcp_established_connections' => :'tcp_established_connections',
|
74
|
+
:'tcp_refusals' => :'tcp_refusals',
|
75
|
+
:'tcp_resets' => :'tcp_resets',
|
76
|
+
:'tcp_retransmits' => :'tcp_retransmits',
|
77
|
+
:'tcp_timeouts' => :'tcp_timeouts'
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
# Attribute type mapping.
|
82
|
+
# @!visibility private
|
83
|
+
def self.openapi_types
|
84
|
+
{
|
85
|
+
:'bytes_sent_by_client' => :'Integer',
|
86
|
+
:'bytes_sent_by_server' => :'Integer',
|
87
|
+
:'group_bys' => :'Hash<String, Array<String>>',
|
88
|
+
:'packets_sent_by_client' => :'Integer',
|
89
|
+
:'packets_sent_by_server' => :'Integer',
|
90
|
+
:'rtt_micro_seconds' => :'Integer',
|
91
|
+
:'tcp_closed_connections' => :'Integer',
|
92
|
+
:'tcp_established_connections' => :'Integer',
|
93
|
+
:'tcp_refusals' => :'Integer',
|
94
|
+
:'tcp_resets' => :'Integer',
|
95
|
+
:'tcp_retransmits' => :'Integer',
|
96
|
+
:'tcp_timeouts' => :'Integer'
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
100
|
+
# Initializes the object
|
101
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
102
|
+
# @!visibility private
|
103
|
+
def initialize(attributes = {})
|
104
|
+
if (!attributes.is_a?(Hash))
|
105
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SingleAggregatedConnectionResponseDataAttributes` initialize method"
|
106
|
+
end
|
107
|
+
|
108
|
+
self.additional_properties = {}
|
109
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
110
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
111
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
112
|
+
self.additional_properties[k.to_sym] = v
|
113
|
+
else
|
114
|
+
h[k.to_sym] = v
|
115
|
+
end
|
116
|
+
}
|
117
|
+
|
118
|
+
if attributes.key?(:'bytes_sent_by_client')
|
119
|
+
self.bytes_sent_by_client = attributes[:'bytes_sent_by_client']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'bytes_sent_by_server')
|
123
|
+
self.bytes_sent_by_server = attributes[:'bytes_sent_by_server']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'group_bys')
|
127
|
+
self.group_bys = attributes[:'group_bys']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'packets_sent_by_client')
|
131
|
+
self.packets_sent_by_client = attributes[:'packets_sent_by_client']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'packets_sent_by_server')
|
135
|
+
self.packets_sent_by_server = attributes[:'packets_sent_by_server']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'rtt_micro_seconds')
|
139
|
+
self.rtt_micro_seconds = attributes[:'rtt_micro_seconds']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'tcp_closed_connections')
|
143
|
+
self.tcp_closed_connections = attributes[:'tcp_closed_connections']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'tcp_established_connections')
|
147
|
+
self.tcp_established_connections = attributes[:'tcp_established_connections']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.key?(:'tcp_refusals')
|
151
|
+
self.tcp_refusals = attributes[:'tcp_refusals']
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.key?(:'tcp_resets')
|
155
|
+
self.tcp_resets = attributes[:'tcp_resets']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.key?(:'tcp_retransmits')
|
159
|
+
self.tcp_retransmits = attributes[:'tcp_retransmits']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'tcp_timeouts')
|
163
|
+
self.tcp_timeouts = attributes[:'tcp_timeouts']
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
# @!visibility private
|
170
|
+
def to_hash
|
171
|
+
hash = {}
|
172
|
+
self.class.attribute_map.each_pair do |attr, param|
|
173
|
+
value = self.send(attr)
|
174
|
+
if value.nil?
|
175
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
176
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
177
|
+
end
|
178
|
+
|
179
|
+
hash[param] = _to_hash(value)
|
180
|
+
end
|
181
|
+
self.additional_properties.each_pair do |attr, value|
|
182
|
+
hash[attr] = value
|
183
|
+
end
|
184
|
+
hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Checks equality by comparing each attribute.
|
188
|
+
# @param o [Object] Object to be compared
|
189
|
+
# @!visibility private
|
190
|
+
def ==(o)
|
191
|
+
return true if self.equal?(o)
|
192
|
+
self.class == o.class &&
|
193
|
+
bytes_sent_by_client == o.bytes_sent_by_client &&
|
194
|
+
bytes_sent_by_server == o.bytes_sent_by_server &&
|
195
|
+
group_bys == o.group_bys &&
|
196
|
+
packets_sent_by_client == o.packets_sent_by_client &&
|
197
|
+
packets_sent_by_server == o.packets_sent_by_server &&
|
198
|
+
rtt_micro_seconds == o.rtt_micro_seconds &&
|
199
|
+
tcp_closed_connections == o.tcp_closed_connections &&
|
200
|
+
tcp_established_connections == o.tcp_established_connections &&
|
201
|
+
tcp_refusals == o.tcp_refusals &&
|
202
|
+
tcp_resets == o.tcp_resets &&
|
203
|
+
tcp_retransmits == o.tcp_retransmits &&
|
204
|
+
tcp_timeouts == o.tcp_timeouts &&
|
205
|
+
additional_properties == o.additional_properties
|
206
|
+
end
|
207
|
+
|
208
|
+
# Calculates hash code according to all attributes.
|
209
|
+
# @return [Integer] Hash code
|
210
|
+
# @!visibility private
|
211
|
+
def hash
|
212
|
+
[bytes_sent_by_client, bytes_sent_by_server, group_bys, packets_sent_by_client, packets_sent_by_server, rtt_micro_seconds, tcp_closed_connections, tcp_established_connections, tcp_refusals, tcp_resets, tcp_retransmits, tcp_timeouts, additional_properties].hash
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -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
|
+
# Aggregated connection resource type.
|
21
|
+
class SingleAggregatedConnectionResponseDataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
AGGREGATED_CONNECTION = "aggregated_connection".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
class SlackTriggerWrapper
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# Trigger a workflow
|
24
|
+
# Trigger a workflow from Slack. The workflow must be published.
|
25
25
|
attr_reader :slack_trigger
|
26
26
|
|
27
27
|
# A list of steps that run first after a trigger fires.
|
@@ -0,0 +1,135 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
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
|
+
# Schema for a Software Catalog-based trigger.
|
21
|
+
class SoftwareCatalogTriggerWrapper
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Trigger a workflow from Software Catalog.
|
25
|
+
attr_reader :software_catalog_trigger
|
26
|
+
|
27
|
+
# A list of steps that run first after a trigger fires.
|
28
|
+
attr_accessor :start_step_names
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'software_catalog_trigger' => :'softwareCatalogTrigger',
|
37
|
+
:'start_step_names' => :'startStepNames'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'software_catalog_trigger' => :'Object',
|
46
|
+
:'start_step_names' => :'Array<String>'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SoftwareCatalogTriggerWrapper` 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?(:'software_catalog_trigger')
|
69
|
+
self.software_catalog_trigger = attributes[:'software_catalog_trigger']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'start_step_names')
|
73
|
+
if (value = attributes[:'start_step_names']).is_a?(Array)
|
74
|
+
self.start_step_names = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
# @!visibility private
|
82
|
+
def valid?
|
83
|
+
return false if @software_catalog_trigger.nil?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param software_catalog_trigger [Object] Object to be assigned
|
89
|
+
# @!visibility private
|
90
|
+
def software_catalog_trigger=(software_catalog_trigger)
|
91
|
+
if software_catalog_trigger.nil?
|
92
|
+
fail ArgumentError, 'invalid value for "software_catalog_trigger", software_catalog_trigger cannot be nil.'
|
93
|
+
end
|
94
|
+
@software_catalog_trigger = software_catalog_trigger
|
95
|
+
end
|
96
|
+
|
97
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
98
|
+
# @return [Hash] Returns the object in the form of hash
|
99
|
+
# @!visibility private
|
100
|
+
def to_hash
|
101
|
+
hash = {}
|
102
|
+
self.class.attribute_map.each_pair do |attr, param|
|
103
|
+
value = self.send(attr)
|
104
|
+
if value.nil?
|
105
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
106
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
107
|
+
end
|
108
|
+
|
109
|
+
hash[param] = _to_hash(value)
|
110
|
+
end
|
111
|
+
self.additional_properties.each_pair do |attr, value|
|
112
|
+
hash[attr] = value
|
113
|
+
end
|
114
|
+
hash
|
115
|
+
end
|
116
|
+
|
117
|
+
# Checks equality by comparing each attribute.
|
118
|
+
# @param o [Object] Object to be compared
|
119
|
+
# @!visibility private
|
120
|
+
def ==(o)
|
121
|
+
return true if self.equal?(o)
|
122
|
+
self.class == o.class &&
|
123
|
+
software_catalog_trigger == o.software_catalog_trigger &&
|
124
|
+
start_step_names == o.start_step_names &&
|
125
|
+
additional_properties == o.additional_properties
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
# @!visibility private
|
131
|
+
def hash
|
132
|
+
[software_catalog_trigger, start_step_names, additional_properties].hash
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
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
|
+
# Provides a reference to a team, including ID, type, and basic attributes/relationships.
|
21
|
+
class TeamReference
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Encapsulates the basic attributes of a Team reference, such as name, handle, and an optional avatar or description.
|
25
|
+
attr_accessor :attributes
|
26
|
+
|
27
|
+
# The team's unique identifier.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# Collects the key relationship fields for a team reference, specifically on-call users.
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
33
|
+
# Teams resource type.
|
34
|
+
attr_accessor :type
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'attributes' => :'attributes',
|
43
|
+
:'id' => :'id',
|
44
|
+
:'relationships' => :'relationships',
|
45
|
+
:'type' => :'type'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'attributes' => :'TeamReferenceAttributes',
|
54
|
+
:'id' => :'String',
|
55
|
+
:'relationships' => :'TeamReferenceRelationships',
|
56
|
+
:'type' => :'TeamReferenceType'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamReference` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'attributes')
|
79
|
+
self.attributes = attributes[:'attributes']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'relationships')
|
87
|
+
self.relationships = attributes[:'relationships']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
97
|
+
# @!visibility private
|
98
|
+
def to_hash
|
99
|
+
hash = {}
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
101
|
+
value = self.send(attr)
|
102
|
+
if value.nil?
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
105
|
+
end
|
106
|
+
|
107
|
+
hash[param] = _to_hash(value)
|
108
|
+
end
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
110
|
+
hash[attr] = value
|
111
|
+
end
|
112
|
+
hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param o [Object] Object to be compared
|
117
|
+
# @!visibility private
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
attributes == o.attributes &&
|
122
|
+
id == o.id &&
|
123
|
+
relationships == o.relationships &&
|
124
|
+
type == o.type &&
|
125
|
+
additional_properties == o.additional_properties
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
# @!visibility private
|
131
|
+
def hash
|
132
|
+
[attributes, id, relationships, type, additional_properties].hash
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
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
|
+
# Encapsulates the basic attributes of a Team reference, such as name, handle, and an optional avatar or description.
|
21
|
+
class TeamReferenceAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# URL or reference for the team's avatar (if available).
|
25
|
+
attr_accessor :avatar
|
26
|
+
|
27
|
+
# A short text describing the team.
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
|
+
# A unique handle/slug for the team.
|
31
|
+
attr_accessor :handle
|
32
|
+
|
33
|
+
# The full, human-readable name of the team.
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'avatar' => :'avatar',
|
43
|
+
:'description' => :'description',
|
44
|
+
:'handle' => :'handle',
|
45
|
+
:'name' => :'name'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'avatar' => :'String',
|
54
|
+
:'description' => :'String',
|
55
|
+
:'handle' => :'String',
|
56
|
+
:'name' => :'String'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamReferenceAttributes` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'avatar')
|
79
|
+
self.avatar = attributes[:'avatar']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'description')
|
83
|
+
self.description = attributes[:'description']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'handle')
|
87
|
+
self.handle = attributes[:'handle']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'name')
|
91
|
+
self.name = attributes[:'name']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
97
|
+
# @!visibility private
|
98
|
+
def to_hash
|
99
|
+
hash = {}
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
101
|
+
value = self.send(attr)
|
102
|
+
if value.nil?
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
105
|
+
end
|
106
|
+
|
107
|
+
hash[param] = _to_hash(value)
|
108
|
+
end
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
110
|
+
hash[attr] = value
|
111
|
+
end
|
112
|
+
hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param o [Object] Object to be compared
|
117
|
+
# @!visibility private
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
avatar == o.avatar &&
|
122
|
+
description == o.description &&
|
123
|
+
handle == o.handle &&
|
124
|
+
name == o.name &&
|
125
|
+
additional_properties == o.additional_properties
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
# @!visibility private
|
131
|
+
def hash
|
132
|
+
[avatar, description, handle, name, additional_properties].hash
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|