Skip to content

Commit

Permalink
Swagger changes for adding SPN, UAMI and SAMI credentials (#28122)
Browse files Browse the repository at this point in the history
Co-authored-by: Saurabh Chugh <[email protected]>
Co-authored-by: Ruoxuan Wang <[email protected]>
Co-authored-by: Heng Lu <[email protected]>
  • Loading branch information
4 people authored Mar 19, 2024
1 parent 9549a0e commit 44d7a32
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4048,15 +4048,15 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ManagedIdentityCredentialResource"
"$ref": "#/definitions/CredentialResource"
}
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/ManagedIdentityCredentialResource"
"$ref": "#/definitions/CredentialResource"
}
},
"default": {
Expand Down Expand Up @@ -4106,7 +4106,7 @@
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/ManagedIdentityCredentialResource"
"$ref": "#/definitions/CredentialResource"
}
},
"304": {
Expand Down Expand Up @@ -7645,7 +7645,7 @@
"type": "array",
"description": "List of credentials.",
"items": {
"$ref": "#/definitions/ManagedIdentityCredentialResource"
"$ref": "#/definitions/CredentialResource"
}
},
"nextLink": {
Expand Down Expand Up @@ -7676,7 +7676,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/SubResource"
"$ref": "#/definitions/CredentialResource"
}
],
"properties": {
Expand All @@ -7689,6 +7689,24 @@
"properties"
]
},
"ServicePrincipalCredentialResource": {
"description": "Credential resource type.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CredentialResource"
}
],
"properties": {
"properties": {
"$ref": "./entityTypes/Credential.json#/definitions/ServicePrincipalCredential",
"description": "Service Principal Credential properties."
}
},
"required": [
"properties"
]
},
"ManagedVirtualNetworkListResponse": {
"description": "A list of managed Virtual Network resources.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@
{
"$ref": "#/definitions/Credential"
}
],
"properties": {
"typeProperties": {
"description": "Managed identity credential properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/ManagedIdentityTypeProperties"
}
}
]
},
"ManagedIdentityTypeProperties": {
"description": "Managed identity type properties.",
Expand All @@ -101,6 +94,52 @@
"description": "The resource id of user assigned managed identity"
}
}
},
"UserAssignedManagedIdentityCredential": {
"description": "User Assigned Managed identity credential.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ManagedIdentityCredential"
}
],
"properties": {
"typeProperties": {
"description": "User Assigned Managed identity credential properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/UserAssignedManagedIdentityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"UserAssignedManagedIdentityTypeProperties": {
"description": "User Assigned Managed identity type properties.",
"$ref": "#/definitions/ManagedIdentityTypeProperties",
"required": [
"resourceId"
]
},
"SystemAssignedManagedIdentityCredential": {
"description": "System Assigned Managed identity credential.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ManagedIdentityCredential"
}
],
"properties": {
"typeProperties": {
"description": "System Assigned Managed identity credential properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/SystemAssignedManagedIdentityTypeProperties"
}
}
},
"SystemAssignedManagedIdentityTypeProperties": {
"description": "System Assigned Managed identity type properties.",
"$ref": "#/definitions/ManagedIdentityTypeProperties"
}
}
}

0 comments on commit 44d7a32

Please sign in to comment.