diff --git a/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_CreateOrUpdate.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_CreateOrUpdate.json new file mode 100644 index 000000000000..767cbaa90076 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_CreateOrUpdate.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResource": { + "location": "westus", + "tags": { + "Team": "Dev Exp" + }, + "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", + "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", + "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/preview/2022-04-15-preview/examples/LoadTests_Delete.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_Delete.json new file mode 100644 index 000000000000..7def1498cba3 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/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/preview/2022-04-15-preview/examples/LoadTests_Get.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_Get.json new file mode 100644 index 000000000000..79a51baf8cf3 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/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/preview/2022-04-15-preview/examples/LoadTests_ListByResourceGroup.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_ListByResourceGroup.json new file mode 100644 index 000000000000..a3aadb651a8d --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/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/preview/2022-04-15-preview/examples/LoadTests_ListBySubscription.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_ListBySubscription.json new file mode 100644 index 000000000000..9291be9c3631 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/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/preview/2022-04-15-preview/examples/LoadTests_Update.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_Update.json new file mode 100644 index 000000000000..2c02e7acb7cc --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/LoadTests_Update.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2022-04-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "dummyrg", + "loadTestName": "myLoadTest", + "LoadTestResourcePatchRequestBody": { + "tags": { + "Team": "Dev Exp", + "Division": "LT" + }, + "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", + "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/preview/2022-04-15-preview/examples/Operations_List.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/examples/Operations_List.json new file mode 100644 index 000000000000..3cae2c608e76 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/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/preview/2022-04-15-preview/loadtestservice.json b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/loadtestservice.json new file mode 100644 index 000000000000..a3ebc6cf295b --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/preview/2022-04-15-preview/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 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 747669c45f9e..98bde8c0718e 100644 --- a/specification/loadtestservice/resource-manager/readme.md +++ b/specification/loadtestservice/resource-manager/readme.md @@ -24,20 +24,30 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor These are the global settings for the loadtestservice. -```yaml +``` yaml openapi-type: arm openapi-subtype: rpaas -tag: package-2021-12-01-preview +tag: package-2022-04-15-preview ``` + +### Tag: package-2022-04-15-preview + +These settings apply only when `--tag=package-2022-04-15-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-04-15-preview' +input-file: + - Microsoft.LoadTestService/preview/2022-04-15-preview/loadtestservice.json +``` ### Tag: package-2021-12-01-preview These settings apply only when `--tag=package-2021-12-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2021-12-01-preview' +``` yaml $(tag) == 'package-2021-12-01-preview' input-file: - Microsoft.LoadTestService/preview/2021-12-01-preview/loadtestservice.json ``` + # Code Generation ## Swagger to SDK @@ -45,7 +55,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -```yaml $(swagger-to-sdk) +``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java diff --git a/specification/loadtestservice/resource-manager/readme.ruby.md b/specification/loadtestservice/resource-manager/readme.ruby.md index 3181f9edefe8..79cca4389b48 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: 2021-12-01-preview +package-version: 2022-04-15-preview azure-arm: true ``` -### Tag: package-2021-12-01-preview and ruby +### Tag: package-2022-04-15-preview and ruby -These settings apply only when `--tag=package-2021-12-01-preview --ruby` is specified on the command line. +These settings apply only when `--tag=package-2022-04-15-preview --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2020-09-01-preview' && $(ruby) +```yaml $(tag) == 'package-2022-04-15-preview' && $(ruby) namespace: Microsoft.LoadTestService output-folder: $(ruby-sdks-folder)/loadtestservice ``` \ No newline at end of file