Skip to content

[compute] Update readme.md (only for test) #31725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions specification/compute/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ These are the global settings for the Compute API.
title: ComputeManagementClient
description: Compute Client
openapi-type: arm
tag: package-2024-11-04
tag: package-2024-07-01-only

directive:
- where:
Expand Down Expand Up @@ -354,18 +354,6 @@ input-file:
- Microsoft.Compute/ComputeRP/stable/2024-07-01/capacityReservation.json
- Microsoft.Compute/ComputeRP/stable/2024-07-01/logAnalytic.json
- Microsoft.Compute/ComputeRP/stable/2024-07-01/runCommand.json
- Microsoft.Compute/DiskRP/stable/2024-03-02/diskRPCommon.json
- Microsoft.Compute/DiskRP/stable/2024-03-02/disk.json
- Microsoft.Compute/DiskRP/stable/2024-03-02/diskAccess.json
- Microsoft.Compute/DiskRP/stable/2024-03-02/diskEncryptionSet.json
- Microsoft.Compute/DiskRP/stable/2024-03-02/diskRestorePoint.json
- Microsoft.Compute/DiskRP/stable/2024-03-02/snapshot.json
- Microsoft.Compute/Skus/stable/2021-07-01/skus.json
- Microsoft.Compute/GalleryRP/stable/2024-03-03/galleryRPCommon.json
- Microsoft.Compute/GalleryRP/stable/2024-03-03/gallery.json
- Microsoft.Compute/GalleryRP/stable/2024-03-03/sharedGallery.json
- Microsoft.Compute/GalleryRP/stable/2024-03-03/communityGallery.json
- Microsoft.Compute/CloudserviceRP/stable/2022-09-04/cloudService.json
```

### Tag: package-2024-03-03-only
Expand Down Expand Up @@ -2240,17 +2228,7 @@ This is not used by Autorest itself.

```yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net-track2
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-js
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_compute']
- repo: azure-resource-manager-schemas
- repo: azure-powershell
```

## Go
Expand Down
266 changes: 8 additions & 258 deletions specification/compute/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -1,268 +1,18 @@
## Python

``` yaml
These settings apply only when `--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 $(python)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-compute
no-namespace-folders: true
namespace: azure.mgmt.compute
package-version: 1.0.0b1
combine-operation-files: true
only-path-and-body-params-positional: true
clear-output-folder: true
modelerfour:
lenient-model-deduplication: true

directive:
# dynamically add a DummyOrchestrationServiceName value to the enum
- from: virtualMachineScaleSet.json
where: $..enum
transform: >-
if( $.length === 1 && $[0] === "AutomaticRepairs") {
$.push('DummyOrchestrationServiceName');
}
return $;

- from: source-file-python
where: $
transform: >-
return $.
replace(/, 'DummyOrchestrationServiceName'/g,'').
replace(/dummy_orchestration_service_name = "DummyOrchestrationServiceName"/g,'');
```

### Python multi-api

Generate all API versions currently shipped for this package

```yaml $(python)
multiapi: true
default-api-version: "2024-11-04"
batch:
- tag: package-2024-11-04-only
- tag: package-2024-07-01-only
- tag: package-2024-03-02-only
- tag: package-2023-10-02-only
- tag: package-2023-07-03-only
- tag: package-2023-04-02-only
- tag: package-2022-09-04-only
- tag: package-2022-03-02-only
- tag: package-2022-01-03-only
- tag: package-2021-10-01-only
- tag: package-2021-07-01-only
- tag: package-2020-06-01-only
- tag: package-2020-05-01-only
- tag: package-2019-12-01-only
- tag: package-2019-07-01-only
- tag: package-2019-04-01-only
- tag: package-compute-only-2017-12
- tag: package-skus-2017-09
- tag: package-compute-2017-03
- tag: package-compute-2016-03
- multiapiscript: true
```

``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/
perform-load: false
```

### Tag: package-2024-11-04-only

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

### Tag: package-2024-07-01-only

These settings apply only when `--tag=package-2024-07-01-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-2024-07-01-only'
namespace: azure.mgmt.compute.v2024_07_01
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01
```

### Tag: package-2024-03-02-only

These settings apply only when `--tag=package-2024-03-02-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-2024-03-02-only'
namespace: azure.mgmt.compute.v2024_03_02
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02
```


### Tag: package-2023-10-02-only

These settings apply only when `--tag=package-2023-10-02-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-2023-10-02-only'
namespace: azure.mgmt.compute.v2023_10_02
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_10_02
```

### Tag: package-2023-07-03-only

These settings apply only when `--tag=package-2023-07-03-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-2023-07-03-only'
namespace: azure.mgmt.compute.v2023_07_03
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_07_03
```

### Tag: package-2023-04-02-only

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

### Tag: package-2022-09-04-only

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

### Tag: package-2022-03-02-only

These settings apply only when `--tag=package-2022-03-02-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-2022-03-02-only'
namespace: azure.mgmt.compute.v2022_03_02
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02
```

### Tag: package-2022-01-03-only

These settings apply only when `--tag=package-2022-01-03-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-2022-01-03-only'
namespace: azure.mgmt.compute.v2022_01_03
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03
```

### Tag: package-2021-10-01-only

These settings apply only when `--tag=package-2021-10-01-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-2021-10-01-only'
namespace: azure.mgmt.compute.v2021_10_01
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01
```

### Tag: package-2021-07-01-only

These settings apply only when `--tag=package-2021-07-01-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-2021-07-01-only'
namespace: azure.mgmt.compute.v2021_07_01
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01
```

### Tag: package-2020-06-01-only and python

These settings apply only when `--tag=package-2020-06-01-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-06-01-only'
namespace: azure.mgmt.compute.v2020_06_01
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01
```

### Tag: package-2020-05-01-only and python

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

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

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

### Tag: package-2019-07-01-only and python

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

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

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

### Tag: package-compute-only-2017-12 and python

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

### Tag: package-skus-2017-09 and python

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

### Tag: package-compute-2017-03 and python

These settings apply only when `--tag=package-compute-2017-03 --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-compute-2017-03'
namespace: azure.mgmt.compute.v2017_03_30
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30
```

### Tag: package-compute-2016-03 and python

These settings apply only when `--tag=package-compute-2016-03 --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-compute-2016-03'
namespace: azure.mgmt.compute.v2016_03_30
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30
``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/compute/azure-mgmt-compute/azure/mgmt/compute
```
Loading