Skip to content

Commit e63adcf

Browse files
author
Sushil Upadhyay
committed
Fix Errors
1 parent f5b57bb commit e63adcf

31 files changed

+1945
-39
lines changed

specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@
204204
"type": "string",
205205
"required": true,
206206
"in": "path",
207-
"x-ms-parameter-location": "method",
208-
"pattern": "^[A-Za-z0-9][-A-Za-z0-9]{4,48}[A-Za-z0-9]$"
207+
"x-ms-parameter-location": "method"
209208
},
210209
"clientRequestId": {
211210
"name": "clientRequestId",
@@ -214,15 +213,6 @@
214213
"required": false,
215214
"in": "header",
216215
"x-ms-parameter-location": "method"
217-
},
218-
"RuntimeEnvironmentNameParameter": {
219-
"name": "runtimeEnvironmentName",
220-
"description": "The name of the Runtime Environment.",
221-
"type": "string",
222-
"required": true,
223-
"in": "path",
224-
"x-ms-parameter-location": "method",
225-
"pattern": "^[a-zA-Z][a-zA-Z-_0-9]*$"
226216
}
227217
}
228218
}

specification/automation/resource-manager/Microsoft.Automation/common/v5/definitions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,16 @@
9494
}
9595
}
9696
}
97+
},
98+
"parameters": {
99+
"RuntimeEnvironmentNameParameter": {
100+
"name": "runtimeEnvironmentName",
101+
"description": "The name of the Runtime Environment.",
102+
"type": "string",
103+
"required": true,
104+
"in": "path",
105+
"x-ms-parameter-location": "method",
106+
"pattern": "^[a-zA-Z][a-zA-Z-_0-9]*$"
107+
}
97108
}
98109
}

specification/automation/resource-manager/Microsoft.Automation/preview/2023-05-15-preview/account.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,8 @@
951951
"principalId": {
952952
"readOnly": true,
953953
"type": "string",
954-
"description": "The principal ID of resource identity."
954+
"format": "uuid",
955+
"description": "The principal ID of resource identity. The value must be an UUID."
955956
},
956957
"tenantId": {
957958
"readOnly": true,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "AutomationManagement",
5+
"version": "2023-05-15-preview",
6+
"x-ms-code-generation-settings": {
7+
"useDateTimeOffset": true
8+
}
9+
},
10+
"host": "management.azure.com",
11+
"schemes": [
12+
"https"
13+
],
14+
"consumes": [
15+
"application/json"
16+
],
17+
"produces": [
18+
"application/json"
19+
],
20+
"security": [
21+
{
22+
"azure_auth": [
23+
"user_impersonation"
24+
]
25+
}
26+
],
27+
"securityDefinitions": {
28+
"azure_auth": {
29+
"type": "oauth2",
30+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
31+
"flow": "implicit",
32+
"description": "Azure Active Directory OAuth2 Flow",
33+
"scopes": {
34+
"user_impersonation": "impersonate your user account"
35+
}
36+
}
37+
},
38+
"paths": {
39+
"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts": {
40+
"get": {
41+
"tags": [
42+
"DeletedAutomationAccounts"
43+
],
44+
"operationId": "deletedAutomationAccounts_ListBySubscription",
45+
"description": "Retrieve deleted automation account.",
46+
"x-ms-examples": {
47+
"Get deleted automation account": {
48+
"$ref": "./examples/getDeletedAutomationAccount.json"
49+
}
50+
},
51+
"parameters": [
52+
{
53+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
54+
},
55+
{
56+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
57+
}
58+
],
59+
"responses": {
60+
"200": {
61+
"description": "OK",
62+
"schema": {
63+
"$ref": "#/definitions/DeletedAutomationAccountListResult"
64+
}
65+
},
66+
"default": {
67+
"description": "Automation error response describing why the operation failed.",
68+
"schema": {
69+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
70+
}
71+
}
72+
}
73+
}
74+
}
75+
},
76+
"definitions": {
77+
"DeletedAutomationAccountListResult": {
78+
"type": "object",
79+
"properties": {
80+
"value": {
81+
"type": "array",
82+
"items": {
83+
"$ref": "#/definitions/DeletedAutomationAccount"
84+
},
85+
"description": "Gets or sets the list of deleted automation accounts."
86+
}
87+
},
88+
"description": "The response model for the list deleted automation account."
89+
},
90+
"DeletedAutomationAccount": {
91+
"type": "object",
92+
"properties": {
93+
"properties": {
94+
"$ref": "#/definitions/DeletedAutomationAccountProperties",
95+
"x-ms-client-flatten": true,
96+
"description": "Gets or sets the automation account properties."
97+
},
98+
"id": {
99+
"description": "The resource id.",
100+
"type": "string"
101+
},
102+
"name": {
103+
"type": "string",
104+
"description": "Gets or sets name of the resource."
105+
},
106+
"type": {
107+
"type": "string",
108+
"description": "The resource type."
109+
},
110+
"location": {
111+
"type": "string",
112+
"description": "Gets or sets the location of the resource."
113+
}
114+
},
115+
"description": "Definition of the deleted automation account type."
116+
},
117+
"DeletedAutomationAccountProperties": {
118+
"type": "object",
119+
"properties": {
120+
"automationAccountResourceId": {
121+
"type": "string",
122+
"description": "Gets or sets the Automation Account Resource Id."
123+
},
124+
"automationAccountId": {
125+
"type": "string",
126+
"description": "Gets or sets the Automation Account Id."
127+
},
128+
"location": {
129+
"type": "string",
130+
"description": "Gets or sets the location of the resource."
131+
},
132+
"deletionTime": {
133+
"type": "string",
134+
"format": "date-time",
135+
"readOnly": true,
136+
"description": "Gets the deletion time.",
137+
"x-nullable": false
138+
}
139+
},
140+
"description": "Definition of the deleted automation account properties."
141+
}
142+
},
143+
"parameters": {}
144+
}

specification/automation/resource-manager/Microsoft.Automation/preview/2023-05-15-preview/dscCompilationJob.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
},
330330
"allOf": [
331331
{
332-
"$ref": "../../common/v1/definitions.json#/definitions/ProxyResource"
332+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
333333
}
334334
],
335335
"description": "Definition of the Dsc Compilation job."
@@ -514,6 +514,7 @@
514514
"description": "The Dsc configuration property associated with the entity."
515515
},
516516
"JobStream": {
517+
"type": "object",
517518
"properties": {
518519
"id": {
519520
"type": "string",
@@ -528,6 +529,7 @@
528529
"description": "Definition of the job stream."
529530
},
530531
"JobStreamListResult": {
532+
"type": "object",
531533
"properties": {
532534
"value": {
533535
"type": "array",
@@ -579,6 +581,7 @@
579581
},
580582
"summary": {
581583
"type": "string",
584+
"x-nullable": true,
582585
"description": "Gets or sets the summary."
583586
},
584587
"value": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "AutomationManagement",
5+
"version": "2023-05-15-preview",
6+
"x-ms-code-generation-settings": {
7+
"useDateTimeOffset": true
8+
}
9+
},
10+
"host": "management.azure.com",
11+
"schemes": [
12+
"https"
13+
],
14+
"consumes": [
15+
"application/json"
16+
],
17+
"produces": [
18+
"application/json"
19+
],
20+
"security": [
21+
{
22+
"azure_auth": [
23+
"user_impersonation"
24+
]
25+
}
26+
],
27+
"securityDefinitions": {
28+
"azure_auth": {
29+
"type": "oauth2",
30+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
31+
"flow": "implicit",
32+
"description": "Azure Active Directory OAuth2 Flow",
33+
"scopes": {
34+
"user_impersonation": "impersonate your user account"
35+
}
36+
}
37+
},
38+
"paths": {
39+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}": {
40+
"get": {
41+
"tags": [
42+
"NodeCountInformation"
43+
],
44+
"operationId": "NodeCountInformation_Get",
45+
"description": "Retrieve counts for Dsc Nodes.",
46+
"externalDocs": {
47+
"url": "http://aka.ms/azureautomationsdk/nodecounts"
48+
},
49+
"x-ms-examples": {
50+
"Get node's status counts": {
51+
"$ref": "./examples/listPagedDscNodeStatusCounts.json"
52+
},
53+
"Get node's node configuration counts": {
54+
"$ref": "./examples/listPagedDscNodeConfigurationCounts.json"
55+
}
56+
},
57+
"parameters": [
58+
{
59+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
60+
},
61+
{
62+
"$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter"
63+
},
64+
{
65+
"$ref": "#/parameters/CountTypeParameter"
66+
},
67+
{
68+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
69+
},
70+
{
71+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
72+
}
73+
],
74+
"responses": {
75+
"200": {
76+
"description": "OK",
77+
"schema": {
78+
"$ref": "#/definitions/NodeCounts"
79+
}
80+
},
81+
"default": {
82+
"description": "Automation error response describing why the operation failed.",
83+
"schema": {
84+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
85+
}
86+
}
87+
}
88+
}
89+
}
90+
},
91+
"definitions": {
92+
"NodeCounts": {
93+
"properties": {
94+
"value": {
95+
"type": "array",
96+
"items": {
97+
"$ref": "#/definitions/NodeCount"
98+
},
99+
"x-ms-identifiers": [
100+
"name"
101+
],
102+
"description": "Gets an array of counts"
103+
},
104+
"totalCount": {
105+
"type": "integer",
106+
"description": "Gets the total number of records matching countType criteria."
107+
}
108+
},
109+
"description": "Gets the count of nodes by count type"
110+
},
111+
"NodeCount": {
112+
"description": "Number of nodes based on the Filter",
113+
"properties": {
114+
"name": {
115+
"description": "Gets the name of a count type",
116+
"type": "string"
117+
},
118+
"properties": {
119+
"$ref": "#/definitions/NodeCountProperties"
120+
}
121+
}
122+
},
123+
"NodeCountProperties": {
124+
"properties": {
125+
"count": {
126+
"description": "Gets the count for the name",
127+
"type": "integer"
128+
}
129+
}
130+
}
131+
},
132+
"parameters": {
133+
"CountTypeParameter": {
134+
"name": "countType",
135+
"in": "path",
136+
"required": true,
137+
"type": "string",
138+
"description": "The type of counts to retrieve",
139+
"enum": [
140+
"status",
141+
"nodeconfiguration"
142+
],
143+
"x-ms-enum": {
144+
"name": "CountType",
145+
"modelAsString": true
146+
},
147+
"x-ms-parameter-location": "method"
148+
}
149+
}
150+
}

specification/automation/resource-manager/Microsoft.Automation/preview/2023-05-15-preview/examples/PrivateLinkResourceListGet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"body": {
1111
"value": [
1212
{
13-
"id": "subscriptions/subid/resourceGroups/Default/providers/Microsoft.Automation/automationAccounts/testaccount/privateLinkResources/sql",
13+
"id": "/subscriptions/subid/resourceGroups/Default/providers/Microsoft.Automation/automationAccounts/testaccount/privateLinkResources/sql",
1414
"name": "sql",
1515
"type": "Microsoft.Automation/automationAccounts/privateLinkResources",
1616
"properties": {

specification/automation/resource-manager/Microsoft.Automation/preview/2023-05-15-preview/examples/getAllConnectionTypes_First100.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,7 @@
26112611
}
26122612
}
26132613
],
2614-
"nextLink": "https://management.azure.com:443/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes?api-version=2019-06-01&$skip=100"
2614+
"nextLink": "https://management.azure.com:443/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes?api-version=2023-05-15-preview&$skip=100"
26152615
}
26162616
}
26172617
}

0 commit comments

Comments
 (0)