-
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.
Merge pull request #2755 from Azure/samaddip-patch-2
Mobile Network Swagger
- Loading branch information
Showing
42 changed files
with
3,418 additions
and
1 deletion.
There are no files selected for viewing
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
117 changes: 117 additions & 0 deletions
117
...lenetwork/resource-manager/Microsoft.MobileNetwork/preview/2020-06-01-preview/common.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,117 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "MobileNetworkManagementClient", | ||
"description": "The resources in this swagger specification will be used to manage mobile network resources", | ||
"version": "2020-06-01-preview" | ||
}, | ||
"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": {}, | ||
"definitions": { | ||
"SubResource": { | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Resource ID." | ||
} | ||
}, | ||
"description": "Reference to another sub resource.", | ||
"x-ms-azure-resource": true | ||
}, | ||
"ProvisioningState": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "The current provisioning state.", | ||
"enum": [ | ||
"Unknown", | ||
"Succeeded", | ||
"Updating", | ||
"Deleting", | ||
"Failed" | ||
], | ||
"x-ms-enum": { | ||
"name": "ProvisioningState", | ||
"modelAsString": true | ||
} | ||
}, | ||
"TagsObject": { | ||
"properties": { | ||
"tags": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Resource tags." | ||
} | ||
}, | ||
"description": "Tags object for patch operations." | ||
}, | ||
"NetworkType": { | ||
"type": "string", | ||
"description": "The packet core type.", | ||
"enum": [ | ||
"Private" | ||
], | ||
"x-ms-enum": { | ||
"name": "NetworkType", | ||
"modelAsString": true | ||
} | ||
}, | ||
"SimType": { | ||
"type": "string", | ||
"description": "The sim type.", | ||
"enum": [ | ||
"Physical", | ||
"ESim" | ||
], | ||
"x-ms-enum": { | ||
"name": "SimType", | ||
"modelAsString": true | ||
} | ||
}, | ||
"ActivationState": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "The current activation state of the SimProfile on the network.", | ||
"enum": [ | ||
"NotActivated", | ||
"Activated", | ||
"Activating", | ||
"Deactivating", | ||
"Deactivated", | ||
"Failed" | ||
], | ||
"x-ms-enum": { | ||
"name": "ActivationState", | ||
"modelAsString": true | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...ce-manager/Microsoft.MobileNetwork/preview/2020-06-01-preview/examples/NetworkCreate.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,52 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkName": "testNetwork", | ||
"parameters": { | ||
"location": "eastus", | ||
"properties": { | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "testNetwork", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/networks/testNetwork", | ||
"type": "Microsoft.MobileNetwork/networks", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"serviceKey": "testServiceKey", | ||
"networkType": "Public", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "testNetwork", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/networks/testNetwork", | ||
"type": "Microsoft.MobileNetwork/networks", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"provisioningState": "Created", | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"serviceKey": "testServiceKey", | ||
"networkType": "Public", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ce-manager/Microsoft.MobileNetwork/preview/2020-06-01-preview/examples/NetworkDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkName": "testNetwork" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ource-manager/Microsoft.MobileNetwork/preview/2020-06-01-preview/examples/NetworkGet.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,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkName": "testNetwork" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "testNetwork", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/networks/testNetwork", | ||
"type": "Microsoft.MobileNetwork/networks", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"serviceKey": "testServiceKey", | ||
"networkType": "Public", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider", | ||
"packetCores": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCores/testPacketCore" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...crosoft.MobileNetwork/preview/2020-06-01-preview/examples/NetworkListByResourceGroup.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,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "testNetwork", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/networks/testNetwork", | ||
"type": "Microsoft.MobileNetwork/networks", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"serviceKey": "testServiceKey", | ||
"networkType": "Public", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider", | ||
"packetCores": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCores/testPacketCore" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...icrosoft.MobileNetwork/preview/2020-06-01-preview/examples/NetworkListBySubscription.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,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "testNetwork", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/networks/testNetwork", | ||
"type": "Microsoft.MobileNetwork/networks", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"serviceKey": "testServiceKey", | ||
"networkType": "Public", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider", | ||
"packetCores": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCores/testPacketCore" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...anager/Microsoft.MobileNetwork/preview/2020-06-01-preview/examples/NetworkUpdateTags.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,41 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkName": "testNetwork", | ||
"parameters": { | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "testNetwork", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/networks/testNetwork", | ||
"type": "Microsoft.MobileNetwork/networks", | ||
"location": "eastus", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"mobileCountryCode": "testMobileCountryCode", | ||
"mobileNetworkCode": "testMobileNetworkCode", | ||
"serviceKey": "testServiceKey", | ||
"networkType": "Public", | ||
"spectrumAccessProvider": "testSpectrumAccessProvider", | ||
"packetCores": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCores/testPacketCore" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ce-manager/Microsoft.MobileNetwork/preview/2020-06-01-preview/examples/OperationList.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": { | ||
"location": "eastus", | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.MobileNetwork/mobileNetworks/read", | ||
"display": { | ||
"provider": "Microsoft.MobileNetwok", | ||
"resource": "MobileNetwork", | ||
"operation": "Get mobileNetwork", | ||
"description": "Gets mobileNetwork" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.