datadog_api_client 2.35.0 → 2.36.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 +0 -3
- data/.generator/schemas/v2/openapi.yaml +355 -0
- data/CHANGELOG.md +17 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
- data/examples/v2/teams/AddMemberTeam.rb +15 -0
- data/examples/v2/teams/ListMemberTeams.rb +8 -0
- data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
- data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +8 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
- data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
- data/lib/datadog_api_client/v2/models/add_member_team_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +11 -1
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +14 -1
@@ -0,0 +1,137 @@
|
|
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
|
+
# Sampling configurations for the Scanning Group.
|
21
|
+
class SensitiveDataScannerSamplings
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Datadog product onto which Sensitive Data Scanner can be activated.
|
25
|
+
attr_accessor :product
|
26
|
+
|
27
|
+
# Rate at which data in product type will be scanned, as a percentage.
|
28
|
+
attr_reader :rate
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'product' => :'product',
|
37
|
+
:'rate' => :'rate'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'product' => :'SensitiveDataScannerProduct',
|
46
|
+
:'rate' => :'Float'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerSamplings` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'product')
|
69
|
+
self.product = attributes[:'product']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'rate')
|
73
|
+
self.rate = attributes[:'rate']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if !@rate.nil? && @rate > 100.0
|
82
|
+
return false if !@rate.nil? && @rate < 0.0
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param rate [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def rate=(rate)
|
90
|
+
if !rate.nil? && rate > 100.0
|
91
|
+
fail ArgumentError, 'invalid value for "rate", must be smaller than or equal to 100.0.'
|
92
|
+
end
|
93
|
+
if !rate.nil? && rate < 0.0
|
94
|
+
fail ArgumentError, 'invalid value for "rate", must be greater than or equal to 0.0.'
|
95
|
+
end
|
96
|
+
@rate = rate
|
97
|
+
end
|
98
|
+
|
99
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
100
|
+
# @return [Hash] Returns the object in the form of hash
|
101
|
+
# @!visibility private
|
102
|
+
def to_hash
|
103
|
+
hash = {}
|
104
|
+
self.class.attribute_map.each_pair do |attr, param|
|
105
|
+
value = self.send(attr)
|
106
|
+
if value.nil?
|
107
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
108
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
109
|
+
end
|
110
|
+
|
111
|
+
hash[param] = _to_hash(value)
|
112
|
+
end
|
113
|
+
self.additional_properties.each_pair do |attr, value|
|
114
|
+
hash[attr] = value
|
115
|
+
end
|
116
|
+
hash
|
117
|
+
end
|
118
|
+
|
119
|
+
# Checks equality by comparing each attribute.
|
120
|
+
# @param o [Object] Object to be compared
|
121
|
+
# @!visibility private
|
122
|
+
def ==(o)
|
123
|
+
return true if self.equal?(o)
|
124
|
+
self.class == o.class &&
|
125
|
+
product == o.product &&
|
126
|
+
rate == o.rate &&
|
127
|
+
additional_properties == o.additional_properties
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculates hash code according to all attributes.
|
131
|
+
# @return [Integer] Hash code
|
132
|
+
# @!visibility private
|
133
|
+
def hash
|
134
|
+
[product, rate, additional_properties].hash
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
@@ -802,6 +802,7 @@ files:
|
|
802
802
|
- examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb
|
803
803
|
- examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb
|
804
804
|
- examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb
|
805
|
+
- examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb
|
805
806
|
- examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb
|
806
807
|
- examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb
|
807
808
|
- examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb
|
@@ -1096,6 +1097,7 @@ files:
|
|
1096
1097
|
- examples/v2/spans/ListSpans_3495563906.rb
|
1097
1098
|
- examples/v2/synthetics/GetOnDemandConcurrencyCap.rb
|
1098
1099
|
- examples/v2/synthetics/SetOnDemandConcurrencyCap.rb
|
1100
|
+
- examples/v2/teams/AddMemberTeam.rb
|
1099
1101
|
- examples/v2/teams/CreateTeam.rb
|
1100
1102
|
- examples/v2/teams/CreateTeamLink.rb
|
1101
1103
|
- examples/v2/teams/CreateTeamMembership.rb
|
@@ -1110,9 +1112,12 @@ files:
|
|
1110
1112
|
- examples/v2/teams/GetTeamMemberships_3799131168.rb
|
1111
1113
|
- examples/v2/teams/GetTeamPermissionSettings.rb
|
1112
1114
|
- examples/v2/teams/GetUserMemberships.rb
|
1115
|
+
- examples/v2/teams/ListMemberTeams.rb
|
1116
|
+
- examples/v2/teams/ListMemberTeams_1662850354.rb
|
1113
1117
|
- examples/v2/teams/ListTeams.rb
|
1114
1118
|
- examples/v2/teams/ListTeams_3429963470.rb
|
1115
1119
|
- examples/v2/teams/ListTeams_3592098458.rb
|
1120
|
+
- examples/v2/teams/RemoveMemberTeam.rb
|
1116
1121
|
- examples/v2/teams/UpdateTeam.rb
|
1117
1122
|
- examples/v2/teams/UpdateTeamLink.rb
|
1118
1123
|
- examples/v2/teams/UpdateTeamMembership.rb
|
@@ -2202,6 +2207,7 @@ files:
|
|
2202
2207
|
- lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb
|
2203
2208
|
- lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb
|
2204
2209
|
- lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb
|
2210
|
+
- lib/datadog_api_client/v2/models/add_member_team_request.rb
|
2205
2211
|
- lib/datadog_api_client/v2/models/advisory.rb
|
2206
2212
|
- lib/datadog_api_client/v2/models/annotation.rb
|
2207
2213
|
- lib/datadog_api_client/v2/models/annotation_display.rb
|
@@ -2759,6 +2765,8 @@ files:
|
|
2759
2765
|
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch_type.rb
|
2760
2766
|
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb
|
2761
2767
|
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_http_type.rb
|
2768
|
+
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb
|
2769
|
+
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb
|
2762
2770
|
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb
|
2763
2771
|
- lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk_type.rb
|
2764
2772
|
- lib/datadog_api_client/v2/models/custom_destination_http_destination_auth.rb
|
@@ -2774,6 +2782,8 @@ files:
|
|
2774
2782
|
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch_type.rb
|
2775
2783
|
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb
|
2776
2784
|
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http_type.rb
|
2785
|
+
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb
|
2786
|
+
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb
|
2777
2787
|
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb
|
2778
2788
|
- lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk_type.rb
|
2779
2789
|
- lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth.rb
|
@@ -3446,6 +3456,8 @@ files:
|
|
3446
3456
|
- lib/datadog_api_client/v2/models/logs_sort_order.rb
|
3447
3457
|
- lib/datadog_api_client/v2/models/logs_storage_tier.rb
|
3448
3458
|
- lib/datadog_api_client/v2/models/logs_warning.rb
|
3459
|
+
- lib/datadog_api_client/v2/models/member_team.rb
|
3460
|
+
- lib/datadog_api_client/v2/models/member_team_type.rb
|
3449
3461
|
- lib/datadog_api_client/v2/models/metadata.rb
|
3450
3462
|
- lib/datadog_api_client/v2/models/metric.rb
|
3451
3463
|
- lib/datadog_api_client/v2/models/metric_active_configuration_type.rb
|
@@ -4345,6 +4357,7 @@ files:
|
|
4345
4357
|
- lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb
|
4346
4358
|
- lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb
|
4347
4359
|
- lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb
|
4360
|
+
- lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb
|
4348
4361
|
- lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb
|
4349
4362
|
- lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb
|
4350
4363
|
- lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb
|