Skip to content

Commit

Permalink
Merge branch 'aacs-preview-20240915' into yuxiaowang/blocklist
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayaka-4987 committed Aug 8, 2024
2 parents 175eb24 + 2876acb commit ba4ec2b
Show file tree
Hide file tree
Showing 63 changed files with 6,122 additions and 23 deletions.
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"
}
]
}
}
}
}
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"
}
]
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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": {}
}
}
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": {}
}
}
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
}
}
}
}
}
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
}
}
}
}
}
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"
}
]
}
}
}
}
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"
]
}
]
}
}
}
}
}
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"
}
]
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
}
}
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"
}
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit ba4ec2b

Please sign in to comment.