Skip to content

Commit

Permalink
Merge pull request #2755 from Azure/samaddip-patch-2
Browse files Browse the repository at this point in the history
Mobile Network Swagger
  • Loading branch information
ruowan authored Jan 29, 2021
2 parents 3589118 + 98fa419 commit adc6157
Show file tree
Hide file tree
Showing 42 changed files with 3,418 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ imagelists
imagesearch
IMDS
importdevices
IMSI
Inbuild
indic
Ingestor
Expand Down Expand Up @@ -1563,4 +1564,4 @@ Ctlr
loadtest
loadtests
helmchart
vcenters
vcenters
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
}
}
}
}
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"
}
}
}
}
}
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": {}
}
}
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"
}
]
}
}
}
}
}
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"
}
]
}
}
]
}
}
}
}
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"
}
]
}
}
]
}
}
}
}
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"
}
]
}
}
}
}
}
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"
}
}
]
}
}
}
}
Loading

0 comments on commit adc6157

Please sign in to comment.