diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json index db500e26a969..1ff9df143412 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json @@ -103,7 +103,7 @@ "200": { "body": { "validationErrors": [], - "estimatedCreationDuration": "00:20:00" + "estimatedCreationDuration": "PT20M" } } } diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/ListHDInsightOperations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/ListHDInsightOperations.json new file mode 100644 index 000000000000..0537940b4db1 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/ListHDInsightOperations.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.HDInsight/register/action", + "display": { + "provider": "Microsoft.HDInsight", + "resource": null, + "operation": "Register HDInsight resource provider", + "description": "Register HDInsight resource provider for the subscription" + }, + "properties": null + }, + { + "name": "Microsoft.HDInsight/unregister/action", + "display": { + "provider": "Microsoft.HDInsight", + "resource": null, + "operation": "Unregister HDInsight resource provider", + "description": "Unregister HDInsight resource provider for the subscription" + }, + "properties": null + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/operations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/operations.json index 48beffae6656..55eaa9c1fb65 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/operations.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/operations.json @@ -41,6 +41,11 @@ ], "description": "Lists all of the available HDInsight REST API operations.", "operationId": "Operations_List", + "x-ms-examples": { + "Lists all of the available operations": { + "$ref": "./examples/ListHDInsightOperations.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json index c7e6c687da34..1095f47c3b9a 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json @@ -103,7 +103,7 @@ "200": { "body": { "validationErrors": [], - "estimatedCreationDuration": "00:20:00" + "estimatedCreationDuration": "PT20M" } } } diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ListHDInsightOperations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ListHDInsightOperations.json new file mode 100644 index 000000000000..461024cb0d20 --- /dev/null +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ListHDInsightOperations.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.HDInsight/register/action", + "display": { + "provider": "Microsoft.HDInsight", + "resource": null, + "operation": "Register HDInsight resource provider", + "description": "Register HDInsight resource provider for the subscription" + }, + "properties": null + }, + { + "name": "Microsoft.HDInsight/unregister/action", + "display": { + "provider": "Microsoft.HDInsight", + "resource": null, + "operation": "Unregister HDInsight resource provider", + "description": "Unregister HDInsight resource provider for the subscription" + }, + "properties": null + } + ] + } + } + } +} diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/operations.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/operations.json index 04a864355aea..628513f5fd41 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/operations.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/operations.json @@ -41,6 +41,11 @@ ], "description": "Lists all of the available HDInsight REST API operations.", "operationId": "Operations_List", + "x-ms-examples": { + "Lists all of the available operations": { + "$ref": "./examples/ListHDInsightOperations.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter"