-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add TenantConfiguration API to the Microsoft.Portal provider (version 2019-01-01-preview) #10603
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
Merged
PhoenixHe-NV
merged 19 commits into
Azure:master
from
AKachan0v:dev-portal-Microsoft.Portal-2019-01-01-preview
Sep 8, 2020
Merged
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d536317
#7912260: Add tenant configuration API
c5faedd
Fix version
364a7d9
Fix references
7232309
Fix Prettier
a5b3761
Add new file to readme.md
c76232d
Fix Linter warnings
991fe3d
Add Delete method
6316333
Adds suppression to readme
AKachan0v 246ab89
Remove suppression for boolean
27571fa
Ref to common type instead of redefine generic fields
e03d52b
Fix Prettier
7b9793e
Change resource type to plural and descriptions
00cc003
Add Tenant configuration list
a3e8f91
Fix example position
04a90d4
Fix Prettier
cc655e6
Change version for common types
fda576f
Use local definition instead of ref common types
fa1bc17
Revoke 2 latest commits and return repo to signed off state
3f298df
Fix Prettier
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...ew/2019-01-01-preview/examples/TenantConfiguration/CreateOrUpdateTenantConfiguration.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
10 changes: 10 additions & 0 deletions
10
...al/preview/2019-01-01-preview/examples/TenantConfiguration/DeleteTenantConfiguration.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": {} | ||
| } | ||
| } |
18 changes: 18 additions & 0 deletions
18
...ortal/preview/2019-01-01-preview/examples/TenantConfiguration/GetTenantConfiguration.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
215 changes: 215 additions & 0 deletions
215
...tal/resource-manager/Microsoft.Portal/preview/2019-01-01-preview/tenantConfiguration.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,215 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2019-01-01-preview", | ||
AKachan0v marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "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": { | ||
AKachan0v marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "/providers/Microsoft.Portal/tenantConfiguration/{configurationName}": { | ||
AKachan0v marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "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.", | ||
| "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.", | ||
| "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.", | ||
| "x-ms-azure-resource": true, | ||
| "properties": { | ||
| "id": { | ||
AKachan0v marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The tenant configuration id." | ||
| }, | ||
| "name": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The tenant configuration name - default." | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The resource type." | ||
| }, | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/ConfigurationProperties", | ||
| "description": "Tenant configuration properties." | ||
| } | ||
| } | ||
| }, | ||
| "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." | ||
AKachan0v marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| } | ||
| }, | ||
| "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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.