From 215f002e4625aef0292eddf444c632bc0519d521 Mon Sep 17 00:00:00 2001 From: Aakash Saini Date: Thu, 13 Oct 2022 22:16:12 +0530 Subject: [PATCH] Update databox.json --- .../stable/2022-09-01/databox.json | 288 ++++++++++++++++++ 1 file changed, 288 insertions(+) diff --git a/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-09-01/databox.json b/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-09-01/databox.json index 63e86560d98d..bf5c652e3cb7 100644 --- a/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-09-01/databox.json +++ b/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-09-01/databox.json @@ -868,6 +868,193 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/eventGridFilters": { + "get": { + "tags": [ + "EventGridSubscription" + ], + "description": "Gets the list of event grid filter subscriptions for a job", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/jobNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/EventGridSubscription" + } + } + }, + "default": { + "description": "Error response describing reason for operation failure.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/eventGridFilters/{eventGridFilterName}": { + "put": { + "tags": [ + "EventGridSubscription" + ], + "description": "Updates a event grid filter subscription for this service", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "eventGridFilterName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/jobNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request body", + "schema": { + "$ref": "#/definitions/EventGridSubscription" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/EventGridSubscription" + } + }, + "default": { + "description": "Error response describing reason for operation failure.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + } + }, + "get": { + "tags": [ + "EventGridSubscription" + ], + "description": "Gets a event grid filter subscription for this service", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "eventGridFilterName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/jobNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/EventGridSubscription" + } + }, + "default": { + "description": "Error response describing reason for operation failure.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + } + }, + "delete": { + "tags": [ + "EventGridSubscription" + ], + "description": "Deletes a event grid filter subscription for this service", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "eventGridFilterName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/jobNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/EventGridSubscription" + } + }, + "default": { + "description": "Error response describing reason for operation failure.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials": { "post": { "tags": [ @@ -3477,6 +3664,107 @@ } } }, + "EventGridFilterNotificationProperties": { + "type": "object", + "properties": { + "filter": { + "$ref": "#/definitions/EventGridFilterProperties" + }, + "subscriberIdentityInfo": { + "$ref": "#/definitions/EventGridFilterSubscriberIdentityInfo" + }, + "provisioningState": { + "format": "int32", + "enum": [ + "Succeeded", + "Canceled", + "Failed", + "Pending" + ], + "type": "integer", + "x-ms-enum": { + "name ": "EventGridFilterNotificationProvisioningState", + "modelAsExtensible": true, + "values": [ + { + "value": "Succeeded", + "description": "Provisioning has succeeded" + }, + { + "value": "Canceled", + "description": "Provisioning has been canceled" + }, + { + "value": "Failed", + "description": "Provisioning has failed" + }, + { + "value": "Pending", + "description": "Provisioning is pending" + } + ] + } + } + }, + "additionalProperties": false + }, + "EventGridFilterProperties": { + "type": "object", + "properties": { + "subjectBeginsWith": { + "type": "string" + }, + "subjectEndsWith": { + "type": "string" + }, + "includedEventTypes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "EventGridFilterSubscriberIdentityInfo": { + "type": "object", + "properties": { + "clientPrincipalId": { + "type": "string" + }, + "clientObjectId": { + "type": "string" + }, + "clientTenantId": { + "type": "string" + }, + "clientApplicationId": { + "type": "string" + }, + "clientAuthorizationSource": { + "type": "string" + } + }, + "additionalProperties": false + }, + "EventGridSubscription": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "properties": { + "$ref": "#/definitions/EventGridFilterNotificationProperties" + } + }, + "additionalProperties": false + }, "FilterFileDetails": { "description": "Details of the filter files to be used for data transfer.", "required": [