Skip to content

Commit 6635f9f

Browse files
authored
Add New Reco API Version (#20365)
* add 22-03-01 preview api version * add new version to readme.md * fix array type new validation error * suppress operations API implementation * fix readme indentation * revert validation suppression
1 parent 700edef commit 6635f9f

26 files changed

+2764
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"body": {
6+
"type": "Microsoft.RecommendationsService/accounts",
7+
"name": "sampleAccount"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true
14+
}
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"body": {
6+
"type": "Microsoft.RecommendationsService/accounts",
7+
"name": "sampleAccount"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": false,
14+
"reason": "AlreadyExists",
15+
"message": "Requested name is already in use. Please select a different name."
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "rg",
6+
"accountName": "sampleAccount",
7+
"body": {
8+
"location": "West US",
9+
"tags": {
10+
"Environment": "Prod"
11+
},
12+
"properties": {
13+
"configuration": "Capacity",
14+
"endpointAuthentications": [
15+
{
16+
"aadTenantID": "tenant",
17+
"principalID": "oid",
18+
"principalType": "User"
19+
}
20+
]
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount",
28+
"name": "sampleAccount",
29+
"type": "Microsoft.RecommendationsService/accounts",
30+
"location": "West US",
31+
"tags": {
32+
"Environment": "Prod"
33+
},
34+
"systemData": {},
35+
"properties": {
36+
"configuration": "Capacity",
37+
"endpointAuthentications": [
38+
{
39+
"aadTenantID": "tenant",
40+
"principalID": "oid",
41+
"principalType": "User"
42+
}
43+
],
44+
"provisioningState": "Succeeded"
45+
}
46+
}
47+
},
48+
"201": {
49+
"body": {
50+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount",
51+
"name": "sampleAccount",
52+
"type": "Microsoft.RecommendationsService/accounts",
53+
"location": "West US",
54+
"tags": {
55+
"Environment": "Prod"
56+
},
57+
"systemData": {},
58+
"properties": {
59+
"configuration": "Capacity",
60+
"endpointAuthentications": [
61+
{
62+
"aadTenantID": "tenant",
63+
"principalID": "oid",
64+
"principalType": "User"
65+
}
66+
],
67+
"provisioningState": "Accepted"
68+
}
69+
}
70+
}
71+
}
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "rg",
6+
"accountName": "sampleAccount",
7+
"body": {
8+
"location": "West US",
9+
"tags": {
10+
"Environment": "Prod"
11+
},
12+
"properties": {
13+
"configuration": "Capacity",
14+
"endpointAuthentications": [
15+
{
16+
"aadTenantID": "tenant",
17+
"principalID": "oid",
18+
"principalType": "User"
19+
}
20+
]
21+
},
22+
"identity": {
23+
"type": "SystemAssigned,UserAssigned",
24+
"userAssignedIdentities": {
25+
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity": {}
26+
}
27+
}
28+
}
29+
},
30+
"responses": {
31+
"200": {
32+
"body": {
33+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount",
34+
"name": "sampleAccount",
35+
"type": "Microsoft.RecommendationsService/accounts",
36+
"location": "West US",
37+
"tags": {
38+
"Environment": "Prod"
39+
},
40+
"systemData": {},
41+
"properties": {
42+
"configuration": "Capacity",
43+
"endpointAuthentications": [
44+
{
45+
"aadTenantID": "tenant",
46+
"principalID": "oid",
47+
"principalType": "User"
48+
}
49+
],
50+
"provisioningState": "Succeeded"
51+
},
52+
"identity": {
53+
"type": "SystemAssigned,UserAssigned",
54+
"principalId": "92e65ecf-0fae-432e-8272-fedb6edb96c7",
55+
"tenantId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
56+
"userAssignedIdentities": {
57+
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity": {
58+
"principalId": "02f32674-4184-485f-8e03-8d05fc6acd9a",
59+
"clientId": "ea55d893-56a7-4266-b250-93273eeac60c"
60+
}
61+
}
62+
}
63+
}
64+
},
65+
"201": {
66+
"body": {
67+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount",
68+
"name": "sampleAccount",
69+
"type": "Microsoft.RecommendationsService/accounts",
70+
"location": "West US",
71+
"tags": {
72+
"Environment": "Prod"
73+
},
74+
"systemData": {},
75+
"properties": {
76+
"configuration": "Capacity",
77+
"endpointAuthentications": [
78+
{
79+
"aadTenantID": "tenant",
80+
"principalID": "oid",
81+
"principalType": "User"
82+
}
83+
],
84+
"provisioningState": "Accepted"
85+
},
86+
"identity": {
87+
"type": "SystemAssigned,UserAssigned",
88+
"principalId": "92e65ecf-0fae-432e-8272-fedb6edb96c7",
89+
"tenantId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
90+
"userAssignedIdentities": {
91+
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity": {
92+
"principalId": "02f32674-4184-485f-8e03-8d05fc6acd9a",
93+
"clientId": "ea55d893-56a7-4266-b250-93273eeac60c"
94+
}
95+
}
96+
}
97+
}
98+
}
99+
}
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "rg",
6+
"accountName": "sampleAccount"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "rg",
6+
"accountName": "sampleAccount"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount",
12+
"name": "sampleAccount",
13+
"type": "Microsoft.RecommendationsService/accounts",
14+
"location": "West US",
15+
"tags": {
16+
"Environment": "Prod"
17+
},
18+
"systemData": {},
19+
"properties": {
20+
"configuration": "Capacity",
21+
"endpointAuthentications": [
22+
{
23+
"aadTenantID": "tenant",
24+
"principalID": "oid",
25+
"principalType": "User"
26+
}
27+
],
28+
"cors": [
29+
{
30+
"allowedOrigins": [
31+
"http://siteA.com"
32+
],
33+
"allowedMethods": [
34+
"GET",
35+
"PUT",
36+
"POST"
37+
],
38+
"allowedHeaders": [
39+
"X-Custom-Header",
40+
"X-Custom-Header2"
41+
]
42+
}
43+
],
44+
"reportsConnectionString": "https://storageAccount.blob.core.windows.net/container/root",
45+
"provisioningState": "Succeeded"
46+
},
47+
"identity": {
48+
"type": "SystemAssigned",
49+
"principalId": "92e65ecf-0fae-432e-8272-fedb6edb96c7",
50+
"tenantId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13"
51+
}
52+
}
53+
}
54+
}
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "rg",
6+
"accountName": "sampleAccount"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"scopesStatuses": [
12+
{
13+
"scope": "modeling1",
14+
"statuses": [
15+
{
16+
"stage": "DataAccess",
17+
"status": "Success",
18+
"time": "2021-08-31T17:15:31.2485861Z"
19+
},
20+
{
21+
"stage": "DataValidation",
22+
"status": "Failed",
23+
"time": "2021-08-31T17:16:31.2485861Z"
24+
},
25+
{
26+
"stage": "Model",
27+
"status": "Pending",
28+
"time": "2021-08-31T17:17:31.2485861Z"
29+
}
30+
]
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01-preview",
4+
"subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
5+
"resourceGroupName": "rg",
6+
"accountName": "sampleAccount"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {}
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)