Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing business rules(a feature for the future) which was added by … #15399

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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