From d5bd34a5885280fe039b9d7b539a98e2cca9672c Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Fri, 30 Oct 2015 16:51:05 -0700 Subject: [PATCH 01/11] Initial swagger manifest for Intune --- .../2015-01-11-alpha/swagger/intune.json | 1656 +++++++++++++++++ 1 file changed, 1656 insertions(+) create mode 100644 arm-intune/2015-01-11-alpha/swagger/intune.json diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json new file mode 100644 index 000000000000..3e89e884ca18 --- /dev/null +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -0,0 +1,1656 @@ +{ + "swagger": "2.0", + "info": { + "version": "2015-01-11-alpha", + "title": "IntuneResourceManagementClient", + "description": "Microsoft.Intune Resource provider Api features in the swagger-2.0 specification" + }, + "host": "management.azure.com", + "schemes": [ "https" ], + "consumes": [ "application/json" ], + "produces": [ "application/json" ], + "paths": { + "/providers/Microsoft.Intune/locations": { + "get": { + "description": "Returns location for user tenant.", + "operationId": "GetLocations", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "location response as a collection", + "schema": { + "$ref": "#/definitions/LocationCollection" + } + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "/providers/Microsoft.Intune/locations/hostName": { + "get": { + "description": "Returns location for given tenant.", + "operationId": "GetLocationByHostName", + "produces": [ "application/json" ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "single location response", + "schema": { + "$ref": "#/definitions/Location" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/apps": { + "get": { + "description": "Returns Intune Manageable apps.", + "operationId": "GetApplications", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/ApplicationCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": { + "get": { + "description": "Returns Intune iOSPolicies.", + "operationId": "GetiOSMAMPolicies", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/IOSMAMPolicyCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": { + "get": { + "description": "Returns Intune Android policies.", + "operationId": "GetAndroidMAMPolicies", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "android Policies response", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicyCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}": { + "get": { + "description": "Returns Intune iOS policies.", + "operationId": "GetiOSMAMPolicyById", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "description": "Creates or updates iOSMAMPolicy.", + "operationId": "CreateOrUpdateiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/iOSMAMPolicyRequestBody" + }, + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch":{ + "description": " patch an iOSMAMPolicy.", + "operationId": "PatchiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/iOSMAMPolicyRequestBody" + }, + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Ios Policy", + "operationId": "DeleteiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}": { + "get": { + "description": "Returns AndroidMAMPolicy with given Id.", + "operationId": "GetAndroidMAMPolicyById", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "description": "Creates or updates AndroidMAMPolicy.", + "operationId": "CreateOrUpdateAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AndroidMAMPolicyRequestBody" + }, + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "android entity.", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "description": "Patch AndroidMAMPolicy.", + "operationId": "PatchAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AndroidMAMPolicyRequestBody" + }, + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "android entity.", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Android Policy", + "operationId": "DeleteAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "" + }, + "204": { + "description": "" + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps": { + "get": { + "description": "Get apps for an iOSMAMPolicy.", + "operationId": "GetAppForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/ApplicationCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyId}/apps": { + "get": { + "description": "Get apps for an AndroidMAMPolicy.", + "operationId": "GetAppForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/ApplicationCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps/{appId}": { + "put": { + "description": "Add app to an iOSMAMPolicy.", + "operationId": "AddAppForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to add an app to an ios policy." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content.", + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete App for Ios Policy", + "operationId": "DeleteAppForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/apps/{appId}": { + "put": { + "description": "Add app to an AndroidMAMPolicy.", + "operationId": "AddAppForAndriodPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to the Create or update app to an android policy operation." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content.", + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete App for Android Policy", + "operationId": "DeleteAppForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups": { + "get": { + "description": "Returns groups for a given iOSMAMPolicy.", + "operationId": "GetGroupsForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy name for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "groups as collection response", + "schema": { + "$ref": "#/definitions/GroupsCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups": { + "get": { + "description": "Returns groups for a given AndroidMAMPolicy.", + "operationId": "GetGroupsForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy name for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "groups as collection response", + "schema": { + "$ref": "#/definitions/GroupsCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups/{groupId}": { + "put": { + "description": "Add group to an iOSMAMPolicy.", + "operationId": "AddGroupForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "group Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to the Create or update app to an android policy operation." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content.", + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Group for iOS Policy", + "operationId": "DeleteGroupForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups/{groupId}": { + "put": { + "description": "Add group to an AndroidMAMPolicy.", + "operationId": "AddGroupForAndriodPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "group Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to the Create or update app to an android policy operation." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content.", + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Group for Android Policy", + "operationId": "DeleteGroupForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + }, + + "definitions": { + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + } + } + }, + "Location": { + "properties": { + "properties": { + "$ref": "#/definitions/LocationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Location entity for given tenant." + }, + "LocationProperties": { + "type": "object", + "required": [ "hostName" ], + "properties": { + "hostName": { + "type": "string" + } + } + }, + "Error": { + "type": "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "LocationCollection": { + "type": "object", + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Location" + } + }, + "nextlink": { + "type": "string" + } + } + }, + "GroupsCollection": { + "type": "object", + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Group" + } + }, + "nextlink": { + "type": "string" + } + } + }, + "Group": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/GroupProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Group entity for Intune MAM." + }, + "GroupProperties": { + "type": "object", + "required": [ + "friendlyName", + "platform" + ], + "properties": { + "friendlyName": { + "type": "string" + } + } + }, + "ApplicationCollection": { + "type": "object", + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + } + }, + "nextlink": { + "type": "string" + } + } + }, + "Application": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ApplicationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Application entity for Intune MAM." + }, + "ApplicationProperties": { + "type": "object", + "required": [ + "friendlyName", + "platform" + ], + "properties": { + "friendlyName": { + "type": "string" + }, + "platform": { + "type": "string", + "default": "ios", + "enum": [ + "ios", + "android", + "windows" + ] + }, + "appId": { + "type": "string" + } + } + }, + "IOSMAMPolicyCollection": { + "type": "object", + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "nextlink": { + "type": "string" + } + } + }, + "AndroidMAMPolicyCollection": { + "type": "object", + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "nextlink": { + "type": "string" + } + } + }, + "iOSMAMPolicy": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/iOSMAMPolicyProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "iOS Policy entity for Intune MAM." + }, + "iOSMAMPolicyRequestBody": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/iOSMAMPolicyProperties" + } + }, + "description": "iOS Policy request body parameters for Intune MAM." + }, + "AndroidMAMPolicy": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AndroidMAMPolicyProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Android Policy entity for Intune MAM." + }, + "AndroidMAMPolicyRequestBody": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AndroidMAMPolicyProperties" + } + }, + "description": "Android Policy request body for Intune MAM." + }, + "MAMPolicyAppIdOrGroupIdPayload": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MAMPolicyAppOrGroupIdProperties" + } + }, + "description": "MAM Policy request body for properties Intune MAM." + }, + "MAMPolicyAppOrGroupIdProperties": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + } + }, + "description": "Android Policy request body for Intune MAM." + }, + "MAMPolicyProperties": { + "type": "object", + "required": [ + "friendlyName" + ], + "properties": { + "friendlyName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "appSharingFromLevel": { + "type": "string", + "default": "none", + "enum": [ + "none", + "policyManagedApps", + "allApps" + ] + }, + "appSharingToLevel": { + "type": "string", + "default": "none", + "enum": [ + "none", + "policyManagedApps", + "allApps" + ] + }, + "authentication": { + "type": "string", + "default": "required", + "enum": [ + "required", + "notRequired" + ] + }, + "clipboardSharingLevel": { + "type": "string", + "default": "blocked", + "enum": [ + "blocked", + "policyManagedApps", + "policyManagedAppsWithPasteIn", + "allApps" + ] + }, + "dataBackup": { + "type": "string", + "default": "allow", + "enum": [ + "allow", + "block" + ] + }, + "fileSharingSaveAs": { + "type": "string", + "default": "allow", + "enum": [ + "allow", + "block" + ] + }, + "pin": { + "type": "string", + "default": "required", + "enum": [ + "required", + "notRequired" + ] + }, + "pinNumRetry": { + "type": "integer" + }, + "deviceCompliance": { + "type": "string", + "default": "enable", + "enum": [ + "enable", + "disable" + ] + }, + "managedBrowser": { + "type": "string", + "default": "required", + "enum": [ + "required", + "notRequired" + ] + }, + "accessRecheckOfflineTimeout": { + "type": "string", + "format": "duration" + }, + "accessRecheckOnlineTimeout": { + "type": "string", + "format": "duration" + }, + + "offlineWipeTimeout": { + "type": "string", + "format": "duration" + }, + "numOfApps": { + "type": "integer", + "readOnly": true + }, + "groupStatus": { + "readOnly": true, + "type": "string", + "default": "notTargeted", + "enum": [ + "notTargeted", + "targeted" + ] + }, + "lastModifiedTime": { + "type": "string", + "readOnly": true, + "format": "date-time" + } + } + + }, + "iOSMAMPolicyProperties": { + "type": "object", + "properties": { + "fileEncryptionLevel": { + "type": "string", + "default": "deviceLocked", + "enum": [ + "deviceLocked", + "deviceLockedExceptFilesOpen", + "afterDeviceRestart", + "useDeviceSettings" + ] + }, + "touchId": { + "type": "string", + "default": "enable", + "enum": [ + "enable", + "disable" + ] + } + }, + "allOf": [ + { + "$ref": "#/definitions/MAMPolicyProperties" + } + ], + "description": "Intune MAM iOS Policy Properties." + }, + "AndroidMAMPolicyProperties": { + "type": "object", + "properties": { + "screenCapture": { + "type": "string", + "default": "allow", + "enum": [ + "allow", + "block" + ] + }, + "fileEncryption": { + "type": "string", + "default": "required", + "enum": [ + "required", + "notRequired" + ] + } + }, + "allOf": [ + { + "$ref": "#/definitions/MAMPolicyProperties" + } + ], + "description": "Intune MAM iOS Policy Properties." + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Service Api Version." + } + } +} \ No newline at end of file From 17fb7eb6e24a2918032b0900bb9ce1be43f39897 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Fri, 30 Oct 2015 17:16:31 -0700 Subject: [PATCH 02/11] Fixed delete policy response --- arm-intune/2015-01-11-alpha/swagger/intune.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index 3e89e884ca18..d5a82b80575e 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -574,10 +574,10 @@ ], "responses": { "200": { - "description": "" + "description": "No-Content." }, "204": { - "description": "" + "description": "No-Content." }, "default": { "description": "unexpected error", From 901370d6adc51c4db7a63ad45bc35f85cc48dc20 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Fri, 30 Oct 2015 18:01:27 -0700 Subject: [PATCH 03/11] Fix commas --- .../2015-01-11-alpha/swagger/intune.json | 2340 ++++++++--------- 1 file changed, 1170 insertions(+), 1170 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index d5a82b80575e..89150770ddb9 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -1,1203 +1,1203 @@ { - "swagger": "2.0", - "info": { - "version": "2015-01-11-alpha", - "title": "IntuneResourceManagementClient", - "description": "Microsoft.Intune Resource provider Api features in the swagger-2.0 specification" - }, - "host": "management.azure.com", - "schemes": [ "https" ], - "consumes": [ "application/json" ], - "produces": [ "application/json" ], - "paths": { - "/providers/Microsoft.Intune/locations": { - "get": { - "description": "Returns location for user tenant.", - "operationId": "GetLocations", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "location response as a collection", - "schema": { - "$ref": "#/definitions/LocationCollection" - } - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } + "swagger": "2.0", + "info": { + "version": "2015-01-11-alpha", + "title": "IntuneResourceManagementClient", + "description": "Microsoft.Intune Resource provider Api features in the swagger-2.0 specification" + }, + "host": "management.azure.com", + "schemes": [ "https" ], + "consumes": [ "application/json" ], + "produces": [ "application/json" ], + "paths": { + "/providers/Microsoft.Intune/locations": { + "get": { + "description": "Returns location for user tenant.", + "operationId": "GetLocations", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "location response as a collection", + "schema": { + "$ref": "#/definitions/LocationCollection" } + } }, - "/providers/Microsoft.Intune/locations/hostName": { - "get": { - "description": "Returns location for given tenant.", - "operationId": "GetLocationByHostName", - "produces": [ "application/json" ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "single location response", - "schema": { - "$ref": "#/definitions/Location" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "/providers/Microsoft.Intune/locations/hostName": { + "get": { + "description": "Returns location for given tenant.", + "operationId": "GetLocationByHostName", + "produces": [ "application/json" ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "single location response", + "schema": { + "$ref": "#/definitions/Location" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/apps": { - "get": { - "description": "Returns Intune Manageable apps.", - "operationId": "GetApplications", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "applications as collection response", - "schema": { - "$ref": "#/definitions/ApplicationCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": { - "get": { - "description": "Returns Intune iOSPolicies.", - "operationId": "GetiOSMAMPolicies", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "applications as collection response", - "schema": { - "$ref": "#/definitions/IOSMAMPolicyCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/apps": { + "get": { + "description": "Returns Intune Manageable apps.", + "operationId": "GetApplications", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/ApplicationCollection" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": { - "get": { - "description": "Returns Intune Android policies.", - "operationId": "GetAndroidMAMPolicies", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "android Policies response", - "schema": { - "$ref": "#/definitions/AndroidMAMPolicyCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}": { - "get": { - "description": "Returns Intune iOS policies.", - "operationId": "GetiOSMAMPolicyById", - "produces": [ "application/json" ], - "parameters": [ - { + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": { + "get": { + "description": "Returns Intune iOSPolicies.", + "operationId": "GetiOSMAMPolicies", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/IOSMAMPolicyCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": { + "get": { + "description": "Returns Intune Android policies.", + "operationId": "GetAndroidMAMPolicies", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "android Policies response", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicyCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}": { + "get": { + "description": "Returns Intune iOS policies.", + "operationId": "GetiOSMAMPolicyById", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "iOSMAMPolicy entity.", - "schema": { - "$ref": "#/definitions/iOSMAMPolicy" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "put": { - "description": "Creates or updates iOSMAMPolicy.", - "operationId": "CreateOrUpdateiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "description": "Creates or updates iOSMAMPolicy.", + "operationId": "CreateOrUpdateiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/iOSMAMPolicyRequestBody" - }, - "description": "Parameters supplied to the Create or update an android policy operation." - } - ], - "responses": { - "200": { - "description": "iOSMAMPolicy entity.", - "schema": { - "$ref": "#/definitions/iOSMAMPolicy" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/iOSMAMPolicyRequestBody" }, - "patch":{ - "description": " patch an iOSMAMPolicy.", - "operationId": "PatchiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "description": " patch an iOSMAMPolicy.", + "operationId": "PatchiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/iOSMAMPolicyRequestBody" - }, - "description": "Parameters supplied to the Create or update an android policy operation." - } - ], - "responses": { - "200": { - "description": "iOSMAMPolicy entity.", - "schema": { - "$ref": "#/definitions/iOSMAMPolicy" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "delete": { - "description": "Delete Ios Policy", - "operationId": "DeleteiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/iOSMAMPolicyRequestBody" + }, + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Ios Policy", + "operationId": "DeleteiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content." - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}": { - "get": { - "description": "Returns AndroidMAMPolicy with given Id.", - "operationId": "GetAndroidMAMPolicyById", - "produces": [ "application/json" ], - "parameters": [ - { + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}": { + "get": { + "description": "Returns AndroidMAMPolicy with given Id.", + "operationId": "GetAndroidMAMPolicyById", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "iOSMAMPolicy entity.", - "schema": { - "$ref": "#/definitions/AndroidMAMPolicy" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "put": { - "description": "Creates or updates AndroidMAMPolicy.", - "operationId": "CreateOrUpdateAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "iOSMAMPolicy entity.", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "description": "Creates or updates AndroidMAMPolicy.", + "operationId": "CreateOrUpdateAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AndroidMAMPolicyRequestBody" - }, - "description": "Parameters supplied to the Create or update an android policy operation." - } - ], - "responses": { - "200": { - "description": "android entity.", - "schema": { - "$ref": "#/definitions/AndroidMAMPolicy" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AndroidMAMPolicyRequestBody" }, - "patch": { - "description": "Patch AndroidMAMPolicy.", - "operationId": "PatchAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "android entity.", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "description": "Patch AndroidMAMPolicy.", + "operationId": "PatchAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AndroidMAMPolicyRequestBody" - }, - "description": "Parameters supplied to the Create or update an android policy operation." - } - ], - "responses": { - "200": { - "description": "android entity.", - "schema": { - "$ref": "#/definitions/AndroidMAMPolicy" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AndroidMAMPolicyRequestBody" }, - "delete": { - "description": "Delete Android Policy", - "operationId": "DeleteAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content." - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "description": "Parameters supplied to the Create or update an android policy operation." + } + ], + "responses": { + "200": { + "description": "android entity.", + "schema": { + "$ref": "#/definitions/AndroidMAMPolicy" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps": { - "get": { - "description": "Get apps for an iOSMAMPolicy.", - "operationId": "GetAppForiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "applications as collection response", - "schema": { - "$ref": "#/definitions/ApplicationCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyId}/apps": { - "get": { - "description": "Get apps for an AndroidMAMPolicy.", - "operationId": "GetAppForAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "$select", - "in": "query", - "required": false, - "type": "string", - "description": "select specific fields in entity." - } - ], - "responses": { - "200": { - "description": "applications as collection response", - "schema": { - "$ref": "#/definitions/ApplicationCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + } + } + }, + "delete": { + "description": "Delete Android Policy", + "operationId": "DeleteAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps/{appId}": { - "put": { - "description": "Add app to an iOSMAMPolicy.", - "operationId": "AddAppForiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "appId", - "in": "path", - "description": "application unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" - }, - "description": "Parameters supplied to add an app to an ios policy." - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content.", - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "delete": { - "description": "Delete App for Ios Policy", - "operationId": "DeleteAppForiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "appId", - "in": "path", - "description": "application unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content." - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps": { + "get": { + "description": "Get apps for an iOSMAMPolicy.", + "operationId": "GetAppForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/ApplicationCollection" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/apps/{appId}": { - "put": { - "description": "Add app to an AndroidMAMPolicy.", - "operationId": "AddAppForAndriodPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "appId", - "in": "path", - "description": "application unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" - }, - "description": "Parameters supplied to the Create or update app to an android policy operation." - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content.", - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "delete": { - "description": "Delete App for Android Policy", - "operationId": "DeleteAppForAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "appId", - "in": "path", - "description": "application unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content." - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups": { - "get": { - "description": "Returns groups for a given iOSMAMPolicy.", - "operationId": "GetGroupsForiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy name for the tenant", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "groups as collection response", - "schema": { - "$ref": "#/definitions/GroupsCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyId}/apps": { + "get": { + "description": "Get apps for an AndroidMAMPolicy.", + "operationId": "GetAppForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "select specific fields in entity." + } + ], + "responses": { + "200": { + "description": "applications as collection response", + "schema": { + "$ref": "#/definitions/ApplicationCollection" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups": { - "get": { - "description": "Returns groups for a given AndroidMAMPolicy.", - "operationId": "GetGroupsForAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy name for the tenant", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "groups as collection response", - "schema": { - "$ref": "#/definitions/GroupsCollection" - } - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups/{groupId}": { - "put": { - "description": "Add group to an iOSMAMPolicy.", - "operationId": "AddGroupForiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "groupId", - "in": "path", - "description": "group Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" - }, - "description": "Parameters supplied to the Create or update app to an android policy operation." - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content.", - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "delete": { - "description": "Delete Group for iOS Policy", - "operationId": "DeleteGroupForiOSMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps/{appId}": { + "put": { + "description": "Add app to an iOSMAMPolicy.", + "operationId": "AddAppForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to add an app to an ios policy." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete App for Ios Policy", + "operationId": "DeleteAppForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/apps/{appId}": { + "put": { + "description": "Add app to an AndroidMAMPolicy.", + "operationId": "AddAppForAndriodPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to the Create or update app to an android policy operation." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete App for Android Policy", + "operationId": "DeleteAppForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "groupId", - "in": "path", - "description": "application unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content." - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "appId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, - "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups/{groupId}": { - "put": { - "description": "Add group to an AndroidMAMPolicy.", - "operationId": "AddGroupForAndriodPolicy", - "produces": [ "application/json" ], - "parameters": [ - { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "groupId", - "in": "path", - "description": "group Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" - }, - "description": "Parameters supplied to the Create or update app to an android policy operation." - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content.", - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "delete": { - "description": "Delete Group for Android Policy", - "operationId": "DeleteGroupForAndroidMAMPolicy", - "produces": [ "application/json" ], - "parameters": [ - { + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups": { + "get": { + "description": "Returns groups for a given iOSMAMPolicy.", + "operationId": "GetGroupsForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy name for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "groups as collection response", + "schema": { + "$ref": "#/definitions/GroupsCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups": { + "get": { + "description": "Returns groups for a given AndroidMAMPolicy.", + "operationId": "GetGroupsForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy name for the tenant", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "groups as collection response", + "schema": { + "$ref": "#/definitions/GroupsCollection" + } + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups/{groupId}": { + "put": { + "description": "Add group to an iOSMAMPolicy.", + "operationId": "AddGroupForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "group Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to the Create or update app to an android policy operation." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Group for iOS Policy", + "operationId": "DeleteGroupForiOSMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { - "name": "hostName", - "in": "path", - "description": "Location hostName for the tenant", - "required": true, - "type": "string" - }, - { - "name": "policyId", - "in": "path", - "description": "policy unique Id", - "required": true, - "type": "string" - }, - { - "name": "groupId", - "in": "path", - "description": "application unique Id", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "No-Content." - }, - "204": { - "description": "No-Content." - }, - "default": { - "description": "unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" } - }, + } + } + } }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups/{groupId}": { + "put": { + "description": "Add group to an AndroidMAMPolicy.", + "operationId": "AddGroupForAndriodPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "group Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MAMPolicyAppIdOrGroupIdPayload" + }, + "description": "Parameters supplied to the Create or update app to an android policy operation." + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "description": "Delete Group for Android Policy", + "operationId": "DeleteGroupForAndroidMAMPolicy", + "produces": [ "application/json" ], + "parameters": [ + { + + "name": "hostName", + "in": "path", + "description": "Location hostName for the tenant", + "required": true, + "type": "string" + }, + { + "name": "policyId", + "in": "path", + "description": "policy unique Id", + "required": true, + "type": "string" + }, + { + "name": "groupId", + "in": "path", + "description": "application unique Id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "No-Content." + }, + "204": { + "description": "No-Content." + }, + "default": { + "description": "unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + } + }, "definitions": { "Resource": { From 18f754f6c94a65cd76edc3c9487283332c372270 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Fri, 30 Oct 2015 18:28:57 -0700 Subject: [PATCH 04/11] Fix syntax error --- arm-intune/2015-01-11-alpha/swagger/intune.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index 89150770ddb9..f2a8ba3c6d8d 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -25,9 +25,8 @@ "schema": { "$ref": "#/definitions/LocationCollection" } - } - }, - "default": { + }, + "default": { "description": "unexpected error", "schema": { "$ref": "#/definitions/Error" From c2c0cb25e0f9559a418829855e4680ede0786314 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Fri, 30 Oct 2015 18:38:06 -0700 Subject: [PATCH 05/11] Fix end of input --- arm-intune/2015-01-11-alpha/swagger/intune.json | 1 + 1 file changed, 1 insertion(+) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index f2a8ba3c6d8d..aedae476840f 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -1652,4 +1652,5 @@ "description": "Service Api Version." } } +} } \ No newline at end of file From 7f8452c3de347bef354ab75a8b3e8a78dd39550b Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Fri, 30 Oct 2015 18:47:11 -0700 Subject: [PATCH 06/11] Fix error --- arm-intune/2015-01-11-alpha/swagger/intune.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index aedae476840f..51424ff336e4 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -33,7 +33,8 @@ } } } - }, + } + }, "/providers/Microsoft.Intune/locations/hostName": { "get": { "description": "Returns location for given tenant.", @@ -1652,5 +1653,4 @@ "description": "Service Api Version." } } -} } \ No newline at end of file From ea3c35bc94216dea2c2bd614d174f039651728e0 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Sat, 31 Oct 2015 16:06:34 -0700 Subject: [PATCH 07/11] Added "x-ms-azure-resource": true to Resource --- .../2015-01-11-alpha/swagger/intune.json | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index 51424ff336e4..ffcfff57d9f4 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -1201,23 +1201,24 @@ "definitions": { "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" - } + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" } + }, + "x-ms-azure-resource": true }, "Location": { "properties": { From c28ef40dfa4b76227f7a0c068f03fc8579c1c243 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Mon, 2 Nov 2015 18:04:44 -0800 Subject: [PATCH 08/11] removed type="object" everywhere --- .../2015-01-11-alpha/swagger/intune.json | 146 +++++++++--------- 1 file changed, 72 insertions(+), 74 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index ffcfff57d9f4..783ddb2eb0a7 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -1201,6 +1201,7 @@ "definitions": { "Resource": { + "x-ms-azure-resource": true, "properties": { "id": { "readOnly": true, @@ -1216,9 +1217,19 @@ "readOnly": true, "type": "string", "description": "Resource type" - } - }, - "x-ms-azure-resource": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource Tags" + }, + "location": { + "type": "string", + "description": "Resource Location" + } + } }, "Location": { "properties": { @@ -1234,7 +1245,6 @@ "description": "Location entity for given tenant." }, "LocationProperties": { - "type": "object", "required": [ "hostName" ], "properties": { "hostName": { @@ -1243,7 +1253,6 @@ } }, "Error": { - "type": "object", "required": [ "code", "message" @@ -1258,7 +1267,6 @@ } }, "LocationCollection": { - "type": "object", "required": [ "value" ], "properties": { "value": { @@ -1273,7 +1281,6 @@ } }, "GroupsCollection": { - "type": "object", "required": [ "value" ], "properties": { "value": { @@ -1288,7 +1295,6 @@ } }, "Group": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/GroupProperties" @@ -1302,7 +1308,6 @@ "description": "Group entity for Intune MAM." }, "GroupProperties": { - "type": "object", "required": [ "friendlyName", "platform" @@ -1314,7 +1319,6 @@ } }, "ApplicationCollection": { - "type": "object", "required": [ "value" ], "properties": { "value": { @@ -1329,7 +1333,6 @@ } }, "Application": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/ApplicationProperties" @@ -1343,7 +1346,6 @@ "description": "Application entity for Intune MAM." }, "ApplicationProperties": { - "type": "object", "required": [ "friendlyName", "platform" @@ -1367,7 +1369,6 @@ } }, "IOSMAMPolicyCollection": { - "type": "object", "required": [ "value" ], "properties": { "value": { @@ -1382,7 +1383,6 @@ } }, "AndroidMAMPolicyCollection": { - "type": "object", "required": [ "value" ], "properties": { "value": { @@ -1397,7 +1397,6 @@ } }, "iOSMAMPolicy": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/iOSMAMPolicyProperties" @@ -1411,7 +1410,6 @@ "description": "iOS Policy entity for Intune MAM." }, "iOSMAMPolicyRequestBody": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/iOSMAMPolicyProperties" @@ -1420,7 +1418,6 @@ "description": "iOS Policy request body parameters for Intune MAM." }, "AndroidMAMPolicy": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/AndroidMAMPolicyProperties" @@ -1434,7 +1431,6 @@ "description": "Android Policy entity for Intune MAM." }, "AndroidMAMPolicyRequestBody": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/AndroidMAMPolicyProperties" @@ -1443,7 +1439,6 @@ "description": "Android Policy request body for Intune MAM." }, "MAMPolicyAppIdOrGroupIdPayload": { - "type": "object", "properties": { "properties": { "$ref": "#/definitions/MAMPolicyAppOrGroupIdProperties" @@ -1451,8 +1446,7 @@ }, "description": "MAM Policy request body for properties Intune MAM." }, - "MAMPolicyAppOrGroupIdProperties": { - "type": "object", + "MAMPolicyAppOrGroupIdProperties": { "required": [ "url" ], @@ -1462,12 +1456,12 @@ } }, "description": "Android Policy request body for Intune MAM." - }, - "MAMPolicyProperties": { - "type": "object", + }, + + "MAMPolicyProperties": { "required": [ "friendlyName" - ], + ], "properties": { "friendlyName": { "type": "string" @@ -1588,62 +1582,66 @@ } }, - "iOSMAMPolicyProperties": { - "type": "object", - "properties": { - "fileEncryptionLevel": { - "type": "string", - "default": "deviceLocked", - "enum": [ - "deviceLocked", - "deviceLockedExceptFilesOpen", - "afterDeviceRestart", - "useDeviceSettings" - ] - }, - "touchId": { - "type": "string", - "default": "enable", - "enum": [ - "enable", - "disable" - ] - } - }, - "allOf": [ + + "iOSMAMPolicyProperties": { + "allOf": [ { - "$ref": "#/definitions/MAMPolicyProperties" - } + "$ref": "#/definitions/MAMPolicyProperties" + }, + { + "properties": { + "fileEncryptionLevel": { + "type": "string", + "default": "deviceLocked", + "enum": [ + "deviceLocked", + "deviceLockedExceptFilesOpen", + "afterDeviceRestart", + "useDeviceSettings" + ] + }, + "touchId": { + "type": "string", + "default": "enable", + "enum": [ + "enable", + "disable" + ] + } + } + } ], "description": "Intune MAM iOS Policy Properties." }, - "AndroidMAMPolicyProperties": { - "type": "object", - "properties": { - "screenCapture": { - "type": "string", - "default": "allow", - "enum": [ - "allow", - "block" - ] - }, - "fileEncryption": { - "type": "string", - "default": "required", - "enum": [ - "required", - "notRequired" - ] - } - }, - "allOf": [ + + "AndroidMAMPolicyProperties": { + "allOf": [ { - "$ref": "#/definitions/MAMPolicyProperties" - } + "$ref": "#/definitions/MAMPolicyProperties" + }, + { + "properties": { + "screenCapture": { + "type": "string", + "default": "allow", + "enum": [ + "allow", + "block" + ] + }, + "fileEncryption": { + "type": "string", + "default": "required", + "enum": [ + "required", + "notRequired" + ] + } + } + } ], "description": "Intune MAM iOS Policy Properties." - } + } }, "parameters": { "ApiVersionParameter": { From 5640666bfb0610b9cffc537facac372994c5c2ff Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Tue, 3 Nov 2015 17:19:06 -0800 Subject: [PATCH 09/11] Support for pageable operations, improved operationId --- .../2015-01-11-alpha/swagger/intune.json | 184 +++++++++--------- 1 file changed, 88 insertions(+), 96 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index 783ddb2eb0a7..b9784a6f707d 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -12,6 +12,7 @@ "paths": { "/providers/Microsoft.Intune/locations": { "get": { + "x-ms-pageable": true, "description": "Returns location for user tenant.", "operationId": "GetLocations", "parameters": [ @@ -64,7 +65,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/apps": { "get": { "description": "Returns Intune Manageable apps.", - "operationId": "GetApplications", + "x-ms-pageable": true, + "operationId": "GetApps", "produces": [ "application/json" ], "parameters": [ { @@ -118,7 +120,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": { "get": { "description": "Returns Intune iOSPolicies.", - "operationId": "GetiOSMAMPolicies", + "x-ms-pageable": true, + "operationId": "Ios_GetMAMPolicies", "produces": [ "application/json" ], "parameters": [ { @@ -172,7 +175,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": { "get": { "description": "Returns Intune Android policies.", - "operationId": "GetAndroidMAMPolicies", + "x-ms-pageable": true, + "operationId": "Android_GetMAMPolicies", "produces": [ "application/json" ], "parameters": [ { @@ -226,7 +230,7 @@ "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}": { "get": { "description": "Returns Intune iOS policies.", - "operationId": "GetiOSMAMPolicyById", + "operationId": "Ios_GetMAMPolicyById", "produces": [ "application/json" ], "parameters": [ { @@ -272,7 +276,7 @@ }, "put": { "description": "Creates or updates iOSMAMPolicy.", - "operationId": "CreateOrUpdateiOSMAMPolicy", + "operationId": "Ios_CreateOrUpdateMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -298,7 +302,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/iOSMAMPolicyRequestBody" + "$ref": "#/definitions/iOSMAMPolicy" }, "description": "Parameters supplied to the Create or update an android policy operation." } @@ -320,7 +324,7 @@ }, "patch": { "description": " patch an iOSMAMPolicy.", - "operationId": "PatchiOSMAMPolicy", + "operationId": "Ios_PatchMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -346,7 +350,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/iOSMAMPolicyRequestBody" + "$ref": "#/definitions/iOSMAMPolicy" }, "description": "Parameters supplied to the Create or update an android policy operation." } @@ -368,7 +372,7 @@ }, "delete": { "description": "Delete Ios Policy", - "operationId": "DeleteiOSMAMPolicy", + "operationId": "Ios_DeleteMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -409,7 +413,7 @@ "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}": { "get": { "description": "Returns AndroidMAMPolicy with given Id.", - "operationId": "GetAndroidMAMPolicyById", + "operationId": "Android_GetMAMPolicyById", "produces": [ "application/json" ], "parameters": [ { @@ -455,7 +459,7 @@ }, "put": { "description": "Creates or updates AndroidMAMPolicy.", - "operationId": "CreateOrUpdateAndroidMAMPolicy", + "operationId": "Android_CreateOrUpdateMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -481,7 +485,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AndroidMAMPolicyRequestBody" + "$ref": "#/definitions/AndroidMAMPolicy" }, "description": "Parameters supplied to the Create or update an android policy operation." } @@ -503,7 +507,7 @@ }, "patch": { "description": "Patch AndroidMAMPolicy.", - "operationId": "PatchAndroidMAMPolicy", + "operationId": "Android_PatchMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -529,7 +533,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AndroidMAMPolicyRequestBody" + "$ref": "#/definitions/AndroidMAMPolicy" }, "description": "Parameters supplied to the Create or update an android policy operation." } @@ -551,7 +555,7 @@ }, "delete": { "description": "Delete Android Policy", - "operationId": "DeleteAndroidMAMPolicy", + "operationId": "Android_DeleteMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -591,7 +595,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps": { "get": { "description": "Get apps for an iOSMAMPolicy.", - "operationId": "GetAppForiOSMAMPolicy", + "x-ms-pageable": true, + "operationId": "Ios_GetAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -652,7 +657,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyId}/apps": { "get": { "description": "Get apps for an AndroidMAMPolicy.", - "operationId": "GetAppForAndroidMAMPolicy", + "x-ms-pageable": true, + "operationId": "Android_GetAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -713,7 +719,7 @@ "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps/{appId}": { "put": { "description": "Add app to an iOSMAMPolicy.", - "operationId": "AddAppForiOSMAMPolicy", + "operationId": "Ios_AddAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -767,7 +773,7 @@ }, "delete": { "description": "Delete App for Ios Policy", - "operationId": "DeleteAppForiOSMAMPolicy", + "operationId": "Ios_DeleteAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -814,7 +820,7 @@ "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/apps/{appId}": { "put": { "description": "Add app to an AndroidMAMPolicy.", - "operationId": "AddAppForAndriodPolicy", + "operationId": "Android_AddAppForPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -868,7 +874,7 @@ }, "delete": { "description": "Delete App for Android Policy", - "operationId": "DeleteAppForAndroidMAMPolicy", + "operationId": "Android_DeleteAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -916,7 +922,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups": { "get": { "description": "Returns groups for a given iOSMAMPolicy.", - "operationId": "GetGroupsForiOSMAMPolicy", + "x-ms-pageable": true, + "operationId": "Ios_GetGroupsForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -956,7 +963,8 @@ "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups": { "get": { "description": "Returns groups for a given AndroidMAMPolicy.", - "operationId": "GetGroupsForAndroidMAMPolicy", + "x-ms-pageable": true, + "operationId": "Android_GetGroupsForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -996,7 +1004,7 @@ "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups/{groupId}": { "put": { "description": "Add group to an iOSMAMPolicy.", - "operationId": "AddGroupForiOSMAMPolicy", + "operationId": "Ios_AddGroupForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -1050,11 +1058,10 @@ }, "delete": { "description": "Delete Group for iOS Policy", - "operationId": "DeleteGroupForiOSMAMPolicy", + "operationId": "Ios_DeleteGroupForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { - "name": "hostName", "in": "path", "description": "Location hostName for the tenant", @@ -1098,7 +1105,7 @@ "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups/{groupId}": { "put": { "description": "Add group to an AndroidMAMPolicy.", - "operationId": "AddGroupForAndriodPolicy", + "operationId": "Android_AddGroupForPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -1152,7 +1159,7 @@ }, "delete": { "description": "Delete Group for Android Policy", - "operationId": "DeleteGroupForAndroidMAMPolicy", + "operationId": "Android_DeleteGroupForMAMPolicy", "produces": [ "application/json" ], "parameters": [ { @@ -1276,7 +1283,8 @@ } }, "nextlink": { - "type": "string" + "type": "string", + "description": "Gets or sets the URL to get the next set of results." } } }, @@ -1290,7 +1298,8 @@ } }, "nextlink": { - "type": "string" + "type": "string", + "description": "Gets or sets the URL to get the next set of results." } } }, @@ -1328,7 +1337,8 @@ } }, "nextlink": { - "type": "string" + "type": "string", + "description": "Gets or sets the URL to get the next set of results." } } }, @@ -1378,7 +1388,8 @@ } }, "nextlink": { - "type": "string" + "type": "string", + "description": "Gets or sets the URL to get the next set of results." } } }, @@ -1392,7 +1403,8 @@ } }, "nextlink": { - "type": "string" + "type": "string", + "description": "Gets or sets the URL to get the next set of results." } } }, @@ -1408,14 +1420,6 @@ } ], "description": "iOS Policy entity for Intune MAM." - }, - "iOSMAMPolicyRequestBody": { - "properties": { - "properties": { - "$ref": "#/definitions/iOSMAMPolicyProperties" - } - }, - "description": "iOS Policy request body parameters for Intune MAM." }, "AndroidMAMPolicy": { "properties": { @@ -1430,14 +1434,6 @@ ], "description": "Android Policy entity for Intune MAM." }, - "AndroidMAMPolicyRequestBody": { - "properties": { - "properties": { - "$ref": "#/definitions/AndroidMAMPolicyProperties" - } - }, - "description": "Android Policy request body for Intune MAM." - }, "MAMPolicyAppIdOrGroupIdPayload": { "properties": { "properties": { @@ -1583,34 +1579,32 @@ }, - "iOSMAMPolicyProperties": { - "allOf": [ + "iOSMAMPolicyProperties": { + "allOf": [ { - "$ref": "#/definitions/MAMPolicyProperties" + "$ref": "#/definitions/MAMPolicyProperties" + } + ], + "properties": { + "fileEncryptionLevel": { + "type": "string", + "default": "deviceLocked", + "enum": [ + "deviceLocked", + "deviceLockedExceptFilesOpen", + "afterDeviceRestart", + "useDeviceSettings" + ] }, - { - "properties": { - "fileEncryptionLevel": { - "type": "string", - "default": "deviceLocked", - "enum": [ - "deviceLocked", - "deviceLockedExceptFilesOpen", - "afterDeviceRestart", - "useDeviceSettings" - ] - }, - "touchId": { - "type": "string", - "default": "enable", - "enum": [ - "enable", - "disable" - ] - } - } - } - ], + "touchId": { + "type": "string", + "default": "enable", + "enum": [ + "enable", + "disable" + ] + } + }, "description": "Intune MAM iOS Policy Properties." }, @@ -1618,28 +1612,26 @@ "allOf": [ { "$ref": "#/definitions/MAMPolicyProperties" - }, - { - "properties": { - "screenCapture": { - "type": "string", - "default": "allow", - "enum": [ - "allow", - "block" - ] - }, - "fileEncryption": { - "type": "string", - "default": "required", - "enum": [ - "required", - "notRequired" - ] - } - } + } + ], + "properties": { + "screenCapture": { + "type": "string", + "default": "allow", + "enum": [ + "allow", + "block" + ] + }, + "fileEncryption": { + "type": "string", + "default": "required", + "enum": [ + "required", + "notRequired" + ] } - ], + }, "description": "Intune MAM iOS Policy Properties." } }, From a3a104b6ada6d6a3c46179ab83d35b85323705e4 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Wed, 4 Nov 2015 09:37:15 -0800 Subject: [PATCH 10/11] Fixed issue with x-ms-pageable --- .../2015-01-11-alpha/swagger/intune.json | 64 ++++++++++++------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index b9784a6f707d..47274de6a6ba 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -11,8 +11,7 @@ "produces": [ "application/json" ], "paths": { "/providers/Microsoft.Intune/locations": { - "get": { - "x-ms-pageable": true, + "get": { "description": "Returns location for user tenant.", "operationId": "GetLocations", "parameters": [ @@ -33,7 +32,10 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/hostName": { @@ -64,8 +66,7 @@ }, "/providers/Microsoft.Intune/locations/{hostName}/apps": { "get": { - "description": "Returns Intune Manageable apps.", - "x-ms-pageable": true, + "description": "Returns Intune Manageable apps.", "operationId": "GetApps", "produces": [ "application/json" ], "parameters": [ @@ -114,13 +115,15 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": { "get": { - "description": "Returns Intune iOSPolicies.", - "x-ms-pageable": true, + "description": "Returns Intune iOSPolicies.", "operationId": "Ios_GetMAMPolicies", "produces": [ "application/json" ], "parameters": [ @@ -169,13 +172,15 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": { "get": { - "description": "Returns Intune Android policies.", - "x-ms-pageable": true, + "description": "Returns Intune Android policies.", "operationId": "Android_GetMAMPolicies", "produces": [ "application/json" ], "parameters": [ @@ -224,7 +229,10 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}": { @@ -594,8 +602,7 @@ }, "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps": { "get": { - "description": "Get apps for an iOSMAMPolicy.", - "x-ms-pageable": true, + "description": "Get apps for an iOSMAMPolicy.", "operationId": "Ios_GetAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ @@ -651,13 +658,15 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyId}/apps": { "get": { - "description": "Get apps for an AndroidMAMPolicy.", - "x-ms-pageable": true, + "description": "Get apps for an AndroidMAMPolicy.", "operationId": "Android_GetAppForMAMPolicy", "produces": [ "application/json" ], "parameters": [ @@ -713,7 +722,10 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps/{appId}": { @@ -921,8 +933,7 @@ }, "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups": { "get": { - "description": "Returns groups for a given iOSMAMPolicy.", - "x-ms-pageable": true, + "description": "Returns groups for a given iOSMAMPolicy.", "operationId": "Ios_GetGroupsForMAMPolicy", "produces": [ "application/json" ], "parameters": [ @@ -957,13 +968,15 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups": { "get": { - "description": "Returns groups for a given AndroidMAMPolicy.", - "x-ms-pageable": true, + "description": "Returns groups for a given AndroidMAMPolicy.", "operationId": "Android_GetGroupsForMAMPolicy", "produces": [ "application/json" ], "parameters": [ @@ -998,7 +1011,10 @@ "$ref": "#/definitions/Error" } } - } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } } }, "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups/{groupId}": { From 54f22f25a90b18b553ebe35b3257a96103d8df93 Mon Sep 17 00:00:00 2001 From: Venkata Ramanamurthy Chandaka Date: Wed, 4 Nov 2015 14:01:54 -0800 Subject: [PATCH 11/11] Group renamed as GroupItem --- arm-intune/2015-01-11-alpha/swagger/intune.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm-intune/2015-01-11-alpha/swagger/intune.json b/arm-intune/2015-01-11-alpha/swagger/intune.json index 47274de6a6ba..a206aa673a2f 100644 --- a/arm-intune/2015-01-11-alpha/swagger/intune.json +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -1310,7 +1310,7 @@ "value": { "type": "array", "items": { - "$ref": "#/definitions/Group" + "$ref": "#/definitions/GroupItem" } }, "nextlink": { @@ -1319,7 +1319,7 @@ } } }, - "Group": { + "GroupItem": { "properties": { "properties": { "$ref": "#/definitions/GroupProperties"