Skip to content
Merged
Prev Previous commit
Next Next commit
Removing restorable dropped database swagger
  • Loading branch information
adeal committed Apr 16, 2018
commit e76a5131adbb5ecbdee1e20f7df460d81ac8ba32
Original file line number Diff line number Diff line change
Expand Up @@ -16,250 +16,6 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}": {
"get": {
"tags": [
"RestorableDroppedDatabaseShortTermRetentionPolicies"
],
"description": "Gets a dropped database's short term retention policy.",
"operationId": "RestorableDroppedDatabaseShortTermRetentionPolicies_Get",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "restorableDroppedDatabaseId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "policyName",
"in": "path",
"description": "The policy name. Should always be \"default\".",
"required": true,
"type": "string",
"enum": [
"default"
],
"x-ms-enum": {
"name": "ShortTermRetentionPolicyName",
"modelAsString": true
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the policies.",
"schema": {
"$ref": "#/definitions/ShortTermRetentionPolicy"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."
}
},
"x-ms-examples": {
"Get the short term retention policy for the database.": {
"$ref": "./examples/GetShortTermRetentionPolicyRestorableDropped.json"
}
}
},
"put": {
"tags": [
"RestorableDroppedDatabaseShortTermRetentionPolicies"
],
"description": "Sets a database's long term retention policy.",
"operationId": "RestorableDroppedDatabaseShortTermRetentionPolicies_CreateOrUpdate",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "restorableDroppedDatabaseId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "policyName",
"in": "path",
"description": "The policy name. Should always be \"default\".",
"required": true,
"type": "string",
"enum": [
"default"
],
"x-ms-enum": {
"name": "ShortTermRetentionPolicyName",
"modelAsString": true
}
},
{
"name": "parameters",
"in": "body",
"description": "The long term retention policy info.",
"required": true,
"schema": {
"$ref": "#/definitions/ShortTermRetentionPolicy"
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully updated the policy.",
"schema": {
"$ref": "#/definitions/ShortTermRetentionPolicy"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 403 UpdateShortTermRetentionFeatureNotSupportedForEdition - This feature is not available for the selected database's edition {0}.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Update the short term retention policy for the restorable dropped database.": {
"$ref": "./examples/UpdateShortTermRetentionPolicyRestorableDropped.json"
}
}
},
"patch": {
"tags": [
"RestorableDroppedDatabaseShortTermRetentionPolicies"
],
"description": "Sets a database's long term retention policy.",
"operationId": "RestorableDroppedDatabaseShortTermRetentionPolicies_Update",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "restorableDroppedDatabaseId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "policyName",
"in": "path",
"description": "The policy name. Should always be \"default\".",
"required": true,
"type": "string",
"enum": [
"default"
],
"x-ms-enum": {
"name": "ShortTermRetentionPolicyName",
"modelAsString": true
}
},
{
"name": "parameters",
"in": "body",
"description": "The long term retention policy info.",
"required": true,
"schema": {
"$ref": "#/definitions/ShortTermRetentionPolicy"
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully updated the policy.",
"schema": {
"$ref": "#/definitions/ShortTermRetentionPolicy"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 403 UpdateShortTermRetentionFeatureNotSupportedForEdition - This feature is not available for the selected database's edition {0}.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Update the short term retention policy for the restorable dropped database.": {
"$ref": "./examples/UpdateShortTermRetentionPolicyRestorableDropped.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies": {
"get": {
"tags": [
"RestorableDroppedDatabaseShortTermRetentionPolicies"
],
"description": "Gets a dropped database's short term retention policy.",
"operationId": "RestorableDroppedDatabaseShortTermRetentionPolicies_ListByRestorableDroppedDatabase",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "restorableDroppedDatabaseId",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the policies.",
"schema": {
"$ref": "#/definitions/ShortTermRetentionPolicy"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."
}
},
"x-ms-examples": {
"Get the short term retention policy for the database.": {
"$ref": "./examples/GetShortTermRetentionPolicyRestorableDropped.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}": {
"get": {
"tags": [
Expand Down