Skip to content

Commit

Permalink
[service connector]add api version 2022-11-01-preview (Azure#21408)
Browse files Browse the repository at this point in the history
* add api version 2022-11-01-preview

* fix api versions in sample

* fix sample

* add dryrun to custom words

* update configurationNames API

Co-authored-by: xiaofanzhou <xiaofanzhou@microsoft.com>
  • Loading branch information
2 people authored and anandanthony committed Dec 16, 2022
1 parent 7bf3f54 commit fe9075f
Show file tree
Hide file tree
Showing 30 changed files with 3,956 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2822,4 +2822,8 @@ vippool
routeset
routesets
wayfind
wayfinding
wayfinding
dryruns
Dryrun
dryrun

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"api-version": "2022-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"targetService": "MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES",
"clientType": "none",
"authType": "systemAssignedIdentity",
"names": [
{
"value": "AZURE_APPCONFIGURATION_ENDPOINT",
"description": "App configuration endpoint"
},
{
"value": "AZURE_APPCONFIGURATION_SCOPE",
"description": "The scopes required for the token."
}
]
},
{
"targetService": "MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES",
"clientType": "none",
"authType": "userAssignedIdentity",
"names": [
{
"value": "AZURE_APPCONFIGURATION_ENDPOINT",
"description": "App configuration endpoint"
},
{
"value": "AZURE_APPCONFIGURATION_CLIENTID",
"description": "The client(application) ID of the user identity."
},
{
"value": "AZURE_APPCONFIGURATION_SCOPE",
"description": "The scopes required for getting token."
}
]
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"location": "westus",
"dryrunName": "dryrunName",
"parameters": {
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetService": {
"type": "AzureResource",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"authInfo": {
"authType": "secret",
"name": "name",
"secretInfo": {
"secretType": "rawValue",
"value": "secret"
}
}
}
}
}
},
"responses": {
"200": {
"body": {
"name": "dryrunName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetService": {
"type": "AzureResource",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"authInfo": {
"authType": "secret",
"name": "name"
}
},
"prerequisiteResults": [
{
"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/write"
]
}
],
"operationPreviews": [
{
"name": "configFirewallRule",
"operationType": "configNetwork",
"description": "Config firewall rule for target service to allow source service access",
"action": "Microsoft.DocumentDb/databaseAccounts/write",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc"
}
],
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"name": "dryrunName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetService": {
"type": "AzureResource",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"authInfo": {
"authType": "secret",
"name": "name"
}
},
"prerequisiteResults": [
{
"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/write"
]
}
],
"operationPreviews": [
{
"name": "configFirewallRule",
"operationType": "configNetwork",
"description": "Config firewall rule for target service to allow source service access",
"action": "Microsoft.DocumentDb/databaseAccounts/write",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc"
}
],
"provisioningState": "Accepted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"location": "westus",
"dryrunName": "dryrunName"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"location": "westus",
"dryrunName": "dryrunName"
},
"responses": {
"200": {
"body": {
"name": "dryrunName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"authInfo": {
"authType": "secret",
"name": "username"
},
"targetService": {
"type": "AzureResource",
"id": "/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,36 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"location": "westus"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "dryrunName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"authInfo": {
"authType": "secret",
"name": "username"
},
"targetService": {
"type": "AzureResource",
"id": "/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,78 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"location": "westus",
"dryrunName": "dryrunName",
"parameters": {
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetService": {
"type": "AzureResource",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"authInfo": {
"authType": "secret",
"name": "name",
"secretInfo": {
"secretType": "rawValue",
"value": "secret"
}
}
}
}
}
},
"responses": {
"200": {
"body": {
"name": "dryrunName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
"properties": {
"parameters": {
"actionName": "createOrUpdate",
"targetService": {
"type": "AzureResource",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
},
"authInfo": {
"authType": "secret",
"name": "name"
}
},
"prerequisiteResults": [
{
"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/write"
]
}
],
"operationPreviews": [
{
"name": "configFirewallRule",
"operationType": "configNetwork",
"description": "Config firewall rule for target service to allow source service access",
"action": "Microsoft.DocumentDb/databaseAccounts/write",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc"
}
],
"provisioningState": "Succeeded"
}
}
},
"202": {
"headers": {
"azure-AsyncOperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2022-11-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"location": "westus"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/linkers/linkName",
"name": "linkName",
"type": "Microsoft.ServiceLinker/devConnectors",
"properties": {
"authInfo": {
"authType": "secret",
"name": "username"
},
"targetService": {
"type": "AzureResource",
"id": "/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"
}
}
]
}
}
}
}
Loading

0 comments on commit fe9075f

Please sign in to comment.