From 87707ff8222c8091a6dd2945f79670a4c0670e90 Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:19 -0400 Subject: [PATCH 01/33] New Readme Config File --- .../changeanalysis/resource-manager/readme.md | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/readme.md diff --git a/specification/changeanalysis/resource-manager/readme.md b/specification/changeanalysis/resource-manager/readme.md new file mode 100644 index 000000000000..09ea6d432101 --- /dev/null +++ b/specification/changeanalysis/resource-manager/readme.md @@ -0,0 +1,79 @@ +# changeanalysis + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for changeanalysis. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the changeanalysis. + +```yaml +openapi-type: arm +tag: package-2020-04-01-preview +``` + +### Tag: package-2020-04-01-preview + +These settings apply only when `--tag=package-2020-04-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2020-04-01-preview' +input-file: + - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_changeanalysis'] +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Ruby + +See configuration in [readme.ruby.md](./readme.ruby.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) From b88e44ecd19c5bfad9a599f375e20fcd2567fb6c Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:20 -0400 Subject: [PATCH 02/33] New Go Language Readme Config File --- .../resource-manager/readme.go.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/readme.go.md diff --git a/specification/changeanalysis/resource-manager/readme.go.md b/specification/changeanalysis/resource-manager/readme.go.md new file mode 100644 index 000000000000..c2b2c0df4332 --- /dev/null +++ b/specification/changeanalysis/resource-manager/readme.go.md @@ -0,0 +1,19 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + clear-output-folder: true +``` + +### Tag: package-2020-04-01-preview and go + +These settings apply only when `--tag=package-2020-04-01-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-2020-04-01-preview' && $(go) +namespace: Microsoft.ChangeAnalysis +output-folder: $(go-sdks-folder)/changeanalysis/Generated +``` From 290066146c56bbe6b1d7608cc70dc357c2985a85 Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:21 -0400 Subject: [PATCH 03/33] New Typescript Language Readme Config File --- .../resource-manager/readme.typescript.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/readme.typescript.md diff --git a/specification/changeanalysis/resource-manager/readme.typescript.md b/specification/changeanalysis/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..63e73c265818 --- /dev/null +++ b/specification/changeanalysis/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "changeanalysis" + output-folder: "$(typescript-sdks-folder)/packages/changeanalysis" + payload-flattening-threshold: 1 + generate-metadata: true +``` From 26de02c42f7a2c7a12823ccd84df6cf2722b2151 Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:21 -0400 Subject: [PATCH 04/33] New Python Language Readme Config File --- .../resource-manager/readme.python.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/readme.python.md diff --git a/specification/changeanalysis/resource-manager/readme.python.md b/specification/changeanalysis/resource-manager/readme.python.md new file mode 100644 index 000000000000..5bfa3618bd78 --- /dev/null +++ b/specification/changeanalysis/resource-manager/readme.python.md @@ -0,0 +1,21 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +```yaml $(python) +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: Microsoft.ChangeAnalysis + package-name: changeanalysis + package-version: 2020-04-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/changeanalysis +``` From f317100fe36787a163ff9efc8ebfa51f3ac19b8f Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:23 -0400 Subject: [PATCH 05/33] New C# Language Readme Config File --- .../resource-manager/readme.csharp.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/readme.csharp.md diff --git a/specification/changeanalysis/resource-manager/readme.csharp.md b/specification/changeanalysis/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..8e5139845e12 --- /dev/null +++ b/specification/changeanalysis/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.ChangeAnalysis + output-folder: $(csharp-sdks-folder)/changeanalysis/management/Microsoft.ChangeAnalysis/GeneratedProtocol +``` From 486c882f5bbae6e23d64b1668c563192b073fd1f Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:24 -0400 Subject: [PATCH 06/33] New Ruby Language Readme Config File --- .../resource-manager/readme.ruby.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/readme.ruby.md diff --git a/specification/changeanalysis/resource-manager/readme.ruby.md b/specification/changeanalysis/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..7b7265a1b2ca --- /dev/null +++ b/specification/changeanalysis/resource-manager/readme.ruby.md @@ -0,0 +1,19 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +```yaml +package-name: azure_mgmt_changeanalysis +package-version: 2020-04-01-preview +azure-arm: true +``` + +### Tag: package-2020-04-01-preview and ruby + +These settings apply only when `--tag=package-2020-04-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2020-04-01-preview' && $(ruby) +namespace: Microsoft.ChangeAnalysis +output-folder: $(ruby-sdks-folder)/changeanalysis +``` From 393614885a9fd5d0861b962a1e68e72007a12896 Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:25 -0400 Subject: [PATCH 07/33] New Swagger Spec File --- .../2020-04-01-preview/changeanalysis.json | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json new file mode 100644 index 000000000000..5fe8aba7de5c --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -0,0 +1,132 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-04-01-preview", + "title": "changeanalysis", + "description": "Description of the new service", + "x-ms-code-generation-settings": { + "name": "changeanalysisClient" + } + }, + "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/Microsoft.ChangeAnalysis/operations": { + "get": { + "tags": ["Tag1"], + "operationId": "OperationGroup_Get", + "x-ms-examples": { + "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + }, + "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/Result" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Result": { + "description": "Sample result definition", + "properties": { + "sampleProperty": { + "type": "string", + "description": "Sample property of type string" + } + } + }, + "ErrorResponse": { + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "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" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + } + } +} From 15a3efb2c24e22f563b976fdcb5fbcf127e7c4bc Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 8 Apr 2020 00:03:26 -0400 Subject: [PATCH 08/33] New Swagger Example Spec File --- .../examples/OperationGroupGet.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json new file mode 100644 index 000000000000..846623cf25b8 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "changeanalysisClient", + "api-version": "2020-04-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "sampleProperty": "sampleProperty" + } + } + } +} From 0f97011ffa202d94da92d76258b41ba7eaca4301 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 8 Apr 2020 00:23:11 -0400 Subject: [PATCH 09/33] add swagger spec second time --- .../2020-04-01-preview/changeanalysis.json | 399 +++++++++++++++--- .../examples/ConfigurationProfileCreate.json | 27 ++ ...onfigurationProfileCreateWithIdentity.json | 36 ++ .../examples/ConfigurationProfileDelete.json | 12 + .../examples/ConfigurationProfileGet.json | 31 ++ .../examples/ConfigurationProfileUpdate.json | 37 ++ ...onfigurationProfileUpdateWithIdentity.json | 46 ++ 7 files changed, 521 insertions(+), 67 deletions(-) create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 5fe8aba7de5c..a87f3ea007c4 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -1,132 +1,397 @@ { "swagger": "2.0", "info": { - "version": "2020-04-01-preview", - "title": "changeanalysis", - "description": "Description of the new service", - "x-ms-code-generation-settings": { - "name": "changeanalysisClient" - } + "title": "AzureChangeAnalysisManagementClient", + "version": "2019-04-01-preview" }, "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], - "security": [ - { - "azure_auth": ["user_impersonation"] - } + "schemes": [ + "https" ], - "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/Microsoft.ChangeAnalysis/operations": { + "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/profile/{profileName}": { "get": { - "tags": ["Tag1"], - "operationId": "OperationGroup_Get", - "x-ms-examples": { - "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } - }, - "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "tags": [ + "ConfigurationProfile" + ], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Describe the result of a successful operation.", + "description": "The request was successful; the request was well-formed and received properly.", "schema": { - "$ref": "#/definitions/Result" + "$ref": "#/definitions/ConfigurationProfileResource" } }, "default": { - "description": "Error response describing why the operation failed.", + "$ref": "#/definitions/Error" + } + } + }, + "put": { + "tags": [ + "ConfigurationProfile" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + }, + "default": { + "$ref": "#/definitions/Error" + } + } + }, + "patch": { + "tags": [ + "ConfigurationProfile" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ConfigurationProfileResource" } } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + }, + "default": { + "$ref": "#/definitions/Error" + } + } + }, + "delete": { + "tags": [ + "ConfigurationProfile" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly." + }, + "204": { + "description": "No Content - the specified resource was not found." + }, + "default": { + "$ref": "#/definitions/Error" + } + } + } + }, + "/providers/Microsoft.ChangeAnalysis/operations": { + "get": { + "tags": [ + "Operations" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/ResourceProviderOperationList" + } + }, + "default": { + "$ref": "#/definitions/Error" + } } } } }, "definitions": { - "Result": { - "description": "Sample result definition", + "ResourceIdentity": { + "type": "object", "properties": { - "sampleProperty": { + "type": { + "enum": [ + "None", + "SystemAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedIdentityTypes", + "modelAsString": true + } + }, + "principalId": { + "format": "uuid", + "type": "string", + "readOnly": true + }, + "tenantId": { + "format": "uuid", "type": "string", - "description": "Sample property of type string" + "readOnly": true } } }, - "ErrorResponse": { - "description": "Error response.", + "AzureMonitorWorkspaceProperties": { + "type": "object", "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." + "workspaceId": { + "type": "string" + }, + "workspaceResourceId": { + "type": "string" } } }, - "ErrorDefinition": { - "description": "Error definition.", + "NotificationsState": { + "enum": [ + "None", + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "NotificationsState", + "modelAsString": true + } + }, + "NotificationSettings": { + "type": "object", "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "azureMonitorWorkspaceProperties": { + "$ref": "#/definitions/AzureMonitorWorkspaceProperties" + }, + "activationState": { + "$ref": "#/definitions/NotificationsState" + } + } + }, + "ConfigurationProfileResourceProperties": { + "type": "object", + "properties": { + "notifications": { + "$ref": "#/definitions/NotificationSettings" + }, + "lastModifiedBy": { "type": "string", "readOnly": true }, - "message": { - "description": "Description of the error.", + "lastModifiedTime": { + "format": "date-time", + "type": "string", + "readOnly": true + }, + "createdTime": { + "format": "date-time", "type": "string", "readOnly": true + } + } + }, + "ConfigurationProfileResource": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "identity": { + "$ref": "#/definitions/ResourceIdentity" + }, + "properties": { + "$ref": "#/definitions/ConfigurationProfileResourceProperties" + } + } + }, + "Error": { + "description": "Unexpected Azure Change Analysis ProxyResource Provider Error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string" + }, + "message": { + "description": "Error message.", + "type": "string" + } + } + }, + "ResourceProviderOperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string" + }, + "resource": { + "type": "string" }, - "details": { - "description": "Internal error details.", + "operation": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "ResourceProviderOperationDefinition": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "display": { + "$ref": "#/definitions/ResourceProviderOperationDisplay" + } + } + }, + "ResourceProviderOperationList": { + "type": "object", + "properties": { + "value": { "type": "array", "items": { - "$ref": "#/definitions/ErrorDefinition" - }, - "readOnly": true + "$ref": "#/definitions/ResourceProviderOperationDefinition" + } + }, + "nextLink": { + "type": "string" } } + }, + "ProxyResource": { + "description": "An Azure resource.", + "required": [ + "location" + ], + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + } + }, + "x-ms-azure-resource": true } }, "parameters": { "SubscriptionIdParameter": { - "name": "subscriptionId", "in": "path", + "name": "subscriptionId", + "description": "The Microsoft Azure subscription ID.", "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + "type": "string" }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", + "ProfileNameParameter": { "in": "path", + "name": "profileName", + "description": "The name of the configuration profile. The profile name should be set to 'default', all other names will be overwritten.", "required": true, "type": "string", - "description": "The name of the resource group.", + "pattern": "^(?!.*-$)[^-][a-zA-Z0-9-]*$", "x-ms-parameter-location": "method" }, "ApiVersionParameter": { - "name": "api-version", "in": "query", + "name": "api-version", + "description": "The client API version.", "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." + "type": "string" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] } - } -} + ] +} \ No newline at end of file diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json new file mode 100644 index 000000000000..55a53f7744ce --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", + "profileName": "default", + "api-version": "2020-04-01-preview", + "resource": {} + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.AppConfiguration/profile", + "properties": { + "createdTime": "2018-04-24T16:30:55+00:00", + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": null, + "workspaceResourceId": null + }, + "activationState": "none" + } + }, + "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", + "name": "default" + } + } + } +} \ No newline at end of file diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json new file mode 100644 index 000000000000..e93548a26302 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", + "profileName": "default", + "api-version": "2020-04-01-preview", + "resource": { + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.ChangeAnalysis/profile", + "properties": { + "createdTime": "2018-04-24T16:30:55+00:00", + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": null, + "workspaceResourceId": null + }, + "activationState": "none" + } + }, + "identity": { + "principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA", + "tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB", + "type": "SystemAssigned" + }, + "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", + "name": "default" + } + } + } +} \ No newline at end of file diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json new file mode 100644 index 000000000000..5e011cc56e80 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", + "profileName": "default", + "api-version": "2020-04-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json new file mode 100644 index 000000000000..731ca8944e66 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", + "profileName": "default", + "api-version": "2020-04-01-preview" + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.ChangeAnalysis/profile", + "properties": { + "createdTime": "2018-04-24T16:30:55+00:00", + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": null, + "workspaceResourceId": null + }, + "activationState": "none" + } + }, + "identity": { + "principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA", + "tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB", + "type": "SystemAssigned" + }, + "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", + "name": "default" + } + } + } +} \ No newline at end of file diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json new file mode 100644 index 000000000000..bb2e6d9ec166 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", + "profileName": "default", + "api-version": "2020-04-01-preview", + "resource": { + "properties": { + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": "workspaceIdValue", + "workspaceResourceId": "workspace resource Id" + }, + "activationState": "Enabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.ChangeAnalysis/profile", + "properties": { + "createdTime": "2018-04-24T16:30:55+00:00", + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": "workspaceIdValue", + "workspaceResourceId": "workspace resource Id" + }, + "activationState": "Enabled" + } + } + }, + "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", + "name": "default" + } + } +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json new file mode 100644 index 000000000000..e6a131710a74 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", + "profileName": "default", + "api-version": "2020-04-01-preview", + "resource": { + "properties": { + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": "workspaceIdValue", + "workspaceResourceId": "workspace resource Id" + }, + "activationState": "Enabled" + } + }, + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.ChangeAnalysis/profile", + "properties": { + "provisioningState": "Succeeded", + "createdDate": "2018-04-24T16:30:55+00:00", + "notifications": { + "azureMonitorWorkspaceProperties": { + "workspaceId": "workspaceIdValue", + "workspaceResourceId": "workspace resource Id" + }, + "activationState": "Enabled" + } + }, + "identity": { + "principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA", + "tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB", + "type": "SystemAssigned" + }, + "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", + "name": "default" + } + } + } +} \ No newline at end of file From ed86b9f324bec1acbb76b4ff6d2255eb407b9009 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 8 Apr 2020 14:14:51 -0400 Subject: [PATCH 10/33] trying to fix violations #1 --- .../2020-04-01-preview/changeanalysis.json | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index a87f3ea007c4..83c41e5a20d3 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -17,6 +17,7 @@ "produces": [ "application/json" ], + "description": "Get existing configuration profile for specified subscription.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -50,6 +51,7 @@ "produces": [ "application/json" ], + "description": "Create a new configuration profile for specified subscription.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -63,6 +65,7 @@ { "in": "body", "name": "body", + "description": "Configuration profile properties.", "schema": { "$ref": "#/definitions/ConfigurationProfileResource" } @@ -153,10 +156,21 @@ "tags": [ "Operations" ], + "description": "Lists the operations available from this provider.", "produces": [ - "text/plain", - "application/json", - "text/json" + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$skipToken", + "in": "query", + "description": "A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", + "required": false, + "type": "string" + } ], "responses": { "200": { @@ -166,8 +180,13 @@ } }, "default": { + "description": "Error response describing why the operation failed", "$ref": "#/definitions/Error" } + }, + "x-ms-examples": {}, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } } From b497be306e7a076d19a75acbb4360c251a725e98 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Thu, 9 Apr 2020 13:35:27 -0400 Subject: [PATCH 11/33] adding descriptions and schema tag for default error --- .../2020-04-01-preview/changeanalysis.json | 79 ++++++++++++------- 1 file changed, 49 insertions(+), 30 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 83c41e5a20d3..84b157dcfd05 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AzureChangeAnalysisManagementClient", - "version": "2019-04-01-preview" + "version": "2020-04-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -14,10 +14,11 @@ "tags": [ "ConfigurationProfile" ], + "summary": "Get the configuration profile for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent.", "produces": [ - "application/json" + "application/json", + "default" ], - "description": "Get existing configuration profile for specified subscription.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -37,7 +38,10 @@ } }, "default": { - "$ref": "#/definitions/Error" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } } }, @@ -45,13 +49,14 @@ "tags": [ "ConfigurationProfile" ], + "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent. In current version of API name of the profile is ignored.", "consumes": [ "application/json" ], "produces": [ - "application/json" + "application/json", + "default" ], - "description": "Create a new configuration profile for specified subscription.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -65,7 +70,7 @@ { "in": "body", "name": "body", - "description": "Configuration profile properties.", + "description": "Request body containing new configuration profile.", "schema": { "$ref": "#/definitions/ConfigurationProfileResource" } @@ -79,7 +84,10 @@ } }, "default": { - "$ref": "#/definitions/Error" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } } }, @@ -87,11 +95,13 @@ "tags": [ "ConfigurationProfile" ], + "summary": "Updates a configuration profile with the specified parameters.", "consumes": [ "application/json" ], "produces": [ - "application/json" + "application/json", + "default" ], "parameters": [ { @@ -106,6 +116,7 @@ { "in": "body", "name": "body", + "description": "The parameters for updating a configuration store.", "schema": { "$ref": "#/definitions/ConfigurationProfileResource" } @@ -119,7 +130,10 @@ } }, "default": { - "$ref": "#/definitions/Error" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } } }, @@ -127,6 +141,10 @@ "tags": [ "ConfigurationProfile" ], + "summary": "Deletes existing configuration profile.", + "produces": [ + "default" + ], "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -146,7 +164,10 @@ "description": "No Content - the specified resource was not found." }, "default": { - "$ref": "#/definitions/Error" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } } } @@ -156,21 +177,13 @@ "tags": [ "Operations" ], - "description": "Lists the operations available from this provider.", + "summary": "Lists operations for the resource provider.", + "description": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their description.", "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$skipToken", - "in": "query", - "description": "A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", - "required": false, - "type": "string" - } + "text/plain", + "application/json", + "text/json", + "default" ], "responses": { "200": { @@ -181,12 +194,10 @@ }, "default": { "description": "Error response describing why the operation failed", - "$ref": "#/definitions/Error" + "schema": { + "$ref": "#/definitions/Error" + } } - }, - "x-ms-examples": {}, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } } @@ -275,6 +286,7 @@ } }, "ConfigurationProfileResource": { + "description": "The configuration profile along with all resource properties.", "type": "object", "allOf": [ { @@ -307,15 +319,19 @@ "type": "object", "properties": { "provider": { + "description": "Name of the resource provider.", "type": "string" }, "resource": { + "description": "Name of the resource type.", "type": "string" }, "operation": { + "description": "Name of the resource provider operation.", "type": "string" }, "description": { + "description": "Description of the resource provider operation.", "type": "string" } } @@ -324,6 +340,7 @@ "type": "object", "properties": { "name": { + "description": "Resource provider operation name.", "type": "string" }, "display": { @@ -335,12 +352,14 @@ "type": "object", "properties": { "value": { + "description": "Resource provider operations list.", "type": "array", "items": { "$ref": "#/definitions/ResourceProviderOperationDefinition" } }, "nextLink": { + "description": "The URI that can be used to request the next page for list of Azure operations.", "type": "string" } } From 4a15aafb253e414e83c6073861eca02e79d2b9fa Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Thu, 9 Apr 2020 13:51:44 -0400 Subject: [PATCH 12/33] removing required location element from proxy resource. --- .../preview/2020-04-01-preview/changeanalysis.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 84b157dcfd05..36d13bb7c59a 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -366,9 +366,6 @@ }, "ProxyResource": { "description": "An Azure resource.", - "required": [ - "location" - ], "properties": { "id": { "description": "The resource ID.", From eaba2d3f91068794cce129d1982ce0c6c8ef3543 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Thu, 9 Apr 2020 18:40:47 -0400 Subject: [PATCH 13/33] adding prettifier fixed --- .../preview/2020-04-01-preview/changeanalysis.json | 2 +- .../2020-04-01-preview/examples/ConfigurationProfileCreate.json | 2 +- .../examples/ConfigurationProfileCreateWithIdentity.json | 2 +- .../2020-04-01-preview/examples/ConfigurationProfileDelete.json | 2 +- .../2020-04-01-preview/examples/ConfigurationProfileGet.json | 2 +- .../examples/ConfigurationProfileUpdateWithIdentity.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 36d13bb7c59a..c08d09dff859 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -429,4 +429,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json index 55a53f7744ce..52caa1f470d6 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json @@ -24,4 +24,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json index e93548a26302..409235c87673 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json @@ -33,4 +33,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json index 5e011cc56e80..8f5d543d2373 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json @@ -9,4 +9,4 @@ "202": {}, "204": {} } -} \ No newline at end of file +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json index 731ca8944e66..e928a235bb7d 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json index e6a131710a74..1211769cfa7c 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} From 5a07e887d4a27fb0e4f18c6bf529eefbda32404d Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 01:26:29 -0400 Subject: [PATCH 14/33] update 3 --- .../2020-04-01-preview/changeanalysis.json | 38 +++++++++++++++---- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index c08d09dff859..fb6095150bbd 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -15,6 +15,8 @@ "ConfigurationProfile" ], "summary": "Get the configuration profile for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "Get", "produces": [ "application/json", "default" @@ -50,6 +52,8 @@ "ConfigurationProfile" ], "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "Create", "consumes": [ "application/json" ], @@ -96,6 +100,8 @@ "ConfigurationProfile" ], "summary": "Updates a configuration profile with the specified parameters.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "Update", "consumes": [ "application/json" ], @@ -142,6 +148,8 @@ "ConfigurationProfile" ], "summary": "Deletes existing configuration profile.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "Delete", "produces": [ "default" ], @@ -179,12 +187,22 @@ ], "summary": "Lists operations for the resource provider.", "description": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their description.", + "operationId": "List", "produces": [ - "text/plain", "application/json", - "text/json", "default" ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "$skipToken", + "description": "A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.", + "type": "string" + } + ], "responses": { "200": { "description": "The request was successful; the request was well-formed and received properly.", @@ -198,6 +216,9 @@ "$ref": "#/definitions/Error" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } } @@ -219,13 +240,11 @@ }, "principalId": { "format": "uuid", - "type": "string", - "readOnly": true + "type": "string" }, "tenantId": { "format": "uuid", - "type": "string", - "readOnly": true + "type": "string" } } }, @@ -270,16 +289,19 @@ "$ref": "#/definitions/NotificationSettings" }, "lastModifiedBy": { + "description": "The principal that last modified the configuration profile.", "type": "string", "readOnly": true }, "lastModifiedTime": { "format": "date-time", + "description": "The last modification time of the configuration profile.", "type": "string", "readOnly": true }, "createdTime": { "format": "date-time", + "description": "The creation date of configuration profile.", "type": "string", "readOnly": true } @@ -368,7 +390,7 @@ "description": "An Azure resource.", "properties": { "id": { - "description": "The resource ID.", + "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.", "type": "string", "readOnly": true }, @@ -429,4 +451,4 @@ ] } ] -} +} \ No newline at end of file From bc860cf93171a608cd03c22332427c1af4f4b33c Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 18:03:41 -0400 Subject: [PATCH 15/33] update 4 --- .../2020-04-01-preview/changeanalysis.json | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index fb6095150bbd..7c93c2280eec 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -187,7 +187,7 @@ ], "summary": "Lists operations for the resource provider.", "description": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their description.", - "operationId": "List", + "operationId": "Operation_List", "produces": [ "application/json", "default" @@ -225,9 +225,11 @@ }, "definitions": { "ResourceIdentity": { + "description": "The identity block returned by ARM resource that supports managed identity.", "type": "object", "properties": { "type": { + "description": "The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.", "enum": [ "None", "SystemAssigned" @@ -240,26 +242,34 @@ }, "principalId": { "format": "uuid", - "type": "string" + "description": "The principal id of the identity. This property will only be provided for a system-assigned identity.", + "type": "string", + "readOnly": true }, "tenantId": { "format": "uuid", - "type": "string" + "description": "The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity.", + "type": "string", + "readOnly": true } } }, "AzureMonitorWorkspaceProperties": { + "description": "Azure Monitor workspace configuration to receive change notifications.", "type": "object", "properties": { "workspaceId": { + "description": "The Azure Monitor workspace ID - the unique identifier for the Log Analytics workspace.", "type": "string" }, "workspaceResourceId": { + "description": "The Azure Monitor workspace ARM Resource ID.\r\nThe resource ID should be in the following format:\r\n/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", "type": "string" } } }, "NotificationsState": { + "description": "The state of notifications feature.", "enum": [ "None", "Enabled", @@ -272,6 +282,7 @@ } }, "NotificationSettings": { + "description": "Notifications model to configure notification settings for subscription.", "type": "object", "properties": { "azureMonitorWorkspaceProperties": { @@ -283,6 +294,7 @@ } }, "ConfigurationProfileResourceProperties": { + "description": "The properties of a configuration profile.", "type": "object", "properties": { "notifications": { @@ -338,6 +350,7 @@ } }, "ResourceProviderOperationDisplay": { + "description": "The resource provider operation details.", "type": "object", "properties": { "provider": { @@ -359,6 +372,7 @@ } }, "ResourceProviderOperationDefinition": { + "description": "The resource provider operation definition.", "type": "object", "properties": { "name": { @@ -371,6 +385,7 @@ } }, "ResourceProviderOperationList": { + "description": "The resource provider operation list.", "type": "object", "properties": { "value": { From b41c5a93f2b1dcba6599c9559f990ac6a4e5f6fb Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 19:33:03 -0400 Subject: [PATCH 16/33] update 5 --- .../2020-04-01-preview/changeanalysis.json | 318 ++---------------- .../examples/OperationGroupGet.json | 15 - .../examples/OperationList.json | 36 ++ 3 files changed, 56 insertions(+), 313 deletions(-) delete mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 7c93c2280eec..efd2fcb5fd15 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -2,184 +2,13 @@ "swagger": "2.0", "info": { "title": "AzureChangeAnalysisManagementClient", - "version": "2020-04-01-preview" + "version": "2019-04-01-preview" }, "host": "management.azure.com", "schemes": [ "https" ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/profile/{profileName}": { - "get": { - "tags": [ - "ConfigurationProfile" - ], - "summary": "Get the configuration profile for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", - "operationId": "Get", - "produces": [ - "application/json", - "default" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ProfileNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; the request was well-formed and received properly.", - "schema": { - "$ref": "#/definitions/ConfigurationProfileResource" - } - }, - "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "put": { - "tags": [ - "ConfigurationProfile" - ], - "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent. In current version of API name of the profile is ignored.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", - "operationId": "Create", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json", - "default" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ProfileNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Request body containing new configuration profile.", - "schema": { - "$ref": "#/definitions/ConfigurationProfileResource" - } - } - ], - "responses": { - "200": { - "description": "The request was successful; the request was well-formed and received properly.", - "schema": { - "$ref": "#/definitions/ConfigurationProfileResource" - } - }, - "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "patch": { - "tags": [ - "ConfigurationProfile" - ], - "summary": "Updates a configuration profile with the specified parameters.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", - "operationId": "Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json", - "default" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ProfileNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "The parameters for updating a configuration store.", - "schema": { - "$ref": "#/definitions/ConfigurationProfileResource" - } - } - ], - "responses": { - "200": { - "description": "The request was successful; the request was well-formed and received properly.", - "schema": { - "$ref": "#/definitions/ConfigurationProfileResource" - } - }, - "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "delete": { - "tags": [ - "ConfigurationProfile" - ], - "summary": "Deletes existing configuration profile.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", - "operationId": "Delete", - "produces": [ - "default" - ], - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ProfileNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request was successful; the request was well-formed and received properly." - }, - "204": { - "description": "No Content - the specified resource was not found." - }, - "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - } - }, "/providers/Microsoft.ChangeAnalysis/operations": { "get": { "tags": [ @@ -187,7 +16,7 @@ ], "summary": "Lists operations for the resource provider.", "description": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their description.", - "operationId": "Operation_List", + "operationId": "Operations_List", "produces": [ "application/json", "default" @@ -219,136 +48,16 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/OperationsList.json" + } } } } }, "definitions": { - "ResourceIdentity": { - "description": "The identity block returned by ARM resource that supports managed identity.", - "type": "object", - "properties": { - "type": { - "description": "The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.", - "enum": [ - "None", - "SystemAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "ManagedIdentityTypes", - "modelAsString": true - } - }, - "principalId": { - "format": "uuid", - "description": "The principal id of the identity. This property will only be provided for a system-assigned identity.", - "type": "string", - "readOnly": true - }, - "tenantId": { - "format": "uuid", - "description": "The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity.", - "type": "string", - "readOnly": true - } - } - }, - "AzureMonitorWorkspaceProperties": { - "description": "Azure Monitor workspace configuration to receive change notifications.", - "type": "object", - "properties": { - "workspaceId": { - "description": "The Azure Monitor workspace ID - the unique identifier for the Log Analytics workspace.", - "type": "string" - }, - "workspaceResourceId": { - "description": "The Azure Monitor workspace ARM Resource ID.\r\nThe resource ID should be in the following format:\r\n/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", - "type": "string" - } - } - }, - "NotificationsState": { - "description": "The state of notifications feature.", - "enum": [ - "None", - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "NotificationsState", - "modelAsString": true - } - }, - "NotificationSettings": { - "description": "Notifications model to configure notification settings for subscription.", - "type": "object", - "properties": { - "azureMonitorWorkspaceProperties": { - "$ref": "#/definitions/AzureMonitorWorkspaceProperties" - }, - "activationState": { - "$ref": "#/definitions/NotificationsState" - } - } - }, - "ConfigurationProfileResourceProperties": { - "description": "The properties of a configuration profile.", - "type": "object", - "properties": { - "notifications": { - "$ref": "#/definitions/NotificationSettings" - }, - "lastModifiedBy": { - "description": "The principal that last modified the configuration profile.", - "type": "string", - "readOnly": true - }, - "lastModifiedTime": { - "format": "date-time", - "description": "The last modification time of the configuration profile.", - "type": "string", - "readOnly": true - }, - "createdTime": { - "format": "date-time", - "description": "The creation date of configuration profile.", - "type": "string", - "readOnly": true - } - } - }, - "ConfigurationProfileResource": { - "description": "The configuration profile along with all resource properties.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "properties": { - "identity": { - "$ref": "#/definitions/ResourceIdentity" - }, - "properties": { - "$ref": "#/definitions/ConfigurationProfileResourceProperties" - } - } - }, - "Error": { - "description": "Unexpected Azure Change Analysis ProxyResource Provider Error.", - "properties": { - "code": { - "description": "Error code.", - "type": "string" - }, - "message": { - "description": "Error message.", - "type": "string" - } - } - }, "ResourceProviderOperationDisplay": { "description": "The resource provider operation details.", "type": "object", @@ -401,6 +110,19 @@ } } }, + "Error": { + "description": "Unexpected Azure Change Analysis ProxyResource Provider Error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string" + }, + "message": { + "description": "Error message.", + "type": "string" + } + } + }, "ProxyResource": { "description": "An Azure resource.", "properties": { diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json deleted file mode 100644 index 846623cf25b8..000000000000 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationGroupGet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "sampleacct", - "resourceGroupName": "changeanalysisClient", - "api-version": "2020-04-01-preview", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "sampleProperty": "sampleProperty" - } - } - } -} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json new file mode 100644 index 000000000000..acff1efdb941 --- /dev/null +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2020-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ChangeAnalysis/profile/read", + "display": { + "provider": "Microsoft Change Analysis", + "resource": ""Azure Application Change Analysis Service Configuration Profile", + "operation": "Read Azure Application Change Analysis Servie Configuration Profile" + } + }, + { + "name": "Microsoft.ChangeAnalysis/profile/write", + "display": { + "provider": "Microsoft Change Analysis", + "resource": ""Azure Application Change Analysis Service Configuration Profile", + "operation": "Create or Update Azure Application Change Analysis Servie Configuration Profile Properties" + } + }, + { + "name": "Microsoft.ChangeAnalysis/register/action", + "display": { + "provider": "Microsoft Change Analysis", + "resource": "", + "operation": "Register Microsoft Change Analysis resource provider with a subscriptions" + } + }, + } + } +} +} From 814485de806c9b5bbd78f385b8d9a36d1a8b6652 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 20:42:41 -0400 Subject: [PATCH 17/33] update 6 --- .../examples/OperationList.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json index acff1efdb941..46161d976090 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json @@ -10,7 +10,7 @@ "name": "Microsoft.ChangeAnalysis/profile/read", "display": { "provider": "Microsoft Change Analysis", - "resource": ""Azure Application Change Analysis Service Configuration Profile", + "resource": "Azure Application Change Analysis Service Configuration Profile", "operation": "Read Azure Application Change Analysis Servie Configuration Profile" } }, @@ -18,19 +18,20 @@ "name": "Microsoft.ChangeAnalysis/profile/write", "display": { "provider": "Microsoft Change Analysis", - "resource": ""Azure Application Change Analysis Service Configuration Profile", + "resource": "Azure Application Change Analysis Service Configuration Profile", "operation": "Create or Update Azure Application Change Analysis Servie Configuration Profile Properties" } }, - { + { "name": "Microsoft.ChangeAnalysis/register/action", "display": { "provider": "Microsoft Change Analysis", "resource": "", "operation": "Register Microsoft Change Analysis resource provider with a subscriptions" } - }, - } + } + ] + } + } } -} -} +} \ No newline at end of file From 2cc5e95e9c30e3ab5b168f0fc47af7e0050e583c Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 20:50:31 -0400 Subject: [PATCH 18/33] update 7 --- .../examples/{OperationList.json => OperationsList.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/{OperationList.json => OperationsList.json} (100%) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json similarity index 100% rename from specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationList.json rename to specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json From 7cc6dc6ad8b45616ea49cc8d71730870527d5f49 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 20:56:19 -0400 Subject: [PATCH 19/33] update 8 --- .../preview/2020-04-01-preview/changeanalysis.json | 2 +- .../preview/2020-04-01-preview/examples/OperationsList.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index efd2fcb5fd15..f6de74f1a53d 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -188,4 +188,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json index 46161d976090..2d2000363115 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json @@ -34,4 +34,4 @@ } } } -} \ No newline at end of file +} From e3eb64630cb1f639835d213f3f8a983f7be5f449 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 21:12:58 -0400 Subject: [PATCH 20/33] update 9 --- .../2020-04-01-preview/changeanalysis.json | 331 +++++++++++++++++- 1 file changed, 317 insertions(+), 14 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index f6de74f1a53d..a2b259aeadae 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -2,13 +2,204 @@ "swagger": "2.0", "info": { "title": "AzureChangeAnalysisManagementClient", - "version": "2019-04-01-preview" + "version": "2020-04-01-preview" }, "host": "management.azure.com", "schemes": [ "https" ], "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/profile/{profileName}": { + "get": { + "tags": [ + "ConfigurationProfile" + ], + "summary": "Get the configuration profile for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "ConfigurationProfile_Get", + "produces": [ + "application/json", + "default" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "ConfigurationProfile_Get": { + "$ref": "./examples/ConfigurationProfileGet.json" + } + } + }, + "put": { + "tags": [ + "ConfigurationProfile" + ], + "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "ConfigurationProfile_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "default" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Request body containing new configuration profile.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "ConfigurationProfile_Create": { + "$ref": "./examples/ConfigurationProfileCreate.json" + } + } + }, + "patch": { + "tags": [ + "ConfigurationProfile" + ], + "summary": "Updates a configuration profile with the specified parameters.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "ConfigurationProfile_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json", + "default" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "The parameters for updating a configuration store.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileResource" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "ConfigurationProfile_Update": { + "$ref": "./examples/ConfigurationProfileUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ConfigurationProfile" + ], + "summary": "Deletes existing configuration profile.", + "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "operationId": "ConfigurationProfile_Delete", + "produces": [ + "default" + ], + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProfileNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request was successful; the request was well-formed and received properly." + }, + "204": { + "description": "No Content - the specified resource was not found." + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "ConfigurationProfile_Delete": { + "$ref": "./examples/ConfigurationProfileDelete.json" + } + } + } + }, "/providers/Microsoft.ChangeAnalysis/operations": { "get": { "tags": [ @@ -58,6 +249,131 @@ } }, "definitions": { + "ResourceIdentity": { + "description": "The identity block returned by ARM resource that supports managed identity.", + "type": "object", + "properties": { + "type": { + "description": "The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.", + "enum": [ + "None", + "SystemAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedIdentityTypes", + "modelAsString": true + } + }, + "principalId": { + "format": "uuid", + "description": "The principal id of the identity. This property will only be provided for a system-assigned identity.", + "type": "string", + "readOnly": true + }, + "tenantId": { + "format": "uuid", + "description": "The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity.", + "type": "string", + "readOnly": true + } + } + }, + "AzureMonitorWorkspaceProperties": { + "description": "Azure Monitor workspace configuration to receive change notifications.", + "type": "object", + "properties": { + "workspaceId": { + "description": "The Azure Monitor workspace ID - the unique identifier for the Log Analytics workspace.", + "type": "string" + }, + "workspaceResourceId": { + "description": "The Azure Monitor workspace ARM Resource ID.\r\nThe resource ID should be in the following format:\r\n/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "type": "string" + } + } + }, + "NotificationsState": { + "description": "The state of notifications feature.", + "enum": [ + "None", + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "NotificationsState", + "modelAsString": true + } + }, + "NotificationSettings": { + "description": "Notifications model to configure notification settings for subscription.", + "type": "object", + "properties": { + "azureMonitorWorkspaceProperties": { + "$ref": "#/definitions/AzureMonitorWorkspaceProperties" + }, + "activationState": { + "$ref": "#/definitions/NotificationsState" + } + } + }, + "ConfigurationProfileResourceProperties": { + "description": "The properties of a configuration profile.", + "type": "object", + "properties": { + "notifications": { + "$ref": "#/definitions/NotificationSettings" + }, + "lastModifiedBy": { + "description": "The principal that last modified the configuration profile.", + "type": "string", + "readOnly": true + }, + "lastModifiedTime": { + "format": "date-time", + "description": "The last modification time of the configuration profile.", + "type": "string", + "readOnly": true + }, + "createdTime": { + "format": "date-time", + "description": "The creation date of configuration profile.", + "type": "string", + "readOnly": true + } + } + }, + "ConfigurationProfileResource": { + "description": "The configuration profile along with all resource properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "identity": { + "$ref": "#/definitions/ResourceIdentity" + }, + "properties": { + "$ref": "#/definitions/ConfigurationProfileResourceProperties" + } + } + }, + "Error": { + "description": "Unexpected Azure Change Analysis ProxyResource Provider Error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string" + }, + "message": { + "description": "Error message.", + "type": "string" + } + } + }, "ResourceProviderOperationDisplay": { "description": "The resource provider operation details.", "type": "object", @@ -110,19 +426,6 @@ } } }, - "Error": { - "description": "Unexpected Azure Change Analysis ProxyResource Provider Error.", - "properties": { - "code": { - "description": "Error code.", - "type": "string" - }, - "message": { - "description": "Error message.", - "type": "string" - } - } - }, "ProxyResource": { "description": "An Azure resource.", "properties": { From 0fa3c15d3171c9abbbe888353259d4b0ebb6ce1b Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 21:25:31 -0400 Subject: [PATCH 21/33] update 10 --- .../2020-04-01-preview/examples/ConfigurationProfileCreate.json | 2 +- .../examples/ConfigurationProfileCreateWithIdentity.json | 2 +- .../2020-04-01-preview/examples/ConfigurationProfileGet.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json index 52caa1f470d6..8a83897edbc4 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json @@ -16,7 +16,7 @@ "workspaceId": null, "workspaceResourceId": null }, - "activationState": "none" + "activationState": "None" } }, "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json index 409235c87673..32185e7e445d 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json @@ -20,7 +20,7 @@ "workspaceId": null, "workspaceResourceId": null }, - "activationState": "none" + "activationState": "None" } }, "identity": { diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json index e928a235bb7d..2cc0a362d472 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json @@ -15,7 +15,7 @@ "workspaceId": null, "workspaceResourceId": null }, - "activationState": "none" + "activationState": "None" } }, "identity": { From 73613455612db3f79081294e3c8fda49571a5c5f Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Tue, 14 Apr 2020 22:23:25 -0400 Subject: [PATCH 22/33] update 11 --- .../examples/ConfigurationProfileDelete.json | 1 - specification/changeanalysis/resource-manager/readme.md | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json index 8f5d543d2373..a30a48f30bf0 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json @@ -6,7 +6,6 @@ }, "responses": { "200": {}, - "202": {}, "204": {} } } diff --git a/specification/changeanalysis/resource-manager/readme.md b/specification/changeanalysis/resource-manager/readme.md index 09ea6d432101..1e23b19c42c9 100644 --- a/specification/changeanalysis/resource-manager/readme.md +++ b/specification/changeanalysis/resource-manager/readme.md @@ -77,3 +77,8 @@ See configuration in [readme.typescript.md](./readme.typescript.md) ## CSharp See configuration in [readme.csharp.md](./readme.csharp.md) + +## Additional usage examples + +Create configuration profile with enabled managed identity - [ConfigurationProfileCreateWithIdentity.json](./examples/ConfigurationProfileCreateWithIdentity.json) +Uodate configuraiton profile with enabled managed identity - [ConfigurationProfileUpdateWithIdentity.json](./examples/ConfigurationProfileUpdateWithIdentity.json) From a9d5d8c27d4f19a142729a9b322521a274271428 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 00:51:21 -0400 Subject: [PATCH 23/33] update 12 --- specification/changeanalysis/resource-manager/readme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/changeanalysis/resource-manager/readme.md b/specification/changeanalysis/resource-manager/readme.md index 1e23b19c42c9..27de72b44f92 100644 --- a/specification/changeanalysis/resource-manager/readme.md +++ b/specification/changeanalysis/resource-manager/readme.md @@ -36,6 +36,8 @@ These settings apply only when `--tag=package-2020-04-01-preview` is specified o ```yaml $(tag) == 'package-2020-04-01-preview' input-file: - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json + - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json + - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json ``` --- @@ -78,7 +80,3 @@ See configuration in [readme.typescript.md](./readme.typescript.md) See configuration in [readme.csharp.md](./readme.csharp.md) -## Additional usage examples - -Create configuration profile with enabled managed identity - [ConfigurationProfileCreateWithIdentity.json](./examples/ConfigurationProfileCreateWithIdentity.json) -Uodate configuraiton profile with enabled managed identity - [ConfigurationProfileUpdateWithIdentity.json](./examples/ConfigurationProfileUpdateWithIdentity.json) From c94d45db107b48243930f8c3def48c175c2b8509 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 01:02:25 -0400 Subject: [PATCH 24/33] update 13 --- .../preview/2020-04-01-preview/changeanalysis.json | 6 ++++++ specification/changeanalysis/resource-manager/readme.md | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index a2b259aeadae..bc91ec288636 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -102,6 +102,9 @@ "x-ms-examples": { "ConfigurationProfile_Create": { "$ref": "./examples/ConfigurationProfileCreate.json" + }, + "ConfigurationProfile_CreateWithIdentity": { + "$ref": "./examples/ConfigurationProfileCreateWithIdentity.json" } } }, @@ -155,6 +158,9 @@ "x-ms-examples": { "ConfigurationProfile_Update": { "$ref": "./examples/ConfigurationProfileUpdate.json" + }, + "ConfigurationProfile_UpdateWithIdentity": { + "$ref": "./examples/ConfigurationProfileUpdateWithIdentity.json" } } }, diff --git a/specification/changeanalysis/resource-manager/readme.md b/specification/changeanalysis/resource-manager/readme.md index 27de72b44f92..dac39421ef18 100644 --- a/specification/changeanalysis/resource-manager/readme.md +++ b/specification/changeanalysis/resource-manager/readme.md @@ -36,8 +36,7 @@ These settings apply only when `--tag=package-2020-04-01-preview` is specified o ```yaml $(tag) == 'package-2020-04-01-preview' input-file: - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json - - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json - - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json + ``` --- From 9c00be17f5380c363e5e123afbb86ec339582b25 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 17:04:39 -0400 Subject: [PATCH 25/33] update 14 --- .../examples/ConfigurationProfileCreateWithIdentity.json | 1 - .../examples/ConfigurationProfileUpdateWithIdentity.json | 2 -- 2 files changed, 3 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json index 32185e7e445d..09c9f23cba8d 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json @@ -14,7 +14,6 @@ "body": { "type": "Microsoft.ChangeAnalysis/profile", "properties": { - "createdTime": "2018-04-24T16:30:55+00:00", "notifications": { "azureMonitorWorkspaceProperties": { "workspaceId": null, diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json index 1211769cfa7c..3b06d6733ce9 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json @@ -23,8 +23,6 @@ "body": { "type": "Microsoft.ChangeAnalysis/profile", "properties": { - "provisioningState": "Succeeded", - "createdDate": "2018-04-24T16:30:55+00:00", "notifications": { "azureMonitorWorkspaceProperties": { "workspaceId": "workspaceIdValue", From 90be23b312073c7c572d6b6d67ac60b95262ca15 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 17:51:08 -0400 Subject: [PATCH 26/33] update 15 --- .../2020-04-01-preview/changeanalysis.json | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index bc91ec288636..88bfcf2e9627 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -330,21 +330,42 @@ "properties": { "notifications": { "$ref": "#/definitions/NotificationSettings" + } + } + }, + "SystemData": { + "description": "Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources", + "type": "object", + "properties": { + "createdBy": { + "description": "A string identifier for the identity that created the resource", + "type": "string", + "readOnly": true }, - "lastModifiedBy": { - "description": "The principal that last modified the configuration profile.", + "createdByType": { + "description": "The type of identity that created the resource: user, application, managedIdentity, key", "type": "string", "readOnly": true }, - "lastModifiedTime": { + "createdAt": { "format": "date-time", - "description": "The last modification time of the configuration profile.", + "description": "The timestamp of resource creation (UTC)", "type": "string", "readOnly": true }, - "createdTime": { + "lastModifiedBy": { + "description": "A string identifier for the identity that last modified the resource", + "type": "string", + "readOnly": true + }, + "lastModifiedByType": { + "description": "The type of identity that last modified the resource: user, application, managedIdentity, key", + "type": "string", + "readOnly": true + }, + "lastModifiedAt": { "format": "date-time", - "description": "The creation date of configuration profile.", + "description": "The timestamp of resource last modification (UTC)", "type": "string", "readOnly": true } @@ -449,6 +470,9 @@ "description": "The type of the resource.", "type": "string", "readOnly": true + }, + "systemData": { + "$ref": "#/definitions/SystemData" } }, "x-ms-azure-resource": true From cc8f039163ab9a526e96b9daf03e00e8800e0aa7 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 18:19:31 -0400 Subject: [PATCH 27/33] update 16 --- .../2020-04-01-preview/examples/ConfigurationProfileCreate.json | 1 - .../2020-04-01-preview/examples/ConfigurationProfileUpdate.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json index 8a83897edbc4..bd24d84d7d07 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json @@ -10,7 +10,6 @@ "body": { "type": "Microsoft.AppConfiguration/profile", "properties": { - "createdTime": "2018-04-24T16:30:55+00:00", "notifications": { "azureMonitorWorkspaceProperties": { "workspaceId": null, diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json index bb2e6d9ec166..0d3144ea8bb9 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json @@ -20,7 +20,6 @@ "body": { "type": "Microsoft.ChangeAnalysis/profile", "properties": { - "createdTime": "2018-04-24T16:30:55+00:00", "notifications": { "azureMonitorWorkspaceProperties": { "workspaceId": "workspaceIdValue", @@ -35,3 +34,4 @@ } } } + From a4440270e0dbb449645d114ec21ea642a62157b9 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 18:21:19 -0400 Subject: [PATCH 28/33] update 17 --- .../2020-04-01-preview/examples/ConfigurationProfileGet.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json index 2cc0a362d472..9cc400f02bac 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json @@ -9,7 +9,6 @@ "body": { "type": "Microsoft.ChangeAnalysis/profile", "properties": { - "createdTime": "2018-04-24T16:30:55+00:00", "notifications": { "azureMonitorWorkspaceProperties": { "workspaceId": null, From 741fe10cd91493a8b7616f648f1c783e9eec8ccc Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Wed, 15 Apr 2020 18:31:50 -0400 Subject: [PATCH 29/33] update 18 --- .../2020-04-01-preview/examples/ConfigurationProfileUpdate.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json index 0d3144ea8bb9..000c465f20ca 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json @@ -34,4 +34,3 @@ } } } - From 4a15edc04084f2cd0996f177459ced3cac1b5781 Mon Sep 17 00:00:00 2001 From: Alex Aloni Date: Wed, 15 Apr 2020 18:34:36 -0400 Subject: [PATCH 30/33] Adds suppression to readme --- .../changeanalysis/resource-manager/readme.md | 40 +++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/specification/changeanalysis/resource-manager/readme.md b/specification/changeanalysis/resource-manager/readme.md index dac39421ef18..f8d14def5168 100644 --- a/specification/changeanalysis/resource-manager/readme.md +++ b/specification/changeanalysis/resource-manager/readme.md @@ -24,7 +24,7 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor These are the global settings for the changeanalysis. -```yaml +``` yaml openapi-type: arm tag: package-2020-04-01-preview ``` @@ -33,7 +33,7 @@ tag: package-2020-04-01-preview These settings apply only when `--tag=package-2020-04-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2020-04-01-preview' +``` yaml $(tag) == 'package-2020-04-01-preview' input-file: - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -48,7 +48,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -```yaml $(swagger-to-sdk) +``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-python - repo: azure-sdk-for-java @@ -79,3 +79,37 @@ See configuration in [readme.typescript.md](./readme.typescript.md) See configuration in [readme.csharp.md](./readme.csharp.md) +## Suppression + +``` yaml +directive: + - suppress: BodyTopLevelProperties + where: $.definitions.ConfigurationProfileResource.properties + from: changeanalysis.json + reason: |- + https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources + + The systemData should be top level element based on the new requirement: + { + "id": "/subscriptions/{id}/resourceGroups/{group}/providers/{rpns}/{type}/{name}", + "name": "{name}", + "type": "{resourceProviderNamespace}/{resourceType}", + "location": "North US", + "systemData":{ + "createdBy": "", + "createdByType": "", + "createdAt": "", + "lastModifiedBy": "", + "lastModifiedByType": "", + "lastModifiedAt": "" + }, + "tags": { + "key1": "value 1", + "key2": "value 2" + }, + "kind": "resource kind", + "properties": { + "comment": "Resource defined structure" + } + } +``` From 4c69ff274e858794b5fbaed7b84e2b63fb967593 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Sun, 19 Apr 2020 18:38:21 -0400 Subject: [PATCH 31/33] updating comments of few models --- .../2020-04-01-preview/changeanalysis.json | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 88bfcf2e9627..4a9d5bbf6ff2 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -14,8 +14,7 @@ "tags": [ "ConfigurationProfile" ], - "summary": "Get the configuration profile for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "summary": "Gets the configuration profile for the Microsoft.ChangeAnalysis resource provider. The profile name should be always set to 'default'.", "operationId": "ConfigurationProfile_Get", "produces": [ "application/json", @@ -56,8 +55,7 @@ "tags": [ "ConfigurationProfile" ], - "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider.\r\nThis operation is expected to be idempotent. In current version of API name of the profile is ignored.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider. The profile name should be always set to 'default'.", "operationId": "ConfigurationProfile_Create", "consumes": [ "application/json" @@ -112,8 +110,7 @@ "tags": [ "ConfigurationProfile" ], - "summary": "Updates a configuration profile with the specified parameters.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "summary": "Updates a configuration profile with the specified parameters. The profile name should be always set to 'default'", "operationId": "ConfigurationProfile_Update", "consumes": [ "application/json" @@ -168,8 +165,7 @@ "tags": [ "ConfigurationProfile" ], - "summary": "Deletes existing configuration profile.", - "description": "This operation is expected to be idempotent. In current version of API name of the profile is ignored.", + "summary": "Deletes existing configuration profile. The profile name should be always set to 'default'", "operationId": "ConfigurationProfile_Delete", "produces": [ "default" @@ -211,8 +207,7 @@ "tags": [ "Operations" ], - "summary": "Lists operations for the resource provider.", - "description": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their description.", + "summary": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their descriptions.", "operationId": "Operations_List", "produces": [ "application/json", @@ -286,7 +281,7 @@ } }, "AzureMonitorWorkspaceProperties": { - "description": "Azure Monitor workspace configuration to receive change notifications.", + "description": "Configuration properties of an Azure Monitor workspace that receives change notifications.", "type": "object", "properties": { "workspaceId": { @@ -294,7 +289,7 @@ "type": "string" }, "workspaceResourceId": { - "description": "The Azure Monitor workspace ARM Resource ID.\r\nThe resource ID should be in the following format:\r\n/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "description": "The Azure Monitor workspace ARM Resource ID. The resource ID should be in the following format: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", "type": "string" } } @@ -313,7 +308,7 @@ } }, "NotificationSettings": { - "description": "Notifications model to configure notification settings for subscription.", + "description": "Settings of change notification configuration for a subscription.", "type": "object", "properties": { "azureMonitorWorkspaceProperties": { @@ -372,7 +367,7 @@ } }, "ConfigurationProfileResource": { - "description": "The configuration profile along with all resource properties.", + "description": "A profile object that contains change analysis configuration, such as notification settings, for this subscription", "type": "object", "allOf": [ { @@ -428,7 +423,7 @@ "type": "object", "properties": { "name": { - "description": "Resource provider operation name.", + "description": "The resource provider operation name.", "type": "string" }, "display": { From 8acbff5ceb4d1e91a3a8aa29556b7ff554140da8 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Thu, 7 May 2020 11:24:59 -0400 Subject: [PATCH 32/33] changing description of few elements --- .../2020-04-01-preview/changeanalysis.json | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 4a9d5bbf6ff2..074dd72daad1 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -156,8 +156,8 @@ "ConfigurationProfile_Update": { "$ref": "./examples/ConfigurationProfileUpdate.json" }, - "ConfigurationProfile_UpdateWithIdentity": { - "$ref": "./examples/ConfigurationProfileUpdateWithIdentity.json" + "ConfigurationProfile_UpdateWithIdentity": { + "$ref": "./examples/ConfigurationProfileUpdateWithIdentity.json" } } }, @@ -383,18 +383,29 @@ } } }, - "Error": { - "description": "Unexpected Azure Change Analysis ProxyResource Provider Error.", + "ProxyResource": { + "description": "An Azure resource.", "properties": { - "code": { - "description": "Error code.", - "type": "string" + "id": { + "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.", + "type": "string", + "readOnly": true }, - "message": { - "description": "Error message.", - "type": "string" + "name": { + "description": "The name of the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "systemData": { + "$ref": "#/definitions/SystemData" } - } + }, + "x-ms-azure-resource": true }, "ResourceProviderOperationDisplay": { "description": "The resource provider operation details.", @@ -448,39 +459,21 @@ } } }, - "ProxyResource": { - "description": "An Azure resource.", + "Error": { + "description": "Unexpected Microsoft.ChangeAnalysis Resource Provider Error.", "properties": { - "id": { - "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The name of the resource.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type of the resource.", - "type": "string", - "readOnly": true + "code": { + "description": "Error code.", + "type": "string" }, - "systemData": { - "$ref": "#/definitions/SystemData" + "message": { + "description": "Error message.", + "type": "string" } - }, - "x-ms-azure-resource": true + } } }, "parameters": { - "SubscriptionIdParameter": { - "in": "path", - "name": "subscriptionId", - "description": "The Microsoft Azure subscription ID.", - "required": true, - "type": "string" - }, "ProfileNameParameter": { "in": "path", "name": "profileName", @@ -490,10 +483,17 @@ "pattern": "^(?!.*-$)[^-][a-zA-Z0-9-]*$", "x-ms-parameter-location": "method" }, + "SubscriptionIdParameter": { + "in": "path", + "name": "subscriptionId", + "description": "The Microsoft Azure subscription ID.", + "required": true, + "type": "string" + }, "ApiVersionParameter": { "in": "query", "name": "api-version", - "description": "The client API version.", + "description": "The resource provider API version.", "required": true, "type": "string" } From 8a8a8db99c96dbe301062f70b0febea7866f2f12 Mon Sep 17 00:00:00 2001 From: Alex Dubinkov Date: Thu, 7 May 2020 22:39:56 -0400 Subject: [PATCH 33/33] prettier run: --- .../preview/2020-04-01-preview/changeanalysis.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json index 074dd72daad1..5e9311a95e5a 100644 --- a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json +++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json @@ -156,8 +156,8 @@ "ConfigurationProfile_Update": { "$ref": "./examples/ConfigurationProfileUpdate.json" }, - "ConfigurationProfile_UpdateWithIdentity": { - "$ref": "./examples/ConfigurationProfileUpdateWithIdentity.json" + "ConfigurationProfile_UpdateWithIdentity": { + "$ref": "./examples/ConfigurationProfileUpdateWithIdentity.json" } } },