datadog_api_client 2.31.0 → 2.31.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf07414e021c91812a18c8340e904572b9a694f8f08e03c40a246266dd728cf5
4
- data.tar.gz: 20dd8412640a0197a75ae4737663bdc430ab38c9e61a9d9dd82b17b8b4a66665
3
+ metadata.gz: 5f523f05fe26f3f563df6c218b7996b9874209338df53d202c3e6347d11e72fa
4
+ data.tar.gz: bd5a312316636e6af2fc07877bb552d4caab8266050738620031198d1caec9c3
5
5
  SHA512:
6
- metadata.gz: a8027d3ef0b9be260236e9bb2216fb42649c436fe99642080c5b873d8e774d601a8e505ab614a4208061d97b46b2a306ba669b8604ddb30a0c47dd54afe46785
7
- data.tar.gz: 05bf60ab43160d6d93d3e2b52e4ba7e2dba4ffb044e567af9d34cf011e1803bf08b6841004561b0217a49c686ac43f402e7140a0299f29bedc50d16cfcf52f73
6
+ metadata.gz: c54523b95828784f5da67ef679e880c9a3c9438be8d02cc6a5d38c64e9e4511619788f0528bb939580f1990baa857eef741d2e28fad2150c3d882d58820735d6
7
+ data.tar.gz: 6d207b29d65e117b81a2eee715c9e26be19ecbb9f2d3ae5db829fa51fcd09b9d49f93147feb1d734d789321599cb68ec3e0626e6ee1ee81e3359fcf3ae69d5ed
data/.apigentools-info CHANGED
@@ -4,13 +4,13 @@
4
4
  "spec_versions": {
5
5
  "v1": {
6
6
  "apigentools_version": "1.6.6",
7
- "regenerated": "2025-03-11 13:16:50.144910",
8
- "spec_repo_commit": "d7618fa5"
7
+ "regenerated": "2025-03-11 16:30:31.555356",
8
+ "spec_repo_commit": "baf04a80"
9
9
  },
10
10
  "v2": {
11
11
  "apigentools_version": "1.6.6",
12
- "regenerated": "2025-03-11 13:16:50.165212",
13
- "spec_repo_commit": "d7618fa5"
12
+ "regenerated": "2025-03-11 16:30:31.570839",
13
+ "spec_repo_commit": "baf04a80"
14
14
  }
15
15
  }
16
16
  }
@@ -684,7 +684,7 @@ components:
684
684
  schema:
685
685
  type: string
686
686
  RumApplicationIDParameter:
687
- description: Application ID.
687
+ description: RUM application ID.
688
688
  in: path
689
689
  name: app_id
690
690
  required: true
@@ -25518,8 +25518,6 @@ components:
25518
25518
  properties:
25519
25519
  attributes:
25520
25520
  $ref: '#/components/schemas/RumRetentionFilterCreateAttributes'
25521
- meta:
25522
- $ref: '#/components/schemas/RumRetentionFilterMeta'
25523
25521
  type:
25524
25522
  $ref: '#/components/schemas/RumRetentionFilterType'
25525
25523
  required:
@@ -25541,8 +25539,6 @@ components:
25541
25539
  $ref: '#/components/schemas/RumRetentionFilterAttributes'
25542
25540
  id:
25543
25541
  $ref: '#/components/schemas/RumRetentionFilterID'
25544
- meta:
25545
- $ref: '#/components/schemas/RumRetentionFilterMeta'
25546
25542
  type:
25547
25543
  $ref: '#/components/schemas/RumRetentionFilterType'
25548
25544
  type: object
@@ -25574,12 +25570,6 @@ components:
25574
25570
  description: ID of retention filter in UUID.
25575
25571
  example: 051601eb-54a0-abc0-03f9-cc02efa18892
25576
25572
  type: string
25577
- RumRetentionFilterMeta:
25578
- description: The object describing metadata of a RUM retention filter.
25579
- properties:
25580
- source:
25581
- $ref: '#/components/schemas/RumRetentionFilterSource'
25582
- type: object
25583
25573
  RumRetentionFilterQuery:
25584
25574
  description: The query string for a RUM retention filter.
25585
25575
  example: '@session.has_replay:true'
@@ -25597,20 +25587,6 @@ components:
25597
25587
  maximum: 100
25598
25588
  minimum: 0
25599
25589
  type: integer
25600
- RumRetentionFilterSource:
25601
- description: The type of RUM events to filter on.
25602
- enum:
25603
- - ui
25604
- - terraform
25605
- - default
25606
- - unknown
25607
- example: terraform
25608
- type: string
25609
- x-enum-varnames:
25610
- - UI
25611
- - TERRAFORM
25612
- - DEFAULT
25613
- - UNKNOWN
25614
25590
  RumRetentionFilterType:
25615
25591
  default: retention_filters
25616
25592
  description: The type of the resource. The value should always be retention_filters.
@@ -25641,8 +25617,6 @@ components:
25641
25617
  $ref: '#/components/schemas/RumRetentionFilterUpdateAttributes'
25642
25618
  id:
25643
25619
  $ref: '#/components/schemas/RumRetentionFilterID'
25644
- meta:
25645
- $ref: '#/components/schemas/RumRetentionFilterMeta'
25646
25620
  type:
25647
25621
  $ref: '#/components/schemas/RumRetentionFilterType'
25648
25622
  required:
@@ -25673,7 +25647,8 @@ components:
25673
25647
  description: 'The list of RUM retention filter IDs along with their corresponding
25674
25648
  type to reorder.
25675
25649
 
25676
- All retention filter IDs should be included in the list created for an application.'
25650
+ All retention filter IDs should be included in the list created for a RUM
25651
+ application.'
25677
25652
  properties:
25678
25653
  data:
25679
25654
  description: A list of RUM retention filter IDs along with type.
@@ -25691,7 +25666,7 @@ components:
25691
25666
  type: array
25692
25667
  type: object
25693
25668
  RumRetentionFiltersResponse:
25694
- description: All RUM retention filters for an application.
25669
+ description: All RUM retention filters for a RUM application.
25695
25670
  properties:
25696
25671
  data:
25697
25672
  description: A list of RUM retention filters.
@@ -46244,10 +46219,10 @@ paths:
46244
46219
  - rum_apps_write
46245
46220
  /api/v2/rum/applications/{app_id}/relationships/retention_filters:
46246
46221
  patch:
46247
- description: 'Order RUM retention filters for an application.
46222
+ description: 'Order RUM retention filters for a RUM application.
46248
46223
 
46249
- Returns RUM retention filter objects without attributes and meta from the
46250
- request body when the request is successful.'
46224
+ Returns RUM retention filter objects without attributes from the request body
46225
+ when the request is successful.'
46251
46226
  operationId: OrderRetentionFilters
46252
46227
  parameters:
46253
46228
  - $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46277,7 +46252,7 @@ paths:
46277
46252
  x-codegen-request-body-name: body
46278
46253
  /api/v2/rum/applications/{app_id}/retention_filters:
46279
46254
  get:
46280
- description: Get the list of RUM retention filters for an application.
46255
+ description: Get the list of RUM retention filters for a RUM application.
46281
46256
  operationId: ListRetentionFilters
46282
46257
  parameters:
46283
46258
  - $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46296,7 +46271,7 @@ paths:
46296
46271
  tags:
46297
46272
  - Rum Retention Filters
46298
46273
  post:
46299
- description: 'Create a RUM retention filter for an application.
46274
+ description: 'Create a RUM retention filter for a RUM application.
46300
46275
 
46301
46276
  Returns RUM retention filter objects from the request body when the request
46302
46277
  is successful.'
@@ -46329,7 +46304,7 @@ paths:
46329
46304
  x-codegen-request-body-name: body
46330
46305
  /api/v2/rum/applications/{app_id}/retention_filters/{rf_id}:
46331
46306
  delete:
46332
- description: Delete a RUM retention filter for an application.
46307
+ description: Delete a RUM retention filter for a RUM application.
46333
46308
  operationId: DeleteRetentionFilter
46334
46309
  parameters:
46335
46310
  - $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46347,7 +46322,7 @@ paths:
46347
46322
  tags:
46348
46323
  - Rum Retention Filters
46349
46324
  get:
46350
- description: Get a RUM retention filter for an application.
46325
+ description: Get a RUM retention filter for a RUM application.
46351
46326
  operationId: GetRetentionFilter
46352
46327
  parameters:
46353
46328
  - $ref: '#/components/parameters/RumApplicationIDParameter'
@@ -46369,7 +46344,7 @@ paths:
46369
46344
  tags:
46370
46345
  - Rum Retention Filters
46371
46346
  patch:
46372
- description: 'Update a RUM retention filter for an application.
46347
+ description: 'Update a RUM retention filter for a RUM application.
46373
46348
 
46374
46349
  Returns RUM retention filter objects from the request body when the request
46375
46350
  is successful.'
@@ -53819,7 +53794,7 @@ tags:
53819
53794
  url: https://docs.datadoghq.com/real_user_monitoring/platform/generate_metrics/
53820
53795
  name: Rum Metrics
53821
53796
  - description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
53822
- for your organization.
53797
+ of RUM for your organization.
53823
53798
  name: Rum Retention Filters
53824
53799
  - description: Create and manage your security rules, signals, filters, and more.
53825
53800
  See the [Datadog Security page](https://docs.datadoghq.com/security/) for more
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.31.1 / 2025-03-11
4
+
5
+ ### Changed
6
+ * Remove meta from RUM retention filters APIs by @api-clients-generation-pipeline in https://github.com/DataDog/datadog-api-client-ruby/pull/2286
7
+
8
+
9
+ **Full Changelog**: https://github.com/DataDog/datadog-api-client-ruby/compare/v2.31.0...v2.31.1
10
+
3
11
  ## 2.31.0 / 2025-03-11
4
12
 
5
13
  ### Fixed
@@ -13,9 +13,6 @@ body = DatadogAPIClient::V2::RumRetentionFilterCreateRequest.new({
13
13
  sample_rate: 50,
14
14
  enabled: true,
15
15
  }),
16
- meta: DatadogAPIClient::V2::RumRetentionFilterMeta.new({
17
- source: DatadogAPIClient::V2::RumRetentionFilterSource::TERRAFORM,
18
- }),
19
16
  }),
20
17
  })
21
18
  p api_instance.create_retention_filter("a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", body)
@@ -2513,12 +2513,10 @@ module DatadogAPIClient
2513
2513
  "v2.rum_retention_filter_create_request" => "RumRetentionFilterCreateRequest",
2514
2514
  "v2.rum_retention_filter_data" => "RumRetentionFilterData",
2515
2515
  "v2.rum_retention_filter_event_type" => "RumRetentionFilterEventType",
2516
- "v2.rum_retention_filter_meta" => "RumRetentionFilterMeta",
2517
2516
  "v2.rum_retention_filter_response" => "RumRetentionFilterResponse",
2518
2517
  "v2.rum_retention_filters_order_data" => "RumRetentionFiltersOrderData",
2519
2518
  "v2.rum_retention_filters_order_request" => "RumRetentionFiltersOrderRequest",
2520
2519
  "v2.rum_retention_filters_order_response" => "RumRetentionFiltersOrderResponse",
2521
- "v2.rum_retention_filter_source" => "RumRetentionFilterSource",
2522
2520
  "v2.rum_retention_filters_response" => "RumRetentionFiltersResponse",
2523
2521
  "v2.rum_retention_filter_type" => "RumRetentionFilterType",
2524
2522
  "v2.rum_retention_filter_update_attributes" => "RumRetentionFilterUpdateAttributes",
@@ -33,10 +33,10 @@ module DatadogAPIClient::V2
33
33
 
34
34
  # Create a RUM retention filter.
35
35
  #
36
- # Create a RUM retention filter for an application.
36
+ # Create a RUM retention filter for a RUM application.
37
37
  # Returns RUM retention filter objects from the request body when the request is successful.
38
38
  #
39
- # @param app_id [String] Application ID.
39
+ # @param app_id [String] RUM application ID.
40
40
  # @param body [RumRetentionFilterCreateRequest] The definition of the new RUM retention filter.
41
41
  # @param opts [Hash] the optional parameters
42
42
  # @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
@@ -106,9 +106,9 @@ module DatadogAPIClient::V2
106
106
 
107
107
  # Delete a RUM retention filter.
108
108
  #
109
- # Delete a RUM retention filter for an application.
109
+ # Delete a RUM retention filter for a RUM application.
110
110
  #
111
- # @param app_id [String] Application ID.
111
+ # @param app_id [String] RUM application ID.
112
112
  # @param rf_id [String] Retention filter ID.
113
113
  # @param opts [Hash] the optional parameters
114
114
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -176,9 +176,9 @@ module DatadogAPIClient::V2
176
176
 
177
177
  # Get a RUM retention filter.
178
178
  #
179
- # Get a RUM retention filter for an application.
179
+ # Get a RUM retention filter for a RUM application.
180
180
  #
181
- # @param app_id [String] Application ID.
181
+ # @param app_id [String] RUM application ID.
182
182
  # @param rf_id [String] Retention filter ID.
183
183
  # @param opts [Hash] the optional parameters
184
184
  # @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
@@ -246,9 +246,9 @@ module DatadogAPIClient::V2
246
246
 
247
247
  # Get all RUM retention filters.
248
248
  #
249
- # Get the list of RUM retention filters for an application.
249
+ # Get the list of RUM retention filters for a RUM application.
250
250
  #
251
- # @param app_id [String] Application ID.
251
+ # @param app_id [String] RUM application ID.
252
252
  # @param opts [Hash] the optional parameters
253
253
  # @return [Array<(RumRetentionFiltersResponse, Integer, Hash)>] RumRetentionFiltersResponse data, response status code and response headers
254
254
  def list_retention_filters_with_http_info(app_id, opts = {})
@@ -311,10 +311,10 @@ module DatadogAPIClient::V2
311
311
 
312
312
  # Order RUM retention filters.
313
313
  #
314
- # Order RUM retention filters for an application.
315
- # Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
314
+ # Order RUM retention filters for a RUM application.
315
+ # Returns RUM retention filter objects without attributes from the request body when the request is successful.
316
316
  #
317
- # @param app_id [String] Application ID.
317
+ # @param app_id [String] RUM application ID.
318
318
  # @param body [RumRetentionFiltersOrderRequest] New definition of the RUM retention filter.
319
319
  # @param opts [Hash] the optional parameters
320
320
  # @return [Array<(RumRetentionFiltersOrderResponse, Integer, Hash)>] RumRetentionFiltersOrderResponse data, response status code and response headers
@@ -384,10 +384,10 @@ module DatadogAPIClient::V2
384
384
 
385
385
  # Update a RUM retention filter.
386
386
  #
387
- # Update a RUM retention filter for an application.
387
+ # Update a RUM retention filter for a RUM application.
388
388
  # Returns RUM retention filter objects from the request body when the request is successful.
389
389
  #
390
- # @param app_id [String] Application ID.
390
+ # @param app_id [String] RUM application ID.
391
391
  # @param rf_id [String] Retention filter ID.
392
392
  # @param body [RumRetentionFilterUpdateRequest] New definition of the RUM retention filter.
393
393
  # @param opts [Hash] the optional parameters
@@ -24,9 +24,6 @@ module DatadogAPIClient::V2
24
24
  # The object describing attributes of a RUM retention filter to create.
25
25
  attr_reader :attributes
26
26
 
27
- # The object describing metadata of a RUM retention filter.
28
- attr_accessor :meta
29
-
30
27
  # The type of the resource. The value should always be retention_filters.
31
28
  attr_reader :type
32
29
 
@@ -37,7 +34,6 @@ module DatadogAPIClient::V2
37
34
  def self.attribute_map
38
35
  {
39
36
  :'attributes' => :'attributes',
40
- :'meta' => :'meta',
41
37
  :'type' => :'type'
42
38
  }
43
39
  end
@@ -47,7 +43,6 @@ module DatadogAPIClient::V2
47
43
  def self.openapi_types
48
44
  {
49
45
  :'attributes' => :'RumRetentionFilterCreateAttributes',
50
- :'meta' => :'RumRetentionFilterMeta',
51
46
  :'type' => :'RumRetentionFilterType'
52
47
  }
53
48
  end
@@ -74,10 +69,6 @@ module DatadogAPIClient::V2
74
69
  self.attributes = attributes[:'attributes']
75
70
  end
76
71
 
77
- if attributes.key?(:'meta')
78
- self.meta = attributes[:'meta']
79
- end
80
-
81
72
  if attributes.key?(:'type')
82
73
  self.type = attributes[:'type']
83
74
  end
@@ -139,7 +130,6 @@ module DatadogAPIClient::V2
139
130
  return true if self.equal?(o)
140
131
  self.class == o.class &&
141
132
  attributes == o.attributes &&
142
- meta == o.meta &&
143
133
  type == o.type &&
144
134
  additional_properties == o.additional_properties
145
135
  end
@@ -148,7 +138,7 @@ module DatadogAPIClient::V2
148
138
  # @return [Integer] Hash code
149
139
  # @!visibility private
150
140
  def hash
151
- [attributes, meta, type, additional_properties].hash
141
+ [attributes, type, additional_properties].hash
152
142
  end
153
143
  end
154
144
  end
@@ -27,9 +27,6 @@ module DatadogAPIClient::V2
27
27
  # ID of retention filter in UUID.
28
28
  attr_accessor :id
29
29
 
30
- # The object describing metadata of a RUM retention filter.
31
- attr_accessor :meta
32
-
33
30
  # The type of the resource. The value should always be retention_filters.
34
31
  attr_accessor :type
35
32
 
@@ -41,7 +38,6 @@ module DatadogAPIClient::V2
41
38
  {
42
39
  :'attributes' => :'attributes',
43
40
  :'id' => :'id',
44
- :'meta' => :'meta',
45
41
  :'type' => :'type'
46
42
  }
47
43
  end
@@ -52,7 +48,6 @@ module DatadogAPIClient::V2
52
48
  {
53
49
  :'attributes' => :'RumRetentionFilterAttributes',
54
50
  :'id' => :'String',
55
- :'meta' => :'RumRetentionFilterMeta',
56
51
  :'type' => :'RumRetentionFilterType'
57
52
  }
58
53
  end
@@ -83,10 +78,6 @@ module DatadogAPIClient::V2
83
78
  self.id = attributes[:'id']
84
79
  end
85
80
 
86
- if attributes.key?(:'meta')
87
- self.meta = attributes[:'meta']
88
- end
89
-
90
81
  if attributes.key?(:'type')
91
82
  self.type = attributes[:'type']
92
83
  end
@@ -120,7 +111,6 @@ module DatadogAPIClient::V2
120
111
  self.class == o.class &&
121
112
  attributes == o.attributes &&
122
113
  id == o.id &&
123
- meta == o.meta &&
124
114
  type == o.type &&
125
115
  additional_properties == o.additional_properties
126
116
  end
@@ -129,7 +119,7 @@ module DatadogAPIClient::V2
129
119
  # @return [Integer] Hash code
130
120
  # @!visibility private
131
121
  def hash
132
- [attributes, id, meta, type, additional_properties].hash
122
+ [attributes, id, type, additional_properties].hash
133
123
  end
134
124
  end
135
125
  end
@@ -27,9 +27,6 @@ module DatadogAPIClient::V2
27
27
  # ID of retention filter in UUID.
28
28
  attr_reader :id
29
29
 
30
- # The object describing metadata of a RUM retention filter.
31
- attr_accessor :meta
32
-
33
30
  # The type of the resource. The value should always be retention_filters.
34
31
  attr_reader :type
35
32
 
@@ -41,7 +38,6 @@ module DatadogAPIClient::V2
41
38
  {
42
39
  :'attributes' => :'attributes',
43
40
  :'id' => :'id',
44
- :'meta' => :'meta',
45
41
  :'type' => :'type'
46
42
  }
47
43
  end
@@ -52,7 +48,6 @@ module DatadogAPIClient::V2
52
48
  {
53
49
  :'attributes' => :'RumRetentionFilterUpdateAttributes',
54
50
  :'id' => :'String',
55
- :'meta' => :'RumRetentionFilterMeta',
56
51
  :'type' => :'RumRetentionFilterType'
57
52
  }
58
53
  end
@@ -83,10 +78,6 @@ module DatadogAPIClient::V2
83
78
  self.id = attributes[:'id']
84
79
  end
85
80
 
86
- if attributes.key?(:'meta')
87
- self.meta = attributes[:'meta']
88
- end
89
-
90
81
  if attributes.key?(:'type')
91
82
  self.type = attributes[:'type']
92
83
  end
@@ -160,7 +151,6 @@ module DatadogAPIClient::V2
160
151
  self.class == o.class &&
161
152
  attributes == o.attributes &&
162
153
  id == o.id &&
163
- meta == o.meta &&
164
154
  type == o.type &&
165
155
  additional_properties == o.additional_properties
166
156
  end
@@ -169,7 +159,7 @@ module DatadogAPIClient::V2
169
159
  # @return [Integer] Hash code
170
160
  # @!visibility private
171
161
  def hash
172
- [attributes, id, meta, type, additional_properties].hash
162
+ [attributes, id, type, additional_properties].hash
173
163
  end
174
164
  end
175
165
  end
@@ -18,7 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
20
  # The list of RUM retention filter IDs along with their corresponding type to reorder.
21
- # All retention filter IDs should be included in the list created for an application.
21
+ # All retention filter IDs should be included in the list created for a RUM application.
22
22
  class RumRetentionFiltersOrderRequest
23
23
  include BaseGenericModel
24
24
 
@@ -17,7 +17,7 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # All RUM retention filters for an application.
20
+ # All RUM retention filters for a RUM application.
21
21
  class RumRetentionFiltersResponse
22
22
  include BaseGenericModel
23
23
 
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '2.31.0'
4
+ VERSION = '2.31.1'
5
5
  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.31.0
4
+ version: 2.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
@@ -3719,9 +3719,7 @@ files:
3719
3719
  - lib/datadog_api_client/v2/models/rum_retention_filter_create_request.rb
3720
3720
  - lib/datadog_api_client/v2/models/rum_retention_filter_data.rb
3721
3721
  - lib/datadog_api_client/v2/models/rum_retention_filter_event_type.rb
3722
- - lib/datadog_api_client/v2/models/rum_retention_filter_meta.rb
3723
3722
  - lib/datadog_api_client/v2/models/rum_retention_filter_response.rb
3724
- - lib/datadog_api_client/v2/models/rum_retention_filter_source.rb
3725
3723
  - lib/datadog_api_client/v2/models/rum_retention_filter_type.rb
3726
3724
  - lib/datadog_api_client/v2/models/rum_retention_filter_update_attributes.rb
3727
3725
  - lib/datadog_api_client/v2/models/rum_retention_filter_update_data.rb
@@ -1,105 +0,0 @@
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
- # The object describing metadata of a RUM retention filter.
21
- class RumRetentionFilterMeta
22
- include BaseGenericModel
23
-
24
- # The type of RUM events to filter on.
25
- attr_accessor :source
26
-
27
- attr_accessor :additional_properties
28
-
29
- # Attribute mapping from ruby-style variable name to JSON key.
30
- # @!visibility private
31
- def self.attribute_map
32
- {
33
- :'source' => :'source'
34
- }
35
- end
36
-
37
- # Attribute type mapping.
38
- # @!visibility private
39
- def self.openapi_types
40
- {
41
- :'source' => :'RumRetentionFilterSource'
42
- }
43
- end
44
-
45
- # Initializes the object
46
- # @param attributes [Hash] Model attributes in the form of hash
47
- # @!visibility private
48
- def initialize(attributes = {})
49
- if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumRetentionFilterMeta` initialize method"
51
- end
52
-
53
- self.additional_properties = {}
54
- # check to see if the attribute exists and convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}) { |(k, v), h|
56
- if (!self.class.attribute_map.key?(k.to_sym))
57
- self.additional_properties[k.to_sym] = v
58
- else
59
- h[k.to_sym] = v
60
- end
61
- }
62
-
63
- if attributes.key?(:'source')
64
- self.source = attributes[:'source']
65
- end
66
- end
67
-
68
- # Returns the object in the form of hash, with additionalProperties support.
69
- # @return [Hash] Returns the object in the form of hash
70
- # @!visibility private
71
- def to_hash
72
- hash = {}
73
- self.class.attribute_map.each_pair do |attr, param|
74
- value = self.send(attr)
75
- if value.nil?
76
- is_nullable = self.class.openapi_nullable.include?(attr)
77
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
78
- end
79
-
80
- hash[param] = _to_hash(value)
81
- end
82
- self.additional_properties.each_pair do |attr, value|
83
- hash[attr] = value
84
- end
85
- hash
86
- end
87
-
88
- # Checks equality by comparing each attribute.
89
- # @param o [Object] Object to be compared
90
- # @!visibility private
91
- def ==(o)
92
- return true if self.equal?(o)
93
- self.class == o.class &&
94
- source == o.source &&
95
- additional_properties == o.additional_properties
96
- end
97
-
98
- # Calculates hash code according to all attributes.
99
- # @return [Integer] Hash code
100
- # @!visibility private
101
- def hash
102
- [source, additional_properties].hash
103
- end
104
- end
105
- end
@@ -1,29 +0,0 @@
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
- # The type of RUM events to filter on.
21
- class RumRetentionFilterSource
22
- include BaseEnumModel
23
-
24
- UI = "ui".freeze
25
- TERRAFORM = "terraform".freeze
26
- DEFAULT = "default".freeze
27
- UNKNOWN = "unknown".freeze
28
- end
29
- end