Skip to content

Commit

Permalink
Updated the Mobile Network REST specification and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
satravi committed Mar 14, 2022
1 parent 0e0c5bc commit a180e7b
Show file tree
Hide file tree
Showing 66 changed files with 534 additions and 351 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "MobileNetworkManagementClient",
"description": "The resources in this swagger specification will be used to manage attached data network resources in mobile network attached to a particular packet core instance",
"version": "2022-01-01-preview"
"version": "2022-03-01-preview"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -43,7 +43,10 @@
"description": "Deletes the specified attached data network.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./common.json#/parameters/PacketCoreControlPlaneNameParameter"
Expand All @@ -55,10 +58,7 @@
"$ref": "./common.json#/parameters/AttachedDataNetworkNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -74,7 +74,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -96,7 +96,10 @@
"description": "Gets information about the specified attached data network.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./common.json#/parameters/PacketCoreControlPlaneNameParameter"
Expand All @@ -108,10 +111,7 @@
"$ref": "./common.json#/parameters/AttachedDataNetworkNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -124,7 +124,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -142,7 +142,10 @@
"description": "Creates or updates an attached data network.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./common.json#/parameters/PacketCoreControlPlaneNameParameter"
Expand All @@ -153,6 +156,9 @@
{
"$ref": "./common.json#/parameters/AttachedDataNetworkNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"in": "body",
Expand All @@ -161,12 +167,6 @@
"$ref": "#/definitions/AttachedDataNetwork"
},
"description": "Parameters supplied to the create or update attached data network operation."
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
Expand All @@ -185,7 +185,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -207,7 +207,10 @@
"description": "Updates an attached data network update tags.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./common.json#/parameters/PacketCoreControlPlaneNameParameter"
Expand All @@ -218,6 +221,9 @@
{
"$ref": "./common.json#/parameters/AttachedDataNetworkNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"in": "body",
Expand All @@ -226,12 +232,6 @@
"$ref": "./common.json#/definitions/TagsObject"
},
"description": "Parameters supplied to update attached data network tags."
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
Expand All @@ -244,7 +244,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -264,19 +264,19 @@
"description": "Gets all the data networks associated with a packet core data plane.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./common.json#/parameters/PacketCoreControlPlaneNameParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./common.json#/parameters/PacketCoreDataPlaneNameParameter"
"$ref": "./common.json#/parameters/PacketCoreControlPlaneNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
"$ref": "./common.json#/parameters/PacketCoreDataPlaneNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -289,7 +289,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -315,14 +315,14 @@
},
"systemData": {
"x-ms-client-flatten": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData",
"readOnly": true,
"description": "Metadata pertaining to creation and last modification of the resource."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
}
],
"required": [
Expand Down Expand Up @@ -427,7 +427,17 @@
],
"x-ms-enum": {
"name": "NaptEnabled",
"modelAsString": true
"modelAsString": true,
"values": [
{
"value": "Enabled",
"description": "NAPT is enabled"
},
{
"value": "Disabled",
"description": "NAPT is disabled"
}
]
},
"default": "Enabled"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "MobileNetworkManagementClient",
"description": "The resources in this swagger specification will be used to manage the virtual network functions deployed using mobile network",
"version": "2022-01-01-preview"
"version": "2022-03-01-preview"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -169,7 +169,30 @@
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": true
"modelAsString": true,
"values": [
{
"value": "Unknown"
},
{
"value": "Succeeded"
},
{
"value": "Accepted"
},
{
"value": "Deleting"
},
{
"value": "Failed"
},
{
"value": "Canceled"
},
{
"value": "Deleted"
}
]
}
},
"TagsObject": {
Expand All @@ -185,17 +208,75 @@
},
"description": "Tags object for patch operations."
},
"ConfigurationState": {
"SimState": {
"type": "string",
"readOnly": true,
"description": "The state of the sim resource.",
"enum": [
"Disabled",
"Enabled",
"Invalid"
],
"x-ms-enum": {
"name": "SimState",
"modelAsString": true,
"values": [
{
"value": "Disabled",
"description": "The sim is disabled because not all configuration required for enabling is present."
},
{
"value": "Enabled",
"description": "The sim is enabled."
},
{
"value": "Invalid",
"description": "The sim cannot be enabled because some of the associated configuration is invalid."
}
]
}
},
"ActivationState": {
"type": "string",
"readOnly": true,
"description": "The configuration state of the resource - complete or incomplete.",
"description": "The current activation state of the Sim on the network.",
"enum": [
"Incomplete",
"Complete"
"NotActivated",
"Activated",
"Activating",
"Deactivating",
"Deactivated",
"Failed"
],
"x-ms-enum": {
"name": "ConfigurationState",
"modelAsString": true
"name": "ActivationState",
"modelAsString": true,
"values": [
{
"value": "NotActivated",
"description": "The sim has not been activated and will not receive service."
},
{
"value": "Activated",
"description": "The sim is activated and will receive service."
},
{
"value": "Activating",
"description": "The sim is in the process of being activated."
},
{
"value": "Deactivating",
"description": "The sim is in the process of being deactivated."
},
{
"value": "Deactivated",
"description": "The sim has been deactivated and will not longer receive service."
},
{
"value": "Failed",
"description": "Activation failed for this sim."
}
]
}
},
"InterfaceProperties": {
Expand All @@ -204,6 +285,18 @@
"name": {
"type": "string",
"description": "The logical name for this interface. This should match one of the interfaces configured on your Azure Stack Edge machine."
},
"ipv4Address": {
"$ref": "./ts29571.json#/definitions/Ipv4Addr",
"description": "The IPv4 address."
},
"ipv4Subnet": {
"$ref": "./ts29571.json#/definitions/Ipv4AddrMask",
"description": "The IPv4 subnet."
},
"ipv4Gateway": {
"$ref": "./ts29571.json#/definitions/Ipv4Addr",
"description": "The default IPv4 gateway (router)."
}
},
"required": [
Expand Down
Loading

0 comments on commit a180e7b

Please sign in to comment.