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..70526eef9e8a --- /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-12-01", + "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..7da2a27ecbf6 --- /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-12-01", + "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..9e67afbca1f5 --- /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-12-01", + "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..86ea89d5ca58 --- /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-12-01", + "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..04e26a446c94 --- /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-12-01", + "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_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 new file mode 100644 index 000000000000..9a83e2c98c82 --- /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-12-01", + "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..de2627fe70be --- /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-12-01" + }, + "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/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 new file mode 100644 index 000000000000..28d28b24af77 --- /dev/null +++ b/specification/loadtestservice/resource-manager/Microsoft.LoadTestService/stable/2022-12-01/loadtestservice.json @@ -0,0 +1,963 @@ +{ + "swagger": "2.0", + "info": { + "title": "LoadTest Client", + "description": "LoadTest client provides access to LoadTest Resource and it's status operations.", + "version": "2022-12-01" + }, + "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/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": [ + "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" + } + } + } + }, + "/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 dependency endpoints.", + "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": { + "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": "Resources provisioning states.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Deleted" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceState", + "modelAsString": true + } + }, + "QuotaResourceList": { + "description": "List of quota bucket objects. It contains a 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 objects provided by the loadtestservice.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "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 object.", + "properties": { + "properties": { + "description": "Quota bucket resource properties.", + "$ref": "#/definitions/QuotaResourceProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] + }, + "QuotaResourceProperties": { + "description": "Quota bucket resource properties.", + "type": "object", + "properties": { + "limit": { + "description": "Current quota limit of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "usage": { + "description": "Current quota 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 object.", + "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/False indicating whether the quota request be granted based on availability.", + "type": "boolean" + }, + "availabilityStatus": { + "description": "Message indicating additional details to add to quota support request.", + "type": "string" + } + } + }, + "QuotaBucketRequest": { + "description": "Request object of new quota for a quota bucket.", + "type": "object", + "properties": { + "properties": { + "description": "New quota request request properties.", + "$ref": "#/definitions/QuotaBucketRequestProperties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] + }, + "QuotaBucketRequestProperties": { + "description": "New quota request request properties.", + "type": "object", + "properties": { + "currentUsage": { + "description": "Current quota usage of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "currentQuota": { + "description": "Current quota limit of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "newQuota": { + "description": "New quota limit of the quota bucket.", + "type": "integer", + "minimum": 0, + "format": "int32" + }, + "dimensions": { + "description": "Dimensions for new quota request.", + "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 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