Skip to content

Commit

Permalink
Containerregistry t2 (#14538)
Browse files Browse the repository at this point in the history
* sql t2 readme config

* readme config

* Update readme.python.md

* conflient resolve

* redirect

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
  • Loading branch information
RAY-316 and msyyc authored May 25, 2021
1 parent 216931d commit cb635c4
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 2 deletions.
57 changes: 57 additions & 0 deletions specification/containerregistry/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ These are the global settings for the ContainerRegistry API.
openapi-type: arm
tag: package-2020-11-preview
```
### Tag: package-2020-11-preview-only
These settings apply only when `--tag=package-2020-11-preview-only` is specified on the command line.

```yaml $(tag) == 'package-2020-11-preview-only'
input-file:
- Microsoft.ContainerRegistry/preview/2020-11-01-preview/containerregistry.json
```

### Tag: package-2020-11-preview

Expand All @@ -39,6 +47,15 @@ input-file:
- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json
```

### Tag: package-2019-12-preview-only

These settings apply only when `--tag=package-2019-12-preview-only` is specified on the command line.

```yaml $(tag) == 'package-2019-12-preview-only'
input-file:
- Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json
```

### Tag: package-2019-12-preview

These settings apply only when `--tag=package-2019-12-preview` is specified on the command line.
Expand Down Expand Up @@ -70,6 +87,15 @@ input-file:
- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json
```

### Tag: package-2019-05-only

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

``` yaml $(tag) == 'package-2019-05-only'
input-file:
- Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json
```

### Tag: package-2019-05

These settings apply only when `--tag=package-2019-05` is specified on the command line.
Expand All @@ -80,6 +106,15 @@ input-file:
- Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json
```

### Tag: package-2019-05-preview-only

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

``` yaml $(tag) == 'package-2019-05-preview-only'
input-file:
- Microsoft.ContainerRegistry/preview/2019-05-01-preview/containerregistry_scopemap.json
```

### Tag: package-2019-05-preview

These settings apply only when `--tag=package-2019-05-preview` is specified on the command line.
Expand Down Expand Up @@ -109,6 +144,15 @@ input-file:
- Microsoft.ContainerRegistry/stable/2019-04-01/containerregistry_build.json
```

### Tag: package-2018-09-only

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

``` yaml $(tag) == 'package-2018-09-only'
input-file:
- Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json
```

### Tag: package-2018-09

These settings apply only when `--tag=package-2018-09` is specified on the command line.
Expand All @@ -119,6 +163,15 @@ input-file:
- Microsoft.ContainerRegistry/stable/2018-09-01/containerregistry_build.json
```

### Tag: package-2018-02-preview-only

These settings apply only when `--tag=package-2018-02-preview-only` is specified on the command line.

``` yaml $(tag) == 'package-2018-02-preview-only'
input-file:
- Microsoft.ContainerRegistry/preview/2018-02-01-preview/containerregistry_build.json
```

### Tag: package-2018-02-preview

These settings apply only when `--tag=package-2018-02-preview` is specified on the command line.
Expand Down Expand Up @@ -183,6 +236,7 @@ swagger-to-sdk:
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-containerregistry
- python ./scripts/trim_aio.py ./sdk/containerregistry/azure-mgmt-containerregistry
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand Down Expand Up @@ -211,6 +265,9 @@ csharp:
output-folder: $(csharp-sdks-folder)/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated
clear-output-folder: true
```
## Pyhton

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

## Go

Expand Down
187 changes: 185 additions & 2 deletions specification/containerregistry/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

```yaml $(python)
```yaml $(python) && !$(track2)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
Expand All @@ -12,11 +12,20 @@ python:
no-namespace-folders: true
```
```yaml $(python) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-containerregistry
clear-output-folder: true
package-version: 1.0.0b1
no-namespace-folders: true
```
### Python multi-api
Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
```yaml $(python) && $(multiapi) && !$(track2)
batch:
- tag: package-2020-11-preview
- tag: package-2019-12-preview
Expand All @@ -30,6 +39,40 @@ batch:
- tag: package-2017-03
```
```yaml $(python) && $(multiapi) && $(track2)
clear-output-folder: true
batch:
- tag: package-2020-11-preview-only
- tag: package-2019-12-preview-only
- tag: package-2019-06-preview-only
- tag: package-2019-05-only
- tag: package-2019-05-preview-only
- tag: package-2019-04-only
- tag: package-2018-09-only
- tag: package-2018-02-preview-only
- tag: package-2017-10
- tag: package-2017-03
- multiapiscript: true
```
``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/
clear-output-folder: false
perform-load: false
```
### Tag: package-2020-11-preview-only and python
These settings apply only when `--tag=package-2020-11-preview-only --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-2020-11-preview-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2020_11_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview
namespace: azure.mgmt.containerregistry.v2020_11_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview
```

### Tag: package-2020-11-preview and python

These settings apply only when `--tag=package-2020-11-preview --python` is specified on the command line.
Expand All @@ -39,6 +82,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2020_11_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview
namespace: azure.mgmt.containerregistry.v2020_11_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview
```

### Tag: package-2019-12-preview-only and python

These settings apply only when `--tag=package-2019-12-preview-only --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-2019-12-preview-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2019_12_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview
namespace: azure.mgmt.containerregistry.v2019_12_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview
```

### Tag: package-2019-12-preview and python
Expand All @@ -50,6 +108,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2019_12_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview
namespace: azure.mgmt.containerregistry.v2019_12_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview
```

### Tag: package-2019-06-preview-only and python

These settings apply only when `--tag=package-2019-06-preview-only --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-2019-06-preview-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2019_06_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview
namespace: azure.mgmt.containerregistry.v2019_06_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview
```

### Tag: package-2019-06-preview and python
Expand All @@ -61,6 +134,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2019_06_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview
namespace: azure.mgmt.containerregistry.v2019_06_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview
```

### Tag: package-2019-05-only and python

These settings apply only when `--tag=package-2019-05-only --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-2019-05-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2019_05_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01
namespace: azure.mgmt.containerregistry.v2019_05_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01
```

### Tag: package-2019-05 and python
Expand All @@ -72,6 +160,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2019_05_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01
namespace: azure.mgmt.containerregistry.v2019_05_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01
```

### Tag: package-2019-05-preview-only and python

These settings apply only when `--tag=package-2019-05-preview-only --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-2019-05-preview-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2019_05_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview
namespace: azure.mgmt.containerregistry.v2019_05_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview
```

### Tag: package-2019-05-preview and python
Expand All @@ -83,6 +186,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2019_05_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview
namespace: azure.mgmt.containerregistry.v2019_05_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview
```

### Tag: package-2019-04-only and python

These settings apply only when `--tag=package-2019-04-only --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-2019-04-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2019_04_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01
namespace: azure.mgmt.containerregistry.v2019_04_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01
```

### Tag: package-2019-04 and python
Expand All @@ -94,6 +212,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2019_04_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01
namespace: azure.mgmt.containerregistry.v2019_04_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01
```

### Tag: package-2018-09-only and python

These settings apply only when `--tag=package-2018-09-only --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-2018-09-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2018_09_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01
namespace: azure.mgmt.containerregistry.v2018_09_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01
```

### Tag: package-2018-09 and python
Expand All @@ -105,6 +238,21 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2018_09_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01
namespace: azure.mgmt.containerregistry.v2018_09_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01
```

### Tag: package-2018-02-preview-only and python

These settings apply only when `--tag=package-2018-02-preview-only --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-2018-02-preview-only' && $(python)
python:
namespace: azure.mgmt.containerregistry.v2018_02_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview
namespace: azure.mgmt.containerregistry.v2018_02_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview
```

### Tag: package-2018-02-preview and python
Expand All @@ -116,6 +264,8 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2018_02_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview
namespace: azure.mgmt.containerregistry.v2018_02_01_preview
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview
```

### Tag: package-2017-10 and python
Expand All @@ -127,6 +277,8 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2017_10_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01
namespace: azure.mgmt.containerregistry.v2017_10_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01
```

### Tag: package-2017-03 and python
Expand All @@ -138,4 +290,35 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
python:
namespace: azure.mgmt.containerregistry.v2017_03_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01
namespace: azure.mgmt.containerregistry.v2017_03_01
output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01
```


``` yaml $(python) && $(track2)
directive:
- from: swagger-document
where: $.definitions.BuildStepProperties
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.BuildStepPropertiesUpdateParameters
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.QueueBuildRequest
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.RunRequest
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.TaskStepProperties
transform: >
$['required'] = ['type'];
- from: swagger-document
where: $.definitions.TaskStepUpdateParameters
transform: >
$['required'] = ['type'];
```

0 comments on commit cb635c4

Please sign in to comment.