-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for GetAvailableDelegations operation
- Loading branch information
Rupali Vohra
committed
Aug 31, 2018
1 parent
260c04a
commit ea8045e
Showing
5 changed files
with
234 additions
and
1 deletion.
There are no files selected for viewing
165 changes: 165 additions & 0 deletions
165
...on/network/resource-manager/Microsoft.Network/stable/2018-08-01/availableDelegations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "NetworkManagementClient", | ||
"description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", | ||
"version": "2018-08-01" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations": { | ||
"get": { | ||
"operationId": "AvailableDelegations_List", | ||
"description": "Gets all of the available subnet delegations for this subscription in this region.", | ||
"parameters": [ | ||
{ | ||
"name": "location", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The location of the subnet." | ||
}, | ||
{ | ||
"$ref": "./network.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Request successful. Returns all of the possible delegations for a subnet in this subscription in the region.", | ||
"schema": { | ||
"$ref": "#/definitions/AvailableDelegationsResult" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"Get available delegations": { | ||
"$ref": "./examples/AvailableDelegationsSubscriptionGet.json" | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations": { | ||
"get": { | ||
"operationId": "AvailableResourceGroupDelegations_List", | ||
"description": "Gets all of the available subnet delegations for this resource group in this region.", | ||
"parameters": [ | ||
{ | ||
"name": "location", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The location of the domain name." | ||
}, | ||
{ | ||
"name": "resourceGroupName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The name of the resource group." | ||
}, | ||
{ | ||
"$ref": "./network.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "./network.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Request successful. Returns all of the possible delegations for a subnet in this subscription in the region.", | ||
"schema": { | ||
"$ref": "#/definitions/AvailableDelegationsResult" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"Get available delegations in the resource group": { | ||
"$ref": "./examples/AvailableDelegationsResourceGroupGet.json" | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"AvailableDelegationsResult": { | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/AvailableDelegation" | ||
}, | ||
"description": "An array of available delegations." | ||
}, | ||
"nextLink": { | ||
"type": "string", | ||
"description": "The URL to get the next set of results." | ||
} | ||
}, | ||
"description": "An array of available delegations." | ||
}, | ||
"AvailableDelegation": { | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the AvailableDelegation resource." | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "A unique identifier of the AvailableDelegation resource." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "Resource type." | ||
}, | ||
"serviceName": { | ||
"type": "string", | ||
"description": "The name of the service and resource " | ||
}, | ||
"actions": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Describes the actions permitted to the service upon delegation" | ||
} | ||
}, | ||
"description": "The serviceName of an AvailableDelegation indicates a possible delegation for a subnet." | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...er/Microsoft.Network/stable/2018-08-01/examples/AvailableDelegationsResourceGroupGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters" : { | ||
"api-version": "2018-08-01", | ||
"location": "regionName", | ||
"subscriptionId" : "subId", | ||
"resourceGroupName" : "rg1" | ||
}, | ||
"responses" : { | ||
"200" : { | ||
"body" : { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Provider.resourceType", | ||
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/availableDelegations/Microsoft.Provider.resourceType", | ||
"type": "Microsoft.Network/availableDelegations", | ||
"serviceName": "Microsoft.Provider/resourceType", | ||
"actions": [ | ||
"Microsoft.Network/resource/action" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ger/Microsoft.Network/stable/2018-08-01/examples/AvailableDelegationsSubscriptionGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters" : { | ||
"api-version": "2018-08-01", | ||
"location": "regionName", | ||
"subscriptionId" : "subId" | ||
}, | ||
"responses" : { | ||
"200" : { | ||
"body" : { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Provider.resourceType", | ||
"id": "/subscriptions/subId/providers/Microsoft.Network/availableDelegations/Microsoft.Provider.resourceType", | ||
"type": "Microsoft.Network/availableDelegations", | ||
"serviceName": "Microsoft.Provider/resourceType", | ||
"actions": [ | ||
"Microsoft.Network/resource/action" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters