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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions specification/app/cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ words:
- nacos
- occured
- otlp
- sreagent
overrides:
- filename: >-
**/specification/app/resource-manager/Microsoft.App/preview/2023-11-02-preview/ManagedEnvironments.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ These settings apply only when `--tag=package-2026-01-01` is specified on the co

```yaml $(tag) == 'package-2026-01-01'
input-file:
- stable/2026-01-01/Agents.json
- stable/2026-01-01/AgentsConnectors.json
- stable/2026-01-01/AgentSpaces.json
- stable/2026-01-01/AgentSpacesConnectors.json
- stable/2026-01-01/AuthConfigs.json
- stable/2026-01-01/AvailableWorkloadProfiles.json
- stable/2026-01-01/BillingMeters.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check notice on line 1 in specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/CommonDefinitions.json

View workflow job for this annotation

GitHub Actions / TypeSpec Requirement

Your service description will soon be required to convert from OpenAPI to TypeSpec. See https://aka.ms/azsdk/typespec.
"swagger": "2.0",
"info": {
"version": "2026-01-01",
Expand Down Expand Up @@ -1562,90 +1562,6 @@
"description": "Resource tags."
}
}
},
"AgentDataConnectorProperties": {
"description": "Agent Data Connector Properties",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/DataConnector"
}
],
"properties": {
"dataConnectorType": {
"description": "The type of the data connector.",
"type": "string"
},
"source": {
"description": "Source of the data connector - \"Agent\" when directly stored in agent, \"AgentSpace\" when inherited.",
"type": "string",
"readOnly": true
}
}
},
"AgentSpaceDataConnectorProperties": {
"description": "Agent Space Data Connector Properties",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/DataConnector"
}
],
"properties": {
"dataConnectorType": {
"description": "The type of the data connector.",
"enum": [
"Kusto",
"Icm"
],
"type": "string",
"x-ms-enum": {
"name": "AgentSpaceDataConnectorType",
"modelAsString": true
}
}
}
},
"DataConnector": {
"type": "object",
"description": "Data Connector properties",
"properties": {
"dataSource": {
"description": "Data source connection string or endpoint.",
"type": "string",
"x-ms-secret": true
},
"keyVaultUri": {
"description": "The Key Vault URI where secrets can be stored.",
"type": "string"
},
"identity": {
"description": "Identity used to access the data source.",
"type": "string",
"format": "arm-id"
},
"provisioningState": {
"description": "Provisioning state of the data connector.",
"enum": [
"InProgress",
"Succeeded",
"Failed",
"Canceled",
"Deleting"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "DataConnectorProvisioningState",
"modelAsString": true
}
},
"extendedProperties": {
"type": "object",
"description": "Additional properties for the data connector which can be used to store custom key-value pairs.",
"additionalProperties": {}
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## AZ

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

For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage.

``` yaml $(az) && $(target-mode) != 'core'
az:
extensions: sreagent
namespace: azure.mgmt.sreagent
package-name: azure-mgmt-sreagent
az-output-folder: $(azure-cli-extension-folder)/src/sreagent
python-sdk-output-folder: "$(az-output-folder)/azext_sreagent/vendored_sdks/sreagent"
# add additional configuration here specific for Azure CLI
# refer to the faq.md for more details
```



This is for command modules that already in azure cli main repo.
``` yaml $(az) && $(target-mode) == 'core'
az:
extensions: sreagent
namespace: azure.mgmt.sreagent
package-name: azure-mgmt-sreagent
az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/sreagent
python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/sreagent"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## CLI Common Settings for all the command line tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Go

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

```yaml $(go) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/sreagent/armsreagent
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# app

> see https://aka.ms/autorest

This is the AutoRest configuration file for Microsoft.App SRE Agent service.

## 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 SRE Agent.

``` yaml
openapi-type: arm
tag: package-2026-01-01

suppressions:
- code: OperationsAPIImplementation
reason: The operations API is defined in a separate file.
from: Agents.json
- code: MissingSegmentsInNestedResourceListOperation
reason: The parent resource Get call is defined in a separate file.
from: AgentsConnectors.json
- code: MissingSegmentsInNestedResourceListOperation
reason: The parent resource Get call is defined in a separate file.
from: AgentSpacesConnectors.json

```

### Tag: package-2026-01-01
These settings apply only when `--tag=package-2026-01-01` is specified on the command line.

```yaml $(tag) == 'package-2026-01-01'
input-file:
- stable/2026-01-01/Agents.json
- stable/2026-01-01/AgentsConnectors.json
- stable/2026-01-01/AgentSpaces.json
- stable/2026-01-01/AgentSpacesConnectors.json
- stable/2026-01-01/CommonDefinitions.json
directive:
- suppress: AvoidAdditionalProperties
from: CommonDefinitions.json
where:
- $.definitions.Connector.properties.extendedProperties
```

---
# 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-resource-manager-schemas
- repo: azure-powershell
```

## Az

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

## Go

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

## Python

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

## TypeScript

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Python

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-sreagent
namespace: azure.mgmt.sreagent
package-version: 1.0.0b1
clear-output-folder: true
```

``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/sreagent/azure-mgmt-sreagent/azure/mgmt/sreagent
modelerfour:
lenient-model-deduplication: true # !!temporary!! to solve the duplicate schema issue of ErrorResponse in common-types v2 and v3 introduced in this PR https://github.com/Azure/azure-rest-api-specs/pull/27786
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 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)
typescript:
azure-arm: true
package-name: "@azure/arm-sreagent"
output-folder: "$(typescript-sdks-folder)/sdk/sreagent/arm-sreagent"
payload-flattening-threshold: 1
clear-output-folder: true
generate-metadata: true
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
suppressions:
azure-sdk-for-go:
- package: 'sdk/resourcemanager/sreagent/armsreagent'
breaking-changes: []
azure-sdk-for-python:
- package: azure-mgmt-sreagent
breaking-changes: []
Loading