From e26ebc8218ee0d1aed51c35567185845171c8c48 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:38:39 -0700 Subject: [PATCH 01/13] Create 2022-05-01 --- .../Microsoft.Resources/stable/2022-05-01 | 425 ++++++++++++++++++ 1 file changed, 425 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 new file mode 100644 index 000000000000..44a669ef67a1 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 @@ -0,0 +1,425 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ChangesClient", + "description": "The Resource Changes Client" + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes": { + "get": { + "tags": [ + "ListChanges" + ], + "operationId": "Changes_List", + "x-ms-examples": { + "ListChanges": { + "$ref": "./examples/ListChanges.json" + } + }, + "description": "Obtains a list of change resources from the past 14 days for the target resource", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceProviderNamespaceParameter" + }, + { + "$ref": "#/parameters/ResourceTypeParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/$top" + }, + { + "$ref": "#/parameters/$skipToken" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ChangeResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}": { + "get": { + "tags": [ + "GetChange" + ], + "operationId": "Changes_Get", + "x-ms-examples": { + "GetChange": { + "$ref": "./examples/GetChange.json" + } + }, + "description": "Obtains the specified change resource for the target resource", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceProviderNamespaceParameter" + }, + { + "$ref": "#/parameters/ResourceTypeParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ChangeResourceIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ChangeResourceResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ChangeResourceListResult": { + "description": "The list of resources", + "type": "object", + "properties": { + "nextLink": { + "type": "string", + "description": "The link used to get the next page of Change Resources" + }, + "value": { + "description": "The list of resources", + "type": "array", + "items": { + "$ref": "#/definitions/ChangeResourceResult" + } + } + } + }, + "ChangeResourceResult": { + "description": "Change Resource", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ChangeProperties" + } + } + }, + "ChangeProperties": { + "description": "The properties of a change", + "type": "object", + "properties": { + "targetResourceId": { + "description": "The fully qualified ID of the target resource that was changed", + "type": "string", + "readOnly": true + }, + "targetResourceType": { + "description": "The namespace and type of the resource", + "type": "string", + "readOnly": true + }, + "changeType": { + "description": "The type of change that was captured in the resource", + "type": "string", + "readOnly": true, + "enum": [ + "Update", + "Delete", + "Create" + ], + "x-ms-enum": { + "name": "ChangeType", + "modelAsString": false, + "values": [ + { + "value": "Update", + "description": "An existing resource underwent a change", + "name": "Update" + }, + { + "value": "Delete", + "description": "An existing resource was deleted", + "name": "Update" + }, + { + "value": "Create", + "description": "A newly created resource", + "name": "Create" + } + ] + } + }, + "changeAttributes": { + "$ref": "#/definitions/ChangeAttributes" + }, + "changes": { + "$ref": "#/definitions/ChangesDictionary" + } + } + }, + "ChangeAttributes": { + "description": "Details about the change resource", + "type": "object", + "properties": { + "correlationId": { + "description": "The ARM correlation ID of the change resource", + "type": "string", + "readOnly": true + }, + "timestamp": { + "description": "The time the change(s) on the target resource ocurred", + "type": "string", + "readOnly": true + }, + "changesCount": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The number of changes this resource captures" + }, + "previousResourceSnapshotId": { + "description": "The GUID of the previous snapshot", + "type": "string", + "readOnly": true + }, + "newResourceSnapshotId": { + "description": "The GUID of the new snapshot", + "type": "string", + "readOnly": true + } + } + }, + "ChangesDictionary": { + "description": "A dictionary with changed property name as a key and the change details as the value", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChangeBase" + } + }, + "ChangeBase": { + "description": "An individual change on the target resource", + "type": "object", + "properties": { + "propertyChangeType": { + "description": "The type of change that occurred", + "type": "string", + "readOnly": true, + "enum": [ + "Insert", + "Update", + "Remove" + ], + "x-ms-enum": { + "name": "PropertyChangeType", + "modelAsString": false, + "values": [ + { + "value": "Update", + "description": "An existing property underwent a change", + "name": "Update" + }, + { + "value": "Insert", + "description": "A property was newly created", + "name": "Insert" + }, + { + "value": "Remove", + "description": "An existing property was deleted", + "name": "Remove" + } + ] + } + }, + "changeCategory": { + "description": "The entity that made the change", + "type": "string", + "readOnly": true, + "enum": [ + "User", + "System", + "Create" + ], + "x-ms-enum": { + "name": "ChangeCategory", + "modelAsString": false, + "values": [ + { + "value": "User", + "description": "User initiated change", + "name": "User" + }, + { + "value": "System", + "description": "System initiated change", + "name": "System" + }, + { + "value": "Create", + "description": "A newly created resource", + "name": "Create" + } + ] + } + }, + "previousValue": { + "description": "The target resource property value before the change", + "type": "string", + "readOnly": true + }, + "newValue": { + "description": "The target resource property value after the change", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceProviderNamespaceParameter": { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource provider namespace.", + "x-ms-parameter-location": "method" + }, + "ResourceTypeParameter": { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource type.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "ChangeResourceIdParameter": { + "name": "changeResourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the change resource", + "x-ms-parameter-location": "method" + }, + "$top": { + "required": false, + "default": 100, + "description": "(Optional) Set the maximum number of results per response.", + "in": "query", + "maximum": 100, + "minimum": 1, + "name": "$top", + "type": "integer", + "format": "int64", + "x-ms-parameter-location": "method" + }, + "$skipToken": { + "required": false, + "description": "(Optional) The page-continuation token", + "in": "query", + "name": "$skipToken", + "type": "string", + "x-ms-parameter-location": "method" + } + } +} From ec81f723410a3c693a567051dcfb165bf1dd90b5 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:40:20 -0700 Subject: [PATCH 02/13] Delete 2022-05-01 --- .../Microsoft.Resources/stable/2022-05-01 | 425 ------------------ 1 file changed, 425 deletions(-) delete mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 deleted file mode 100644 index 44a669ef67a1..000000000000 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01 +++ /dev/null @@ -1,425 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-05-01", - "title": "ChangesClient", - "description": "The Resource Changes Client" - }, - "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": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes": { - "get": { - "tags": [ - "ListChanges" - ], - "operationId": "Changes_List", - "x-ms-examples": { - "ListChanges": { - "$ref": "./examples/ListChanges.json" - } - }, - "description": "Obtains a list of change resources from the past 14 days for the target resource", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceProviderNamespaceParameter" - }, - { - "$ref": "#/parameters/ResourceTypeParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/$top" - }, - { - "$ref": "#/parameters/$skipToken" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/ChangeResourceListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}": { - "get": { - "tags": [ - "GetChange" - ], - "operationId": "Changes_Get", - "x-ms-examples": { - "GetChange": { - "$ref": "./examples/GetChange.json" - } - }, - "description": "Obtains the specified change resource for the target resource", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceProviderNamespaceParameter" - }, - { - "$ref": "#/parameters/ResourceTypeParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ChangeResourceIdParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/ChangeResourceResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "ChangeResourceListResult": { - "description": "The list of resources", - "type": "object", - "properties": { - "nextLink": { - "type": "string", - "description": "The link used to get the next page of Change Resources" - }, - "value": { - "description": "The list of resources", - "type": "array", - "items": { - "$ref": "#/definitions/ChangeResourceResult" - } - } - } - }, - "ChangeResourceResult": { - "description": "Change Resource", - "type": "object", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ChangeProperties" - } - } - }, - "ChangeProperties": { - "description": "The properties of a change", - "type": "object", - "properties": { - "targetResourceId": { - "description": "The fully qualified ID of the target resource that was changed", - "type": "string", - "readOnly": true - }, - "targetResourceType": { - "description": "The namespace and type of the resource", - "type": "string", - "readOnly": true - }, - "changeType": { - "description": "The type of change that was captured in the resource", - "type": "string", - "readOnly": true, - "enum": [ - "Update", - "Delete", - "Create" - ], - "x-ms-enum": { - "name": "ChangeType", - "modelAsString": false, - "values": [ - { - "value": "Update", - "description": "An existing resource underwent a change", - "name": "Update" - }, - { - "value": "Delete", - "description": "An existing resource was deleted", - "name": "Update" - }, - { - "value": "Create", - "description": "A newly created resource", - "name": "Create" - } - ] - } - }, - "changeAttributes": { - "$ref": "#/definitions/ChangeAttributes" - }, - "changes": { - "$ref": "#/definitions/ChangesDictionary" - } - } - }, - "ChangeAttributes": { - "description": "Details about the change resource", - "type": "object", - "properties": { - "correlationId": { - "description": "The ARM correlation ID of the change resource", - "type": "string", - "readOnly": true - }, - "timestamp": { - "description": "The time the change(s) on the target resource ocurred", - "type": "string", - "readOnly": true - }, - "changesCount": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "The number of changes this resource captures" - }, - "previousResourceSnapshotId": { - "description": "The GUID of the previous snapshot", - "type": "string", - "readOnly": true - }, - "newResourceSnapshotId": { - "description": "The GUID of the new snapshot", - "type": "string", - "readOnly": true - } - } - }, - "ChangesDictionary": { - "description": "A dictionary with changed property name as a key and the change details as the value", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChangeBase" - } - }, - "ChangeBase": { - "description": "An individual change on the target resource", - "type": "object", - "properties": { - "propertyChangeType": { - "description": "The type of change that occurred", - "type": "string", - "readOnly": true, - "enum": [ - "Insert", - "Update", - "Remove" - ], - "x-ms-enum": { - "name": "PropertyChangeType", - "modelAsString": false, - "values": [ - { - "value": "Update", - "description": "An existing property underwent a change", - "name": "Update" - }, - { - "value": "Insert", - "description": "A property was newly created", - "name": "Insert" - }, - { - "value": "Remove", - "description": "An existing property was deleted", - "name": "Remove" - } - ] - } - }, - "changeCategory": { - "description": "The entity that made the change", - "type": "string", - "readOnly": true, - "enum": [ - "User", - "System", - "Create" - ], - "x-ms-enum": { - "name": "ChangeCategory", - "modelAsString": false, - "values": [ - { - "value": "User", - "description": "User initiated change", - "name": "User" - }, - { - "value": "System", - "description": "System initiated change", - "name": "System" - }, - { - "value": "Create", - "description": "A newly created resource", - "name": "Create" - } - ] - } - }, - "previousValue": { - "description": "The target resource property value before the change", - "type": "string", - "readOnly": true - }, - "newValue": { - "description": "The target resource property value after the change", - "type": "string", - "readOnly": true - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "ResourceProviderNamespaceParameter": { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource provider namespace.", - "x-ms-parameter-location": "method" - }, - "ResourceTypeParameter": { - "name": "resourceType", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource type.", - "x-ms-parameter-location": "method" - }, - "ResourceNameParameter": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." - }, - "ChangeResourceIdParameter": { - "name": "changeResourceId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the change resource", - "x-ms-parameter-location": "method" - }, - "$top": { - "required": false, - "default": 100, - "description": "(Optional) Set the maximum number of results per response.", - "in": "query", - "maximum": 100, - "minimum": 1, - "name": "$top", - "type": "integer", - "format": "int64", - "x-ms-parameter-location": "method" - }, - "$skipToken": { - "required": false, - "description": "(Optional) The page-continuation token", - "in": "query", - "name": "$skipToken", - "type": "string", - "x-ms-parameter-location": "method" - } - } -} From d6a6a93afe3684b4c58d850c53faa60bf4b99833 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:41:19 -0700 Subject: [PATCH 03/13] Create changes.json --- .../stable/2022-05-01/changes.json | 425 ++++++++++++++++++ 1 file changed, 425 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json new file mode 100644 index 000000000000..44a669ef67a1 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json @@ -0,0 +1,425 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-01", + "title": "ChangesClient", + "description": "The Resource Changes Client" + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes": { + "get": { + "tags": [ + "ListChanges" + ], + "operationId": "Changes_List", + "x-ms-examples": { + "ListChanges": { + "$ref": "./examples/ListChanges.json" + } + }, + "description": "Obtains a list of change resources from the past 14 days for the target resource", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceProviderNamespaceParameter" + }, + { + "$ref": "#/parameters/ResourceTypeParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/$top" + }, + { + "$ref": "#/parameters/$skipToken" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ChangeResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}": { + "get": { + "tags": [ + "GetChange" + ], + "operationId": "Changes_Get", + "x-ms-examples": { + "GetChange": { + "$ref": "./examples/GetChange.json" + } + }, + "description": "Obtains the specified change resource for the target resource", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceProviderNamespaceParameter" + }, + { + "$ref": "#/parameters/ResourceTypeParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ChangeResourceIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ChangeResourceResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "ChangeResourceListResult": { + "description": "The list of resources", + "type": "object", + "properties": { + "nextLink": { + "type": "string", + "description": "The link used to get the next page of Change Resources" + }, + "value": { + "description": "The list of resources", + "type": "array", + "items": { + "$ref": "#/definitions/ChangeResourceResult" + } + } + } + }, + "ChangeResourceResult": { + "description": "Change Resource", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ChangeProperties" + } + } + }, + "ChangeProperties": { + "description": "The properties of a change", + "type": "object", + "properties": { + "targetResourceId": { + "description": "The fully qualified ID of the target resource that was changed", + "type": "string", + "readOnly": true + }, + "targetResourceType": { + "description": "The namespace and type of the resource", + "type": "string", + "readOnly": true + }, + "changeType": { + "description": "The type of change that was captured in the resource", + "type": "string", + "readOnly": true, + "enum": [ + "Update", + "Delete", + "Create" + ], + "x-ms-enum": { + "name": "ChangeType", + "modelAsString": false, + "values": [ + { + "value": "Update", + "description": "An existing resource underwent a change", + "name": "Update" + }, + { + "value": "Delete", + "description": "An existing resource was deleted", + "name": "Update" + }, + { + "value": "Create", + "description": "A newly created resource", + "name": "Create" + } + ] + } + }, + "changeAttributes": { + "$ref": "#/definitions/ChangeAttributes" + }, + "changes": { + "$ref": "#/definitions/ChangesDictionary" + } + } + }, + "ChangeAttributes": { + "description": "Details about the change resource", + "type": "object", + "properties": { + "correlationId": { + "description": "The ARM correlation ID of the change resource", + "type": "string", + "readOnly": true + }, + "timestamp": { + "description": "The time the change(s) on the target resource ocurred", + "type": "string", + "readOnly": true + }, + "changesCount": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The number of changes this resource captures" + }, + "previousResourceSnapshotId": { + "description": "The GUID of the previous snapshot", + "type": "string", + "readOnly": true + }, + "newResourceSnapshotId": { + "description": "The GUID of the new snapshot", + "type": "string", + "readOnly": true + } + } + }, + "ChangesDictionary": { + "description": "A dictionary with changed property name as a key and the change details as the value", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChangeBase" + } + }, + "ChangeBase": { + "description": "An individual change on the target resource", + "type": "object", + "properties": { + "propertyChangeType": { + "description": "The type of change that occurred", + "type": "string", + "readOnly": true, + "enum": [ + "Insert", + "Update", + "Remove" + ], + "x-ms-enum": { + "name": "PropertyChangeType", + "modelAsString": false, + "values": [ + { + "value": "Update", + "description": "An existing property underwent a change", + "name": "Update" + }, + { + "value": "Insert", + "description": "A property was newly created", + "name": "Insert" + }, + { + "value": "Remove", + "description": "An existing property was deleted", + "name": "Remove" + } + ] + } + }, + "changeCategory": { + "description": "The entity that made the change", + "type": "string", + "readOnly": true, + "enum": [ + "User", + "System", + "Create" + ], + "x-ms-enum": { + "name": "ChangeCategory", + "modelAsString": false, + "values": [ + { + "value": "User", + "description": "User initiated change", + "name": "User" + }, + { + "value": "System", + "description": "System initiated change", + "name": "System" + }, + { + "value": "Create", + "description": "A newly created resource", + "name": "Create" + } + ] + } + }, + "previousValue": { + "description": "The target resource property value before the change", + "type": "string", + "readOnly": true + }, + "newValue": { + "description": "The target resource property value after the change", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceProviderNamespaceParameter": { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource provider namespace.", + "x-ms-parameter-location": "method" + }, + "ResourceTypeParameter": { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource type.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "ChangeResourceIdParameter": { + "name": "changeResourceId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the change resource", + "x-ms-parameter-location": "method" + }, + "$top": { + "required": false, + "default": 100, + "description": "(Optional) Set the maximum number of results per response.", + "in": "query", + "maximum": 100, + "minimum": 1, + "name": "$top", + "type": "integer", + "format": "int64", + "x-ms-parameter-location": "method" + }, + "$skipToken": { + "required": false, + "description": "(Optional) The page-continuation token", + "in": "query", + "name": "$skipToken", + "type": "string", + "x-ms-parameter-location": "method" + } + } +} From 0e6773027303e051bb625e86ca2a6607ce6e9b64 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:42:15 -0700 Subject: [PATCH 04/13] Create GetChange.json --- .../stable/2022-05-01/examples/GetChange.json | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/GetChange.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/GetChange.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/GetChange.json new file mode 100644 index 000000000000..777b2d9306e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/GetChange.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId1", + "resourceGroupName": "resourceGroup1", + "resourceProviderNamespace": "resourceProvider1", + "resourceType": "resourceType1", + "resourceName": "resourceName1", + "api-version": "2022-05-01", + "changeResourceId": "1d58d72f-0719-4a48-9228-b7ea682885bf" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/Microsoft.Resources/changes/1d58d72f-0719-4a48-9228-b7ea682885bf", + "name": "1d58d72f-0719-4a48-9228-b7ea682885bf", + "type": "Microsoft.Resources/changes", + "properties": { + "targetResourceId": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1", + "targetResourceType": "resourceProvider1/resourceType1", + "changeType": "Update", + "changeAttributes": { + "correlationId": "88420d5d-8d0e-471f-9115-10d34750c617", + "timestamp": "2021-11-19T14:29:09.9210000Z", + "changesCount": 2, + "previousResourceSnapshotId": "ed90e35a-1661-42cc-a44c-e27f508005be", + "newResourceSnapshotId": "6eac9d0f-63b4-4e7f-97a5-740c73757efb" + }, + "changes": { + "properties.provisioningState": { + "propertyChangeType": "Update", + "changeCategory": "System", + "previousValue": "Updating", + "newValue": "Succeeded" + }, + "tags.key1": { + "propertyChangeType": "Insert", + "changeCategory": "User", + "previousValue": "null", + "newValue": "someValue" + } + } + } + } + } + } +} From 32eb1110cb6df34a39219808c4ac5c796cb4b5bd Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:43:07 -0700 Subject: [PATCH 05/13] Create ListChanges.json --- .../2022-05-01/examples/ListChanges.json | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/ListChanges.json diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/ListChanges.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/ListChanges.json new file mode 100644 index 000000000000..0d85485364e8 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/ListChanges.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId1", + "resourceGroupName": "resourceGroup1", + "resourceProviderNamespace": "resourceProvider1", + "resourceType": "resourceType1", + "resourceName": "resourceName1", + "api-version": "2022-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/Microsoft.Resources/changes/a9f34285-13a2-e79c-f468-cfb71c7bd227", + "name": "a9f34285-13a2-e79c-f468-cfb71c7bd227", + "type": "Microsoft.Resources/changes", + "properties": { + "targetResourceId": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1", + "targetResourceType": "resourceProvider1/resourceType1", + "changeType": "Update", + "changeAttributes": { + "correlationId": "88420d5d-8d0e-471f-9115-10d34750c617", + "timestamp": "2021-11-19T14:29:09.9210000Z", + "changesCount": 2, + "previousResourceSnapshotId": "ed90e35a-1661-42cc-a44c-e27f508005be", + "newResourceSnapshotId": "6eac9d0f-63b4-4e7f-97a5-740c73757efb" + }, + "changes": { + "properties.provisioningState": { + "propertyChangeType": "Update", + "changeCategory": "System", + "previousValue": "Updating", + "newValue": "Succeeded" + }, + "tags.key1": { + "propertyChangeType": "Insert", + "changeCategory": "User", + "previousValue": "null", + "newValue": "someValue" + } + } + } + }, + { + "id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/Microsoft.Resources/changes/a9f34285-13a2-e79c-f468-cfb71c7bd227", + "name": "a9f34285-13a2-e79c-f468-cfb71c7bd227", + "type": "Microsoft.Resources/changes", + "properties": { + "targetResourceId": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1", + "targetResourceType": "resourceProvider1/resourceType1", + "changeType": "Create", + "changeAttributes": { + "changesCount": 0, + "correlationId": "88420d5d-8d0e-471f-9115-10d34750c617", + "timestamp": "2021-11-19T14:29:09.9210000Z", + "previousResourceSnapshotId": "b09f5e52-0b46-4d13-84a9-08653d39fed6", + "newResourceSnapshotId": "4db20fc0-de17-4cdd-92d8-fd6bf94b9fd9" + }, + "changes": {} + } + } + ] + } + } + } +} From fe975fb1767f2a90ad4a11ab29b318c4636720fe Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:47:14 -0700 Subject: [PATCH 06/13] Update readme.md --- specification/resources/resource-manager/readme.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index ef8774c67853..c33e4d80d38d 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Resource API. ``` yaml openapi-type: arm -tag: package-changes-2022-03-01-preview +tag: package-changes-2022-05-01 ``` ``` yaml $(package-privatelinks) @@ -70,7 +70,15 @@ tag: package-templatespecs-2022-02 ``` ``` yaml $(package-changes) -tag: package-changes-2022-03-01-preview +tag: package-changes-2022-05-01 +``` +### Tag: package-changes-2022-05-01 + +These settings apply only when `--tag=package-changes-2022-05-01` is specified on the command line. + +``` yaml $(tag) == 'package-changes-2022-05-01' +input-file: +- Microsoft.Resources/stable/2022-05-01/changes.json ``` ### Tag: package-changes-2022-03-01-preview From b1aa62ccf16f4c4e86d3233a5a8a8c7cff933a56 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Tue, 19 Apr 2022 23:57:18 -0700 Subject: [PATCH 07/13] Update changes.json --- .../Microsoft.Resources/stable/2022-05-01/changes.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json index 44a669ef67a1..1be4db6b0149 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json @@ -324,11 +324,6 @@ "value": "System", "description": "System initiated change", "name": "System" - }, - { - "value": "Create", - "description": "A newly created resource", - "name": "Create" } ] } From 5538c730cd1187a34b8ca7d75e7bf5f66587a25c Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Wed, 20 Apr 2022 00:07:43 -0700 Subject: [PATCH 08/13] Update readme.md --- specification/resources/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index c33e4d80d38d..f69728bc2a0e 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Resource API. ``` yaml openapi-type: arm -tag: package-changes-2022-05-01 +tag: package-changes-2022-05 ``` ``` yaml $(package-privatelinks) From f8df8b42bb1b88c3142c024a902b6343a227e68d Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Wed, 20 Apr 2022 00:09:52 -0700 Subject: [PATCH 09/13] Update readme.md --- specification/resources/resource-manager/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index f69728bc2a0e..eaf4823ba867 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -70,13 +70,13 @@ tag: package-templatespecs-2022-02 ``` ``` yaml $(package-changes) -tag: package-changes-2022-05-01 +tag: package-changes-2022-05 ``` -### Tag: package-changes-2022-05-01 +### Tag: package-changes-2022-05 -These settings apply only when `--tag=package-changes-2022-05-01` is specified on the command line. +These settings apply only when `--tag=package-changes-2022-05` is specified on the command line. -``` yaml $(tag) == 'package-changes-2022-05-01' +``` yaml $(tag) == 'package-changes-2022-05' input-file: - Microsoft.Resources/stable/2022-05-01/changes.json ``` From 3b934a8e16d130f1edd1bd277ace1f00c4c8f171 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Wed, 20 Apr 2022 00:43:56 -0700 Subject: [PATCH 10/13] Update readme.md --- specification/resources/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index eaf4823ba867..40422491190d 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -26,7 +26,6 @@ These are the global settings for the Resource API. ``` yaml openapi-type: arm -tag: package-changes-2022-05 ``` ``` yaml $(package-privatelinks) From 4aaf562c71b2583ddd7f8da3fafafc3a9773705c Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Wed, 20 Apr 2022 00:48:50 -0700 Subject: [PATCH 11/13] Update readme.md --- specification/resources/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 40422491190d..eaf4823ba867 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -26,6 +26,7 @@ These are the global settings for the Resource API. ``` yaml openapi-type: arm +tag: package-changes-2022-05 ``` ``` yaml $(package-privatelinks) From a8d9c95514fa186e04c9bf01d2eee121b754fb51 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Wed, 20 Apr 2022 01:09:00 -0700 Subject: [PATCH 12/13] Update readme.md --- specification/resources/resource-manager/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index eaf4823ba867..bd420484c111 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Resource API. ``` yaml openapi-type: arm -tag: package-changes-2022-05 +tag: package-changes-2022-05-01 ``` ``` yaml $(package-privatelinks) @@ -70,13 +70,13 @@ tag: package-templatespecs-2022-02 ``` ``` yaml $(package-changes) -tag: package-changes-2022-05 +tag: package-changes-2022-05-01 ``` ### Tag: package-changes-2022-05 -These settings apply only when `--tag=package-changes-2022-05` is specified on the command line. +These settings apply only when `--tag=package-changes-2022-05-01` is specified on the command line. -``` yaml $(tag) == 'package-changes-2022-05' +``` yaml $(tag) == 'package-changes-2022-05-01' input-file: - Microsoft.Resources/stable/2022-05-01/changes.json ``` From 7b8c35b2655217c39ae9969eb01abcb8aff88705 Mon Sep 17 00:00:00 2001 From: Daniel Hu Date: Wed, 20 Apr 2022 01:30:45 -0700 Subject: [PATCH 13/13] Update readme.md --- specification/resources/resource-manager/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index bd420484c111..eaf4823ba867 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Resource API. ``` yaml openapi-type: arm -tag: package-changes-2022-05-01 +tag: package-changes-2022-05 ``` ``` yaml $(package-privatelinks) @@ -70,13 +70,13 @@ tag: package-templatespecs-2022-02 ``` ``` yaml $(package-changes) -tag: package-changes-2022-05-01 +tag: package-changes-2022-05 ``` ### Tag: package-changes-2022-05 -These settings apply only when `--tag=package-changes-2022-05-01` is specified on the command line. +These settings apply only when `--tag=package-changes-2022-05` is specified on the command line. -``` yaml $(tag) == 'package-changes-2022-05-01' +``` yaml $(tag) == 'package-changes-2022-05' input-file: - Microsoft.Resources/stable/2022-05-01/changes.json ```