datadog_api_client 2.13.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 +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
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# The aggregation type.
|
|
25
25
|
attr_accessor :aggregation
|
|
26
26
|
|
|
27
|
-
# Fields to
|
|
27
|
+
# Fields to correlate by.
|
|
28
28
|
attr_accessor :correlated_by_fields
|
|
29
29
|
|
|
30
30
|
# Index of the rule query used to retrieve the correlated field.
|
|
@@ -33,6 +33,12 @@ module DatadogAPIClient::V2
|
|
|
33
33
|
# Default Rule ID to match on signals.
|
|
34
34
|
attr_accessor :default_rule_id
|
|
35
35
|
|
|
36
|
+
# Field for which the cardinality is measured. Sent as an array.
|
|
37
|
+
attr_accessor :distinct_fields
|
|
38
|
+
|
|
39
|
+
# Fields to group by.
|
|
40
|
+
attr_accessor :group_by_fields
|
|
41
|
+
|
|
36
42
|
# Group of target fields to aggregate over.
|
|
37
43
|
attr_accessor :metrics
|
|
38
44
|
|
|
@@ -50,6 +56,8 @@ module DatadogAPIClient::V2
|
|
|
50
56
|
:'correlated_by_fields' => :'correlatedByFields',
|
|
51
57
|
:'correlated_query_index' => :'correlatedQueryIndex',
|
|
52
58
|
:'default_rule_id' => :'defaultRuleId',
|
|
59
|
+
:'distinct_fields' => :'distinctFields',
|
|
60
|
+
:'group_by_fields' => :'groupByFields',
|
|
53
61
|
:'metrics' => :'metrics',
|
|
54
62
|
:'name' => :'name',
|
|
55
63
|
:'rule_id' => :'ruleId'
|
|
@@ -64,6 +72,8 @@ module DatadogAPIClient::V2
|
|
|
64
72
|
:'correlated_by_fields' => :'Array<String>',
|
|
65
73
|
:'correlated_query_index' => :'Integer',
|
|
66
74
|
:'default_rule_id' => :'String',
|
|
75
|
+
:'distinct_fields' => :'Array<String>',
|
|
76
|
+
:'group_by_fields' => :'Array<String>',
|
|
67
77
|
:'metrics' => :'Array<String>',
|
|
68
78
|
:'name' => :'String',
|
|
69
79
|
:'rule_id' => :'String'
|
|
@@ -104,6 +114,18 @@ module DatadogAPIClient::V2
|
|
|
104
114
|
self.default_rule_id = attributes[:'default_rule_id']
|
|
105
115
|
end
|
|
106
116
|
|
|
117
|
+
if attributes.key?(:'distinct_fields')
|
|
118
|
+
if (value = attributes[:'distinct_fields']).is_a?(Array)
|
|
119
|
+
self.distinct_fields = value
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'group_by_fields')
|
|
124
|
+
if (value = attributes[:'group_by_fields']).is_a?(Array)
|
|
125
|
+
self.group_by_fields = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
107
129
|
if attributes.key?(:'metrics')
|
|
108
130
|
if (value = attributes[:'metrics']).is_a?(Array)
|
|
109
131
|
self.metrics = value
|
|
@@ -147,6 +169,8 @@ module DatadogAPIClient::V2
|
|
|
147
169
|
correlated_by_fields == o.correlated_by_fields &&
|
|
148
170
|
correlated_query_index == o.correlated_query_index &&
|
|
149
171
|
default_rule_id == o.default_rule_id &&
|
|
172
|
+
distinct_fields == o.distinct_fields &&
|
|
173
|
+
group_by_fields == o.group_by_fields &&
|
|
150
174
|
metrics == o.metrics &&
|
|
151
175
|
name == o.name &&
|
|
152
176
|
rule_id == o.rule_id
|
|
@@ -156,7 +180,7 @@ module DatadogAPIClient::V2
|
|
|
156
180
|
# @return [Integer] Hash code
|
|
157
181
|
# @!visibility private
|
|
158
182
|
def hash
|
|
159
|
-
[aggregation, correlated_by_fields, correlated_query_index, default_rule_id, metrics, name, rule_id].hash
|
|
183
|
+
[aggregation, correlated_by_fields, correlated_query_index, default_rule_id, distinct_fields, group_by_fields, metrics, name, rule_id].hash
|
|
160
184
|
end
|
|
161
185
|
end
|
|
162
186
|
end
|
|
@@ -24,11 +24,19 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Attributes describing the change of state of a security signal.
|
|
25
25
|
attr_reader :attributes
|
|
26
26
|
|
|
27
|
+
# The unique ID of the security signal.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# The type of event.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
27
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
34
|
# @!visibility private
|
|
29
35
|
def self.attribute_map
|
|
30
36
|
{
|
|
31
|
-
:'attributes' => :'attributes'
|
|
37
|
+
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
39
|
+
:'type' => :'type'
|
|
32
40
|
}
|
|
33
41
|
end
|
|
34
42
|
|
|
@@ -36,7 +44,9 @@ module DatadogAPIClient::V2
|
|
|
36
44
|
# @!visibility private
|
|
37
45
|
def self.openapi_types
|
|
38
46
|
{
|
|
39
|
-
:'attributes' => :'SecurityMonitoringSignalStateUpdateAttributes'
|
|
47
|
+
:'attributes' => :'SecurityMonitoringSignalStateUpdateAttributes',
|
|
48
|
+
:'id' => :'Object',
|
|
49
|
+
:'type' => :'SecurityMonitoringSignalMetadataType'
|
|
40
50
|
}
|
|
41
51
|
end
|
|
42
52
|
|
|
@@ -59,6 +69,14 @@ module DatadogAPIClient::V2
|
|
|
59
69
|
if attributes.key?(:'attributes')
|
|
60
70
|
self.attributes = attributes[:'attributes']
|
|
61
71
|
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'id')
|
|
74
|
+
self.id = attributes[:'id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'type')
|
|
78
|
+
self.type = attributes[:'type']
|
|
79
|
+
end
|
|
62
80
|
end
|
|
63
81
|
|
|
64
82
|
# Check to see if the all the properties in the model are valid
|
|
@@ -85,14 +103,16 @@ module DatadogAPIClient::V2
|
|
|
85
103
|
def ==(o)
|
|
86
104
|
return true if self.equal?(o)
|
|
87
105
|
self.class == o.class &&
|
|
88
|
-
attributes == o.attributes
|
|
106
|
+
attributes == o.attributes &&
|
|
107
|
+
id == o.id &&
|
|
108
|
+
type == o.type
|
|
89
109
|
end
|
|
90
110
|
|
|
91
111
|
# Calculates hash code according to all attributes.
|
|
92
112
|
# @return [Integer] Hash code
|
|
93
113
|
# @!visibility private
|
|
94
114
|
def hash
|
|
95
|
-
[attributes].hash
|
|
115
|
+
[attributes, id, type].hash
|
|
96
116
|
end
|
|
97
117
|
end
|
|
98
118
|
end
|
|
@@ -24,11 +24,19 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Attributes describing a triage state update operation over a security signal.
|
|
25
25
|
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
+
# The unique ID of the security signal.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# The type of event.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
27
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
34
|
# @!visibility private
|
|
29
35
|
def self.attribute_map
|
|
30
36
|
{
|
|
31
|
-
:'attributes' => :'attributes'
|
|
37
|
+
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
39
|
+
:'type' => :'type'
|
|
32
40
|
}
|
|
33
41
|
end
|
|
34
42
|
|
|
@@ -36,7 +44,9 @@ module DatadogAPIClient::V2
|
|
|
36
44
|
# @!visibility private
|
|
37
45
|
def self.openapi_types
|
|
38
46
|
{
|
|
39
|
-
:'attributes' => :'SecurityMonitoringSignalTriageAttributes'
|
|
47
|
+
:'attributes' => :'SecurityMonitoringSignalTriageAttributes',
|
|
48
|
+
:'id' => :'String',
|
|
49
|
+
:'type' => :'SecurityMonitoringSignalMetadataType'
|
|
40
50
|
}
|
|
41
51
|
end
|
|
42
52
|
|
|
@@ -59,6 +69,14 @@ module DatadogAPIClient::V2
|
|
|
59
69
|
if attributes.key?(:'attributes')
|
|
60
70
|
self.attributes = attributes[:'attributes']
|
|
61
71
|
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'id')
|
|
74
|
+
self.id = attributes[:'id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'type')
|
|
78
|
+
self.type = attributes[:'type']
|
|
79
|
+
end
|
|
62
80
|
end
|
|
63
81
|
|
|
64
82
|
# Checks equality by comparing each attribute.
|
|
@@ -67,14 +85,16 @@ module DatadogAPIClient::V2
|
|
|
67
85
|
def ==(o)
|
|
68
86
|
return true if self.equal?(o)
|
|
69
87
|
self.class == o.class &&
|
|
70
|
-
attributes == o.attributes
|
|
88
|
+
attributes == o.attributes &&
|
|
89
|
+
id == o.id &&
|
|
90
|
+
type == o.type
|
|
71
91
|
end
|
|
72
92
|
|
|
73
93
|
# Calculates hash code according to all attributes.
|
|
74
94
|
# @return [Integer] Hash code
|
|
75
95
|
# @!visibility private
|
|
76
96
|
def hash
|
|
77
|
-
[attributes].hash
|
|
97
|
+
[attributes, id, type].hash
|
|
78
98
|
end
|
|
79
99
|
end
|
|
80
100
|
end
|
|
@@ -41,7 +41,7 @@ module DatadogAPIClient::V2
|
|
|
41
41
|
attr_accessor :name
|
|
42
42
|
|
|
43
43
|
# Query to run on logs.
|
|
44
|
-
|
|
44
|
+
attr_accessor :query
|
|
45
45
|
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
47
|
# @!visibility private
|
|
@@ -122,24 +122,6 @@ module DatadogAPIClient::V2
|
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
# Check to see if the all the properties in the model are valid
|
|
126
|
-
# @return true if the model is valid
|
|
127
|
-
# @!visibility private
|
|
128
|
-
def valid?
|
|
129
|
-
return false if @query.nil?
|
|
130
|
-
true
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
# Custom attribute writer method with validation
|
|
134
|
-
# @param query [Object] Object to be assigned
|
|
135
|
-
# @!visibility private
|
|
136
|
-
def query=(query)
|
|
137
|
-
if query.nil?
|
|
138
|
-
fail ArgumentError, 'invalid value for "query", query cannot be nil.'
|
|
139
|
-
end
|
|
140
|
-
@query = query
|
|
141
|
-
end
|
|
142
|
-
|
|
143
125
|
# Checks equality by comparing each attribute.
|
|
144
126
|
# @param o [Object] Object to be compared
|
|
145
127
|
# @!visibility private
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# The handle for this user account.
|
|
25
25
|
attr_accessor :handle
|
|
26
26
|
|
|
27
|
+
# Gravatar icon associated to the user.
|
|
28
|
+
attr_accessor :icon
|
|
29
|
+
|
|
27
30
|
# Numerical ID assigned by Datadog to this user account.
|
|
28
31
|
attr_accessor :id
|
|
29
32
|
|
|
@@ -38,6 +41,7 @@ module DatadogAPIClient::V2
|
|
|
38
41
|
def self.attribute_map
|
|
39
42
|
{
|
|
40
43
|
:'handle' => :'handle',
|
|
44
|
+
:'icon' => :'icon',
|
|
41
45
|
:'id' => :'id',
|
|
42
46
|
:'name' => :'name',
|
|
43
47
|
:'uuid' => :'uuid'
|
|
@@ -49,6 +53,7 @@ module DatadogAPIClient::V2
|
|
|
49
53
|
def self.openapi_types
|
|
50
54
|
{
|
|
51
55
|
:'handle' => :'String',
|
|
56
|
+
:'icon' => :'String',
|
|
52
57
|
:'id' => :'Integer',
|
|
53
58
|
:'name' => :'String',
|
|
54
59
|
:'uuid' => :'String'
|
|
@@ -83,6 +88,10 @@ module DatadogAPIClient::V2
|
|
|
83
88
|
self.handle = attributes[:'handle']
|
|
84
89
|
end
|
|
85
90
|
|
|
91
|
+
if attributes.key?(:'icon')
|
|
92
|
+
self.icon = attributes[:'icon']
|
|
93
|
+
end
|
|
94
|
+
|
|
86
95
|
if attributes.key?(:'id')
|
|
87
96
|
self.id = attributes[:'id']
|
|
88
97
|
end
|
|
@@ -121,6 +130,7 @@ module DatadogAPIClient::V2
|
|
|
121
130
|
return true if self.equal?(o)
|
|
122
131
|
self.class == o.class &&
|
|
123
132
|
handle == o.handle &&
|
|
133
|
+
icon == o.icon &&
|
|
124
134
|
id == o.id &&
|
|
125
135
|
name == o.name &&
|
|
126
136
|
uuid == o.uuid
|
|
@@ -130,7 +140,7 @@ module DatadogAPIClient::V2
|
|
|
130
140
|
# @return [Integer] Hash code
|
|
131
141
|
# @!visibility private
|
|
132
142
|
def hash
|
|
133
|
-
[handle, id, name, uuid].hash
|
|
143
|
+
[handle, icon, id, name, uuid].hash
|
|
134
144
|
end
|
|
135
145
|
end
|
|
136
146
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class SensitiveDataScannerGetConfigResponseData
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Attributes of the Sensitive Data configuration.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
24
27
|
# ID of the configuration.
|
|
25
28
|
attr_accessor :id
|
|
26
29
|
|
|
@@ -34,6 +37,7 @@ module DatadogAPIClient::V2
|
|
|
34
37
|
# @!visibility private
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
40
|
+
:'attributes' => :'attributes',
|
|
37
41
|
:'id' => :'id',
|
|
38
42
|
:'relationships' => :'relationships',
|
|
39
43
|
:'type' => :'type'
|
|
@@ -44,6 +48,7 @@ module DatadogAPIClient::V2
|
|
|
44
48
|
# @!visibility private
|
|
45
49
|
def self.openapi_types
|
|
46
50
|
{
|
|
51
|
+
:'attributes' => :'Hash<String, Object>',
|
|
47
52
|
:'id' => :'String',
|
|
48
53
|
:'relationships' => :'SensitiveDataScannerConfigurationRelationships',
|
|
49
54
|
:'type' => :'SensitiveDataScannerConfigurationType'
|
|
@@ -66,6 +71,10 @@ module DatadogAPIClient::V2
|
|
|
66
71
|
h[k.to_sym] = v
|
|
67
72
|
}
|
|
68
73
|
|
|
74
|
+
if attributes.key?(:'attributes')
|
|
75
|
+
self.attributes = attributes[:'attributes']
|
|
76
|
+
end
|
|
77
|
+
|
|
69
78
|
if attributes.key?(:'id')
|
|
70
79
|
self.id = attributes[:'id']
|
|
71
80
|
end
|
|
@@ -85,6 +94,7 @@ module DatadogAPIClient::V2
|
|
|
85
94
|
def ==(o)
|
|
86
95
|
return true if self.equal?(o)
|
|
87
96
|
self.class == o.class &&
|
|
97
|
+
attributes == o.attributes &&
|
|
88
98
|
id == o.id &&
|
|
89
99
|
relationships == o.relationships &&
|
|
90
100
|
type == o.type
|
|
@@ -94,7 +104,7 @@ module DatadogAPIClient::V2
|
|
|
94
104
|
# @return [Integer] Hash code
|
|
95
105
|
# @!visibility private
|
|
96
106
|
def hash
|
|
97
|
-
[id, relationships, type].hash
|
|
107
|
+
[attributes, id, relationships, type].hash
|
|
98
108
|
end
|
|
99
109
|
end
|
|
100
110
|
end
|
|
@@ -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
|