Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"configurationName": "default",
"api-version": "2019-01-01-preview",
"tenantConfiguration": {
"properties": {
"enforcePrivateMarkdownStorage": true
}
}
},
"responses": {
"201": {
"body": {
"id": "/providers/Microsoft.Portal/tenantConfiguration/default",
"name": "default",
"type": "Microsoft.Portal/tenantConfiguration",
"properties": {
"enforcePrivateMarkdownStorage": true
}
}
},
"200": {
"body": {
"id": "/providers/Microsoft.Portal/tenantConfiguration/default",
"name": "default",
"type": "Microsoft.Portal/tenantConfiguration",
"properties": {
"enforcePrivateMarkdownStorage": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"configurationName": "default",
"api-version": "2019-01-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"configurationName": "default",
"api-version": "2019-01-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Portal/tenantConfiguration/default",
"name": "default",
"type": "Microsoft.Portal/tenantConfiguration",
"properties": {
"enforcePrivateMarkdownStorage": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
"swagger": "2.0",
"info": {
"version": "2019-01-01-preview",
"title": "portal",
"description": "Manage tenant configuration.",
"x-ms-code-generation-settings": {
"name": "portalClient"
}
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"paths": {
"/providers/Microsoft.Portal/tenantConfiguration/{configurationName}": {
"get": {
"tags": [
"tenantConfiguration"
],
"operationId": "TenantConfiguration_Get",
"description": "Gets the tenant configuration.",
"parameters": [
{
"$ref": "#/parameters/ConfigurationNameParameter"
},
{
"$ref": "portal.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. Returns the tenant configuration.",
"schema": {
"$ref": "#/definitions/Configuration"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "portal.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get Tenant configuration": {
"$ref": "examples/TenantConfiguration/GetTenantConfiguration.json"
}
}
},
"put": {
"tags": [
"tenantConfiguration"
],
"operationId": "TenantConfiguration_Create",
"description": "Create the tenant configuration. If configuration already exists - update it. Tenant Admin permission is required.",
"parameters": [
{
"$ref": "#/parameters/ConfigurationNameParameter"
},
{
"$ref": "portal.json#/parameters/ApiVersionParameter"
},
{
"name": "tenantConfiguration",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Configuration"
},
"description": "The parameters required to create or update tenant configuration."
}
],
"responses": {
"201": {
"description": "Created. New configuration was created",
"schema": {
"$ref": "#/definitions/Configuration"
}
},
"200": {
"description": "OK. Existing configuration updated.",
"schema": {
"$ref": "#/definitions/Configuration"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "portal.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Create or update Tenant configuration": {
"$ref": "examples/TenantConfiguration/CreateOrUpdateTenantConfiguration.json"
}
}
},
"delete": {
"tags": [
"tenantConfiguration"
],
"operationId": "TenantConfiguration_Delete",
"description": "Delete the tenant configuration. Tenant Admin permission is required.",
"parameters": [
{
"$ref": "#/parameters/ConfigurationNameParameter"
},
{
"$ref": "portal.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. Configuration was deleted."
},
"204": {
"description": "No content. Configuration was not found."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "portal.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get Tenant configuration": {
"$ref": "examples/TenantConfiguration/DeleteTenantConfiguration.json"
}
}
}
}
},
"parameters": {
"ConfigurationNameParameter": {
"name": "configurationName",
"in": "path",
"required": true,
"type": "string",
"description": "The configuration name. Value must be 'default'",
"enum": [
"default"
],
"x-ms-enum": {
"name": "configurationName",
"modelAsString": true
},
"x-ms-parameter-location": "method"
}
},
"definitions": {
"Configuration": {
"description": "Tenant configuration.",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ConfigurationProperties",
"description": "Tenant configuration properties."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
}
]
},
"ConfigurationProperties": {
"description": "Tenant configuration Properties.",
"x-ms-azure-resource": true,
"properties": {
"enforcePrivateMarkdownStorage": {
"type": "boolean",
"description": "Flag to enforce URI storage for Markdown tiles in Private dashboards."
}
}
}
},
"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"
}
}
}
}
9 changes: 5 additions & 4 deletions specification/portal/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ These settings apply only when `--tag=package-2019-01-01-preview` is specified o
``` yaml $(tag) == 'package-2019-01-01-preview'
input-file:
- Microsoft.Portal/preview/2019-01-01-preview/portal.json
- Microsoft.Portal/preview/2019-01-01-preview/tenantConfiguration.json
```

### Tag: package-2018-10-01-preview

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

```yaml $(tag) == 'package-2018-10-01-preview'
``` yaml $(tag) == 'package-2018-10-01-preview'
input-file:
- Microsoft.Portal/preview/2018-10-01-preview/portal.json
```
Expand Down Expand Up @@ -109,7 +110,7 @@ See configuration in [readme.nodejs.md](./readme.nodejs.md)

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

## Multi-API/Profile support for AutoRest v3 generators
## Multi-API/Profile support for AutoRest v3 generators

AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.

Expand All @@ -122,16 +123,16 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Portal/preview/2019-01-01-preview/portal.json
- $(this-folder)/Microsoft.Portal/preview/2019-01-01-preview/tenantConfiguration.json
- $(this-folder)/Microsoft.Portal/preview/2018-10-01-preview/portal.json
- $(this-folder)/Microsoft.Portal/preview/2015-08-01-preview/portal.json

```

If there are files that should not be in the `all-api-versions` set,
If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```