datadog_api_client 2.13.0 → 2.15.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 +346 -36
- data/.generator/schemas/v2/openapi.yaml +436 -174
- data/.generator/src/generator/formatter.py +34 -29
- data/.generator/src/generator/openapi.py +3 -1
- data/.generator/src/generator/templates/api.j2 +8 -2
- data/.generator/src/generator/templates/api_client.j2 +81 -53
- data/.generator/src/generator/templates/configuration.j2 +21 -0
- data/.pre-commit-config.yaml +2 -2
- data/CHANGELOG.md +57 -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_252716965.rb +6 -0
- data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
- data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
- data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
- data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +2 -0
- data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/downtimes/CancelDowntime.rb +0 -3
- data/examples/v2/downtimes/CreateDowntime.rb +0 -3
- data/examples/v2/downtimes/GetDowntime.rb +0 -3
- data/examples/v2/downtimes/ListDowntimes.rb +0 -3
- data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
- data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
- data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
- 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/ListTeams_3592098458.rb +8 -0
- data/examples/v2/teams/UpdateTeam.rb +9 -0
- data/examples/v2/users/ListUsers_4075885358.rb +8 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +22 -6
- data/lib/datadog_api_client/inflector.rb +11 -1
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +22 -0
- data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +23 -2
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -10
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
- 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/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +4 -0
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +81 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +44 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +44 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +44 -4
- data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -7
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/teams_api.rb +87 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/users_api.rb +22 -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/{team_data.rb → ci_app_pipeline_event_attributes.rb} +24 -62
- 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/dashboard_list_item.rb +25 -1
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +19 -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/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/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/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/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_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 +28 -3
|
@@ -30,6 +30,9 @@ module DatadogAPIClient::V2
|
|
|
30
30
|
# Whether or not scanned events are highlighted in Logs or RUM for the org.
|
|
31
31
|
attr_accessor :has_highlight_enabled
|
|
32
32
|
|
|
33
|
+
# Whether or not scanned events have multi-pass enabled.
|
|
34
|
+
attr_accessor :has_multi_pass_enabled
|
|
35
|
+
|
|
33
36
|
# Whether or not the org is compliant to the payment card industry standard.
|
|
34
37
|
attr_accessor :is_pci_compliant
|
|
35
38
|
|
|
@@ -43,6 +46,7 @@ module DatadogAPIClient::V2
|
|
|
43
46
|
:'count_limit' => :'count_limit',
|
|
44
47
|
:'group_count_limit' => :'group_count_limit',
|
|
45
48
|
:'has_highlight_enabled' => :'has_highlight_enabled',
|
|
49
|
+
:'has_multi_pass_enabled' => :'has_multi_pass_enabled',
|
|
46
50
|
:'is_pci_compliant' => :'is_pci_compliant',
|
|
47
51
|
:'version' => :'version'
|
|
48
52
|
}
|
|
@@ -55,6 +59,7 @@ module DatadogAPIClient::V2
|
|
|
55
59
|
:'count_limit' => :'Integer',
|
|
56
60
|
:'group_count_limit' => :'Integer',
|
|
57
61
|
:'has_highlight_enabled' => :'Boolean',
|
|
62
|
+
:'has_multi_pass_enabled' => :'Boolean',
|
|
58
63
|
:'is_pci_compliant' => :'Boolean',
|
|
59
64
|
:'version' => :'Integer'
|
|
60
65
|
}
|
|
@@ -88,6 +93,10 @@ module DatadogAPIClient::V2
|
|
|
88
93
|
self.has_highlight_enabled = attributes[:'has_highlight_enabled']
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
if attributes.key?(:'has_multi_pass_enabled')
|
|
97
|
+
self.has_multi_pass_enabled = attributes[:'has_multi_pass_enabled']
|
|
98
|
+
end
|
|
99
|
+
|
|
91
100
|
if attributes.key?(:'is_pci_compliant')
|
|
92
101
|
self.is_pci_compliant = attributes[:'is_pci_compliant']
|
|
93
102
|
end
|
|
@@ -124,6 +133,7 @@ module DatadogAPIClient::V2
|
|
|
124
133
|
count_limit == o.count_limit &&
|
|
125
134
|
group_count_limit == o.group_count_limit &&
|
|
126
135
|
has_highlight_enabled == o.has_highlight_enabled &&
|
|
136
|
+
has_multi_pass_enabled == o.has_multi_pass_enabled &&
|
|
127
137
|
is_pci_compliant == o.is_pci_compliant &&
|
|
128
138
|
version == o.version
|
|
129
139
|
end
|
|
@@ -132,7 +142,7 @@ module DatadogAPIClient::V2
|
|
|
132
142
|
# @return [Integer] Hash code
|
|
133
143
|
# @!visibility private
|
|
134
144
|
def hash
|
|
135
|
-
[count_limit, group_count_limit, has_highlight_enabled, is_pci_compliant, version].hash
|
|
145
|
+
[count_limit, group_count_limit, has_highlight_enabled, has_multi_pass_enabled, is_pci_compliant, version].hash
|
|
136
146
|
end
|
|
137
147
|
end
|
|
138
148
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class SensitiveDataScannerStandardPatternAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Description of the standard pattern.
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
24
27
|
# Name of the standard pattern.
|
|
25
28
|
attr_accessor :name
|
|
26
29
|
|
|
@@ -34,6 +37,7 @@ module DatadogAPIClient::V2
|
|
|
34
37
|
# @!visibility private
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
40
|
+
:'description' => :'description',
|
|
37
41
|
:'name' => :'name',
|
|
38
42
|
:'pattern' => :'pattern',
|
|
39
43
|
:'tags' => :'tags'
|
|
@@ -44,6 +48,7 @@ module DatadogAPIClient::V2
|
|
|
44
48
|
# @!visibility private
|
|
45
49
|
def self.openapi_types
|
|
46
50
|
{
|
|
51
|
+
:'description' => :'String',
|
|
47
52
|
:'name' => :'String',
|
|
48
53
|
:'pattern' => :'String',
|
|
49
54
|
:'tags' => :'Array<String>'
|
|
@@ -66,6 +71,10 @@ module DatadogAPIClient::V2
|
|
|
66
71
|
h[k.to_sym] = v
|
|
67
72
|
}
|
|
68
73
|
|
|
74
|
+
if attributes.key?(:'description')
|
|
75
|
+
self.description = attributes[:'description']
|
|
76
|
+
end
|
|
77
|
+
|
|
69
78
|
if attributes.key?(:'name')
|
|
70
79
|
self.name = attributes[:'name']
|
|
71
80
|
end
|
|
@@ -87,6 +96,7 @@ module DatadogAPIClient::V2
|
|
|
87
96
|
def ==(o)
|
|
88
97
|
return true if self.equal?(o)
|
|
89
98
|
self.class == o.class &&
|
|
99
|
+
description == o.description &&
|
|
90
100
|
name == o.name &&
|
|
91
101
|
pattern == o.pattern &&
|
|
92
102
|
tags == o.tags
|
|
@@ -96,7 +106,7 @@ module DatadogAPIClient::V2
|
|
|
96
106
|
# @return [Integer] Hash code
|
|
97
107
|
# @!visibility private
|
|
98
108
|
def hash
|
|
99
|
-
[name, pattern, tags].hash
|
|
109
|
+
[description, name, pattern, tags].hash
|
|
100
110
|
end
|
|
101
111
|
end
|
|
102
112
|
end
|
|
@@ -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
|