From cd8b6c2d82e1b289d4ddb86479a6406b80061819 Mon Sep 17 00:00:00 2001 From: Vincent Mejan <91658566+VincentMejan@users.noreply.github.com> Date: Tue, 12 Oct 2021 21:22:05 +0200 Subject: [PATCH] Spinpanel, bugfixes, quality improvements (#1174) * Spinpanel, bugfixes, quality improvements * Syntax, cleanup --- .../Spinpanel/apiDefinition.swagger.json | 289 +++++++++--------- 1 file changed, 147 insertions(+), 142 deletions(-) diff --git a/certified-connectors/Spinpanel/apiDefinition.swagger.json b/certified-connectors/Spinpanel/apiDefinition.swagger.json index a4e60983ae..69160ff090 100644 --- a/certified-connectors/Spinpanel/apiDefinition.swagger.json +++ b/certified-connectors/Spinpanel/apiDefinition.swagger.json @@ -823,7 +823,7 @@ ] } }, - "/graph/v1.0/users/{microsoftObjectId}/assignlicense": { + "/graph/v1/organizations/{organizationId}/v1.0/users/{microsoftObjectId}/assignlicense": { "post": { "responses": { "201": { @@ -885,6 +885,15 @@ } }, "parameters": [ + { + "name": "organizationId", + "in": "path", + "required": true, + "type": "string", + "description": "Spinpanel organization identifier.", + "x-ms-summary": "Spinpanel organization id.", + "x-ms-url-encoding" : "single" + }, { "name": "microsoftObjectId", "in": "path", @@ -908,9 +917,7 @@ "properties": { "disabledPlans": { "type": "array", - "items": { - "type": "string" - }, + "items": {}, "description": "Disabled plans." }, "skuId": { @@ -924,12 +931,9 @@ }, "removeLicenses": { "type": "array", - "items": { - "type": "string", - "description": "A collection of GUIDs that identify the licenses to remove.", - "title": "Remove licenses" - }, - "description": "Remove licenses." + "items": {}, + "description": "A collection of GUIDs that identify the licenses to remove.", + "title": "Remove licenses" } } } @@ -1181,130 +1185,7 @@ "operationId": "GetADSecurityGroups", "summary": "Get Azure AD security groups", "description": "Get a list of Azure AD security groups of all organizations you are authorized to view." - } - }, - "/graph/v1/organizations/{organizationId}/v1.0/domains": { - "get": { - "responses": { - "200": { - "description": "Ok.", - "schema": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "type": "object", - "properties": { - "authenticationType": { - "type": "string", - "description": "Authentication type of the domain.", - "title": "Authentication type" - }, - "availabilityStatus": { - "type": "string", - "description": "Availability status of the domain.", - "title": "Availability status" - }, - "id": { - "type": "string", - "description": "Identifier of the domain.", - "title": "Id" - }, - "isAdminManaged": { - "type": "boolean", - "description": "Indicates if the domain is admin managed.", - "title": "Admin managed", - "enum": [ - true, - false - ] - }, - "isDefault": { - "type": "boolean", - "description": "Indicates if this is the default domain.", - "title": "Default", - "enum": [ - true, - false - ] - }, - "isInitial": { - "type": "boolean", - "description": "Indicates if this is the initial domain.", - "title": "Initial", - "enum": [ - true, - false - ] - }, - "isRoot": { - "type": "boolean", - "description": "Indicates if this is the root domain.", - "title": "Root", - "enum": [ - true, - false - ] - }, - "isVerified": { - "type": "boolean", - "description": "Indicates if the domain is verified.", - "title": "Verified", - "enum": [ - true, - false - ] - }, - "supportedServices": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported services." - }, - "passwordValidityPeriodInDays": { - "type": "integer", - "format": "int32", - "description": "Indicates the password validity in days.", - "title": "Password validity" - }, - "passwordNotificationWindowInDays": { - "type": "integer", - "format": "int32", - "description": "Indicates the password notifcation window in days.", - "title": "Password notification windows" - }, - "state": { - "type": "string", - "description": "State of the domain.", - "title": "State" - } - } - }, - "description": "Value." - } - } - } - } - }, - "parameters": [ - { - "name": "organizationId", - "in": "path", - "required": true, - "type": "string", - "description": "Spinpanel organization identifier.", - "x-ms-summary": "Spinpanel organization id.", - "x-ms-url-encoding" : "single" - } - ], - "operationId": "GetGraphDomains", - "description": "Retrieve a list of domain objects.", - "summary": "List organization domains" - } - }, - "/graph/v1/organizations/{organizationId}v1.0/groups": { + }, "post": { "responses": { "201": { @@ -1526,6 +1407,127 @@ "description": "Create azure AD group." } }, + "/graph/v1/organizations/{organizationId}/v1.0/domains": { + "get": { + "responses": { + "200": { + "description": "Ok.", + "schema": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authenticationType": { + "type": "string", + "description": "Authentication type of the domain.", + "title": "Authentication type" + }, + "availabilityStatus": { + "type": "string", + "description": "Availability status of the domain.", + "title": "Availability status" + }, + "id": { + "type": "string", + "description": "Identifier of the domain.", + "title": "Id" + }, + "isAdminManaged": { + "type": "boolean", + "description": "Indicates if the domain is admin managed.", + "title": "Admin managed", + "enum": [ + true, + false + ] + }, + "isDefault": { + "type": "boolean", + "description": "Indicates if this is the default domain.", + "title": "Default", + "enum": [ + true, + false + ] + }, + "isInitial": { + "type": "boolean", + "description": "Indicates if this is the initial domain.", + "title": "Initial", + "enum": [ + true, + false + ] + }, + "isRoot": { + "type": "boolean", + "description": "Indicates if this is the root domain.", + "title": "Root", + "enum": [ + true, + false + ] + }, + "isVerified": { + "type": "boolean", + "description": "Indicates if the domain is verified.", + "title": "Verified", + "enum": [ + true, + false + ] + }, + "supportedServices": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Supported services." + }, + "passwordValidityPeriodInDays": { + "type": "integer", + "format": "int32", + "description": "Indicates the password validity in days.", + "title": "Password validity" + }, + "passwordNotificationWindowInDays": { + "type": "integer", + "format": "int32", + "description": "Indicates the password notifcation window in days.", + "title": "Password notification windows" + }, + "state": { + "type": "string", + "description": "State of the domain.", + "title": "State" + } + } + }, + "description": "Value." + } + } + } + } + }, + "parameters": [ + { + "name": "organizationId", + "in": "path", + "required": true, + "type": "string", + "description": "Spinpanel organization identifier.", + "x-ms-summary": "Spinpanel organization id.", + "x-ms-url-encoding" : "single" + } + ], + "operationId": "GetGraphDomains", + "description": "Retrieve a list of domain objects.", + "summary": "List organization domains" + } + }, "/directory/v1/organizations/{organizationId}/usergroups/{userGroupId}": { "delete": { "responses": { @@ -1673,7 +1675,7 @@ "properties": { "@odata.id": { "type": "string", - "description": "JSON representation of a directoryObject, user, group, or organizational contact object to be added.", + "description": "URI of the directory, user, group, or organizational contact object to be added.", "title": "Member" } }, @@ -1933,7 +1935,9 @@ } ], "operationId": "GetSubscriptions" - }, + } + }, + "/partnercenter/v1/partners/{partnerId}/organizations/{customerId}/v1.0/customers/{tenantId}/subscriptions/{subscriptionId}": { "patch": { "responses": { "200": { @@ -1970,12 +1974,13 @@ "x-ms-url-encoding" : "single" }, { - "name": "quantityOnly", - "in": "query", + "name": "subscriptionId", + "in": "path", "required": true, - "type": "boolean", - "default": true, - "x-ms-visibility": "internal" + "type": "string", + "description": "Subscription identifier of the customer.", + "x-ms-summary": "Subsription id.", + "x-ms-url-encoding" : "single" }, { "name": "body", @@ -1987,7 +1992,7 @@ "quantity": { "type": "integer", "format": "int32", - "description": "Quantity of the susbscription.", + "description": "Quantity of the subscription.", "title": "Quantity" } }