Skip to content

Commit 120298b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0cec205 of spec repo
1 parent 119cacd commit 120298b

10 files changed

Lines changed: 157 additions & 21 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40874,6 +40874,8 @@ components:
4087440874
type: integer
4087540875
type:
4087640876
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40877+
when_full:
40878+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087740879
type: object
4087840880
ObservabilityPipelineMemoryBufferSizeOptions:
4087940881
description: Options for configuring a memory buffer by queue length.
@@ -40885,6 +40887,8 @@ components:
4088540887
type: integer
4088640888
type:
4088740889
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40890+
when_full:
40891+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088840892
type: object
4088940893
ObservabilityPipelineMetadataEntry:
4089040894
description: A custom metadata entry.
@@ -49367,6 +49371,18 @@ components:
4936749371
description: The name of the role. The name is neither unique nor a stable
4936849372
identifier of the role.
4936949373
type: string
49374+
receives_permissions_from:
49375+
description: 'Managed role from which this role automatically receives new
49376+
permissions as Datadog introduces new products and features.
49377+
49378+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49379+
Standard Role", or "Datadog Read Only Role".
49380+
49381+
If not specified or set to an empty array, the role does not automatically
49382+
receive permissions from any managed role.'
49383+
items:
49384+
type: string
49385+
type: array
4937049386
user_count:
4937149387
description: Number of users with that role.
4937249388
format: int64
@@ -49392,6 +49408,18 @@ components:
4939249408
description: Name of the new role that is cloned.
4939349409
example: cloned-role
4939449410
type: string
49411+
receives_permissions_from:
49412+
description: 'Managed role from which this role automatically receives new
49413+
permissions as Datadog introduces new products and features.
49414+
49415+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49416+
Standard Role", or "Datadog Read Only Role".
49417+
49418+
If not specified or set to an empty array, the role does not automatically
49419+
receive permissions from any managed role.'
49420+
items:
49421+
type: string
49422+
type: array
4939549423
required:
4939649424
- name
4939749425
type: object
@@ -49420,6 +49448,18 @@ components:
4942049448
description: Name of the role.
4942149449
example: developers
4942249450
type: string
49451+
receives_permissions_from:
49452+
description: 'Managed role from which this role automatically receives new
49453+
permissions as Datadog introduces new products and features.
49454+
49455+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49456+
Standard Role", or "Datadog Read Only Role".
49457+
49458+
If not specified or set to an empty array, the role does not automatically
49459+
receive permissions from any managed role.'
49460+
items:
49461+
type: string
49462+
type: array
4942349463
required:
4942449464
- name
4942549465
type: object
@@ -49541,6 +49581,18 @@ components:
4954149581
name:
4954249582
description: Name of the role.
4954349583
type: string
49584+
receives_permissions_from:
49585+
description: 'Managed role from which this role automatically receives new
49586+
permissions as Datadog introduces new products and features.
49587+
49588+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49589+
Standard Role", or "Datadog Read Only Role".
49590+
49591+
If not specified or set to an empty array, the role does not automatically
49592+
receive permissions from any managed role.'
49593+
items:
49594+
type: string
49595+
type: array
4954449596
user_count:
4954549597
description: The user count.
4954649598
format: int32
@@ -103866,7 +103918,12 @@ tags:
103866103918

103867103919
read access on a specific log index to a role can be done in Datadog from the
103868103920

103869-
[Pipelines page](https://app.datadoghq.com/logs/pipelines).'
103921+
[Pipelines page](https://app.datadoghq.com/logs/pipelines).
103922+
103923+
103924+
Roles can also be managed in bulk through the Datadog UI, which provides
103925+
103926+
the capability to assign a single permission to multiple roles simultaneously.'
103870103927
name: Roles
103871103928
- description: Auto-generated tag Rum Audience Management
103872103929
name: Rum Audience Management

examples/v2/roles/CreateRole.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
data: DatadogAPIClient::V2::RoleCreateData.new({
88
attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({
99
name: "developers",
10+
receives_permissions_from: [],
1011
}),
1112
relationships: DatadogAPIClient::V2::RoleRelationships.new({
1213
permissions: DatadogAPIClient::V2::RelationshipToPermissions.new({

examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Validate a detection rule with detection method 'new_value' with enabled feature 'instantaneousBaseline' returns "OK"
2-
response
2+
# response
33

44
require "datadog_api_client"
55
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new

features/v2/roles.feature

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Feature: Roles
66
account assets can be granted to roles in the Datadog application without
77
using this API. For example, granting read access on a specific log index
88
to a role can be done in Datadog from the [Pipelines
9-
page](https://app.datadoghq.com/logs/pipelines).
9+
page](https://app.datadoghq.com/logs/pipelines). Roles can also be
10+
managed in bulk through the Datadog UI, which provides the capability to
11+
assign a single permission to multiple roles simultaneously.
1012

1113
Background:
1214
Given a valid "apiKeyAuth" key in the system
@@ -64,7 +66,7 @@ Feature: Roles
6466
Scenario: Create a new role by cloning an existing role returns "Not found" response
6567
Given new "CloneRole" request
6668
And request contains "role_id" parameter from "REPLACE.ME"
67-
And body with value {"data": {"attributes": {"name": "cloned-role"}, "type": "roles"}}
69+
And body with value {"data": {"attributes": {"name": "cloned-role", "receives_permissions_from": []}, "type": "roles"}}
6870
When the request is sent
6971
Then the response status is 404 Not found
7072

@@ -81,14 +83,14 @@ Feature: Roles
8183
@generated @skip @team:DataDog/aaa-core-access
8284
Scenario: Create role returns "Bad Request" response
8385
Given new "CreateRole" request
84-
And body with value {"data": {"attributes": {"name": "developers"}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
86+
And body with value {"data": {"attributes": {"name": "developers", "receives_permissions_from": []}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
8587
When the request is sent
8688
Then the response status is 400 Bad Request
8789

8890
@generated @skip @team:DataDog/aaa-core-access
8991
Scenario: Create role returns "OK" response
9092
Given new "CreateRole" request
91-
And body with value {"data": {"attributes": {"name": "developers"}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
93+
And body with value {"data": {"attributes": {"name": "developers", "receives_permissions_from": []}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
9294
When the request is sent
9395
Then the response status is 200 OK
9496

@@ -335,6 +337,6 @@ Feature: Roles
335337
Scenario: Update a role returns "Unprocessable Entity" response
336338
Given new "UpdateRole" request
337339
And request contains "role_id" parameter from "REPLACE.ME"
338-
And body with value {"data": {"attributes": {}, "id": "00000000-0000-1111-0000-000000000000", "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
340+
And body with value {"data": {"attributes": {"receives_permissions_from": []}, "id": "00000000-0000-1111-0000-000000000000", "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
339341
When the request is sent
340342
Then the response status is 422 Unprocessable Entity

lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_options.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ class ObservabilityPipelineMemoryBufferOptions
2727
# The type of the buffer that will be configured, a memory buffer.
2828
attr_accessor :type
2929

30+
# Behavior when the buffer is full (block and stop accepting new events, or drop new events)
31+
attr_accessor :when_full
32+
3033
attr_accessor :additional_properties
3134

3235
# Attribute mapping from ruby-style variable name to JSON key.
3336
# @!visibility private
3437
def self.attribute_map
3538
{
3639
:'max_size' => :'max_size',
37-
:'type' => :'type'
40+
:'type' => :'type',
41+
:'when_full' => :'when_full'
3842
}
3943
end
4044

@@ -43,7 +47,8 @@ def self.attribute_map
4347
def self.openapi_types
4448
{
4549
:'max_size' => :'Integer',
46-
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
50+
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType',
51+
:'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
4752
}
4853
end
4954

@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277
if attributes.key?(:'type')
7378
self.type = attributes[:'type']
7479
end
80+
81+
if attributes.key?(:'when_full')
82+
self.when_full = attributes[:'when_full']
83+
end
7584
end
7685

7786
# Returns the object in the form of hash, with additionalProperties support.
@@ -102,14 +111,15 @@ def ==(o)
102111
self.class == o.class &&
103112
max_size == o.max_size &&
104113
type == o.type &&
114+
when_full == o.when_full &&
105115
additional_properties == o.additional_properties
106116
end
107117

108118
# Calculates hash code according to all attributes.
109119
# @return [Integer] Hash code
110120
# @!visibility private
111121
def hash
112-
[max_size, type, additional_properties].hash
122+
[max_size, type, when_full, additional_properties].hash
113123
end
114124
end
115125
end

lib/datadog_api_client/v2/models/observability_pipeline_memory_buffer_size_options.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ class ObservabilityPipelineMemoryBufferSizeOptions
2727
# The type of the buffer that will be configured, a memory buffer.
2828
attr_accessor :type
2929

30+
# Behavior when the buffer is full (block and stop accepting new events, or drop new events)
31+
attr_accessor :when_full
32+
3033
attr_accessor :additional_properties
3134

3235
# Attribute mapping from ruby-style variable name to JSON key.
3336
# @!visibility private
3437
def self.attribute_map
3538
{
3639
:'max_events' => :'max_events',
37-
:'type' => :'type'
40+
:'type' => :'type',
41+
:'when_full' => :'when_full'
3842
}
3943
end
4044

@@ -43,7 +47,8 @@ def self.attribute_map
4347
def self.openapi_types
4448
{
4549
:'max_events' => :'Integer',
46-
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType'
50+
:'type' => :'ObservabilityPipelineBufferOptionsMemoryType',
51+
:'when_full' => :'ObservabilityPipelineBufferOptionsWhenFull'
4752
}
4853
end
4954

@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277
if attributes.key?(:'type')
7378
self.type = attributes[:'type']
7479
end
80+
81+
if attributes.key?(:'when_full')
82+
self.when_full = attributes[:'when_full']
83+
end
7584
end
7685

7786
# Returns the object in the form of hash, with additionalProperties support.
@@ -102,14 +111,15 @@ def ==(o)
102111
self.class == o.class &&
103112
max_events == o.max_events &&
104113
type == o.type &&
114+
when_full == o.when_full &&
105115
additional_properties == o.additional_properties
106116
end
107117

108118
# Calculates hash code according to all attributes.
109119
# @return [Integer] Hash code
110120
# @!visibility private
111121
def hash
112-
[max_events, type, additional_properties].hash
122+
[max_events, type, when_full, additional_properties].hash
113123
end
114124
end
115125
end

lib/datadog_api_client/v2/models/role_attributes.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class RoleAttributes
3030
# The name of the role. The name is neither unique nor a stable identifier of the role.
3131
attr_accessor :name
3232

33+
# Managed role from which this role automatically receives new permissions as Datadog introduces new products and features.
34+
# Specify one of the following managed roles: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role".
35+
# If not specified or set to an empty array, the role does not automatically receive permissions from any managed role.
36+
attr_accessor :receives_permissions_from
37+
3338
# Number of users with that role.
3439
attr_accessor :user_count
3540

@@ -42,6 +47,7 @@ def self.attribute_map
4247
:'created_at' => :'created_at',
4348
:'modified_at' => :'modified_at',
4449
:'name' => :'name',
50+
:'receives_permissions_from' => :'receives_permissions_from',
4551
:'user_count' => :'user_count'
4652
}
4753
end
@@ -53,6 +59,7 @@ def self.openapi_types
5359
:'created_at' => :'Time',
5460
:'modified_at' => :'Time',
5561
:'name' => :'String',
62+
:'receives_permissions_from' => :'Array<String>',
5663
:'user_count' => :'Integer'
5764
}
5865
end
@@ -87,6 +94,12 @@ def initialize(attributes = {})
8794
self.name = attributes[:'name']
8895
end
8996

97+
if attributes.key?(:'receives_permissions_from')
98+
if (value = attributes[:'receives_permissions_from']).is_a?(Array)
99+
self.receives_permissions_from = value
100+
end
101+
end
102+
90103
if attributes.key?(:'user_count')
91104
self.user_count = attributes[:'user_count']
92105
end
@@ -121,6 +134,7 @@ def ==(o)
121134
created_at == o.created_at &&
122135
modified_at == o.modified_at &&
123136
name == o.name &&
137+
receives_permissions_from == o.receives_permissions_from &&
124138
user_count == o.user_count &&
125139
additional_properties == o.additional_properties
126140
end
@@ -129,7 +143,7 @@ def ==(o)
129143
# @return [Integer] Hash code
130144
# @!visibility private
131145
def hash
132-
[created_at, modified_at, name, user_count, additional_properties].hash
146+
[created_at, modified_at, name, receives_permissions_from, user_count, additional_properties].hash
133147
end
134148
end
135149
end

0 commit comments

Comments
 (0)