From 5743d7c74cd63c55577af35283a9061d8a0d627c Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Wed, 28 Sep 2022 22:01:47 +0530 Subject: [PATCH 1/4] First commit with existing version files in new folder --- .../examples/LoadTests_CreateOrUpdate.json | 116 ++++ .../2022-12-01/examples/LoadTests_Delete.json | 13 + .../2022-12-01/examples/LoadTests_Get.json | 34 ++ .../LoadTests_ListByResourceGroup.json | 37 ++ .../LoadTests_ListBySubscription.json | 36 ++ .../2022-12-01/examples/LoadTests_Update.json | 76 +++ .../2022-12-01/examples/Operations_List.json | 44 ++ .../stable/2022-12-01/loadtestservice.json | 533 ++++++++++++++++++ 8 files changed, 889 insertions(+) create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json new file mode 100644 index 000000000000..c85171852613 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json @@ -0,0 +1,116 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResource": { + "location": "westus", + "tags": { + "Team": "Dev Exp" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "description": "This is new load test resource", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "201": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "UserAssigned", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1" + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json new file mode 100644 index 000000000000..7def1498cba3 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json new file mode 100644 index 000000000000..79a51baf8cf3 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest" + }, + "responses": { + "200": { + "body": { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json new file mode 100644 index 000000000000..a3aadb651a8d --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json new file mode 100644 index 000000000000..9291be9c3631 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "westus", + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json new file mode 100644 index 000000000000..f417f150a3b5 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResourcePatchRequestBody": { + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "description": "This is new load test resource", + "encryption": { + "identity": { + "type": "SystemAssigned", + "resourceId": null + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "westus", + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "12345678-1234-1234-1234-123456789012", + "tenantId": "12345678-1234-1234-4321-123456789012", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "12345678-1234-4321-1234-123456789012", + "clientId": "12345678-4321-1234-1234-123456789012" + } + } + }, + "properties": { + "description": "This is new load test resource", + "dataPlaneURI": "https://myLoadTest.00000000-0000-0000-0000-000000000000.cnt-dp.domain.com", + "provisioningState": "Succeeded", + "encryption": { + "identity": { + "type": "SystemAssigned", + "resourceId": null + }, + "keyUrl": "https://dummy.vault.azure.net/keys/dummykey1" + } + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest", + "name": "myLoadTest", + "type": "Microsoft.LoadTestService/loadTests", + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "systemData": { + "createdBy": "userId1001", + "createdByType": "User", + "createdAt": "2021-09-28T12:32:33Z", + "lastModifiedBy": "userId1001", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-09-28T12:32:33Z" + } + } + }, + "202": {} + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json new file mode 100644 index 000000000000..3cae2c608e76 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.LoadTestService/loadTests/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Creates or updates the LoadTests", + "description": "Set LoadTests" + } + }, + { + "name": "Microsoft.LoadTestService/loadTests/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Deletes the LoadTests", + "description": "Delete LoadTests" + } + }, + { + "name": "Microsoft.LoadTestService/loadTests/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.LoadTestService", + "resource": "loadTests", + "operation": "Reads the LoadTests", + "description": "Read LoadTests" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json new file mode 100644 index 000000000000..2a8a663c7044 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json @@ -0,0 +1,533 @@ +{ + "swagger": "2.0", + "info": { + "title": "LoadTest Client", + "description": "LoadTest client provides access to LoadTest Resource and it's status operations.", + "version": "2022-04-15-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "paths": { + "/providers/Microsoft.LoadTestService/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all the available API operations for Load Test Resource.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests": { + "get": { + "tags": [ + "LoadTests" + ], + "description": "Lists loadtests resources in a subscription.", + "operationId": "LoadTests_ListBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LoadTestResourcePageList" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "LoadTests_ListBySubscription": { + "$ref": "./examples/LoadTests_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests": { + "get": { + "tags": [ + "LoadTests" + ], + "description": "Lists loadtest resources in a resource group.", + "operationId": "LoadTests_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- list of loadtests resources retrieved", + "schema": { + "$ref": "#/definitions/LoadTestResourcePageList" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "LoadTests_ListByResourceGroup": { + "$ref": "./examples/LoadTests_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}": { + "get": { + "tags": [ + "LoadTests" + ], + "description": "Get a LoadTest resource.", + "operationId": "LoadTests_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/LoadTestNameParameter" + } + ], + "responses": { + "200": { + "description": "OK -- loadtest resource retrieved", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "LoadTests_Get": { + "$ref": "./examples/LoadTests_Get.json" + } + } + }, + "put": { + "tags": [ + "LoadTests" + ], + "description": "Create or update LoadTest resource.", + "operationId": "LoadTests_CreateOrUpdate", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/LoadTestNameParameter" + }, + { + "in": "body", + "name": "LoadTestResource", + "description": "LoadTest resource data", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "201": { + "description": "Created -- LoadTest resource created", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "LoadTests_CreateOrUpdate": { + "$ref": "./examples/LoadTests_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "LoadTests" + ], + "description": "Update a loadtest resource.", + "operationId": "LoadTests_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/LoadTestNameParameter" + }, + { + "in": "body", + "name": "LoadTestResourcePatchRequestBody", + "description": "LoadTest resource update data", + "required": true, + "schema": { + "$ref": "#/definitions/LoadTestResourcePatchRequestBody" + } + } + ], + "responses": { + "200": { + "description": "OK -- resource updated", + "schema": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "202": { + "description": "Accepted -- LoadTest resource patch request accepted" + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "LoadTests_Update": { + "$ref": "./examples/LoadTests_Update.json" + } + } + }, + "delete": { + "tags": [ + "LoadTests" + ], + "description": "Delete a LoadTest resource.", + "operationId": "LoadTests_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/LoadTestNameParameter" + } + ], + "responses": { + "200": { + "description": "OK -- resource deleted" + }, + "202": { + "description": "Accepted -- LoadTest resource delete request accepted" + }, + "204": { + "description": "No Content -- resource deleted" + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "LoadTests_Delete": { + "$ref": "./examples/LoadTests_Delete.json" + } + } + } + } + }, + "definitions": { + "LoadTestResourcePageList": { + "description": "List of resources page result.", + "type": "object", + "properties": { + "value": { + "description": "List of resources in current page.", + "type": "array", + "items": { + "$ref": "#/definitions/LoadTestResource" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string" + } + } + }, + "LoadTestResource": { + "type": "object", + "description": "LoadTest details", + "properties": { + "properties": { + "description": "Load Test resource properties", + "$ref": "#/definitions/LoadTestProperties", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The type of identity used for the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "LoadTestResourcePatchRequestBody": { + "description": "LoadTest resource patch request body.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The type of identity used for the resource." + }, + "properties": { + "description": "Load Test resource properties", + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "description": { + "description": "Description of the resource.", + "maxLength": 512, + "type": "string" + }, + "encryption": { + "description": "CMK Encryption property.", + "type": "object", + "$ref": "#/definitions/EncryptionProperties" + } + } + } + } + }, + "LoadTestProperties": { + "description": "LoadTest resource properties.", + "type": "object", + "properties": { + "description": { + "description": "Description of the resource.", + "maxLength": 512, + "type": "string" + }, + "provisioningState": { + "description": "Resource provisioning state.", + "$ref": "#/definitions/ResourceState", + "readOnly": true + }, + "dataPlaneURI": { + "description": "Resource data plane URI.", + "maxLength": 2083, + "type": "string", + "readOnly": true + }, + "encryption": { + "description": "CMK Encryption property.", + "type": "object", + "$ref": "#/definitions/EncryptionProperties" + } + } + }, + "EncryptionProperties": { + "description": "Key and identity details for Customer Managed Key encryption of load test resource", + "type": "object", + "properties": { + "identity": { + "type": "object", + "description": "All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.", + "properties": { + "type": { + "type": "string", + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": true + }, + "description": "Managed identity type to use for accessing encryption key Url" + }, + "resourceId": { + "type": "string", + "description": "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" + } + } + }, + "keyUrl": { + "type": "string", + "description": "key encryption key Url, versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek." + } + } + }, + "ResourceState": { + "description": "Load Test resources provisioning states.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Deleted" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceState", + "modelAsString": true + } + } + }, + "parameters": { + "LoadTestNameParameter": { + "in": "path", + "name": "loadTestName", + "description": "Load Test resource name.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + } + } +} From a1e1c6727d177dd109753f2c09b407285a1ff787 Mon Sep 17 00:00:00 2001 From: Madhuri Jain Date: Wed, 28 Sep 2022 22:12:58 +0530 Subject: [PATCH 2/4] Added new stable version 2022-12-01 --- .../examples/LoadTests_CreateOrUpdate.json | 2 +- .../2022-12-01/examples/LoadTests_Delete.json | 2 +- .../2022-12-01/examples/LoadTests_Get.json | 2 +- .../LoadTests_ListByResourceGroup.json | 2 +- .../LoadTests_ListBySubscription.json | 2 +- ...tOutboundNetworkDependenciesEndpoints.json | 108 +++++ .../2022-12-01/examples/LoadTests_Update.json | 2 +- .../2022-12-01/examples/Operations_List.json | 2 +- .../examples/Quotas_CheckAvailability.json | 32 ++ .../2022-12-01/examples/Quotas_Get.json | 21 + .../2022-12-01/examples/Quotas_List.json | 24 + .../stable/2022-12-01/loadtestservice.json | 436 +++++++++++++++++- .../resource-manager/readme.md | 10 +- .../resource-manager/readme.ruby.md | 8 +- 14 files changed, 638 insertions(+), 15 deletions(-) create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_CheckAvailability.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_Get.json create mode 100644 specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_List.json diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json index c85171852613..70526eef9e8a 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview", + "api-version": "2022-12-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", "loadTestName": "myLoadTest", diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json index 7def1498cba3..7da2a27ecbf6 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview", + "api-version": "2022-12-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", "loadTestName": "myLoadTest" diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json index 79a51baf8cf3..9e67afbca1f5 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview", + "api-version": "2022-12-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", "loadTestName": "myLoadTest" diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json index a3aadb651a8d..86ea89d5ca58 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview", + "api-version": "2022-12-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg" }, diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json index 9291be9c3631..04e26a446c94 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview", + "api-version": "2022-12-01", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json new file mode 100644 index 000000000000..f775dfd8eab7 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "loadTestName": "sampleloadtest", + "resourceGroupName": "default-azureloadtest-japaneast", + "api-version": "2022-12-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "category": "Azure Batch", + "endpoints": [ + { + "domainName": "sampleacct.japaneast.batch.azure.com", + "description": "Applicable to job manager tasks, tasks that use job scoped authentication, or any task that makes calls to Batch.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "japaneast.service.batch.azure.com", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Azure Storage", + "endpoints": [ + { + "domainName": "autostorageaccountname.blob.core.windows.net", + "description": "AutoStorage endpoint for this Batch account. Applicable to all Azure Batch pools under this account.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.blob.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.table.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + }, + { + "domainName": "*.queue.core.windows.net", + "description": "Applicable to all Azure Batch pools.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Microsoft Package Repository", + "endpoints": [ + { + "domainName": "packages.microsoft.com", + "description": "Only applicable to pools containing a Mount Configuration. Learn about Mount Configurations in Batch at https://docs.microsoft.com/azure/batch/virtual-file-mount.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + }, + { + "category": "Azure Key Vault", + "endpoints": [ + { + "domainName": "*.vault.azure.net", + "description": "Only applicable to pools containing a Disk Encryption Configuration and whose VM size does not support encryption at host. Learn more about disk encryption in Azure Batch at https://docs.microsoft.com/azure/batch/disk-encryption. Learn more about encryption at host and supported VM sizes at https://docs.microsoft.com/azure/virtual-machines/disks-enable-host-based-encryption-portal.", + "endpointDetails": [ + { + "port": 443 + } + ] + } + ] + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json index f417f150a3b5..9a83e2c98c82 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/LoadTests_Update.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview", + "api-version": "2022-12-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "dummyrg", "loadTestName": "myLoadTest", diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json index 3cae2c608e76..de2627fe70be 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-15-preview" + "api-version": "2022-12-01" }, "responses": { "200": { diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_CheckAvailability.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_CheckAvailability.json new file mode 100644 index 000000000000..874ad2444f00 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_CheckAvailability.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2022-12-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus", + "quotaBucketName": "testQuotaBucket", + "QuotaBucketRequest": { + "properties": { + "currentUsage": 20, + "currentQuota": 40, + "newQuota": 50, + "dimensions": { + "subscriptionId": "testsubscriptionId", + "location": "westus" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "isAvailable": false, + "availabilityStatus": "The requested quota is currently unavailable. Please request for different quota, or upgrade subscription offer type and try again later." + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_Get.json new file mode 100644 index 000000000000..11c20393a439 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_Get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-12-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus", + "quotaBucketName": "testQuotaBucket" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "limit": 50, + "usage": 20 + } + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_List.json new file mode 100644 index 000000000000..d1886eb125e8 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/examples/Quotas_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2022-12-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus/quotas/testQuotaBucket", + "name": "testQuotaBucket", + "type": "Microsoft.LoadTestService/locations/quotas", + "properties": { + "limit": 50, + "usage": 20 + } + } + ] + } + } + } +} diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json index 2a8a663c7044..ad55dc2eac33 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json @@ -3,7 +3,7 @@ "info": { "title": "LoadTest Client", "description": "LoadTest client provides access to LoadTest Resource and it's status operations.", - "version": "2022-04-15-preview" + "version": "2022-12-01" }, "host": "management.azure.com", "schemes": [ @@ -67,6 +67,153 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas": { + "get": { + "tags": [ + "Quotas" + ], + "description": "Lists all the available quota per region per subscription.", + "operationId": "Quotas_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/QuotaResourceList" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Quotas_List": { + "$ref": "./examples/Quotas_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}": { + "get": { + "tags": [ + "Quotas" + ], + "description": "Get the available quota for a quota bucket per region per subscription.", + "operationId": "Quotas_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/QuotaBucketNameParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/QuotaResource" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Quotas_Get": { + "$ref": "./examples/Quotas_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability": { + "post": { + "tags": [ + "Quotas" + ], + "description": "Check Quota Availability on quota bucket per region per subscription.", + "operationId": "Quotas_CheckAvailability", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/QuotaBucketNameParameter" + }, + { + "in": "body", + "name": "QuotaBucketRequest", + "description": "Quota Bucket Request data", + "required": true, + "schema": { + "$ref": "#/definitions/QuotaBucketRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CheckQuotaAvailabilityResponse" + } + }, + "default": { + "description": "Resource provider error response about the failure.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Quotas_CheckAvailability": { + "$ref": "./examples/Quotas_CheckAvailability.json" + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests": { "get": { "tags": [ @@ -375,6 +522,54 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/outboundNetworkDependenciesEndpoints": { + "get": { + "tags": [ + "LoadTest" + ], + "operationId": "LoadTests_ListOutboundNetworkDependenciesEndpoints", + "description": "Lists the endpoints that agents may call as part of load testing.", + "x-ms-examples": { + "ListOutboundNetworkDependencies": { + "$ref": "./examples/LoadTests_ListOutboundNetworkDependenciesEndpoints.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/LoadTestNameParameter" + } + ], + "responses": { + "200": { + "description": "The operation was successful. The response contains a list of outbound network dependencies.", + "schema": { + "$ref": "#/definitions/OutboundEnvironmentEndpointCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } } }, "definitions": { @@ -506,7 +701,7 @@ } }, "ResourceState": { - "description": "Load Test resources provisioning states.", + "description": "Resources provisioning states.", "enum": [ "Succeeded", "Failed", @@ -518,13 +713,248 @@ "name": "ResourceState", "modelAsString": true } + }, + "QuotaResourceList": { + "description": "A list of Quota Bucket details. It contains an URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/QuotaResource" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of Quota Bucket details by the loadtestservice resource provider", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of Quota Bucket details results (if there are any).", + "readOnly": true + } + } + }, + "QuotaResource": { + "type": "object", + "description": "Quota Bucket details", + "properties": { + "properties": { + "description": "Quota resource properties", + "$ref": "#/definitions/QuotaResourceProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] + }, + "QuotaResourceProperties": { + "description": "Quota resource properties.", + "type": "object", + "properties": { + "limit": { + "description": "Quota Limit of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "usage": { + "description": "Current Usage of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "provisioningState": { + "description": "Resource provisioning state.", + "$ref": "#/definitions/ResourceState", + "readOnly": true + } + } + }, + "CheckQuotaAvailabilityResponse": { + "description": "Check Quota Availability Response.", + "type": "object", + "properties": { + "properties": { + "description": "Check Quota Availability Response properties", + "$ref": "#/definitions/CheckQuotaAvailabilityResponseProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] + }, + "CheckQuotaAvailabilityResponseProperties": { + "description": "Check Quota Availability Response properties.", + "type": "object", + "properties": { + "isAvailable": { + "description": "true if Quota is Available, else false.", + "type": "boolean" + }, + "availabilityStatus": { + "description": "availability Status of the quota bucket.", + "type": "string" + } + } + }, + "QuotaBucketRequest": { + "description": "Quota Bucket Request.", + "type": "object", + "properties": { + "properties": { + "description": "Quota Bucket Request properties", + "$ref": "#/definitions/QuotaBucketRequestProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] + }, + "QuotaBucketRequestProperties": { + "description": "Quota Bucket Request properties.", + "type": "object", + "properties": { + "currentUsage": { + "description": "Current Usage of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "currentQuota": { + "description": "Current Quota of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "newQuota": { + "description": "New Requested Quota of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "dimensions": { + "description": "Dimensions for new quota request of the quota bucket.", + "type": "object", + "properties": { + "subscriptionId": { + "description": "Subscription Id dimension for new quota request of the quota bucket.", + "type": "string", + "minLength": 1 + }, + "location": { + "description": "Location dimension for new quota request of the quota bucket.", + "type": "string", + "minLength": 1 + } + } + } + } + }, + "OutboundEnvironmentEndpointCollection": { + "type": "object", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OutboundEnvironmentEndpoint" + }, + "x-ms-identifiers": [], + "description": "The collection of outbound network dependency endpoints returned by the listing operation." + }, + "nextLink": { + "type": "string", + "description": "The continuation token." + } + }, + "description": "Values returned by the List operation." + }, + "OutboundEnvironmentEndpoint": { + "type": "object", + "properties": { + "category": { + "type": "string", + "readOnly": true, + "description": "The type of service that Azure Load Testing connects to." + }, + "endpoints": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/EndpointDependency" + }, + "x-ms-identifiers": [ + "domainName" + ], + "description": "The endpoints for this service to which the Batch service makes outbound calls." + } + }, + "description": "A collection of related endpoints from the same service for which the Batch service requires outbound access." + }, + "EndpointDependency": { + "type": "object", + "properties": { + "domainName": { + "type": "string", + "readOnly": true, + "description": "The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Human-readable supplemental information about the dependency and when it is applicable." + }, + "endpointDetails": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/EndpointDetail" + }, + "x-ms-identifiers": [ + "port" + ], + "description": "The list of connection details for this endpoint." + } + }, + "description": "A domain name and connection details used to access a dependency." + }, + "EndpointDetail": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The port an endpoint is connected to." + } + }, + "description": "Details about the connection between the Batch service and the endpoint." } }, "parameters": { "LoadTestNameParameter": { "in": "path", "name": "loadTestName", - "description": "Load Test resource name.", + "description": "Load Test name.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + }, + "QuotaBucketNameParameter": { + "in": "path", + "name": "quotaBucketName", + "description": "Quota Bucket name.", "required": true, "x-ms-parameter-location": "method", "type": "string" diff --git a/specification/loadtestservice/resource-manager/readme.md b/specification/loadtestservice/resource-manager/readme.md index 2ae25e0e4a5f..2b841ba7edce 100644 --- a/specification/loadtestservice/resource-manager/readme.md +++ b/specification/loadtestservice/resource-manager/readme.md @@ -27,9 +27,17 @@ These are the global settings for the loadtestservice. ``` yaml openapi-type: arm openapi-subtype: rpaas -tag: package-2022-04-15-preview +tag: package-2022-12-01 ``` +### Tag: package-2022-12-01 + +These settings apply only when `--tag=package-2022-12-01` is specified on the command line. + +```yaml $(tag) == 'package-2022-12-01' +input-file: + - Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json +``` ### Tag: package-2022-04-15-preview diff --git a/specification/loadtestservice/resource-manager/readme.ruby.md b/specification/loadtestservice/resource-manager/readme.ruby.md index 79cca4389b48..80efc8a8240f 100644 --- a/specification/loadtestservice/resource-manager/readme.ruby.md +++ b/specification/loadtestservice/resource-manager/readme.ruby.md @@ -4,16 +4,16 @@ These settings apply only when `--ruby` is specified on the command line. ```yaml package-name: azure_mgmt_loadtestservice -package-version: 2022-04-15-preview +package-version: 2022-12-01 azure-arm: true ``` -### Tag: package-2022-04-15-preview and ruby +### Tag: package-2022-12-01 and ruby -These settings apply only when `--tag=package-2022-04-15-preview --ruby` is specified on the command line. +These settings apply only when `--tag=package-2022-12-01 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2022-04-15-preview' && $(ruby) +```yaml $(tag) == 'package-2022-12-01' && $(ruby) namespace: Microsoft.LoadTestService output-folder: $(ruby-sdks-folder)/loadtestservice ``` \ No newline at end of file From b3f9d3a12ea117d65d3364cb4921c9c248b6fd63 Mon Sep 17 00:00:00 2001 From: MJ <71822730+mjmadhu@users.noreply.github.com> Date: Thu, 29 Sep 2022 07:31:29 +0530 Subject: [PATCH 3/4] Update loadtestservice.json Updated description for outbound network dependency endpoints --- .../stable/2022-12-01/loadtestservice.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json index ad55dc2eac33..2f305d201250 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json @@ -554,7 +554,7 @@ ], "responses": { "200": { - "description": "The operation was successful. The response contains a list of outbound network dependencies.", + "description": "The operation was successful. The response contains a list of outbound network dependency endpoints.", "schema": { "$ref": "#/definitions/OutboundEnvironmentEndpointCollection" } From eedda8e42be254e5f25f246f636b4101d0735544 Mon Sep 17 00:00:00 2001 From: MJ <71822730+mjmadhu@users.noreply.github.com> Date: Fri, 30 Sep 2022 07:08:46 +0530 Subject: [PATCH 4/4] Update description of few properties --- .../stable/2022-12-01/loadtestservice.json | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json index 2f305d201250..28d28b24af77 100644 --- a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json @@ -715,7 +715,7 @@ } }, "QuotaResourceList": { - "description": "A list of Quota Bucket details. It contains an URL link to get the next set of results.", + "description": "List of quota bucket objects. It contains a URL link to get the next set of results.", "type": "object", "properties": { "value": { @@ -726,22 +726,22 @@ "x-ms-identifiers": [ "name" ], - "description": "List of Quota Bucket details by the loadtestservice resource provider", + "description": "List of quota bucket objects provided by the loadtestservice.", "readOnly": true }, "nextLink": { "type": "string", - "description": "URL to get the next set of Quota Bucket details results (if there are any).", + "description": "URL to get the next set of quota bucket objects results (if there are any).", "readOnly": true } } }, "QuotaResource": { "type": "object", - "description": "Quota Bucket details", + "description": "Quota bucket details object.", "properties": { "properties": { - "description": "Quota resource properties", + "description": "Quota bucket resource properties.", "$ref": "#/definitions/QuotaResourceProperties", "x-ms-client-flatten": true } @@ -753,17 +753,17 @@ ] }, "QuotaResourceProperties": { - "description": "Quota resource properties.", + "description": "Quota bucket resource properties.", "type": "object", "properties": { "limit": { - "description": "Quota Limit of the quota bucket.", + "description": "Current quota limit of the quota bucket.", "type": "integer", "minimum": 0, "format": "int32" }, "usage": { - "description": "Current Usage of the quota bucket.", + "description": "Current quota usage of the quota bucket.", "type": "integer", "minimum": 0, "format": "int32" @@ -776,11 +776,11 @@ } }, "CheckQuotaAvailabilityResponse": { - "description": "Check Quota Availability Response.", + "description": "Check quota availability response object.", "type": "object", "properties": { "properties": { - "description": "Check Quota Availability Response properties", + "description": "Check quota availability response properties.", "$ref": "#/definitions/CheckQuotaAvailabilityResponseProperties", "x-ms-client-flatten": true } @@ -792,25 +792,25 @@ ] }, "CheckQuotaAvailabilityResponseProperties": { - "description": "Check Quota Availability Response properties.", + "description": "Check quota availability response properties.", "type": "object", "properties": { "isAvailable": { - "description": "true if Quota is Available, else false.", + "description": "True/False indicating whether the quota request be granted based on availability.", "type": "boolean" }, "availabilityStatus": { - "description": "availability Status of the quota bucket.", + "description": "Message indicating additional details to add to quota support request.", "type": "string" } } }, "QuotaBucketRequest": { - "description": "Quota Bucket Request.", + "description": "Request object of new quota for a quota bucket.", "type": "object", "properties": { "properties": { - "description": "Quota Bucket Request properties", + "description": "New quota request request properties.", "$ref": "#/definitions/QuotaBucketRequestProperties", "x-ms-client-flatten": true } @@ -822,29 +822,29 @@ ] }, "QuotaBucketRequestProperties": { - "description": "Quota Bucket Request properties.", + "description": "New quota request request properties.", "type": "object", "properties": { "currentUsage": { - "description": "Current Usage of the quota bucket.", + "description": "Current quota usage of the quota bucket.", "type": "integer", "minimum": 0, "format": "int32" }, "currentQuota": { - "description": "Current Quota of the quota bucket.", + "description": "Current quota limit of the quota bucket.", "type": "integer", "minimum": 0, "format": "int32" }, "newQuota": { - "description": "New Requested Quota of the quota bucket.", + "description": "New quota limit of the quota bucket.", "type": "integer", "minimum": 0, "format": "int32" }, "dimensions": { - "description": "Dimensions for new quota request of the quota bucket.", + "description": "Dimensions for new quota request.", "type": "object", "properties": { "subscriptionId": {