Skip to content

Commit 527209a

Browse files
committed
Update BatchManagement swagger
Ran prettier
1 parent bfb2175 commit 527209a

File tree

1 file changed

+142
-2
lines changed

1 file changed

+142
-2
lines changed

specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/BatchManagement.json

Lines changed: 142 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "BatchManagementClient",
55
"description": "The Batch Management Client.",
6-
"version": "2021-06-01"
6+
"version": "2022-01-01"
77
},
88
"host": "management.azure.com",
99
"schemes": [
@@ -1165,6 +1165,11 @@
11651165
"Operations"
11661166
],
11671167
"operationId": "Operations_List",
1168+
"x-ms-examples": {
1169+
"OperationsList": {
1170+
"$ref": "./examples/OperationsList.json"
1171+
}
1172+
},
11681173
"description": "Lists available operations for the Microsoft.Batch provider",
11691174
"parameters": [
11701175
{
@@ -1622,6 +1627,90 @@
16221627
}
16231628
}
16241629
},
1630+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors": {
1631+
"get": {
1632+
"operationId": "BatchAccount_ListDetectors",
1633+
"description": "Gets information about the detectors available for a given Batch account.",
1634+
"x-ms-examples": {
1635+
"ListDetectors": {
1636+
"$ref": "./examples/DetectorList.json"
1637+
}
1638+
},
1639+
"parameters": [
1640+
{
1641+
"$ref": "#/parameters/ResourceGroupNameParameter"
1642+
},
1643+
{
1644+
"$ref": "#/parameters/ApiVersionParameter"
1645+
},
1646+
{
1647+
"$ref": "#/parameters/SubscriptionIdParameter"
1648+
},
1649+
{
1650+
"$ref": "#/parameters/AccountNameParameter"
1651+
}
1652+
],
1653+
"responses": {
1654+
"200": {
1655+
"description": "The operation was successful. The response contains a list of detectors associated with a Batch account.",
1656+
"schema": {
1657+
"$ref": "#/definitions/DetectorListResult"
1658+
}
1659+
},
1660+
"default": {
1661+
"description": "Error response describing why the operation failed.",
1662+
"schema": {
1663+
"$ref": "#/definitions/CloudError"
1664+
}
1665+
}
1666+
},
1667+
"x-ms-pageable": {
1668+
"nextLinkName": "nextLink"
1669+
}
1670+
}
1671+
},
1672+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}": {
1673+
"get": {
1674+
"operationId": "BatchAccount_GetDetector",
1675+
"description": "Gets information about the given detector for a given Batch account.",
1676+
"x-ms-examples": {
1677+
"GetDetector": {
1678+
"$ref": "./examples/DetectorGet.json"
1679+
}
1680+
},
1681+
"parameters": [
1682+
{
1683+
"$ref": "#/parameters/ResourceGroupNameParameter"
1684+
},
1685+
{
1686+
"$ref": "#/parameters/ApiVersionParameter"
1687+
},
1688+
{
1689+
"$ref": "#/parameters/SubscriptionIdParameter"
1690+
},
1691+
{
1692+
"$ref": "#/parameters/AccountNameParameter"
1693+
},
1694+
{
1695+
"$ref": "#/parameters/DetectorIdParameter"
1696+
}
1697+
],
1698+
"responses": {
1699+
"200": {
1700+
"description": "The operation was successful. The response contains information about the given detector associated with a Batch account.",
1701+
"schema": {
1702+
"$ref": "#/definitions/DetectorResponse"
1703+
}
1704+
},
1705+
"default": {
1706+
"description": "Error response describing why the operation failed.",
1707+
"schema": {
1708+
"$ref": "#/definitions/CloudError"
1709+
}
1710+
}
1711+
}
1712+
}
1713+
},
16251714
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources": {
16261715
"get": {
16271716
"tags": [
@@ -3470,6 +3559,49 @@
34703559
],
34713560
"description": "An error response from the Batch service."
34723561
},
3562+
"DetectorListResult": {
3563+
"type": "object",
3564+
"properties": {
3565+
"value": {
3566+
"type": "array",
3567+
"items": {
3568+
"$ref": "#/definitions/DetectorResponse"
3569+
},
3570+
"description": "The collection of Batch account detectors returned by the listing operation."
3571+
},
3572+
"nextLink": {
3573+
"type": "string",
3574+
"description": "The URL to get the next set of results."
3575+
}
3576+
},
3577+
"description": "Values returned by the List operation."
3578+
},
3579+
"DetectorResponse": {
3580+
"type": "object",
3581+
"properties": {
3582+
"properties": {
3583+
"x-ms-client-flatten": true,
3584+
"$ref": "#/definitions/DetectorResponseProperties",
3585+
"description": "The properties associated with the detector."
3586+
}
3587+
},
3588+
"allOf": [
3589+
{
3590+
"$ref": "#/definitions/ProxyResource"
3591+
}
3592+
],
3593+
"description": "Contains the information for a detector."
3594+
},
3595+
"DetectorResponseProperties": {
3596+
"type": "object",
3597+
"properties": {
3598+
"value": {
3599+
"type": "string",
3600+
"description": "A base64 encoded string that represents the content of a detector."
3601+
}
3602+
},
3603+
"description": "Detector response properties."
3604+
},
34733605
"PrivateLinkResource": {
34743606
"type": "object",
34753607
"properties": {
@@ -4470,7 +4602,7 @@
44704602
"sku": {
44714603
"type": "string",
44724604
"title": "The SKU of the Azure Virtual Machines Marketplace image.",
4473-
"description": "For example, 18.04-LTS or 2019-Datacenter."
4605+
"description": "For example, 18.04-LTS or 2022-datacenter."
44744606
},
44754607
"version": {
44764608
"type": "string",
@@ -5820,6 +5952,14 @@
58205952
"description": "The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.",
58215953
"x-ms-parameter-location": "method"
58225954
},
5955+
"DetectorIdParameter": {
5956+
"name": "detectorId",
5957+
"in": "path",
5958+
"required": true,
5959+
"type": "string",
5960+
"description": "The name of the detector.",
5961+
"x-ms-parameter-location": "method"
5962+
},
58235963
"PoolNameParameter": {
58245964
"name": "poolName",
58255965
"in": "path",

0 commit comments

Comments
 (0)