Skip to content

Commit

Permalink
Servicelinker: 2021 12 01 privatepreview (#5741)
Browse files Browse the repository at this point in the history
* copy api from 2021-11-01-preview to 2021-12-01-privatepreview

* replace api-version to 2021-12-01-privatepreview

* add new dryrun job resource and example

* fix ci error

* add basic error in dryrun results

* add LIST, GET, DELETE for dryrun

* fix typo

* add provisioningState in dryrun, change put async to 201 and add patch

* fix ci error

* add operations_list examples

* add x-ms-identifiers for array
  • Loading branch information
ChenTanyi authored Jan 4, 2022
1 parent 81d3264 commit 66fdec4
Show file tree
Hide file tree
Showing 17 changed files with 1,600 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ domainname
domainservices
DOTALL
DRMs
dryrun
dryruns
dsmax
Dsts
Dscm
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"dryrunName": "dryrunName"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkerName": "linkName"
},
"responses": {
"200": {},
"204": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkerName": "linkName"
},
"responses": {
"200": {
"body": {
"configurations": [
{
"name": "ASL_DocumentDb_ConnectionString",
"value": "ConnectionString"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"dryrunName": "dryrunName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/dryruns/dryrunName",
"name": "dryrunName",
"type": "Microsoft.ServiceLinker/dryruns",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"authInfo": {
"authType": "secret",
"name": "username"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
},
"systemData": {
"createdAt": "2020-07-12T22:05:09Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkerName": "linkName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
"name": "linkName",
"type": "Microsoft.ServiceLinker/links",
"properties": {
"authInfo": {
"authType": "secret",
"name": "name"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"systemData": {
"createdAt": "2020-07-12T22:05:09Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/links/linkName",
"name": "linkName",
"type": "Microsoft.ServiceLinker/links",
"properties": {
"authInfo": {
"authType": "secret",
"name": "username"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"systemData": {
"createdAt": "2020-07-12T22:05:09Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/dryruns/dryrunName",
"name": "dryrunName",
"type": "Microsoft.ServiceLinker/dryruns",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"authInfo": {
"authType": "secret",
"name": "username"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
},
"systemData": {
"createdAt": "2020-07-12T22:05:09Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ServiceLinker/register/action",
"isDataAction": false,
"display": {
"provider": "Microsoft.ServiceLinker",
"resource": "Microsoft.ServiceLinker",
"operation": "Register the Microsoft.ServiceLinker",
"description": "Register the subscription for Microsoft.ServiceLinker"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"dryrunName": "dryrunName",
"parameters": {
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "secret",
"name": "name",
"secret": "secret"
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/dryruns/dryrunName",
"type": "Microsoft.ServiceLinker/dryruns",
"name": "dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "secret",
"name": "name"
}
},
"results": [
{
"type": "basicError",
"code": "ResourceNotFound",
"message": "Target resource is not found"
},
{
"type": "permissionsMissing",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc",
"permissions": [
"Microsoft.DocumentDb/databaseAccounts/read"
]
}
],
"provisioningState": "Succeeded"
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkerName": "linkName",
"parameters": {
"properties": {
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "servicePrincipalSecret",
"clientId": "name",
"principalId": "id",
"secret": "secret"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
"type": "Microsoft.ServiceLinker/links",
"name": "linkName",
"properties": {
"authInfo": {
"authType": "servicePrincipalSecret",
"clientId": "name",
"principalId": "id"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
"type": "Microsoft.ServiceLinker/links",
"name": "linkName",
"properties": {
"authInfo": {
"authType": "servicePrincipalSecret",
"clientId": "name",
"principalId": "id"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"parameters": {
"api-version": "2021-12-01-privatepreview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"dryrunName": "dryrunName",
"parameters": {
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "secret",
"name": "name",
"secret": "secret"
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/dryruns/dryrunName",
"type": "Microsoft.ServiceLinker/dryruns",
"name": "dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "secret",
"name": "name"
}
},
"results": [
{
"type": "basicError",
"code": "ResourceNotFound",
"message": "Target resource is not found"
},
{
"type": "permissionsMissing",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc",
"permissions": [
"Microsoft.DocumentDb/databaseAccounts/read"
]
}
],
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/dryruns/dryrunName",
"type": "Microsoft.ServiceLinker/dryruns",
"name": "dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "secret",
"name": "name"
}
},
"results": [
{
"type": "basicError",
"code": "ResourceNotFound",
"message": "Target resource is not found"
},
{
"type": "permissionsMissing",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc",
"permissions": [
"Microsoft.DocumentDb/databaseAccounts/read"
]
}
],
"provisioningState": "Updating"
}
}
}
}
}
Loading

0 comments on commit 66fdec4

Please sign in to comment.