forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'aacs-preview-20240915' into yuxiaowang/blocklist
- Loading branch information
Showing
63 changed files
with
6,122 additions
and
23 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.../cognitiveservices/ContentSafety/examples/2024-09-15-preview/AddImageIncidentSamples.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"title": "Add samples to the given image safety incident", | ||
"operationId": "ImageIncidents_AddIncidentSamples", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "TestIncidentName", | ||
"body": { | ||
"incidentSamples": [ | ||
{ | ||
"image": { | ||
"content": "base64EncodedImageContent" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentSamples": [ | ||
{ | ||
"incidentSampleId": "9511969e-f1e3-4604-9127-05ee16c509ec" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...n/cognitiveservices/ContentSafety/examples/2024-09-15-preview/AddTextIncidentSamples.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"title": "Add samples to the given text safety incident", | ||
"operationId": "TextIncidents_AddIncidentSamples", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "TestIncidentName", | ||
"body": { | ||
"incidentSamples": [ | ||
{ | ||
"text": "string" | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"incidentSamples": [ | ||
{ | ||
"incidentSampleId": "string", | ||
"text": "string" | ||
} | ||
] | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...nitiveservices/ContentSafety/examples/2024-09-15-preview/CreateOrUpdateImageIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"title": "Create Or Update Image Incident", | ||
"operationId": "ImageIncidents_CreateOrUpdateIncident", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "TestIncidentName", | ||
"resource": { | ||
"incidentName": "TestIncidentName" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentName": "TestIncidentName", | ||
"created": "2024-08-07T03:54:33.619Z", | ||
"lastUpdated": "2024-08-07T03:54:33.619Z" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"incidentName": "TestIncidentName", | ||
"created": "2024-08-07T03:54:33.620Z", | ||
"lastUpdated": "2024-08-07T03:54:33.620Z" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...gnitiveservices/ContentSafety/examples/2024-09-15-preview/CreateOrUpdateTextIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"title": "Create Or Update Text Incident", | ||
"operationId": "TextIncidents_CreateOrUpdateIncident", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "TestIncidentName", | ||
"resource": { | ||
"incidentName": "TestIncidentName", | ||
"incidentDefinition": "string" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentName": "TestIncidentName", | ||
"incidentDefinition": "string", | ||
"created": "2024-08-07T03:54:33.619Z", | ||
"lastUpdated": "2024-08-07T03:54:33.619Z" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"incidentName": "TestIncidentName", | ||
"incidentDefinition": "string", | ||
"created": "2024-08-07T03:54:33.620Z", | ||
"lastUpdated": "2024-08-07T03:54:33.620Z" | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...tion/cognitiveservices/ContentSafety/examples/2024-09-15-preview/DeleteImageIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"title": "Deletes the given image safety incident", | ||
"operationId": "ImageIncidents_DeleteIncident", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "TestIncidentName" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ation/cognitiveservices/ContentSafety/examples/2024-09-15-preview/DeleteTextIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"title": "Deletes the given text safety incident", | ||
"operationId": "TextIncidents_DeleteIncident", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "TestIncidentName" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...tion/cognitiveservices/ContentSafety/examples/2024-09-15-preview/DeployImageIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"title": "Deploy the given image safety incident", | ||
"operationId": "ImageIncidentOperation_Deploy", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "The name of the incident", | ||
"Operation-Id": "9511969e-f1e3-4604-9127-05ee16c509ec" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"id": "9511969e-f1e3-4604-9127-05ee16c509ec", | ||
"status": "NotStarted", | ||
"error": { | ||
"code": "string", | ||
"message": "string", | ||
"target": "string", | ||
"details": [ | ||
"string" | ||
], | ||
"innererror": { | ||
"code": "string", | ||
"innererror": "string" | ||
} | ||
}, | ||
"result": { | ||
"statusCode": 202 | ||
} | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ation/cognitiveservices/ContentSafety/examples/2024-09-15-preview/DeployTextIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"title": "Deploy the given text safety incident", | ||
"operationId": "TextIncidentOperation_Deploy", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "The name of the incident", | ||
"Operation-Id": "9511969e-f1e3-4604-9127-05ee16c509ec" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"id": "9511969e-f1e3-4604-9127-05ee16c509ec", | ||
"status": "NotStarted", | ||
"error": { | ||
"code": "string", | ||
"message": "string", | ||
"target": "string", | ||
"details": [ | ||
"string" | ||
], | ||
"innererror": { | ||
"code": "string", | ||
"innererror": "string" | ||
} | ||
}, | ||
"result": { | ||
"statusCode": 202 | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ion/cognitiveservices/ContentSafety/examples/2024-09-15-preview/DetectImageIncidents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"title": "Analyze image with image incidents", | ||
"operationId": "ImageOperations_DetectImageIncidents", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"body": { | ||
"image": { | ||
"content": "string" | ||
}, | ||
"incidentNames": [ | ||
"string" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentMatches": [ | ||
{ | ||
"incidentName": "string" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...iveservices/ContentSafety/examples/2024-09-15-preview/DetectProtectedMaterialForCode.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"title": "Detect Protected Material For Code", | ||
"operationId": "TextOperations_DetectCodeProtectedMaterial", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"body": { | ||
"code": "python import pygame pygame.init() win = pygame.display.set_mode((500, 500)) pygame.display.set_caption(My Game) x = 50 y = 50 width = 40 height = 60 vel = 5 run = True while run: pygame.time.delay(100) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False keys = pygame.key.get_pressed() if keys[pygame.K_LEFT] and x > vel: x -= vel if keys[pygame.K_RIGHT] and x < 500 - width - vel: x += vel if keys[pygame.K_UP] and y > vel: y -= vel if keys[pygame.K_DOWN] and y < 500 - height - vel: y += vel win.fill((0, 0, 0)) pygame.draw.rect(win, (255, 0, 0), (x, y, width, height)) pygame.display.update() pygame.quit()" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"protectedMaterialAnalysis": { | ||
"detected": false, | ||
"codeCitations": [ | ||
{ | ||
"license": "NOASSERTION", | ||
"sourceUrls": [ | ||
"https://github.com/kolejny-projekt-z-kck/game-/tree/f134099ce970da951bac9baac83c7885e991c676/ganeee.py", | ||
"https://github.com/Felipe-Velasco/Modulo-Pygame/tree/11490c44a951812dc0c6424b68b1e14fc5cc4c0b/pygame%20basics.py", | ||
"https://github.com/bwootton/firstgame/tree/70d722a6b1ccb79bfa56d9cc69932051848c44bf/jump.py", | ||
"https://github.com/Jason017/Pygame-Learning-Module/tree/17cd69f169d3759e00816ed4a3795dd6db7e157f/pygameModule02.py", | ||
"https://github.com/Coders-Brothers/pygame-tutorial/tree/1b481f5687cdda7c0765089780ef451af6e175cd/lesson-2.py" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...tion/cognitiveservices/ContentSafety/examples/2024-09-15-preview/DetectTextIncidents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"title": "Analyze text with text incidents", | ||
"operationId": "TextOperations_DetectTextIncidents", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"body": { | ||
"text": "string", | ||
"incidentNames": [ | ||
"string" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentMatches": [ | ||
{ | ||
"incidentName": "string" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ication/cognitiveservices/ContentSafety/examples/2024-09-15-preview/GetImageIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"title": "Get details of the given image safety incident", | ||
"operationId": "ImageIncidents_GetIncidents", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "The name of the incident" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentName": "The incident name", | ||
"created": "2024-08-07T03:52:13.913Z", | ||
"lastUpdated": "2024-08-07T03:52:13.913Z" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ognitiveservices/ContentSafety/examples/2024-09-15-preview/GetImageIncidentOperation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"title": "Get details of an image safety incident operation", | ||
"operationId": "ImageIncidentOperation_GetImageIncidentOperation", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"operationId": "string" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "string", | ||
"status": "NotStarted", | ||
"error": { | ||
"code": "string", | ||
"message": "string", | ||
"target": "string", | ||
"details": [ | ||
"string" | ||
], | ||
"innererror": { | ||
"code": "string", | ||
"innererror": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...n/cognitiveservices/ContentSafety/examples/2024-09-15-preview/GetImageIncidentSample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"title": "Get details of a sample with the sample id from the given image safety incident", | ||
"operationId": "ImageIncidents_GetIncidentSample", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "The name of the incident", | ||
"incidentSampleId": "The id of the sample" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentSampleId": "The id of the sample", | ||
"image": { | ||
"content": "base64EncodedImageContent" | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...fication/cognitiveservices/ContentSafety/examples/2024-09-15-preview/GetTextIncident.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"title": "Get details of the given text safety incident", | ||
"operationId": "TextIncidents_GetIncidents", | ||
"parameters": { | ||
"api-version": "2024-09-15-preview", | ||
"incidentName": "The name of the incident" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"incidentName": "The incident name", | ||
"incidentDefinition": "string", | ||
"created": "2024-08-07T03:52:13.913Z", | ||
"lastUpdated": "2024-08-07T03:52:13.913Z" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.