Skip to content

Commit b5702b7

Browse files
authored
Fix Analysis Services for Swagger Completeness (Azure#11638)
* Fix Analysis Services for Swagger Completeness * Fix for lintdiff issues * Change schema to error * Default schema change * Adding title and description * Add separator * Some changes to address R4018 * Fix parameter * Move parameter * Remove a parameter * Fix quotes bug * Add required parameters to address R4018 * More updates to Operations API response schema * Cleaner schema change following the example schema under R4018 * Fix for prettier tool
1 parent 462773a commit b5702b7

File tree

2 files changed

+210
-0
lines changed

2 files changed

+210
-0
lines changed

specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2016-05-16/analysisservices.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,103 @@
550550
}
551551
}
552552
}
553+
},
554+
"/providers/Microsoft.AnalysisServices/operations": {
555+
"get": {
556+
"tags": [
557+
"Operations"
558+
],
559+
"operationId": "Operations_List",
560+
"description": "Lists all of the available consumption REST API operations.",
561+
"parameters": [
562+
{
563+
"$ref": "#/parameters/ApiVersionParameter"
564+
}
565+
],
566+
"responses": {
567+
"200": {
568+
"description": "OK. The request has succeeded.",
569+
"schema": {
570+
"$ref": "#/definitions/OperationListResult"
571+
}
572+
},
573+
"default": {
574+
"description": "Error response describing why the operation failed.",
575+
"schema": {
576+
"$ref": "#/definitions/OperationsErrorResponse"
577+
}
578+
}
579+
},
580+
"x-ms-pageable": {
581+
"nextLinkName": "nextLink"
582+
}
583+
}
553584
}
554585
},
555586
"definitions": {
587+
"OperationDisplay": {
588+
"description": "The object that represents the operation.",
589+
"type": "object",
590+
"properties": {
591+
"provider": {
592+
"description": "Service provider: Microsoft.Consumption.",
593+
"type": "string",
594+
"readOnly": true
595+
},
596+
"resource": {
597+
"description": "Resource on which the operation is performed: UsageDetail, etc.",
598+
"type": "string",
599+
"readOnly": true
600+
},
601+
"operation": {
602+
"description": "Operation type: Read, write, delete, etc.",
603+
"type": "string",
604+
"readOnly": true
605+
},
606+
"description": {
607+
"description": "Description for the operation",
608+
"type": "string"
609+
}
610+
}
611+
},
612+
"OperationDetail": {
613+
"description": "A Consumption REST API operation.",
614+
"type": "object",
615+
"properties": {
616+
"name": {
617+
"description": "Operation name: {provider}/{resource}/{operation}.",
618+
"type": "string",
619+
"readOnly": true
620+
},
621+
"isDataAction": {
622+
"description": "Indicates whether the operation is a data action",
623+
"type": "boolean"
624+
},
625+
"display": {
626+
"$ref": "#/definitions/OperationDisplay",
627+
"description": "Display of the operation"
628+
}
629+
}
630+
},
631+
"OperationListResult": {
632+
"description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.",
633+
"type": "object",
634+
"properties": {
635+
"value": {
636+
"description": "List of analysis services operations supported by the Microsoft.AnalysisServices resource provider.",
637+
"type": "array",
638+
"readOnly": true,
639+
"items": {
640+
"$ref": "#/definitions/OperationDetail"
641+
}
642+
},
643+
"nextLink": {
644+
"description": "URL to get the next set of operation list results if there are any.",
645+
"type": "string",
646+
"readOnly": true
647+
}
648+
}
649+
},
556650
"Resource": {
557651
"description": "Represents an instance of an Analysis Services resource.",
558652
"type": "object",
@@ -867,7 +961,18 @@
867961
}
868962
}
869963
},
964+
"OperationsErrorResponse": {
965+
"properties": {
966+
"error": {
967+
"$ref": "#/definitions/ErrorResponse",
968+
"title": "OperationsErrorResponse",
969+
"description": "Error message from Operations."
970+
}
971+
},
972+
"description": "An error response from Operations."
973+
},
870974
"ErrorResponse": {
975+
"title": "ErrorResponse",
871976
"description": "Describes the format of Error response.",
872977
"type": "object",
873978
"properties": {

specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-07-14/analysisservices.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,103 @@
639639
}
640640
}
641641
}
642+
},
643+
"/providers/Microsoft.AnalysisServices/operations": {
644+
"get": {
645+
"tags": [
646+
"Operations"
647+
],
648+
"operationId": "Operations_List",
649+
"description": "Lists all of the available consumption REST API operations.",
650+
"parameters": [
651+
{
652+
"$ref": "#/parameters/ApiVersionParameter"
653+
}
654+
],
655+
"responses": {
656+
"200": {
657+
"description": "OK. The request has succeeded.",
658+
"schema": {
659+
"$ref": "#/definitions/OperationListResult"
660+
}
661+
},
662+
"default": {
663+
"description": "Error response describing why the operation failed.",
664+
"schema": {
665+
"$ref": "#/definitions/OperationsErrorResponse"
666+
}
667+
}
668+
},
669+
"x-ms-pageable": {
670+
"nextLinkName": "nextLink"
671+
}
672+
}
642673
}
643674
},
644675
"definitions": {
676+
"OperationDisplay": {
677+
"description": "The object that represents the operation.",
678+
"type": "object",
679+
"properties": {
680+
"provider": {
681+
"description": "Service provider: Microsoft.Consumption.",
682+
"type": "string",
683+
"readOnly": true
684+
},
685+
"resource": {
686+
"description": "Resource on which the operation is performed: UsageDetail, etc.",
687+
"type": "string",
688+
"readOnly": true
689+
},
690+
"operation": {
691+
"description": "Operation type: Read, write, delete, etc.",
692+
"type": "string",
693+
"readOnly": true
694+
},
695+
"description": {
696+
"description": "Description for the operation",
697+
"type": "string"
698+
}
699+
}
700+
},
701+
"OperationDetail": {
702+
"description": "A Consumption REST API operation.",
703+
"type": "object",
704+
"properties": {
705+
"name": {
706+
"description": "Operation name: {provider}/{resource}/{operation}.",
707+
"type": "string",
708+
"readOnly": true
709+
},
710+
"isDataAction": {
711+
"description": "Indicates whether the operation is a data action",
712+
"type": "boolean"
713+
},
714+
"display": {
715+
"$ref": "#/definitions/OperationDisplay",
716+
"description": "Display of the operation"
717+
}
718+
}
719+
},
720+
"OperationListResult": {
721+
"description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.",
722+
"type": "object",
723+
"properties": {
724+
"value": {
725+
"description": "List of analysis services operations supported by the Microsoft.AnalysisServices resource provider.",
726+
"type": "array",
727+
"readOnly": true,
728+
"items": {
729+
"$ref": "#/definitions/OperationDetail"
730+
}
731+
},
732+
"nextLink": {
733+
"description": "URL to get the next set of operation list results if there are any.",
734+
"type": "string",
735+
"readOnly": true
736+
}
737+
}
738+
},
645739
"Resource": {
646740
"description": "Represents an instance of an Analysis Services resource.",
647741
"type": "object",
@@ -1021,7 +1115,18 @@
10211115
}
10221116
}
10231117
},
1118+
"OperationsErrorResponse": {
1119+
"properties": {
1120+
"error": {
1121+
"$ref": "#/definitions/ErrorResponse",
1122+
"title": "OperationsErrorResponse",
1123+
"description": "Error message from Operations."
1124+
}
1125+
},
1126+
"description": "An error response from Operations."
1127+
},
10241128
"ErrorResponse": {
1129+
"title": "ErrorResponse",
10251130
"description": "Describes the format of Error response.",
10261131
"type": "object",
10271132
"properties": {

0 commit comments

Comments
 (0)