Skip to content

Commit

Permalink
removing business rules(a feature for the future) which was added by … (
Browse files Browse the repository at this point in the history
#15399)

* removing business rules(a feature for the future) which was added by mistake.

* fixing style issues and a typo
  • Loading branch information
ankanjan authored Aug 2, 2021
1 parent f528ab6 commit 14d41c6
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 571 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,254 +161,6 @@
}
}
},
"/businessRules/{businessRuleName}": {
"get": {
"tags": [
"BusinessRule"
],
"description": "Get a business rule model.",
"operationId": "BusinessRules_Get",
"parameters": [
{
"name": "businessRuleName",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/BusinessRule"
}
},
"default": {
"description": "An error response received from the provider.",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
}
},
"x-ms-examples": {
"BusinessRules_Get": {
"$ref": "./examples/BusinessRules_Get.json"
}
}
},
"put": {
"tags": [
"BusinessRule"
],
"description": "Creates or updates a businessRule.",
"operationId": "BusinessRules_CreateOrUpdate",
"parameters": [
{
"name": "businessRuleName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "businessRule",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BusinessRule"
}
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/BusinessRule"
}
},
"default": {
"description": "An error response received from the provider.",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
}
},
"x-ms-examples": {
"BusinessRules_CreateOrUpdate": {
"$ref": "./examples/BusinessRules_CreateOrUpdate.json"
}
}
},
"delete": {
"tags": [
"BusinessRule"
],
"description": "Deletes a BusinessRule resource.",
"operationId": "BusinessRules_Delete",
"parameters": [
{
"name": "businessRuleName",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success"
},
"204": {
"description": "Success"
},
"default": {
"description": "An error response received from the provider.",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
}
},
"x-ms-examples": {
"BusinessRules_Delete": {
"$ref": "./examples/BusinessRules_Delete.json"
}
}
}
},
"/businessRules": {
"get": {
"tags": [
"BusinessRule"
],
"description": "List the businessRules in the account.",
"operationId": "BusinessRules_ListByAccount",
"parameters": [
{
"$ref": "#/parameters/api-version"
},
{
"name": "metadataOnly",
"in": "query",
"required": false,
"type": "boolean",
"default": false
},
{
"name": "$skipToken",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/BusinessRuleList"
}
},
"default": {
"description": "An error response received from the provider.",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"BusinessRules_ListByAccount": {
"$ref": "./examples/BusinessRules_ListByAccount.json"
}
}
}
},
"/businessRules/{businessRuleName}/enable": {
"post": {
"tags": [
"BusinessRule"
],
"description": "Enables a BusinessRule.",
"operationId": "BusinessRules_Enable",
"parameters": [
{
"name": "businessRuleName",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/BusinessRule"
}
},
"default": {
"description": "An error response received from the provider.",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
}
},
"x-ms-examples": {
"BusinessRules_Enable": {
"$ref": "./examples/BusinessRules_Enable.json"
}
}
}
},
"/businessRules/{businessRuleName}/disable": {
"post": {
"tags": [
"BusinessRule"
],
"description": "Disables a BusinessRule.",
"operationId": "BusinessRules_Disable",
"parameters": [
{
"name": "businessRuleName",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/BusinessRule"
}
},
"default": {
"description": "An error response received from the provider.",
"schema": {
"$ref": "#/definitions/ErrorResponseModel"
}
}
},
"x-ms-examples": {
"BusinessRules_Disable": {
"$ref": "./examples/BusinessRules_Disable.json"
}
}
}
},
"/collections/{collectionName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1291,127 +1043,6 @@
}
}
},
"BusinessRule": {
"description": "Filter resource",
"type": "object",
"properties": {
"businessRuleMetadata": {
"$ref": "#/definitions/BusinessRuleMetadata",
"description": "Gets or sets the properties."
},
"name": {
"description": "Gets or sets the name.",
"type": "string"
},
"ruleJson": {
"description": "Gets or sets the actual rule json as a string.",
"type": "string"
}
}
},
"BusinessRuleMetadata": {
"description": "The business rule properties",
"type": "object",
"properties": {
"catalogId": {
"description": "Gets or sets the catalog id associated with the business rule.",
"type": "string",
"readOnly": true
},
"createdBy": {
"description": "Gets or sets the creator of the business rule.",
"type": "string",
"readOnly": true
},
"createTimestamp": {
"format": "date-time",
"description": "Gets or sets the create timestamp of the business rule.",
"type": "string",
"readOnly": true
},
"description": {
"description": "Gets or sets the description of the business rule.",
"type": "string"
},
"expirationTimestamp": {
"format": "date-time",
"description": "Gets or sets the expiration time stamp of the business rule.",
"type": "string"
},
"friendlyName": {
"description": "Gets or sets the friendly name of the business rule.",
"type": "string"
},
"lastModifiedTimestamp": {
"format": "date-time",
"description": "Gets or sets the last modified timestamp of the business rule.",
"type": "string",
"readOnly": true
},
"modifiedBy": {
"description": "Gets or sets the modifier of the business rule.",
"type": "string",
"readOnly": true
},
"name": {
"description": "Gets or sets the name of the business rule.",
"type": "string",
"readOnly": true
},
"rank": {
"format": "int32",
"description": "Gets or sets the rank of the business rule.",
"type": "integer"
},
"ruleStatus": {
"description": "Gets or sets the status of the business rule.",
"enum": [
"Unknown",
"Draft",
"Enabled",
"Disabled",
"Expired"
],
"type": "string",
"x-ms-enum": {
"name": "ruleStatus",
"modelAsString": true
}
},
"version": {
"format": "int32",
"description": "Gets or sets the version of the business rule.",
"type": "integer",
"readOnly": true
}
}
},
"BusinessRuleList": {
"description": "Paged list of business rules",
"required": [
"value"
],
"type": "object",
"properties": {
"count": {
"format": "int64",
"description": "Total item count.",
"type": "integer"
},
"nextLink": {
"description": "The Url of next result page.",
"type": "string"
},
"value": {
"description": "Collection of items of type results.",
"uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/BusinessRule"
}
}
}
},
"Collection": {
"description": "Collection resource.",
"type": "object",
Expand Down
Loading

0 comments on commit 14d41c6

Please sign in to comment.