Skip to content

Commit

Permalink
Release sql microsoft.sql 2022 11 01 preview (#23802)
Browse files Browse the repository at this point in the history
* Adds base for updating Microsoft.Sql from version preview/2022-08-01-preview to version 2022-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add Swagger API changes required for progress-reporting related changes in DatabaseOperations (#22669)

* Update swagger (#22715)

* Follow-up Swagger API changes required for progress-reporting related changes in DatabaseOperations  (#22775)

* Add Swagger API changes required for progress-reporting related changes in DatabaseOperations

* Follow up changes required for progress-reporting related changes in DatabaseOperations

* updated example file

* Added Failed case in list-operations examples

* Update Microsoft.Sql ManagedInstance 2022-11-01-preview Swagger Docs (#22899)

* Update Microsoft.sql ManagedInstance 2022-11-01-preview Swagger Docs

* Address Swagger Validation Errors

* Modify custom-words.txt

* Manually updating arm-id format to match stable 2021-11-01 version

* Adding provisioning state changes

* fixing validation

* adding missing space

* Remove HTTP 200 from Start/Stop Actions as we only return HTTP 202

---------

Co-authored-by: Jovana Toroman <[email protected]>

* Update DateTime to ISO-8601 format in example file (#22986)

* Add Swagger API changes required for progress-reporting related changes in DatabaseOperations

* Follow up changes required for progress-reporting related changes in DatabaseOperations

* updated example file

* Added Failed case in list-operations examples

* Update DateTime to ISo-8601 format in example file

* Enable TryPlannedBeforeForcedFailover for SQL DB Failover Group (#22673)

* Enable TryPlannedBeforeForcedFailover for SQL DB Failover Group

* Modify example file

* Add example

* Fix ModelValidation issues

* Fix ModelValidation issues

* Add new controller

* Modify example

* Modify example

* Update server name

* Fix LintDiff

* Fix model validation errors

* Fix PostOperationAsyncResponseValidation, Unfix LroLocationHeader,ResourceNameRestriction

* Fix PostOperationAsyncResponseValidation

* Fix pending items

* Update doc

* Remove empty/unschematized object

---------

Co-authored-by: subhrob <[email protected]>

* [DO NOT MERGE] Add Archive option to LTR Policy for SQL DB (#22697)

* add archival changes to LTRPolicy

* fix LongTermRetentionPolicies swagger file

* fix check failures

* redo swagger

* Update swagger documentation for Managed Instance start-stop actions (#22992)

* Add NetworkSecurityPerimeterConfigurations Swagger (#22960)

* Add NetworkSecurityPerimeterConfigurations Swagger

* Fixes round 1

* Fixes round 2

* Fixes Round 3

* Fixes Round 4

* Fix Round 5

* fixing enum (#22995)

Co-authored-by: Jovana Toroman <[email protected]>

* add changes (#23120)

* Carry all minor changes to dev sql microsoft.sql 2022 11 01 preview (#23337)

* Revert "add changes (#23120)"

This reverts commit 5c348d2.

Revert "[DO NOT MERGE] Add Archive option to LTR Policy for SQL DB (#22697)"

This reverts commit 559f7f4.

* Carrying minor changes to release branch for Microsoft.Sql 2022-11-01-preview

* Reverting DatabaseAdvisors

* Further reverting problematic files

* Reverting a few example files

* Adding back arm-id to a few files

* Reverting error message change in ManagedDatabaseRestoreDetails.json, Jobs.json,ServerDevOpsAudit.json, and TransparentDataEncryptions.json

* Minor fixes for Turkey name change and missing x-ms-identifier (#23637)

* Fixing issues with a few breaking changes (#23943)

* Minor fixes for Turkey name change and missing x-ms-identifier

* Adding back missing arm-id and other missing property issues causing breaking changes incorrectly.

* Fixing prettier issue with ManagedDatabases.json

* Fixing arm-id format in 4 examples

* Adding missing location for 202 responses on sync examples

---------

Co-authored-by: Ji Wang <[email protected]>
Co-authored-by: Mohit Agarwal <[email protected]>
Co-authored-by: GalGoldi72 <[email protected]>
Co-authored-by: ilijadivljan-ms <[email protected]>
Co-authored-by: Jovana Toroman <[email protected]>
Co-authored-by: subhrob <[email protected]>
Co-authored-by: subhrob <[email protected]>
Co-authored-by: CelinaJiangJXY <[email protected]>
Co-authored-by: beoberha <[email protected]>
Co-authored-by: toki95 <[email protected]>
  • Loading branch information
11 people authored May 19, 2023
1 parent 2455fb2 commit d0d161e
Show file tree
Hide file tree
Showing 792 changed files with 90,392 additions and 2 deletions.
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ Cmek
CMKDW
CMKHS
CMMI
CMWIs
CNAME
cnames
CODEGEN
Expand Down Expand Up @@ -2392,6 +2393,8 @@ vhds
videosearch
viewp
vippool
virutal
Virutal
virtualclusters
virtualharddisks
virtualip
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"title": "SqlManagementClient",
"description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}": {
"get": {
"tags": [
"DataMaskingPolicies"
],
"description": "Gets the database data masking policy.",
"operationId": "DataMaskingPolicies_Get",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"name": "dataMaskingPolicyName",
"in": "path",
"description": "The name of the database for which the data masking policy applies.",
"required": true,
"type": "string",
"enum": [
"Default"
],
"x-ms-enum": {
"name": "DataMaskingPolicyName",
"modelAsString": true
}
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved the database data masking policies.",
"schema": {
"$ref": "#/definitions/DataMaskingPolicy"
}
},
"default": {
"description": "*** Error Responses: ***"
}
},
"x-ms-examples": {
"Gets the database data masking policies.": {
"$ref": "./examples/DataMaskingPolicyGet.json"
}
}
},
"put": {
"tags": [
"DataMaskingPolicies"
],
"description": "Creates or updates a database data masking policy.",
"operationId": "DataMaskingPolicies_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"name": "dataMaskingPolicyName",
"in": "path",
"description": "The name of the database for which the data masking policy applies.",
"required": true,
"type": "string",
"enum": [
"Default"
],
"x-ms-enum": {
"name": "DataMaskingPolicyName",
"modelAsString": true
}
},
{
"name": "parameters",
"in": "body",
"description": "Parameters for creating or updating a data masking policy.",
"required": true,
"schema": {
"$ref": "#/definitions/DataMaskingPolicy"
}
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully created database data masking policy.",
"schema": {
"$ref": "#/definitions/DataMaskingPolicy"
}
},
"default": {
"description": "*** Error Responses: ***"
},
"201": {
"description": "Successfully created database data masking policy..",
"schema": {
"$ref": "#/definitions/DataMaskingPolicy"
}
}
},
"x-ms-examples": {
"Create or update data masking policy max": {
"$ref": "./examples/DataMaskingPolicyCreateOrUpdateMax.json"
},
"Create or update data masking policy min.": {
"$ref": "./examples/DataMaskingPolicyCreateOrUpdateMin.json"
}
}
}
}
},
"definitions": {
"DataMaskingPolicy": {
"description": "A database data masking policy.",
"type": "object",
"allOf": [
{
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
}
],
"properties": {
"location": {
"description": "The location of the data masking policy.",
"type": "string",
"readOnly": true
},
"kind": {
"description": "The kind of Data Masking Policy. Metadata, used for Azure portal.",
"type": "string",
"readOnly": true
},
"properties": {
"$ref": "#/definitions/DataMaskingPolicyProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
}
},
"DataMaskingPolicyProperties": {
"description": "The properties of a database data masking policy.",
"required": [
"dataMaskingState"
],
"type": "object",
"properties": {
"dataMaskingState": {
"description": "The state of the data masking policy.",
"enum": [
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "DataMaskingState",
"modelAsString": false
}
},
"exemptPrincipals": {
"description": "The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.",
"type": "string"
},
"applicationPrincipals": {
"description": "The list of the application principals. This is a legacy parameter and is no longer used.",
"type": "string",
"readOnly": true
},
"maskingLevel": {
"description": "The masking level. This is a legacy parameter and is no longer used.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
"DatabaseNameParameter": {
"name": "databaseName",
"in": "path",
"description": "The name of the database.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"ServerNameParameter": {
"name": "serverName",
"in": "path",
"description": "The name of the server.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
}
}
Loading

0 comments on commit d0d161e

Please sign in to comment.