Skip to content

Commit 2eac002

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8c68959 of spec repo
1 parent 606f373 commit 2eac002

File tree

9 files changed

+64
-92
lines changed

9 files changed

+64
-92
lines changed

content/en/api/v2/logs-restriction-queries/examples.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"data": {
3+
"type": "roles",
4+
"id": "string"
5+
}
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"data": {
3+
"type": "logs_restriction_queries",
4+
"attributes": {
5+
"restriction_query": "env:sandbox"
6+
}
7+
}
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"data": {
3+
"type": "roles",
4+
"id": "string"
5+
}
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"data": {
3+
"type": "logs_restriction_queries",
4+
"attributes": {
5+
"restriction_query": "env:production"
6+
}
7+
}
8+
}

data/api/v2/CodeExamples.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,34 @@
988988
"description": "Update a log-based metric with include_percentiles field returns \"OK\" response"
989989
}
990990
],
991+
"CreateRestrictionQuery": [
992+
{
993+
"group": "logs_restriction_queries",
994+
"suffix": "",
995+
"description": "Create a restriction query returns \"OK\" response"
996+
}
997+
],
998+
"AddRoleToRestrictionQuery": [
999+
{
1000+
"group": "logs_restriction_queries",
1001+
"suffix": "_3894482781",
1002+
"description": "Grant role to a restriction query returns \"No Content\" response"
1003+
}
1004+
],
1005+
"RemoveRoleFromRestrictionQuery": [
1006+
{
1007+
"group": "logs_restriction_queries",
1008+
"suffix": "_950671518",
1009+
"description": "Revoke role from a restriction query returns \"No Content\" response"
1010+
}
1011+
],
1012+
"UpdateRestrictionQuery": [
1013+
{
1014+
"group": "logs_restriction_queries",
1015+
"suffix": "",
1016+
"description": "Update a restriction query returns \"OK\" response"
1017+
}
1018+
],
9911019
"CreateBulkTagsMetricsConfiguration": [
9921020
{
9931021
"group": "metrics",

data/api/v2/full_spec.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41678,12 +41678,6 @@ components:
4167841678
$ref: '#/components/schemas/RestrictionQueryWithoutRelationships'
4167941679
type: array
4168041680
type: object
41681-
RestrictionQueryRelationships:
41682-
description: Relationships of the restriction query object.
41683-
properties:
41684-
roles:
41685-
$ref: '#/components/schemas/RelationshipToRoles'
41686-
type: object
4168741681
RestrictionQueryResponseIncludedItem:
4168841682
description: An object related to a restriction query.
4168941683
discriminator:
@@ -41758,7 +41752,7 @@ components:
4175841752
example: 79a0e60a-644a-11ea-ad29-43329f7f58b5
4175941753
type: string
4176041754
relationships:
41761-
$ref: '#/components/schemas/RestrictionQueryRelationships'
41755+
$ref: '#/components/schemas/UserRelationships'
4176241756
type:
4176341757
$ref: '#/components/schemas/LogsRestrictionQueriesType'
4176441758
type: object

data/api/v2/full_spec_deref.json

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -288010,45 +288010,6 @@
288010288010
},
288011288011
"type": "object"
288012288012
},
288013-
"RestrictionQueryRelationships": {
288014-
"description": "Relationships of the restriction query object.",
288015-
"properties": {
288016-
"roles": {
288017-
"description": "Relationship to roles.",
288018-
"properties": {
288019-
"data": {
288020-
"description": "An array containing type and the unique identifier of a role.",
288021-
"items": {
288022-
"description": "Relationship to role object.",
288023-
"properties": {
288024-
"id": {
288025-
"description": "The unique identifier of the role.",
288026-
"example": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
288027-
"type": "string"
288028-
},
288029-
"type": {
288030-
"default": "roles",
288031-
"description": "Roles type.",
288032-
"enum": [
288033-
"roles"
288034-
],
288035-
"example": "roles",
288036-
"type": "string",
288037-
"x-enum-varnames": [
288038-
"ROLES"
288039-
]
288040-
}
288041-
},
288042-
"type": "object"
288043-
},
288044-
"type": "array"
288045-
}
288046-
},
288047-
"type": "object"
288048-
}
288049-
},
288050-
"type": "object"
288051-
},
288052288013
"RestrictionQueryResponseIncludedItem": {
288053288014
"description": "An object related to a restriction query.",
288054288015
"discriminator": {
@@ -288277,7 +288238,7 @@
288277288238
"type": "string"
288278288239
},
288279288240
"relationships": {
288280-
"description": "Relationships of the restriction query object.",
288241+
"description": "Relationships of the user object.",
288281288242
"properties": {
288282288243
"roles": {
288283288244
"description": "Relationship to roles.",
@@ -288367,7 +288328,7 @@
288367288328
"type": "string"
288368288329
},
288369288330
"relationships": {
288370-
"description": "Relationships of the restriction query object.",
288331+
"description": "Relationships of the user object.",
288371288332
"properties": {
288372288333
"roles": {
288373288334
"description": "Relationship to roles.",
@@ -562253,7 +562214,7 @@
562253562214
"type": "string"
562254562215
},
562255562216
"relationships": {
562256-
"description": "Relationships of the restriction query object.",
562217+
"description": "Relationships of the user object.",
562257562218
"properties": {
562258562219
"roles": {
562259562220
"description": "Relationship to roles.",

static/resources/json/full_spec_v2.json

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -288010,45 +288010,6 @@
288010288010
},
288011288011
"type": "object"
288012288012
},
288013-
"RestrictionQueryRelationships": {
288014-
"description": "Relationships of the restriction query object.",
288015-
"properties": {
288016-
"roles": {
288017-
"description": "Relationship to roles.",
288018-
"properties": {
288019-
"data": {
288020-
"description": "An array containing type and the unique identifier of a role.",
288021-
"items": {
288022-
"description": "Relationship to role object.",
288023-
"properties": {
288024-
"id": {
288025-
"description": "The unique identifier of the role.",
288026-
"example": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
288027-
"type": "string"
288028-
},
288029-
"type": {
288030-
"default": "roles",
288031-
"description": "Roles type.",
288032-
"enum": [
288033-
"roles"
288034-
],
288035-
"example": "roles",
288036-
"type": "string",
288037-
"x-enum-varnames": [
288038-
"ROLES"
288039-
]
288040-
}
288041-
},
288042-
"type": "object"
288043-
},
288044-
"type": "array"
288045-
}
288046-
},
288047-
"type": "object"
288048-
}
288049-
},
288050-
"type": "object"
288051-
},
288052288013
"RestrictionQueryResponseIncludedItem": {
288053288014
"description": "An object related to a restriction query.",
288054288015
"discriminator": {
@@ -288277,7 +288238,7 @@
288277288238
"type": "string"
288278288239
},
288279288240
"relationships": {
288280-
"description": "Relationships of the restriction query object.",
288241+
"description": "Relationships of the user object.",
288281288242
"properties": {
288282288243
"roles": {
288283288244
"description": "Relationship to roles.",
@@ -288367,7 +288328,7 @@
288367288328
"type": "string"
288368288329
},
288369288330
"relationships": {
288370-
"description": "Relationships of the restriction query object.",
288331+
"description": "Relationships of the user object.",
288371288332
"properties": {
288372288333
"roles": {
288373288334
"description": "Relationship to roles.",
@@ -562253,7 +562214,7 @@
562253562214
"type": "string"
562254562215
},
562255562216
"relationships": {
562256-
"description": "Relationships of the restriction query object.",
562217+
"description": "Relationships of the user object.",
562257562218
"properties": {
562258562219
"roles": {
562259562220
"description": "Relationship to roles.",

0 commit comments

Comments
 (0)