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..a206aa673a2f --- /dev/null +++ b/arm-intune/2015-01-11-alpha/swagger/intune.json @@ -0,0 +1,1663 @@ +{ + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/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": "GetApps", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies": { + "get": { + "description": "Returns Intune iOSPolicies.", + "operationId": "Ios_GetMAMPolicies", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies": { + "get": { + "description": "Returns Intune Android policies.", + "operationId": "Android_GetMAMPolicies", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}": { + "get": { + "description": "Returns Intune iOS policies.", + "operationId": "Ios_GetMAMPolicyById", + "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": "Ios_CreateOrUpdateMAMPolicy", + "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/iOSMAMPolicy" + }, + "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": "Ios_PatchMAMPolicy", + "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/iOSMAMPolicy" + }, + "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": "Ios_DeleteMAMPolicy", + "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": "Android_GetMAMPolicyById", + "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": "Android_CreateOrUpdateMAMPolicy", + "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/AndroidMAMPolicy" + }, + "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": "Android_PatchMAMPolicy", + "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/AndroidMAMPolicy" + }, + "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": "Android_DeleteMAMPolicy", + "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": { + "get": { + "description": "Get apps for an iOSMAMPolicy.", + "operationId": "Ios_GetAppForMAMPolicy", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyId}/apps": { + "get": { + "description": "Get apps for an AndroidMAMPolicy.", + "operationId": "Android_GetAppForMAMPolicy", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/apps/{appId}": { + "put": { + "description": "Add app to an iOSMAMPolicy.", + "operationId": "Ios_AddAppForMAMPolicy", + "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": "Ios_DeleteAppForMAMPolicy", + "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": "Android_AddAppForPolicy", + "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": "Android_DeleteAppForMAMPolicy", + "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": "Ios_GetGroupsForMAMPolicy", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyId}/groups": { + "get": { + "description": "Returns groups for a given AndroidMAMPolicy.", + "operationId": "Android_GetGroupsForMAMPolicy", + "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" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextlink" + } + } + }, + "/providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyId}/groups/{groupId}": { + "put": { + "description": "Add group to an iOSMAMPolicy.", + "operationId": "Ios_AddGroupForMAMPolicy", + "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": "Ios_DeleteGroupForMAMPolicy", + "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": "Android_AddGroupForPolicy", + "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": "Android_DeleteGroupForMAMPolicy", + "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": { + "x-ms-azure-resource": true, + "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" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource Tags" + }, + "location": { + "type": "string", + "description": "Resource Location" + } + } + }, + "Location": { + "properties": { + "properties": { + "$ref": "#/definitions/LocationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Location entity for given tenant." + }, + "LocationProperties": { + "required": [ "hostName" ], + "properties": { + "hostName": { + "type": "string" + } + } + }, + "Error": { + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "LocationCollection": { + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Location" + } + }, + "nextlink": { + "type": "string", + "description": "Gets or sets the URL to get the next set of results." + } + } + }, + "GroupsCollection": { + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GroupItem" + } + }, + "nextlink": { + "type": "string", + "description": "Gets or sets the URL to get the next set of results." + } + } + }, + "GroupItem": { + "properties": { + "properties": { + "$ref": "#/definitions/GroupProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Group entity for Intune MAM." + }, + "GroupProperties": { + "required": [ + "friendlyName", + "platform" + ], + "properties": { + "friendlyName": { + "type": "string" + } + } + }, + "ApplicationCollection": { + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + } + }, + "nextlink": { + "type": "string", + "description": "Gets or sets the URL to get the next set of results." + } + } + }, + "Application": { + "properties": { + "properties": { + "$ref": "#/definitions/ApplicationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Application entity for Intune MAM." + }, + "ApplicationProperties": { + "required": [ + "friendlyName", + "platform" + ], + "properties": { + "friendlyName": { + "type": "string" + }, + "platform": { + "type": "string", + "default": "ios", + "enum": [ + "ios", + "android", + "windows" + ] + }, + "appId": { + "type": "string" + } + } + }, + "IOSMAMPolicyCollection": { + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/iOSMAMPolicy" + } + }, + "nextlink": { + "type": "string", + "description": "Gets or sets the URL to get the next set of results." + } + } + }, + "AndroidMAMPolicyCollection": { + "required": [ "value" ], + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AndroidMAMPolicy" + } + }, + "nextlink": { + "type": "string", + "description": "Gets or sets the URL to get the next set of results." + } + } + }, + "iOSMAMPolicy": { + "properties": { + "properties": { + "$ref": "#/definitions/iOSMAMPolicyProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "iOS Policy entity for Intune MAM." + }, + "AndroidMAMPolicy": { + "properties": { + "properties": { + "$ref": "#/definitions/AndroidMAMPolicyProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Android Policy entity for Intune MAM." + }, + "MAMPolicyAppIdOrGroupIdPayload": { + "properties": { + "properties": { + "$ref": "#/definitions/MAMPolicyAppOrGroupIdProperties" + } + }, + "description": "MAM Policy request body for properties Intune MAM." + }, + "MAMPolicyAppOrGroupIdProperties": { + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + } + }, + "description": "Android Policy request body for Intune MAM." + }, + + "MAMPolicyProperties": { + "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": { + "allOf": [ + { + "$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": { + "allOf": [ + { + "$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": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Service Api Version." + } + } +} \ No newline at end of file