Skip to content

Commit efce41d

Browse files
committed
Fix operations API
1 parent ea03cbf commit efce41d

File tree

1 file changed

+35
-19
lines changed
  • specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2020-03-01-preview

1 file changed

+35
-19
lines changed

specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2020-03-01-preview/azurestackhci.json

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"200": {
5151
"description": "OK",
5252
"schema": {
53-
"$ref": "#/definitions/OperationList"
53+
"$ref": "#/definitions/AvailableOperations"
5454
}
5555
},
5656
"default": {
@@ -545,60 +545,76 @@
545545
}
546546
}
547547
},
548-
"OperationList": {
549-
"description": "List of available operations.",
548+
"AvailableOperations": {
549+
"description": "Available operations of the service",
550550
"type": "object",
551551
"properties": {
552552
"value": {
553-
"description": "List of operations.",
553+
"description": "Collection of available operation details",
554+
"uniqueItems": false,
554555
"type": "array",
555556
"items": {
556-
"$ref": "#/definitions/Operation"
557+
"$ref": "#/definitions/OperationDetail"
557558
}
558559
},
559560
"nextLink": {
560-
"description": "Link to the next set of results.",
561-
"type": "string",
562-
"readOnly": true
561+
"description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
562+
"type": "string"
563563
}
564564
}
565565
},
566-
"Operation": {
567-
"description": "Operation details.",
566+
"OperationDetail": {
567+
"description": "Operation detail payload",
568568
"type": "object",
569569
"properties": {
570570
"name": {
571-
"description": "Name of the operation.",
572-
"type": "string",
573-
"readOnly": true
571+
"description": "Name of the operation",
572+
"type": "string"
573+
},
574+
"isDataAction": {
575+
"description": "Indicates whether the operation is a data action",
576+
"type": "boolean"
574577
},
575578
"display": {
576579
"$ref": "#/definitions/OperationDisplay",
577-
"description": "Operation properties."
580+
"description": "Display of the operation"
581+
},
582+
"origin": {
583+
"description": "Origin of the operation",
584+
"type": "string"
585+
},
586+
"properties": {
587+
"$ref": "#/definitions/OperationProperties",
588+
"description": "Properties of the operation"
578589
}
579590
}
580591
},
581592
"OperationDisplay": {
582-
"description": "Operation properties.",
593+
"description": "Operation display payload",
583594
"type": "object",
584595
"properties": {
585596
"provider": {
586-
"description": "Resource provider name.",
597+
"description": "Resource provider of the operation",
587598
"type": "string"
588599
},
589600
"resource": {
590-
"description": "Resource type name.",
601+
"description": "Resource of the operation",
591602
"type": "string"
592603
},
593604
"operation": {
594-
"description": "Operation name.",
605+
"description": "Localized friendly name for the operation",
595606
"type": "string"
596607
},
597608
"description": {
598-
"description": "Operation description.",
609+
"description": "Localized friendly description for the operation",
599610
"type": "string"
600611
}
601612
}
613+
},
614+
"OperationProperties": {
615+
"description": "Operation properties.",
616+
"type": "object",
617+
"properties": {}
602618
}
603619
},
604620
"parameters": {

0 commit comments

Comments
 (0)