Skip to content
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

Syntex: moving 2022-09-15-preview version from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main #20959

Merged
merged 14 commits into from
Oct 7, 2022
Merged
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2141,6 +2141,7 @@ Sybase
Syncer
syncfunctiontriggers
synonymmaps
Syntex
syntheticmonitorlocations
sysctl
Sysctl
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b",
"resourceGroupName": "mygroup",
"processorName": "myprocessor",
"api-version": "2022-09-15-preview",
"body": {
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa"
}
}
},
"responses": {
"200": {
Copy link
Member

@TimLovellSmith TimLovellSmith Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

200

Add 201 response example? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that returning 201 makes PUT an asynchronous operation, and we agreed at the ARM review board meeting earlier this year that this PR will not b asynchronous.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, returning 201 Created for PUT is just following standard HTTP behavior. Returning 202 makes PUT asynchronous. You may be thinking of returning 201 with nonterminal provisioning status or returning Azure-AsyncOperation headers with 201 which are only needed for async operations. Please review the RPC for further clarification.

"body": {
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor",
"name": "myprocessor",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b",
"resourceGroupName": "mygroup",
"processorName": "myprocessor",
"api-version": "2022-09-15-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b",
"resourceGroupName": "mygroup",
"processorName": "myprocessor",
"api-version": "2022-09-15-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor",
"name": "myprocessor",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b",
"api-version": "2022-09-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1",
"name": "myprocessor1",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2",
"name": "myprocessor2",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b",
"resourceGroupName": "mygroup",
"api-version": "2022-09-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1",
"name": "myprocessor1",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2",
"name": "myprocessor2",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string1",
"additionalProp2": "string2",
"additionalProp3": "string3"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b",
"resourceGroupName": "mygroup",
"processorName": "myprocessor",
"api-version": "2022-09-15-preview",
"body": {
"tags": {
"additionalProp1": "string4",
"additionalProp2": "string5",
"additionalProp3": "string6"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor",
"name": "myprocessor",
"type": "Microsoft.Syntex/documentprocessors",
"location": "westus",
"tags": {
"additionalProp1": "string4",
"additionalProp2": "string5",
"additionalProp3": "string6"
},
"properties": {
"spoTenantUrl": "https://test123.sharepoint.com",
"spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"parameters": {
"api-version": "2022-09-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Syntex/documentProcessors/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Syntex",
"resource": "documentProcessors",
"operation": "DocumentProcessor_List",
"description": "Returns document processors in the subscription."
}
},
{
"name": "Microsoft.Syntex/documentProcessors/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Syntex",
"resource": "documentProcessors",
"operation": "DocumentProcessor_ListByResourceGroup",
"description": "Returns document processors in a resource group."
}
},
{
"name": "Microsoft.Syntex/documentProcessors/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.Syntex",
"resource": "documentProcessors",
"operation": "DocumentProcessor_Get",
"description": "Returns a document processor for a given name."
}
},
{
"name": "Microsoft.Syntex/documentProcessors/write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Syntex",
"resource": "documentProcessors",
"operation": "DocumentProcessor_Create",
"description": "Creates a document processor resource for a given name."
}
},
{
"name": "Microsoft.Syntex/documentProcessors/delete",
"isDataAction": false,
"display": {
"provider": "Microsoft.Syntex",
"resource": "documentProcessors",
"operation": "DocumentProcessor_Delete",
"description": "Deletes document processor resource for a given name."
}
},
{
"name": "Microsoft.Syntex/documentProcessors/write",
"isDataAction": false,
"display": {
"provider": "Microsoft.Syntex",
"resource": "documentProcessors",
"operation": "DocumentProcessor_Update",
"description": "Updates a document processor resource for a given name."
}
},
{
"name": "microsoft.syntex/operations/read",
"isDataAction": false,
"display": {
"provider": "microsoft.syntex",
"resource": "operations",
"operation": "read_operations",
"description": "read operations"
}
},
{
"name": "microsoft.syntex/register/action",
"isDataAction": false,
"display": {
"provider": "microsoft.syntex",
"resource": "microsoft.syntex",
"operation": "Register the microsoft.syntex",
"description": "Register the subscription for microsoft.syntex"
}
},
{
"name": "microsoft.syntex/unregister/action",
"isDataAction": false,
"display": {
"provider": "microsoft.syntex",
"resource": "microsoft.syntex",
"operation": "Unregister the microsoft.syntex",
"description": "Unregister the subscription for microsoft.syntex"
}
}
]
}
}
}
}
Loading