diff --git a/package.json b/package.json index cbbb9b0aa710..04e216a3daa2 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "description": "Tests for Azure REST API Specifications", "license": "MIT", "devDependencies": { - "@azure/avocado": "^0.8.4", - "@ts-common/commonmark-to-markdown": "^2.0.2", + "@azure/avocado": "^0.7.2", + "@ts-common/commonmark-to-markdown": "^1.2.0", "@ts-common/fs": "0.2.0", "@ts-common/iterator": "^0.3.6", "@types/js-yaml": "^3.12.1", diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Create.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Create.json new file mode 100644 index 000000000000..5228a134aa95 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Create.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "resourceName": "11111111-aaaa-1111-bbbb-1111111111111", + "resourceGroupName": "testResourceGroupGRAM", + "api-version": "2022-09-22-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "accountResource": { + "properties": { + "applicationId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "201": { + "body": { + "name": "11111111-aaaa-1111-bbbb-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testResourceGroupGRAM/providers/Microsoft.GraphServices/accounts/11111111-aaaa-1111-bbbb-111111111111", + "type": "Microsoft.GraphServices/accounts", + "properties": { + "provisioningState": "Accepted", + "applicationId": "11111111-aaaa-1111-bbbb-111111111111", + "billingPlanId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "200": { + "body": { + "name": "11111111-aaaa-1111-bbbb-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testResourceGroupGRAM/providers/Microsoft.GraphServices/accounts/11111111-aaaa-1111-bbbb-111111111111", + "type": "Microsoft.GraphServices/accounts", + "properties": { + "provisioningState": "Accepted", + "applicationId": "11111111-aaaa-1111-bbbb-111111111111", + "billingPlanId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Delete.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Delete.json new file mode 100644 index 000000000000..bf0ec1d02175 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "11111111-aaaa-1111-bbbb-111111111111", + "resourceGroupName": "testResourceGroupGRAM", + "resourceName": "11111111-aaaa-1111-bbbb-111111111111", + "api-version": "2022-09-22-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Get.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Get.json new file mode 100644 index 000000000000..cad6ed22226e --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "resourceName": "11111111-aaaa-1111-bbbb-111111111111", + "resourceGroupName": "testResourceGroupGRAM", + "api-version": "2022-09-22-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "11111111-aaaa-1111-bbbb-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testResourceGroupGRAM/providers/Microsoft.GraphServices/accounts/11111111-aaaa-1111-bbbb-111111111111", + "type": "Microsoft.GraphServices/accounts", + "properties": { + "provisioningState": "Accepted", + "applicationId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_List.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_List.json new file mode 100644 index 000000000000..b33fa65917e0 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_List.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "resourceGroupName": "testResourceGroupGRAM", + "api-version": "2022-09-22-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "11111111-aaaa-1111-bbbb-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testResourceGroupGRAM/providers/Microsoft.GraphServices/accounts/11111111-aaaa-1111-bbbb-111111111111", + "type": "Microsoft.GraphServices/accounts", + "properties": { + "provisioningState": "Accepted", + "applicationId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_List_Sub.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_List_Sub.json new file mode 100644 index 000000000000..16e1a5a5bbd6 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_List_Sub.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2022-09-22-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "11111111-aaaa-1111-bbbb-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testResourceGroupGRAM/providers/Microsoft.GraphServices/accounts/11111111-aaaa-1111-bbbb-111111111111", + "type": "Microsoft.GraphServices/accounts", + "properties": { + "provisioningState": "Accepted", + "applicationId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Update.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Update.json new file mode 100644 index 000000000000..dbd4e46c3854 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Accounts_Update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "resourceName": "11111111-aaaa-1111-bbbb-111111111111", + "resourceGroupName": "testResourceGroupGRAM", + "api-version": "2022-09-22-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "accountResource": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "11111111-aaaa-1111-bbbb-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testResourceGroupGRAM/providers/Microsoft.GraphServices/accounts/11111111-aaaa-1111-bbbb-111111111111", + "type": "Microsoft.GraphServices/accounts", + "properties": { + "provisioningState": "Succeeded", + "applicationId": "11111111-aaaa-1111-bbbb-111111111111", + "billingPlanId": "11111111-aaaa-1111-bbbb-111111111111" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Operations_List.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Operations_List.json new file mode 100644 index 000000000000..ed81da29aa91 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/examples/Operations_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2022-09-22-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.GraphServices/accounts/read", + "display": { + "provider": "Microsoft Graph Services", + "resource": "Microsoft Graph Services Account", + "operation": "Get Microsoft Graph Services Account resources", + "description": "Get Microsoft Graph Services Account resources" + } + } + ] + } + } + } +} diff --git a/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/graphservicesprod.json b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/graphservicesprod.json new file mode 100644 index 000000000000..309eb3dd9dd2 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/Microsoft.GraphServices/preview/2022-09-22-preview/graphservicesprod.json @@ -0,0 +1,469 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-22-preview", + "title": "GraphServices", + "description": "Self service experience for Microsoft Graph metered services" + }, + "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.GraphServices/accounts": { + "get": { + "description": "Returns list of accounts apps.", + "operationId": "Accounts_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Account details.", + "schema": { + "$ref": "#/definitions/AccountResourceList" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update account resource": { + "$ref": "./examples/Accounts_List.json" + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.GraphServices/accounts": { + "get": { + "description": "Returns list of accounts belonging to a subscription.", + "operationId": "Accounts_ListBySubscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Account details.", + "schema": { + "$ref": "#/definitions/AccountResourceList" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get list of accounts by subscription": { + "$ref": "./examples/Accounts_List_Sub.json" + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}": { + "get": { + "description": "Returns account resource for a given name.", + "operationId": "Account_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "Account details.", + "schema": { + "$ref": "#/definitions/AccountResource" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get accounts": { + "$ref": "./examples/Accounts_Get.json" + } + } + }, + "put": { + "description": "Create or update account resource.", + "operationId": "Account_CreateAndUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "name": "accountResource", + "description": "Account details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountResource" + } + } + ], + "responses": { + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/AccountResource" + } + }, + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/AccountResource" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create Account resource": { + "$ref": "./examples/Accounts_Create.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "description": "Update account details.", + "operationId": "Account_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "name": "accountResource", + "description": "Account patch details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountPatchResource" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/AccountResource" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update account resource": { + "$ref": "./examples/Accounts_Update.json" + } + } + }, + "delete": { + "description": "Deletes a account resource.", + "operationId": "Account_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "Account was deleted." + }, + "204": { + "description": "Account has been already deleted." + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete account resource": { + "$ref": "./examples/Accounts_Delete.json" + } + } + } + }, + "/providers/Microsoft.GraphServices/operations": { + "get": { + "description": "Returns list of operations.", + "operationId": "Operation_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation details.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing the reason for operation failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get list of operations": { + "$ref": "./examples/Operations_List.json" + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Resource": { + "type": "object", + "description": "An Azure resource.", + "properties": { + "id": { + "description": "Azure resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Azure resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Azure resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Location of the resource.", + "type": "string" + }, + "tags": { + "description": "resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-ms-azure-resource": true + }, + "AccountResource": { + "type": "object", + "description": "Account details", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "properties" + ], + "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "readOnly": true + }, + "properties": { + "type": "object", + "description": "Property bag from billing account", + "required": [ + "applicationId" + ], + "properties": { + "provisioningState": { + "description": "Provisioning state.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "applicationId": { + "type": "string", + "description": "Customer owned application ID", + "pattern": "(^[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}?)$", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "billingPlanId": { + "type": "string", + "description": "Billing plan Id", + "pattern": "(^[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}?)$", + "readOnly": true + } + } + } + } + }, + "TagUpdate": { + "description": "Request payload used to update an existing resource's tags.", + "type": "object", + "properties": { + "tags": { + "type": "object", + "description": "List of key value pairs that describe the resource. This will overwrite the existing tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "AccountPatchResource": { + "type": "object", + "description": "Account patch properties", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/TagUpdate" + } + ] + }, + "AccountResourceList": { + "description": "The list of accounts.", + "type": "object", + "properties": { + "nextLink": { + "type": "string", + "description": "The link to the next page of items", + "format": "uri" + }, + "value": { + "description": "The list of recommendations.", + "type": "array", + "items": { + "$ref": "#/definitions/AccountResource" + } + } + } + } + }, + "parameters": { + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/graphservicesprod/resource-manager/readme.cli.md b/specification/graphservicesprod/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/graphservicesprod/resource-manager/readme.csharp.md b/specification/graphservicesprod/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..21b10c613940 --- /dev/null +++ b/specification/graphservicesprod/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.GraphServices + output-folder: $(csharp-sdks-folder)/graphservicesprod/management/Microsoft.GraphServices/GeneratedProtocol +``` diff --git a/specification/graphservicesprod/resource-manager/readme.md b/specification/graphservicesprod/resource-manager/readme.md new file mode 100644 index 000000000000..7442137eb0b3 --- /dev/null +++ b/specification/graphservicesprod/resource-manager/readme.md @@ -0,0 +1,70 @@ +# graphservicesprod + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for graphservicesprod. + +## 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 graphservicesprod. + +```yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2022-09-22-preview +``` + +### Tag: package-2022-09-22-preview + +These settings apply only when `--tag=package-2022-09-22-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-09-22-preview' +version: 2022-09-22-preview +input-file: + - Microsoft.GraphServices/preview/2022-09-22-preview/graphservicesprod.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-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas +``` + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/graphservicesprod/resource-manager/readme.python.md b/specification/graphservicesprod/resource-manager/readme.python.md new file mode 100644 index 000000000000..93e45da67bea --- /dev/null +++ b/specification/graphservicesprod/resource-manager/readme.python.md @@ -0,0 +1,22 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-graphservicesprod +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/graphservicesprod/azure-mgmt-graphservicesprod/azure/mgmt/graphservicesprod +``` +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/graphservicesprod/azure-mgmt-graphservicesprod +``` \ No newline at end of file diff --git a/specification/graphservicesprod/resource-manager/readme.typescript.md b/specification/graphservicesprod/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..ad60ac8b705d --- /dev/null +++ b/specification/graphservicesprod/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## 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: "@azure/arm-graphservicesprod" + output-folder: "$(typescript-sdks-folder)/sdk/graphservicesprod/arm-graphservicesprod" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +```