datadog_api_client 2.12.0 → 2.14.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 +6 -6
- data/.generator/conftest.py +7 -0
- data/.generator/poetry.lock +45 -75
- data/.generator/pyproject.toml +7 -7
- data/.generator/schemas/v1/openapi.yaml +257 -19
- data/.generator/schemas/v2/openapi.yaml +3020 -911
- data/.generator/src/generator/formatter.py +43 -32
- data/.generator/src/generator/openapi.py +4 -2
- data/.generator/src/generator/templates/api_client.j2 +81 -53
- data/.generator/src/generator/templates/configuration.j2 +21 -0
- data/.github/workflows/test_integration.yml +7 -1
- data/.pre-commit-config.yaml +4 -4
- data/CHANGELOG.md +62 -0
- data/README.md +23 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_1284514532.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2261785072.rb +47 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
- data/examples/v1/dashboards/CreateDashboard_3513586382.rb +74 -0
- data/examples/v1/dashboards/CreateDashboard_3562282606.rb +1 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/organizations/UpdateOrg.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
- data/examples/v1/users/CreateUser.rb +1 -1
- data/examples/v1/users/CreateUser_266604071.rb +13 -0
- data/examples/v1/users/UpdateUser.rb +1 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/confluent-cloud/CreateConfluentAccount.rb +1 -0
- data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -0
- data/examples/v2/confluent-cloud/UpdateConfluentResource.rb +1 -0
- data/examples/v2/downtimes/CancelDowntime.rb +11 -0
- data/examples/v2/downtimes/CreateDowntime.rb +26 -0
- data/examples/v2/downtimes/GetDowntime.rb +11 -0
- data/examples/v2/downtimes/ListDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +8 -0
- data/examples/v2/downtimes/UpdateDowntime.rb +21 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
- data/examples/v2/logs/ListLogsGet_2034110533.rb +3 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +10 -0
- data/examples/v2/spans/AggregateSpans.rb +25 -0
- data/examples/v2/spans/ListSpans.rb +25 -0
- data/examples/v2/spans/ListSpansGet.rb +5 -0
- data/examples/v2/spans/ListSpansGet_1130763422.rb +8 -0
- data/examples/v2/spans/ListSpans_3495563906.rb +25 -0
- data/examples/v2/teams/CreateTeam.rb +2 -2
- data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
- data/examples/v2/teams/GetUserMemberships.rb +8 -0
- data/examples/v2/teams/UpdateTeam.rb +9 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +28 -0
- data/lib/datadog_api_client/inflector.rb +97 -1
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +10 -10
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
- data/lib/datadog_api_client/v1/models/change_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +150 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +11 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +24 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +94 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- 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/organization_settings.rb +8 -0
- data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +24 -4
- data/lib/datadog_api_client/v1/models/user.rb +8 -0
- data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v1/models/widget_display_type.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -5
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +462 -0
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/rum_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/spans_api.rb +294 -0
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/teams_api.rb +65 -0
- data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb +102 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +36 -1
- data/lib/datadog_api_client/v2/models/downtime_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +194 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/downtime_included_monitor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +107 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_actions.rb +27 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_types.rb +28 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_response.rb +95 -0
- data/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +208 -0
- data/lib/datadog_api_client/v2/models/downtime_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_response_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_create_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +101 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +116 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +106 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +131 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +92 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_response.rb +65 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_update_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{team_data.rb → downtime_update_request_data.rb} +9 -9
- data/lib/datadog_api_client/v2/models/event_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/events_group_by_sort.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_response_metadata.rb +11 -1
- data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_downtimes_response.rb +104 -0
- data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
- data/lib/datadog_api_client/v2/models/logs_group_by_histogram.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 +1 -1
- data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
- data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +2 -1
- data/lib/datadog_api_client/v2/models/rum_application_list.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_meta.rb +36 -4
- data/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +100 -0
- data/lib/datadog_api_client/v2/models/span.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +110 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregation_function.rb +37 -0
- data/lib/datadog_api_client/v2/models/spans_attributes.rb +244 -0
- data/lib/datadog_api_client/v2/models/spans_compute.rb +129 -0
- data/lib/datadog_api_client/v2/models/spans_compute_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_group_by.rb +149 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +143 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_missing.rb +63 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_total.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_list_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +111 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_page.rb +108 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_list_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_links.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_query_filter.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_query_options.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_sort_order.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_warning.rb +100 -0
- data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
- data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
- data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
- data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/configuration_spec.rb +17 -0
- data/spec/retry_spec.rb +44 -0
- metadata +119 -3
|
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class TeamAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Unicode representation of the avatar for the team, limited to a single grapheme
|
|
25
|
+
attr_accessor :avatar
|
|
26
|
+
|
|
27
|
+
# Banner selection for the team
|
|
28
|
+
attr_accessor :banner
|
|
29
|
+
|
|
24
30
|
# Creation date of the team
|
|
25
31
|
attr_accessor :created_at
|
|
26
32
|
|
|
@@ -30,6 +36,9 @@ module DatadogAPIClient::V2
|
|
|
30
36
|
# The team's identifier
|
|
31
37
|
attr_reader :handle
|
|
32
38
|
|
|
39
|
+
# Collection of hidden modules for the team
|
|
40
|
+
attr_accessor :hidden_modules
|
|
41
|
+
|
|
33
42
|
# The number of links belonging to the team
|
|
34
43
|
attr_reader :link_count
|
|
35
44
|
|
|
@@ -45,18 +54,25 @@ module DatadogAPIClient::V2
|
|
|
45
54
|
# The number of users belonging to the team
|
|
46
55
|
attr_reader :user_count
|
|
47
56
|
|
|
57
|
+
# Collection of visible modules for the team
|
|
58
|
+
attr_accessor :visible_modules
|
|
59
|
+
|
|
48
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
61
|
# @!visibility private
|
|
50
62
|
def self.attribute_map
|
|
51
63
|
{
|
|
64
|
+
:'avatar' => :'avatar',
|
|
65
|
+
:'banner' => :'banner',
|
|
52
66
|
:'created_at' => :'created_at',
|
|
53
67
|
:'description' => :'description',
|
|
54
68
|
:'handle' => :'handle',
|
|
69
|
+
:'hidden_modules' => :'hidden_modules',
|
|
55
70
|
:'link_count' => :'link_count',
|
|
56
71
|
:'modified_at' => :'modified_at',
|
|
57
72
|
:'name' => :'name',
|
|
58
73
|
:'summary' => :'summary',
|
|
59
|
-
:'user_count' => :'user_count'
|
|
74
|
+
:'user_count' => :'user_count',
|
|
75
|
+
:'visible_modules' => :'visible_modules'
|
|
60
76
|
}
|
|
61
77
|
end
|
|
62
78
|
|
|
@@ -64,14 +80,18 @@ module DatadogAPIClient::V2
|
|
|
64
80
|
# @!visibility private
|
|
65
81
|
def self.openapi_types
|
|
66
82
|
{
|
|
83
|
+
:'avatar' => :'String',
|
|
84
|
+
:'banner' => :'Integer',
|
|
67
85
|
:'created_at' => :'Time',
|
|
68
86
|
:'description' => :'String',
|
|
69
87
|
:'handle' => :'String',
|
|
88
|
+
:'hidden_modules' => :'Array<String>',
|
|
70
89
|
:'link_count' => :'Integer',
|
|
71
90
|
:'modified_at' => :'Time',
|
|
72
91
|
:'name' => :'String',
|
|
73
92
|
:'summary' => :'String',
|
|
74
|
-
:'user_count' => :'Integer'
|
|
93
|
+
:'user_count' => :'Integer',
|
|
94
|
+
:'visible_modules' => :'Array<String>'
|
|
75
95
|
}
|
|
76
96
|
end
|
|
77
97
|
|
|
@@ -79,6 +99,8 @@ module DatadogAPIClient::V2
|
|
|
79
99
|
# @!visibility private
|
|
80
100
|
def self.openapi_nullable
|
|
81
101
|
Set.new([
|
|
102
|
+
:'avatar',
|
|
103
|
+
:'banner',
|
|
82
104
|
:'description',
|
|
83
105
|
:'summary',
|
|
84
106
|
])
|
|
@@ -100,6 +122,14 @@ module DatadogAPIClient::V2
|
|
|
100
122
|
h[k.to_sym] = v
|
|
101
123
|
}
|
|
102
124
|
|
|
125
|
+
if attributes.key?(:'avatar')
|
|
126
|
+
self.avatar = attributes[:'avatar']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'banner')
|
|
130
|
+
self.banner = attributes[:'banner']
|
|
131
|
+
end
|
|
132
|
+
|
|
103
133
|
if attributes.key?(:'created_at')
|
|
104
134
|
self.created_at = attributes[:'created_at']
|
|
105
135
|
end
|
|
@@ -112,6 +142,12 @@ module DatadogAPIClient::V2
|
|
|
112
142
|
self.handle = attributes[:'handle']
|
|
113
143
|
end
|
|
114
144
|
|
|
145
|
+
if attributes.key?(:'hidden_modules')
|
|
146
|
+
if (value = attributes[:'hidden_modules']).is_a?(Array)
|
|
147
|
+
self.hidden_modules = value
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
115
151
|
if attributes.key?(:'link_count')
|
|
116
152
|
self.link_count = attributes[:'link_count']
|
|
117
153
|
end
|
|
@@ -131,6 +167,12 @@ module DatadogAPIClient::V2
|
|
|
131
167
|
if attributes.key?(:'user_count')
|
|
132
168
|
self.user_count = attributes[:'user_count']
|
|
133
169
|
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'visible_modules')
|
|
172
|
+
if (value = attributes[:'visible_modules']).is_a?(Array)
|
|
173
|
+
self.visible_modules = value
|
|
174
|
+
end
|
|
175
|
+
end
|
|
134
176
|
end
|
|
135
177
|
|
|
136
178
|
# Check to see if the all the properties in the model are valid
|
|
@@ -209,21 +251,25 @@ module DatadogAPIClient::V2
|
|
|
209
251
|
def ==(o)
|
|
210
252
|
return true if self.equal?(o)
|
|
211
253
|
self.class == o.class &&
|
|
254
|
+
avatar == o.avatar &&
|
|
255
|
+
banner == o.banner &&
|
|
212
256
|
created_at == o.created_at &&
|
|
213
257
|
description == o.description &&
|
|
214
258
|
handle == o.handle &&
|
|
259
|
+
hidden_modules == o.hidden_modules &&
|
|
215
260
|
link_count == o.link_count &&
|
|
216
261
|
modified_at == o.modified_at &&
|
|
217
262
|
name == o.name &&
|
|
218
263
|
summary == o.summary &&
|
|
219
|
-
user_count == o.user_count
|
|
264
|
+
user_count == o.user_count &&
|
|
265
|
+
visible_modules == o.visible_modules
|
|
220
266
|
end
|
|
221
267
|
|
|
222
268
|
# Calculates hash code according to all attributes.
|
|
223
269
|
# @return [Integer] Hash code
|
|
224
270
|
# @!visibility private
|
|
225
271
|
def hash
|
|
226
|
-
[created_at, description, handle, link_count, modified_at, name, summary, user_count].hash
|
|
272
|
+
[avatar, banner, created_at, description, handle, hidden_modules, link_count, modified_at, name, summary, user_count, visible_modules].hash
|
|
227
273
|
end
|
|
228
274
|
end
|
|
229
275
|
end
|
|
@@ -21,22 +21,38 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class TeamCreateAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Unicode representation of the avatar for the team, limited to a single grapheme
|
|
25
|
+
attr_accessor :avatar
|
|
26
|
+
|
|
27
|
+
# Banner selection for the team
|
|
28
|
+
attr_accessor :banner
|
|
29
|
+
|
|
24
30
|
# Free-form markdown description/content for the team's homepage
|
|
25
31
|
attr_accessor :description
|
|
26
32
|
|
|
27
33
|
# The team's identifier
|
|
28
34
|
attr_reader :handle
|
|
29
35
|
|
|
36
|
+
# Collection of hidden modules for the team
|
|
37
|
+
attr_accessor :hidden_modules
|
|
38
|
+
|
|
30
39
|
# The name of the team
|
|
31
40
|
attr_reader :name
|
|
32
41
|
|
|
42
|
+
# Collection of visible modules for the team
|
|
43
|
+
attr_accessor :visible_modules
|
|
44
|
+
|
|
33
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
46
|
# @!visibility private
|
|
35
47
|
def self.attribute_map
|
|
36
48
|
{
|
|
49
|
+
:'avatar' => :'avatar',
|
|
50
|
+
:'banner' => :'banner',
|
|
37
51
|
:'description' => :'description',
|
|
38
52
|
:'handle' => :'handle',
|
|
39
|
-
:'
|
|
53
|
+
:'hidden_modules' => :'hidden_modules',
|
|
54
|
+
:'name' => :'name',
|
|
55
|
+
:'visible_modules' => :'visible_modules'
|
|
40
56
|
}
|
|
41
57
|
end
|
|
42
58
|
|
|
@@ -44,12 +60,25 @@ module DatadogAPIClient::V2
|
|
|
44
60
|
# @!visibility private
|
|
45
61
|
def self.openapi_types
|
|
46
62
|
{
|
|
63
|
+
:'avatar' => :'String',
|
|
64
|
+
:'banner' => :'Integer',
|
|
47
65
|
:'description' => :'String',
|
|
48
66
|
:'handle' => :'String',
|
|
49
|
-
:'
|
|
67
|
+
:'hidden_modules' => :'Array<String>',
|
|
68
|
+
:'name' => :'String',
|
|
69
|
+
:'visible_modules' => :'Array<String>'
|
|
50
70
|
}
|
|
51
71
|
end
|
|
52
72
|
|
|
73
|
+
# List of attributes with nullable: true
|
|
74
|
+
# @!visibility private
|
|
75
|
+
def self.openapi_nullable
|
|
76
|
+
Set.new([
|
|
77
|
+
:'avatar',
|
|
78
|
+
:'banner',
|
|
79
|
+
])
|
|
80
|
+
end
|
|
81
|
+
|
|
53
82
|
# Initializes the object
|
|
54
83
|
# @param attributes [Hash] Model attributes in the form of hash
|
|
55
84
|
# @!visibility private
|
|
@@ -66,6 +95,14 @@ module DatadogAPIClient::V2
|
|
|
66
95
|
h[k.to_sym] = v
|
|
67
96
|
}
|
|
68
97
|
|
|
98
|
+
if attributes.key?(:'avatar')
|
|
99
|
+
self.avatar = attributes[:'avatar']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'banner')
|
|
103
|
+
self.banner = attributes[:'banner']
|
|
104
|
+
end
|
|
105
|
+
|
|
69
106
|
if attributes.key?(:'description')
|
|
70
107
|
self.description = attributes[:'description']
|
|
71
108
|
end
|
|
@@ -74,9 +111,21 @@ module DatadogAPIClient::V2
|
|
|
74
111
|
self.handle = attributes[:'handle']
|
|
75
112
|
end
|
|
76
113
|
|
|
114
|
+
if attributes.key?(:'hidden_modules')
|
|
115
|
+
if (value = attributes[:'hidden_modules']).is_a?(Array)
|
|
116
|
+
self.hidden_modules = value
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
77
120
|
if attributes.key?(:'name')
|
|
78
121
|
self.name = attributes[:'name']
|
|
79
122
|
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'visible_modules')
|
|
125
|
+
if (value = attributes[:'visible_modules']).is_a?(Array)
|
|
126
|
+
self.visible_modules = value
|
|
127
|
+
end
|
|
128
|
+
end
|
|
80
129
|
end
|
|
81
130
|
|
|
82
131
|
# Check to see if the all the properties in the model are valid
|
|
@@ -122,16 +171,20 @@ module DatadogAPIClient::V2
|
|
|
122
171
|
def ==(o)
|
|
123
172
|
return true if self.equal?(o)
|
|
124
173
|
self.class == o.class &&
|
|
174
|
+
avatar == o.avatar &&
|
|
175
|
+
banner == o.banner &&
|
|
125
176
|
description == o.description &&
|
|
126
177
|
handle == o.handle &&
|
|
127
|
-
|
|
178
|
+
hidden_modules == o.hidden_modules &&
|
|
179
|
+
name == o.name &&
|
|
180
|
+
visible_modules == o.visible_modules
|
|
128
181
|
end
|
|
129
182
|
|
|
130
183
|
# Calculates hash code according to all attributes.
|
|
131
184
|
# @return [Integer] Hash code
|
|
132
185
|
# @!visibility private
|
|
133
186
|
def hash
|
|
134
|
-
[description, handle, name].hash
|
|
187
|
+
[avatar, banner, description, handle, hidden_modules, name, visible_modules].hash
|
|
135
188
|
end
|
|
136
189
|
end
|
|
137
190
|
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
|
+
# Links attributes.
|
|
21
|
+
class TeamRelationshipsLinks
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Related link.
|
|
25
|
+
attr_accessor :related
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
# @!visibility private
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'related' => :'related'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'related' => :'String'
|
|
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::TeamRelationshipsLinks` 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::TeamRelationshipsLinks`. 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?(:'related')
|
|
60
|
+
self.related = attributes[:'related']
|
|
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
|
+
related == o.related
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Calculates hash code according to all attributes.
|
|
74
|
+
# @return [Integer] Hash code
|
|
75
|
+
# @!visibility private
|
|
76
|
+
def hash
|
|
77
|
+
[related].hash
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class TeamUpdateAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Unicode representation of the avatar for the team, limited to a single grapheme
|
|
25
|
+
attr_accessor :avatar
|
|
26
|
+
|
|
27
|
+
# Banner selection for the team
|
|
28
|
+
attr_accessor :banner
|
|
29
|
+
|
|
24
30
|
# An identifier for the color representing the team
|
|
25
31
|
attr_reader :color
|
|
26
32
|
|
|
@@ -30,17 +36,27 @@ module DatadogAPIClient::V2
|
|
|
30
36
|
# The team's identifier
|
|
31
37
|
attr_reader :handle
|
|
32
38
|
|
|
39
|
+
# Collection of hidden modules for the team
|
|
40
|
+
attr_accessor :hidden_modules
|
|
41
|
+
|
|
33
42
|
# The name of the team
|
|
34
43
|
attr_reader :name
|
|
35
44
|
|
|
45
|
+
# Collection of visible modules for the team
|
|
46
|
+
attr_accessor :visible_modules
|
|
47
|
+
|
|
36
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
49
|
# @!visibility private
|
|
38
50
|
def self.attribute_map
|
|
39
51
|
{
|
|
52
|
+
:'avatar' => :'avatar',
|
|
53
|
+
:'banner' => :'banner',
|
|
40
54
|
:'color' => :'color',
|
|
41
55
|
:'description' => :'description',
|
|
42
56
|
:'handle' => :'handle',
|
|
43
|
-
:'
|
|
57
|
+
:'hidden_modules' => :'hidden_modules',
|
|
58
|
+
:'name' => :'name',
|
|
59
|
+
:'visible_modules' => :'visible_modules'
|
|
44
60
|
}
|
|
45
61
|
end
|
|
46
62
|
|
|
@@ -48,13 +64,26 @@ module DatadogAPIClient::V2
|
|
|
48
64
|
# @!visibility private
|
|
49
65
|
def self.openapi_types
|
|
50
66
|
{
|
|
67
|
+
:'avatar' => :'String',
|
|
68
|
+
:'banner' => :'Integer',
|
|
51
69
|
:'color' => :'Integer',
|
|
52
70
|
:'description' => :'String',
|
|
53
71
|
:'handle' => :'String',
|
|
54
|
-
:'
|
|
72
|
+
:'hidden_modules' => :'Array<String>',
|
|
73
|
+
:'name' => :'String',
|
|
74
|
+
:'visible_modules' => :'Array<String>'
|
|
55
75
|
}
|
|
56
76
|
end
|
|
57
77
|
|
|
78
|
+
# List of attributes with nullable: true
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def self.openapi_nullable
|
|
81
|
+
Set.new([
|
|
82
|
+
:'avatar',
|
|
83
|
+
:'banner',
|
|
84
|
+
])
|
|
85
|
+
end
|
|
86
|
+
|
|
58
87
|
# Initializes the object
|
|
59
88
|
# @param attributes [Hash] Model attributes in the form of hash
|
|
60
89
|
# @!visibility private
|
|
@@ -71,6 +100,14 @@ module DatadogAPIClient::V2
|
|
|
71
100
|
h[k.to_sym] = v
|
|
72
101
|
}
|
|
73
102
|
|
|
103
|
+
if attributes.key?(:'avatar')
|
|
104
|
+
self.avatar = attributes[:'avatar']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'banner')
|
|
108
|
+
self.banner = attributes[:'banner']
|
|
109
|
+
end
|
|
110
|
+
|
|
74
111
|
if attributes.key?(:'color')
|
|
75
112
|
self.color = attributes[:'color']
|
|
76
113
|
end
|
|
@@ -83,9 +120,21 @@ module DatadogAPIClient::V2
|
|
|
83
120
|
self.handle = attributes[:'handle']
|
|
84
121
|
end
|
|
85
122
|
|
|
123
|
+
if attributes.key?(:'hidden_modules')
|
|
124
|
+
if (value = attributes[:'hidden_modules']).is_a?(Array)
|
|
125
|
+
self.hidden_modules = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
86
129
|
if attributes.key?(:'name')
|
|
87
130
|
self.name = attributes[:'name']
|
|
88
131
|
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'visible_modules')
|
|
134
|
+
if (value = attributes[:'visible_modules']).is_a?(Array)
|
|
135
|
+
self.visible_modules = value
|
|
136
|
+
end
|
|
137
|
+
end
|
|
89
138
|
end
|
|
90
139
|
|
|
91
140
|
# Check to see if the all the properties in the model are valid
|
|
@@ -146,17 +195,21 @@ module DatadogAPIClient::V2
|
|
|
146
195
|
def ==(o)
|
|
147
196
|
return true if self.equal?(o)
|
|
148
197
|
self.class == o.class &&
|
|
198
|
+
avatar == o.avatar &&
|
|
199
|
+
banner == o.banner &&
|
|
149
200
|
color == o.color &&
|
|
150
201
|
description == o.description &&
|
|
151
202
|
handle == o.handle &&
|
|
152
|
-
|
|
203
|
+
hidden_modules == o.hidden_modules &&
|
|
204
|
+
name == o.name &&
|
|
205
|
+
visible_modules == o.visible_modules
|
|
153
206
|
end
|
|
154
207
|
|
|
155
208
|
# Calculates hash code according to all attributes.
|
|
156
209
|
# @return [Integer] Hash code
|
|
157
210
|
# @!visibility private
|
|
158
211
|
def hash
|
|
159
|
-
[color, description, handle, name].hash
|
|
212
|
+
[avatar, banner, color, description, handle, hidden_modules, name, visible_modules].hash
|
|
160
213
|
end
|
|
161
214
|
end
|
|
162
215
|
end
|
|
@@ -27,12 +27,20 @@ module DatadogAPIClient::V2
|
|
|
27
27
|
# Resources related to the team
|
|
28
28
|
attr_accessor :included
|
|
29
29
|
|
|
30
|
+
# Teams response links.
|
|
31
|
+
attr_accessor :links
|
|
32
|
+
|
|
33
|
+
# Teams response metadata.
|
|
34
|
+
attr_accessor :meta
|
|
35
|
+
|
|
30
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
37
|
# @!visibility private
|
|
32
38
|
def self.attribute_map
|
|
33
39
|
{
|
|
34
40
|
:'data' => :'data',
|
|
35
|
-
:'included' => :'included'
|
|
41
|
+
:'included' => :'included',
|
|
42
|
+
:'links' => :'links',
|
|
43
|
+
:'meta' => :'meta'
|
|
36
44
|
}
|
|
37
45
|
end
|
|
38
46
|
|
|
@@ -41,7 +49,9 @@ module DatadogAPIClient::V2
|
|
|
41
49
|
def self.openapi_types
|
|
42
50
|
{
|
|
43
51
|
:'data' => :'Array<Team>',
|
|
44
|
-
:'included' => :'Array<TeamIncluded>'
|
|
52
|
+
:'included' => :'Array<TeamIncluded>',
|
|
53
|
+
:'links' => :'TeamsResponseLinks',
|
|
54
|
+
:'meta' => :'TeamsResponseMeta'
|
|
45
55
|
}
|
|
46
56
|
end
|
|
47
57
|
|
|
@@ -72,6 +82,14 @@ module DatadogAPIClient::V2
|
|
|
72
82
|
self.included = value
|
|
73
83
|
end
|
|
74
84
|
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'links')
|
|
87
|
+
self.links = attributes[:'links']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'meta')
|
|
91
|
+
self.meta = attributes[:'meta']
|
|
92
|
+
end
|
|
75
93
|
end
|
|
76
94
|
|
|
77
95
|
# Checks equality by comparing each attribute.
|
|
@@ -81,14 +99,16 @@ module DatadogAPIClient::V2
|
|
|
81
99
|
return true if self.equal?(o)
|
|
82
100
|
self.class == o.class &&
|
|
83
101
|
data == o.data &&
|
|
84
|
-
included == o.included
|
|
102
|
+
included == o.included &&
|
|
103
|
+
links == o.links &&
|
|
104
|
+
meta == o.meta
|
|
85
105
|
end
|
|
86
106
|
|
|
87
107
|
# Calculates hash code according to all attributes.
|
|
88
108
|
# @return [Integer] Hash code
|
|
89
109
|
# @!visibility private
|
|
90
110
|
def hash
|
|
91
|
-
[data, included].hash
|
|
111
|
+
[data, included, links, meta].hash
|
|
92
112
|
end
|
|
93
113
|
end
|
|
94
114
|
end
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
# Teams response links.
|
|
21
|
+
class TeamsResponseLinks
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# First link.
|
|
25
|
+
attr_accessor :first
|
|
26
|
+
|
|
27
|
+
# Last link.
|
|
28
|
+
attr_accessor :last
|
|
29
|
+
|
|
30
|
+
# Next link.
|
|
31
|
+
attr_accessor :_next
|
|
32
|
+
|
|
33
|
+
# Previous link.
|
|
34
|
+
attr_accessor :prev
|
|
35
|
+
|
|
36
|
+
# Current link.
|
|
37
|
+
attr_accessor :_self
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'first' => :'first',
|
|
44
|
+
:'last' => :'last',
|
|
45
|
+
:'_next' => :'next',
|
|
46
|
+
:'prev' => :'prev',
|
|
47
|
+
:'_self' => :'self'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def self.openapi_types
|
|
54
|
+
{
|
|
55
|
+
:'first' => :'String',
|
|
56
|
+
:'last' => :'String',
|
|
57
|
+
:'_next' => :'String',
|
|
58
|
+
:'prev' => :'String',
|
|
59
|
+
:'_self' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
# @!visibility private
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
:'last',
|
|
68
|
+
:'prev',
|
|
69
|
+
])
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
74
|
+
# @!visibility private
|
|
75
|
+
def initialize(attributes = {})
|
|
76
|
+
if (!attributes.is_a?(Hash))
|
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamsResponseLinks` initialize method"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamsResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'first')
|
|
89
|
+
self.first = attributes[:'first']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'last')
|
|
93
|
+
self.last = attributes[:'last']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'_next')
|
|
97
|
+
self._next = attributes[:'_next']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'prev')
|
|
101
|
+
self.prev = attributes[:'prev']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'_self')
|
|
105
|
+
self._self = attributes[:'_self']
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Checks equality by comparing each attribute.
|
|
110
|
+
# @param o [Object] Object to be compared
|
|
111
|
+
# @!visibility private
|
|
112
|
+
def ==(o)
|
|
113
|
+
return true if self.equal?(o)
|
|
114
|
+
self.class == o.class &&
|
|
115
|
+
first == o.first &&
|
|
116
|
+
last == o.last &&
|
|
117
|
+
_next == o._next &&
|
|
118
|
+
prev == o.prev &&
|
|
119
|
+
_self == o._self
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
# @!visibility private
|
|
125
|
+
def hash
|
|
126
|
+
[first, last, _next, prev, _self].hash
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|