Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions specification/resources/cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ words:
- unregisters
- graalvm
overrides:
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/changes.json'
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/changes/stable/2022-05-01/changes.json'
words:
- ocurred
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/preview/2022-03-01-preview/changes.json'
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/changes/preview/2022-03-01-preview/changes.json'
words:
- ocurred
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/preview/2024-06-01-preview/changes.json'
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/changes/preview/2024-06-01-preview/changes.json'
words:
- ocurred
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/preview/2023-03-01-preview/changes.json'
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/changes/preview/2023-03-01-preview/changes.json'
words:
- ocurred
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/preview/2023-07-01-preview/changes.json'
- filename: '**/specification/resources/resource-manager/Microsoft.Resources/changes/preview/2023-07-01-preview/changes.json'
words:
- ocurred
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Go

These settings apply only when `--go` is specified on the command line.

### Fix up regular expressions to support Unicode.

``` yaml
directive:
from: swagger-document # do it globally
where: $.paths..parameters[?(@.name == "resourceGroupName" || @.name == "sourceResourceGroupName")].pattern
set: ^[-\p{L}\._\(\)\w]+$
reason: Necessary to match Unicode characters in the Go regexp engine.
```

``` yaml $(go) && $(track2) && $(package-locks)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/resources/armlocks
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Locks

> see https://aka.ms/autorest

This is the AutoRest configuration file.

## Getting Started

To build the SDK for Resource, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`

To see additional help and options, run:

> `autorest --help`

---

## Configuration

### Basic Information

These are the global settings for the Resource API.

``` yaml
title: ManagementLockClient
description: ManagementLock Client
openapi-type: arm
tag: package-locks-2020-05
```

### Tag: package-locks-2020-05

These settings apply only when `--tag=package-locks-2020-05` is specified on the command line.

``` yaml $(tag) == 'package-locks-2020-05'
input-file:
- stable/2020-05-01/locks.json
```

### Tag: package-locks-2017-04

These settings apply only when `--tag=package-locks-2017-04` is specified on the command line.

``` yaml $(tag) == 'package-locks-2017-04'
input-file:
- stable/2017-04-01/locks.json
```

### Tag: package-locks-2016-09

These settings apply only when `--tag=package-locks-2016-09` is specified on the command line.

``` yaml $(tag) == 'package-locks-2016-09'
input-file:
- stable/2016-09-01/locks.json
```

### Tag: package-locks-2015-01

These settings apply only when `--tag=package-locks-2015-01` is specified on the command line.

``` yaml $(tag) == 'package-locks-2015-01'
input-file:
- stable/2015-01-01/locks.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-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
- repo: azure-sdk-for-js
- repo: azure-resource-manager-schemas
- repo: azure-powershell
```

## Python

See configuration in [readme.python.md](./readme.python.md)

## Go

See configuration in [readme.go.md](./readme.go.md)

## Java

See configuration in [readme.java.md](./readme.java.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Node.js

These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.

```yaml $(nodejs)
nodejs:
azure-arm: true
batch: true
package-name: azure-arm-resource
generate-license-txt: true
generate-package-json: false
generate-readme-md: false
output-folder: $(node-sdks-folder)/lib/services/resourceManagement
batch:
- package-locks: true
```

```yaml $(nodejs) && $(package-locks)
nodejs:
source-code-folder-path: lib/lock
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Python

These settings apply only when `--python` is specified on the command line.

``` yaml $(python)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-resource
package-version: 1.0.0b1
no-namespace-folders: true
reformat-next-link: false
combine-operation-files: true
clear-output-folder: true
modelerfour:
lenient-model-deduplication: true
```
### Python batch
```yaml $(python)
batch:
- tag: package-locks-2016-09
```
### Tag: package-locks-2016-09 and python
These settings apply only when `--tag=package-locks-2016-09 --python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-locks-2016-09'
title: ManagementLockClient
namespace: azure.mgmt.resource.locks
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/locks
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### Ruby multi-api for locks

``` yaml $(multiapi) && $(locks)
package-name: azure_mgmt_locks
package-version: "0.16.0"
azure-arm: true
batch:
- tag: package-locks-2016-09
- tag: package-locks-2015-01
```
### Tag: package-locks-2016-09 and ruby
These settings apply only when `--tag=package-locks-2016-09 --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-locks-2016-09' && $(ruby)
namespace: "Azure::Locks::Mgmt::V2016_09_01"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_locks/lib
```

### Tag: package-locks-2015-01 and ruby

These settings apply only when `--tag=package-locks-2015-01 --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-locks-2015-01' && $(ruby)
namespace: "Azure::Locks::Mgmt::V2015_01_01"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_locks/lib
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## TypeScript

These settings apply only when `--typescript` is specified on the command line.
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.

```yaml $(typescript) && !$(profile-content)
typescript:
azure-arm: true
batch: true
generate-metadata: true
batch:
- package-locks: true
```

```yaml $(typescript) && $(package-locks) && !$(profile-content)
typescript:
package-name: "@azure/arm-locks"
output-folder: "$(typescript-sdks-folder)/sdk/locks/arm-locks"
```

```yaml $(tag)=='package-locks-2016-09' && $(profile-content)=='profile-hybrid-2019-03-01'
typescript:
azure-arm: true
generate-metadata: true
package-name: "@azure/arm-locks-profile-2019-03-01-hybrid"
output-folder: "$(typescript-sdks-folder)/sdk/locks/arm-locks-profile-2019-03-01-hybrid"
batch:
- tag: package-locks-2016-09
```

```yaml $(tag)=='package-locks-2016-09' && $(profile-content)=='profile-hybrid-2020-09-01'
typescript:
azure-arm: true
generate-metadata: true
package-name: "@azure/arm-locks-profile-2020-09-01-hybrid"
output-folder: "$(typescript-sdks-folder)/sdk/locks/arm-locks-profile-2020-09-01-hybrid"
batch:
- tag: package-locks-2016-09
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading