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

add 2024-10-01-preview version for soft delete types on ms resources #31338

Closed
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ba0456d
add 2024-10-01-preview version for soft delete types on ms resources
vivektherala Oct 30, 2024
ed84975
fix spell checks
vivektherala Oct 30, 2024
cf71c32
fix semantic validation
vivektherala Oct 30, 2024
d0bcf5c
remove duplicate operationid
vivektherala Oct 30, 2024
5ec2398
fix case sensitivity
vivektherala Oct 31, 2024
79c39d5
add extra new line
vivektherala Oct 31, 2024
0a5858a
fix casing
vivektherala Oct 31, 2024
2aeb727
fix formatting
vivektherala Oct 31, 2024
aaf00b9
remove root verb
vivektherala Oct 31, 2024
28ec0f8
remove request verb
vivektherala Oct 31, 2024
30c1f0a
update uri in id
vivektherala Oct 31, 2024
9cecf4b
adding prettier changes
vivektherala Nov 4, 2024
a27d552
update readme file
vivektherala Nov 4, 2024
b3ed087
remove deleteoptions properties
vivektherala Nov 4, 2024
c1f6068
Revert "remove deleteoptions properties"
vivektherala Nov 4, 2024
0574adf
add properties to deleteoptions examples
vivektherala Nov 4, 2024
fcd0fde
add properties to deletedresources example
vivektherala Nov 4, 2024
ae2cb9e
add properties to deleted resources
vivektherala Nov 5, 2024
cdc0b5e
fix typo in file name
vivektherala Nov 5, 2024
68af053
fix modelvalidation issues
vivektherala Nov 5, 2024
4e71821
fix typo
vivektherala Nov 5, 2024
e963b1f
fix resource group name
vivektherala Nov 5, 2024
4ed146d
fix case sensitivity
vivektherala Nov 5, 2024
3ccde77
fix lint issues
vivektherala Nov 5, 2024
323bb3a
update lint errors
vivektherala Nov 5, 2024
be13b30
use v5 version
vivektherala Nov 5, 2024
a800b23
fix lint issues
vivektherala Nov 5, 2024
fd955b9
add operations list
vivektherala Nov 6, 2024
a6463e8
Merge branch 'main' into add-2024-10-01-preview-for-softdeletetypes-m…
vivektherala Nov 6, 2024
cb60a52
run prettier check
vivektherala Nov 6, 2024
1af982e
Merge branch 'add-2024-10-01-preview-for-softdeletetypes-ms.resources…
vivektherala Nov 6, 2024
7b17d39
run prettier
vivektherala Nov 6, 2024
be2f27e
remove location from delete options definition
vivektherala Nov 7, 2024
3ceebc8
update resource name pattern
vivektherala Nov 8, 2024
6975903
update resource name in deleteoptions
vivektherala Nov 8, 2024
5331884
removed get deleted resources at scope
vivektherala Nov 11, 2024
a8c6e5e
adding missed parameter
vivektherala Nov 11, 2024
66a6584
run prettier
vivektherala Nov 11, 2024
79102d8
remove duplicate operation id
vivektherala Nov 11, 2024
fd37e3b
remove extra hyphens
vivektherala Nov 12, 2024
7306b4b
add supression for readme file
vivektherala Nov 12, 2024
c1c4e49
update operation ids
vivektherala Nov 12, 2024
c987c89
add arm-id format to resourceids
vivektherala Nov 14, 2024
f874a5a
remove redundant properties in both definitions
vivektherala Nov 19, 2024
ddff85d
Merge branch 'main' into add-2024-10-01-preview-for-softdeletetypes-m…
vivektherala Nov 19, 2024
5353b14
remove arm-id format and remove redundant properties from deleteoptions
vivektherala Nov 19, 2024
5dea9dc
Merge branch 'main' into add-2024-10-01-preview-for-softdeletetypes-m…
vivektherala Nov 21, 2024
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
@@ -0,0 +1,303 @@
{
"swagger": "2.0",
"info": {
"version": "2024-10-01-preview",
"title": "DeleteOptions",
"description": "Provides APIs for delete options resource type."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/Microsoft.Resources/operations": {
"get": {
"tags": [
"Operations"
],
"operationId": "DeleteOptionsOperations_List",
"description": "Lists all of the available Microsoft.Resources REST API operations.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Operation List": {
"$ref": "./examples/DeleteOptionsOperations_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/deleteOptions/default": {
"put": {
"tags": [
"DeleteOptions"
],
"operationId": "DeleteOptions_Create",
"description": "Create delete options resource.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/resourceProviderNamespaceParameter"
},
{
"$ref": "#/parameters/resourceTypeParameter"
},
{
"$ref": "#/parameters/resourceNameParameter"
},
{
"name": "deleteOptionsDefinition",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/DeleteOptionsDefinition"
},
"description": "The definition to create deleteOptions resource."
}
],
"x-ms-examples": {
"create delete options object": {
"$ref": "./examples/CreateOrUpdateDeleteOptions.json"
}
},
"responses": {
"201": {
"description": "Created -- Delete Options created.",
"schema": {
"$ref": "#/definitions/DeleteOptionsDefinition"
}
},
"200": {
"description": "OK - Returns the delete options definition.",
"schema": {
"$ref": "#/definitions/DeleteOptionsDefinition"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
}
},
"get": {
"tags": [
"DeleteOptions"
],
"operationId": "DeleteOptions_Get",
"description": "Get delete options of resource.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/resourceProviderNamespaceParameter"
},
{
"$ref": "#/parameters/resourceTypeParameter"
},
{
"$ref": "#/parameters/resourceNameParameter"
}
],
"x-ms-examples": {
"Get delete options": {
"$ref": "./examples/GetDeleteOptions.json"
}
},
"responses": {
"200": {
"description": "OK - Returns the delete options response definition.",
"schema": {
"$ref": "#/definitions/DeleteOptionsDefinition"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
}
},
"delete": {
"tags": [
"DeleteOptions"
],
"operationId": "DeleteOptions_Delete",
"description": "Delete delete options of resource.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/resourceProviderNamespaceParameter"
},
{
"$ref": "#/parameters/resourceTypeParameter"
},
{
"$ref": "#/parameters/resourceNameParameter"
}
],
"x-ms-examples": {
"Delete DeleteOptions": {
"$ref": "./examples/DeleteDeleteOptions.json"
}
},
"responses": {
"200": {
"description": "OK - Delete Options deleted."
},
"204": {
"description": "Delete Options does not exist."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"DeleteOptionsDefinition": {
"description": "A delete options response definition.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/DeleteOptionsProperties"
}
}
},
"DeleteOptionsProperties": {
"type": "object",
"description": "Delete option properties",
"properties": {
"deleteOptionsId": {
"type": "string",
"readOnly": true,
"description": "A unique GUID representing delete options."
},
"subscriptionId": {
vivektherala marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"readOnly": true,
"description": "The Azure subscription ID"
},
"resourceGroup": {
"type": "string",
"readOnly": true,
"description": "The name of the resource group. The name is case insensitive."
},
"retentionTime": {
"type": "string",
"description": "ISO 8601 duration format (e.g., P3Y6M4DT12H30M5S)"
},
"resourceId": {
"type": "string",
vivektherala marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"description": "The resource id of the delete options"
}
}
}
},
"parameters": {
"resourceProviderNamespaceParameter": {
"name": "resourceProviderNamespace",
"in": "path",
"required": true,
"type": "string",
"description": "The provider namespace.",
"x-ms-parameter-location": "method"
},
"resourceTypeParameter": {
"name": "resourceType",
"in": "path",
"required": true,
"type": "string",
"description": "The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).",
"x-ms-skip-url-encoding": true
},
"resourceNameParameter": {
"name": "resourceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource.",
"pattern": "^[a-z][a-z0-9]*$",
"minLength": 3,
"maxLength": 63
}
}
}
Loading
Loading