datadog_api_client 2.18.0 → 2.19.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.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +1 -1
  4. data/.generator/poetry.lock +69 -69
  5. data/.generator/schemas/v1/openapi.yaml +189 -11
  6. data/.generator/schemas/v2/openapi.yaml +1321 -188
  7. data/.generator/src/generator/templates/model_generic.j2 +2 -2
  8. data/CHANGELOG.md +18 -0
  9. data/examples/v1/azure-integration/CreateAzureIntegration.rb +4 -4
  10. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -15
  11. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +4 -4
  12. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +4 -5
  13. data/examples/v1/gcp-integration/DeleteGCPIntegration.rb +2 -14
  14. data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +4 -5
  15. data/examples/v1/service-level-objectives/CreateSLO_3765703239.rb +46 -0
  16. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
  17. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -3
  18. data/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb +18 -0
  19. data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +29 -0
  20. data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +5 -0
  21. data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +5 -0
  22. data/examples/v2/cloud-cost-management/GetCloudCostActivity.rb +5 -0
  23. data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +5 -0
  24. data/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb +5 -0
  25. data/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb +5 -0
  26. data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +14 -0
  27. data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +14 -0
  28. data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +1 -1
  29. data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +4 -1
  30. data/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb +5 -0
  31. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +16 -0
  32. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +16 -0
  33. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +17 -0
  34. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +19 -0
  35. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb +46 -0
  36. data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +7 -0
  37. data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +7 -10
  38. data/examples/v2/teams/CreateTeamMembership.rb +6 -0
  39. data/lib/datadog_api_client/configuration.rb +0 -1
  40. data/lib/datadog_api_client/inflector.rb +52 -0
  41. data/lib/datadog_api_client/v1/api/downtimes_api.rb +28 -7
  42. data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
  43. data/lib/datadog_api_client/v1/models/gcp_account.rb +22 -2
  44. data/lib/datadog_api_client/v1/models/organization.rb +1 -1
  45. data/lib/datadog_api_client/v1/models/service_level_objective.rb +11 -1
  46. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +11 -1
  47. data/lib/datadog_api_client/v1/models/slo_data_source_query_definition.rb +62 -0
  48. data/lib/datadog_api_client/v1/models/slo_formula.rb +98 -0
  49. data/lib/datadog_api_client/v1/models/slo_response_data.rb +11 -1
  50. data/lib/datadog_api_client/v1/models/slo_sli_spec.rb +62 -0
  51. data/lib/datadog_api_client/v1/models/slo_time_slice_comparator.rb +29 -0
  52. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +141 -0
  53. data/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +131 -0
  54. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +99 -0
  55. data/lib/datadog_api_client/v1/models/slo_type.rb +1 -0
  56. data/lib/datadog_api_client/v1/models/slo_type_numeric.rb +1 -0
  57. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  58. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
  59. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  60. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +0 -6
  61. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +680 -0
  62. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -0
  63. data/lib/datadog_api_client/v2/api/metrics_api.rb +3 -2
  64. data/lib/datadog_api_client/v2/models/aws_cur_config.rb +129 -0
  65. data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +305 -0
  66. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +119 -0
  67. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +98 -0
  68. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +98 -0
  69. data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_type.rb +26 -0
  70. data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +119 -0
  71. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +98 -0
  72. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +202 -0
  73. data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_type.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +80 -0
  75. data/lib/datadog_api_client/v2/models/aws_cur_config_type.rb +26 -0
  76. data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +82 -0
  77. data/lib/datadog_api_client/v2/models/aws_related_account.rb +129 -0
  78. data/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +90 -0
  79. data/lib/datadog_api_client/v2/models/aws_related_account_type.rb +26 -0
  80. data/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +82 -0
  81. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +378 -0
  82. data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +129 -0
  83. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +110 -0
  84. data/lib/datadog_api_client/v2/models/azure_uc_config_pair_type.rb +26 -0
  85. data/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +80 -0
  86. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +119 -0
  87. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +98 -0
  88. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +98 -0
  89. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_type.rb +26 -0
  90. data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +119 -0
  91. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +98 -0
  92. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +192 -0
  93. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_type.rb +26 -0
  94. data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +82 -0
  95. data/lib/datadog_api_client/v2/models/bill_config.rb +161 -0
  96. data/lib/datadog_api_client/v2/models/ci_app_git_info.rb +2 -2
  97. data/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +119 -0
  98. data/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +98 -0
  99. data/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +80 -0
  100. data/lib/datadog_api_client/v2/models/cloud_cost_activity_type.rb +26 -0
  101. data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +28 -4
  102. data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +28 -4
  103. data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +28 -4
  104. data/lib/datadog_api_client/v2/models/dora_git_info.rb +2 -2
  105. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +25 -5
  106. data/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +98 -0
  107. data/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +119 -0
  108. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +14 -4
  109. data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +114 -0
  110. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
  111. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
  112. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
  113. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +92 -0
  114. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +112 -0
  115. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +130 -0
  116. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +134 -0
  117. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +46 -1
  118. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +33 -1
  119. data/lib/datadog_api_client/v2/models/user_team_attributes.rb +24 -1
  120. data/lib/datadog_api_client/v2/models/user_team_relationships.rb +11 -1
  121. data/lib/datadog_api_client/v2/models/user_team_team_type.rb +26 -0
  122. data/lib/datadog_api_client/version.rb +1 -1
  123. metadata +71 -2
@@ -0,0 +1,134 @@
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
+ # Object defining a set of keywords and a number of characters that help reduce noise.
21
+ # You can provide a list of keywords you would like to check within a defined proximity of the matching pattern.
22
+ # If any of the keywords are found within the proximity check, the match is kept.
23
+ # If none are found, the match is discarded.
24
+ class SensitiveDataScannerIncludedKeywordConfiguration
25
+ include BaseGenericModel
26
+
27
+ # The number of characters behind a match detected by Sensitive Data Scanner to look for the keywords defined.
28
+ # `character_count` should be greater than the maximum length of a keyword defined for a rule.
29
+ attr_reader :character_count
30
+
31
+ # Keyword list that will be checked during scanning in order to validate a match.
32
+ # The number of keywords in the list must be less than or equal to 20.
33
+ attr_reader :keywords
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'character_count' => :'character_count',
40
+ :'keywords' => :'keywords'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ # @!visibility private
46
+ def self.openapi_types
47
+ {
48
+ :'character_count' => :'Integer',
49
+ :'keywords' => :'Array<String>'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param attributes [Hash] Model attributes in the form of hash
55
+ # @!visibility private
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SensitiveDataScannerIncludedKeywordConfiguration` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h|
63
+ if (!self.class.attribute_map.key?(k.to_sym))
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SensitiveDataScannerIncludedKeywordConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ end
66
+ h[k.to_sym] = v
67
+ }
68
+
69
+ if attributes.key?(:'character_count')
70
+ self.character_count = attributes[:'character_count']
71
+ end
72
+
73
+ if attributes.key?(:'keywords')
74
+ if (value = attributes[:'keywords']).is_a?(Array)
75
+ self.keywords = value
76
+ end
77
+ end
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ # @!visibility private
83
+ def valid?
84
+ return false if @character_count.nil?
85
+ return false if @character_count > 50
86
+ return false if @character_count < 1
87
+ return false if @keywords.nil?
88
+ true
89
+ end
90
+
91
+ # Custom attribute writer method with validation
92
+ # @param character_count [Object] Object to be assigned
93
+ # @!visibility private
94
+ def character_count=(character_count)
95
+ if character_count.nil?
96
+ fail ArgumentError, 'invalid value for "character_count", character_count cannot be nil.'
97
+ end
98
+ if character_count > 50
99
+ fail ArgumentError, 'invalid value for "character_count", must be smaller than or equal to 50.'
100
+ end
101
+ if character_count < 1
102
+ fail ArgumentError, 'invalid value for "character_count", must be greater than or equal to 1.'
103
+ end
104
+ @character_count = character_count
105
+ end
106
+
107
+ # Custom attribute writer method with validation
108
+ # @param keywords [Object] Object to be assigned
109
+ # @!visibility private
110
+ def keywords=(keywords)
111
+ if keywords.nil?
112
+ fail ArgumentError, 'invalid value for "keywords", keywords cannot be nil.'
113
+ end
114
+ @keywords = keywords
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param o [Object] Object to be compared
119
+ # @!visibility private
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ character_count == o.character_count &&
124
+ keywords == o.keywords
125
+ end
126
+
127
+ # Calculates hash code according to all attributes.
128
+ # @return [Integer] Hash code
129
+ # @!visibility private
130
+ def hash
131
+ [character_count, keywords].hash
132
+ end
133
+ end
134
+ end
@@ -27,6 +27,12 @@ module DatadogAPIClient::V2
27
27
  # Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
28
28
  attr_accessor :excluded_namespaces
29
29
 
30
+ # Object defining a set of keywords and a number of characters that help reduce noise.
31
+ # You can provide a list of keywords you would like to check within a defined proximity of the matching pattern.
32
+ # If any of the keywords are found within the proximity check, the match is kept.
33
+ # If none are found, the match is discarded.
34
+ attr_accessor :included_keyword_configuration
35
+
30
36
  # Whether or not the rule is enabled.
31
37
  attr_accessor :is_enabled
32
38
 
@@ -40,6 +46,9 @@ module DatadogAPIClient::V2
40
46
  # Not included if there is a relationship to a standard pattern.
41
47
  attr_accessor :pattern
42
48
 
49
+ # Integer from 1 (high) to 5 (low) indicating rule issue severity.
50
+ attr_reader :priority
51
+
43
52
  # List of tags.
44
53
  attr_accessor :tags
45
54
 
@@ -52,10 +61,12 @@ module DatadogAPIClient::V2
52
61
  {
53
62
  :'description' => :'description',
54
63
  :'excluded_namespaces' => :'excluded_namespaces',
64
+ :'included_keyword_configuration' => :'included_keyword_configuration',
55
65
  :'is_enabled' => :'is_enabled',
56
66
  :'name' => :'name',
57
67
  :'namespaces' => :'namespaces',
58
68
  :'pattern' => :'pattern',
69
+ :'priority' => :'priority',
59
70
  :'tags' => :'tags',
60
71
  :'text_replacement' => :'text_replacement'
61
72
  }
@@ -67,10 +78,12 @@ module DatadogAPIClient::V2
67
78
  {
68
79
  :'description' => :'String',
69
80
  :'excluded_namespaces' => :'Array<String>',
81
+ :'included_keyword_configuration' => :'SensitiveDataScannerIncludedKeywordConfiguration',
70
82
  :'is_enabled' => :'Boolean',
71
83
  :'name' => :'String',
72
84
  :'namespaces' => :'Array<String>',
73
85
  :'pattern' => :'String',
86
+ :'priority' => :'Integer',
74
87
  :'tags' => :'Array<String>',
75
88
  :'text_replacement' => :'SensitiveDataScannerTextReplacement'
76
89
  }
@@ -102,6 +115,10 @@ module DatadogAPIClient::V2
102
115
  end
103
116
  end
104
117
 
118
+ if attributes.key?(:'included_keyword_configuration')
119
+ self.included_keyword_configuration = attributes[:'included_keyword_configuration']
120
+ end
121
+
105
122
  if attributes.key?(:'is_enabled')
106
123
  self.is_enabled = attributes[:'is_enabled']
107
124
  end
@@ -120,6 +137,10 @@ module DatadogAPIClient::V2
120
137
  self.pattern = attributes[:'pattern']
121
138
  end
122
139
 
140
+ if attributes.key?(:'priority')
141
+ self.priority = attributes[:'priority']
142
+ end
143
+
123
144
  if attributes.key?(:'tags')
124
145
  if (value = attributes[:'tags']).is_a?(Array)
125
146
  self.tags = value
@@ -131,6 +152,28 @@ module DatadogAPIClient::V2
131
152
  end
132
153
  end
133
154
 
155
+ # Check to see if the all the properties in the model are valid
156
+ # @return true if the model is valid
157
+ # @!visibility private
158
+ def valid?
159
+ return false if !@priority.nil? && @priority > 5
160
+ return false if !@priority.nil? && @priority < 1
161
+ true
162
+ end
163
+
164
+ # Custom attribute writer method with validation
165
+ # @param priority [Object] Object to be assigned
166
+ # @!visibility private
167
+ def priority=(priority)
168
+ if !priority.nil? && priority > 5
169
+ fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.'
170
+ end
171
+ if !priority.nil? && priority < 1
172
+ fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.'
173
+ end
174
+ @priority = priority
175
+ end
176
+
134
177
  # Checks equality by comparing each attribute.
135
178
  # @param o [Object] Object to be compared
136
179
  # @!visibility private
@@ -139,10 +182,12 @@ module DatadogAPIClient::V2
139
182
  self.class == o.class &&
140
183
  description == o.description &&
141
184
  excluded_namespaces == o.excluded_namespaces &&
185
+ included_keyword_configuration == o.included_keyword_configuration &&
142
186
  is_enabled == o.is_enabled &&
143
187
  name == o.name &&
144
188
  namespaces == o.namespaces &&
145
189
  pattern == o.pattern &&
190
+ priority == o.priority &&
146
191
  tags == o.tags &&
147
192
  text_replacement == o.text_replacement
148
193
  end
@@ -151,7 +196,7 @@ module DatadogAPIClient::V2
151
196
  # @return [Integer] Hash code
152
197
  # @!visibility private
153
198
  def hash
154
- [description, excluded_namespaces, is_enabled, name, namespaces, pattern, tags, text_replacement].hash
199
+ [description, excluded_namespaces, included_keyword_configuration, is_enabled, name, namespaces, pattern, priority, tags, text_replacement].hash
155
200
  end
156
201
  end
157
202
  end
@@ -33,6 +33,9 @@ module DatadogAPIClient::V2
33
33
  # Regex to match.
34
34
  attr_accessor :pattern
35
35
 
36
+ # Integer from 1 (high) to 5 (low) indicating standard pattern issue severity.
37
+ attr_reader :priority
38
+
36
39
  # List of tags.
37
40
  attr_accessor :tags
38
41
 
@@ -44,6 +47,7 @@ module DatadogAPIClient::V2
44
47
  :'included_keywords' => :'included_keywords',
45
48
  :'name' => :'name',
46
49
  :'pattern' => :'pattern',
50
+ :'priority' => :'priority',
47
51
  :'tags' => :'tags'
48
52
  }
49
53
  end
@@ -56,6 +60,7 @@ module DatadogAPIClient::V2
56
60
  :'included_keywords' => :'Array<String>',
57
61
  :'name' => :'String',
58
62
  :'pattern' => :'String',
63
+ :'priority' => :'Integer',
59
64
  :'tags' => :'Array<String>'
60
65
  }
61
66
  end
@@ -94,6 +99,10 @@ module DatadogAPIClient::V2
94
99
  self.pattern = attributes[:'pattern']
95
100
  end
96
101
 
102
+ if attributes.key?(:'priority')
103
+ self.priority = attributes[:'priority']
104
+ end
105
+
97
106
  if attributes.key?(:'tags')
98
107
  if (value = attributes[:'tags']).is_a?(Array)
99
108
  self.tags = value
@@ -101,6 +110,28 @@ module DatadogAPIClient::V2
101
110
  end
102
111
  end
103
112
 
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ # @!visibility private
116
+ def valid?
117
+ return false if !@priority.nil? && @priority > 5
118
+ return false if !@priority.nil? && @priority < 1
119
+ true
120
+ end
121
+
122
+ # Custom attribute writer method with validation
123
+ # @param priority [Object] Object to be assigned
124
+ # @!visibility private
125
+ def priority=(priority)
126
+ if !priority.nil? && priority > 5
127
+ fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.'
128
+ end
129
+ if !priority.nil? && priority < 1
130
+ fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.'
131
+ end
132
+ @priority = priority
133
+ end
134
+
104
135
  # Checks equality by comparing each attribute.
105
136
  # @param o [Object] Object to be compared
106
137
  # @!visibility private
@@ -111,6 +142,7 @@ module DatadogAPIClient::V2
111
142
  included_keywords == o.included_keywords &&
112
143
  name == o.name &&
113
144
  pattern == o.pattern &&
145
+ priority == o.priority &&
114
146
  tags == o.tags
115
147
  end
116
148
 
@@ -118,7 +150,7 @@ module DatadogAPIClient::V2
118
150
  # @return [Integer] Hash code
119
151
  # @!visibility private
120
152
  def hash
121
- [description, included_keywords, name, pattern, tags].hash
153
+ [description, included_keywords, name, pattern, priority, tags].hash
122
154
  end
123
155
  end
124
156
  end
@@ -21,6 +21,13 @@ module DatadogAPIClient::V2
21
21
  class UserTeamAttributes
22
22
  include BaseGenericModel
23
23
 
24
+ # The mechanism responsible for provisioning the team relationship.
25
+ # Possible values: null for added by a user, "service_account" if added by a service account, and "saml_mapping" if provisioned via SAML mapping.
26
+ attr_accessor :provisioned_by
27
+
28
+ # UUID of the User or Service Account who provisioned this team membership, or null if provisioned via SAML mapping.
29
+ attr_accessor :provisioned_by_id
30
+
24
31
  # The user's role within the team
25
32
  attr_accessor :role
26
33
 
@@ -28,6 +35,8 @@ module DatadogAPIClient::V2
28
35
  # @!visibility private
29
36
  def self.attribute_map
30
37
  {
38
+ :'provisioned_by' => :'provisioned_by',
39
+ :'provisioned_by_id' => :'provisioned_by_id',
31
40
  :'role' => :'role'
32
41
  }
33
42
  end
@@ -36,6 +45,8 @@ module DatadogAPIClient::V2
36
45
  # @!visibility private
37
46
  def self.openapi_types
38
47
  {
48
+ :'provisioned_by' => :'String',
49
+ :'provisioned_by_id' => :'String',
39
50
  :'role' => :'UserTeamRole'
40
51
  }
41
52
  end
@@ -44,6 +55,8 @@ module DatadogAPIClient::V2
44
55
  # @!visibility private
45
56
  def self.openapi_nullable
46
57
  Set.new([
58
+ :'provisioned_by',
59
+ :'provisioned_by_id',
47
60
  :'role',
48
61
  ])
49
62
  end
@@ -64,6 +77,14 @@ module DatadogAPIClient::V2
64
77
  h[k.to_sym] = v
65
78
  }
66
79
 
80
+ if attributes.key?(:'provisioned_by')
81
+ self.provisioned_by = attributes[:'provisioned_by']
82
+ end
83
+
84
+ if attributes.key?(:'provisioned_by_id')
85
+ self.provisioned_by_id = attributes[:'provisioned_by_id']
86
+ end
87
+
67
88
  if attributes.key?(:'role')
68
89
  self.role = attributes[:'role']
69
90
  end
@@ -75,6 +96,8 @@ module DatadogAPIClient::V2
75
96
  def ==(o)
76
97
  return true if self.equal?(o)
77
98
  self.class == o.class &&
99
+ provisioned_by == o.provisioned_by &&
100
+ provisioned_by_id == o.provisioned_by_id &&
78
101
  role == o.role
79
102
  end
80
103
 
@@ -82,7 +105,7 @@ module DatadogAPIClient::V2
82
105
  # @return [Integer] Hash code
83
106
  # @!visibility private
84
107
  def hash
85
- [role].hash
108
+ [provisioned_by, provisioned_by_id, role].hash
86
109
  end
87
110
  end
88
111
  end
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
21
21
  class UserTeamRelationships
22
22
  include BaseGenericModel
23
23
 
24
+ # Relationship between team membership and team
25
+ attr_accessor :team
26
+
24
27
  # Relationship between team membership and user
25
28
  attr_accessor :user
26
29
 
@@ -28,6 +31,7 @@ module DatadogAPIClient::V2
28
31
  # @!visibility private
29
32
  def self.attribute_map
30
33
  {
34
+ :'team' => :'team',
31
35
  :'user' => :'user'
32
36
  }
33
37
  end
@@ -36,6 +40,7 @@ module DatadogAPIClient::V2
36
40
  # @!visibility private
37
41
  def self.openapi_types
38
42
  {
43
+ :'team' => :'RelationshipToUserTeamTeam',
39
44
  :'user' => :'RelationshipToUserTeamUser'
40
45
  }
41
46
  end
@@ -56,6 +61,10 @@ module DatadogAPIClient::V2
56
61
  h[k.to_sym] = v
57
62
  }
58
63
 
64
+ if attributes.key?(:'team')
65
+ self.team = attributes[:'team']
66
+ end
67
+
59
68
  if attributes.key?(:'user')
60
69
  self.user = attributes[:'user']
61
70
  end
@@ -67,6 +76,7 @@ module DatadogAPIClient::V2
67
76
  def ==(o)
68
77
  return true if self.equal?(o)
69
78
  self.class == o.class &&
79
+ team == o.team &&
70
80
  user == o.user
71
81
  end
72
82
 
@@ -74,7 +84,7 @@ module DatadogAPIClient::V2
74
84
  # @return [Integer] Hash code
75
85
  # @!visibility private
76
86
  def hash
77
- [user].hash
87
+ [team, user].hash
78
88
  end
79
89
  end
80
90
  end
@@ -0,0 +1,26 @@
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
+ # User team team type
21
+ class UserTeamTeamType
22
+ include BaseEnumModel
23
+
24
+ TEAM = "team".freeze
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '2.18.0'
4
+ VERSION = '2.19.0'
5
5
  end