datadog_api_client 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +181 -16
- data/.generator/schemas/v2/openapi.yaml +391 -151
- data/.generator/src/generator/formatter.py +34 -29
- 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 +31 -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/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -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/logs/AggregateLogs_2955613758.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/UpdateTeam.rb +9 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +22 -0
- data/lib/datadog_api_client/inflector.rb +10 -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/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/synthetics_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_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/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +10 -6
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
- 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/{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_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 +16 -3
@@ -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
|
@@ -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
|
+
# Teams response metadata.
|
21
|
+
class TeamsResponseMeta
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Teams response metadata.
|
25
|
+
attr_accessor :pagination
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
# @!visibility private
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'pagination' => :'pagination'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
# @!visibility private
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'pagination' => :'TeamsResponseMetaPagination'
|
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::TeamsResponseMeta` 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::TeamsResponseMeta`. 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?(:'pagination')
|
60
|
+
self.pagination = attributes[:'pagination']
|
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
|
+
pagination == o.pagination
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Integer] Hash code
|
75
|
+
# @!visibility private
|
76
|
+
def hash
|
77
|
+
[pagination].hash
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|