-
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 all 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/tenantConfigurations/default", | ||
| "name": "default", | ||
| "type": "Microsoft.Portal/tenantConfiguration", | ||
| "properties": { | ||
| "enforcePrivateMarkdownStorage": true | ||
| } | ||
| } | ||
| }, | ||
| "200": { | ||
| "body": { | ||
| "id": "/providers/Microsoft.Portal/tenantConfigurations/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": {} | ||
| } | ||
| } |
21 changes: 21 additions & 0 deletions
21
...review/2019-01-01-preview/examples/TenantConfiguration/GetListOfTenantConfigurations.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,21 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2019-01-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/providers/Microsoft.Portal/tenantConfigurations", | ||
| "name": "default", | ||
| "type": "Microsoft.Portal/tenantConfiguration", | ||
| "properties": { | ||
| "enforcePrivateMarkdownStorage": true | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
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/tenantConfigurations/default", | ||
| "name": "default", | ||
| "type": "Microsoft.Portal/tenantConfiguration", | ||
| "properties": { | ||
| "enforcePrivateMarkdownStorage": true | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
256 changes: 256 additions & 0 deletions
256
...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,256 @@ | ||
| { | ||
| "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": { | ||
AKachan0v marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "/providers/Microsoft.Portal/tenantConfigurations": { | ||
| "get": { | ||
| "tags": [ | ||
| "tenantConfiguration" | ||
| ], | ||
| "operationId": "TenantConfigurations_List", | ||
| "description": "Gets list of the tenant configurations.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "portal.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. Returns the list of tenant configurations.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ConfigurationList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "portal.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Get list of Tenant configurations": { | ||
| "$ref": "examples/TenantConfiguration/GetListOfTenantConfigurations.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}": { | ||
| "get": { | ||
| "tags": [ | ||
| "tenantConfiguration" | ||
| ], | ||
| "operationId": "TenantConfigurations_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": "TenantConfigurations_Create", | ||
| "description": "Create the tenant configuration. If configuration already exists - update it. User has to be a Tenant Admin for this operation.", | ||
| "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": "TenantConfigurations_Delete", | ||
| "description": "Delete the tenant configuration. User has to be a Tenant Admin for this operation.", | ||
| "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": { | ||
| "Delete 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": { | ||
| "ConfigurationList": { | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/Configuration" | ||
| }, | ||
| "description": "The array of custom resource provider manifests." | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "description": "The URL to use for getting the next set of results." | ||
| } | ||
| }, | ||
| "description": "List of tenant configurations." | ||
| }, | ||
| "Configuration": { | ||
| "type": "object", | ||
| "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": { | ||
| "type": "object", | ||
| "description": "Tenant configuration properties.", | ||
| "x-ms-azure-resource": true, | ||
| "properties": { | ||
| "enforcePrivateMarkdownStorage": { | ||
| "type": "boolean", | ||
| "description": "When flag is set to true Markdown tile will require external storage configuration (URI). The inline content configuration will be prohibited." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "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.