Skip to content
Merged
114 changes: 114 additions & 0 deletions specification/common-types/resource-management/v5/managedidentity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"swagger": "2.0",
"info": {
"version": "5.0",
"title": "Common types"
},
"paths": {},
"definitions": {
"UserAssignedIdentities": {
"title": "User-Assigned Identities",
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/UserAssignedIdentity",
"x-nullable": true
}
},
"UserAssignedIdentity": {
"type": "object",
"description": "User assigned identity properties",
"properties": {
"principalId": {
"description": "The principal ID of the assigned identity.",
"format": "uuid",
"type": "string",
"readOnly": true
},
"clientId": {
"description": "The client ID of the assigned identity.",
"format": "uuid",
"type": "string",
"readOnly": true
}
}
},
"ManagedServiceIdentityType": {
"description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
"enum": [
"None",
"SystemAssigned",
"UserAssigned",
"SystemAssigned,UserAssigned"
],
"type": "string",
"x-ms-enum": {
"name": "ManagedServiceIdentityType",
"modelAsString": true
}
},
"ManagedServiceIdentity": {
"description": "Managed service identity (system assigned and/or user assigned identities)",
"type": "object",
"properties": {
"principalId": {
"readOnly": true,
"format": "uuid",
"type": "string",
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
},
"tenantId": {
"readOnly": true,
"format": "uuid",
"type": "string",
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
},
"type": {
"$ref": "#/definitions/ManagedServiceIdentityType"
},
"userAssignedIdentities": {
"$ref": "#/definitions/UserAssignedIdentities"
}
},
"required": [
"type"
]
},
"SystemAssignedServiceIdentityType": {
"description": "Type of managed service identity (either system assigned, or none).",
"enum": [
"None",
"SystemAssigned"
],
"type": "string",
"x-ms-enum": {
"name": "SystemAssignedServiceIdentityType",
"modelAsString": true
}
},
"SystemAssignedServiceIdentity": {
"description": "Managed service identity (either system assigned, or none)",
"type": "object",
"properties": {
"principalId": {
"readOnly": true,
"format": "uuid",
"type": "string",
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
},
"tenantId": {
"readOnly": true,
"format": "uuid",
"type": "string",
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
},
"type": {
"$ref": "#/definitions/SystemAssignedServiceIdentityType"
}
},
"required": [
"type"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
}
},
"201": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01"
},
"body": {
"location": "westus",
"identity": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
}
}
},
"202": {}
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.loadtestservice/locations/WESTUS/operationStatuses/abc?api-version=2022-12-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,12 @@
},
"201": {
"description": "Created -- LoadTest resource created",
"headers": {
"Azure-AsyncOperation": {
"description": "URL to query for status of the operation.",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/LoadTestResource"
}
Expand Down Expand Up @@ -457,7 +463,13 @@
}
},
"202": {
"description": "Accepted -- LoadTest resource patch request accepted"
"description": "Accepted -- LoadTest resource patch request accepted",
"headers": {
"Azure-AsyncOperation": {
"description": "URL to query for status of the operation.",
"type": "string"
}
}
},
"default": {
"description": "Resource provider error response about the failure.",
Expand Down Expand Up @@ -504,7 +516,13 @@
"description": "OK -- resource deleted"
},
"202": {
"description": "Accepted -- LoadTest resource delete request accepted"
"description": "Accepted -- LoadTest resource delete request accepted",
"headers": {
"Location": {
"description": "URL to query for status of the operation.",
"type": "string"
}
}
},
"204": {
"description": "No Content -- resource deleted"
Expand Down Expand Up @@ -600,7 +618,7 @@
"x-ms-client-flatten": true
},
"identity": {
"$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
"$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity",
"description": "The type of identity used for the resource."
}
},
Expand All @@ -616,10 +634,14 @@
"properties": {
"tags": {
"description": "Resource tags.",
"type": "object"
"type": "object",
"additionalProperties": {
"type": "string"
},
"x-nullable": true
},
"identity": {
"$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity",
"$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity",
"description": "The type of identity used for the resource."
},
"properties": {
Expand Down Expand Up @@ -690,7 +712,8 @@
},
"resourceId": {
"type": "string",
"description": "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId"
"description": "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId",
"x-nullable": true
}
}
},
Expand Down
28 changes: 0 additions & 28 deletions specification/loadtestservice/resource-manager/readme.az.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ csharp:
clear-output-folder: true
client-side-validation: false
namespace: Microsoft.LoadTestService
output-folder: $(csharp-sdks-folder)/loadtestservice/management/Microsoft.LoadTestService/GeneratedProtocol
```
output-folder: $(csharp-sdks-folder)/loadtestservice/Azure.ResourceManager.LoadTesting/src/Generated
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ These settings apply only when `--go` is specified on the command line.

azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/loadtestservice/armloadtestservice
module-name: sdk/resourcemanager/loadtestservice/armloadtesting
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)

Expand Down
2 changes: 1 addition & 1 deletion specification/loadtestservice/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-js
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_loadtestservice']
- bundle install && rake arm:regen_all_profiles['azure_mgmt_loadtesting']
- repo: azure-powershell
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
title: LoadTestMgmtClient
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-loadtestservice
namespace: azure.mgmt.loadtestservice
package-name: azure-mgmt-loadtesting
namespace: azure.mgmt.loadtesting
package-version: 1.0.0b1
clear-output-folder: true
```

``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice
output-folder: $(python-sdks-folder)/loadtestservice/azure-mgmt-loadtesting/azure/mgmt/loadtesting
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
These settings apply only when `--ruby` is specified on the command line.

```yaml
package-name: azure_mgmt_loadtestservice
package-name: azure_mgmt_loadtesting
package-version: 2022-12-01
azure-arm: true
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Please also specify `--typescript-sdks-folder=<path to root folder of your azure
```yaml $(typescript)
typescript:
azure-arm: true
package-name: "@azure/arm-loadtestservice"
output-folder: "$(typescript-sdks-folder)/sdk/loadtestservice/arm-loadtestservice"
package-name: "@azure/arm-loadtesting"
output-folder: "$(typescript-sdks-folder)/sdk/loadtestservice/arm-loadtesting"
payload-flattening-threshold: 1
generate-metadata: true
```