Skip to content

Commit

Permalink
Remove scope from marketplace registration definitions operations (#1…
Browse files Browse the repository at this point in the history
…2397)

* Remove scope from marketplace registration definitions operations

* Swagger fixes

* Changed operation ids

* Validation fixes

* Unique x-ms-example names

* Name fix for examples

* Removed sub from example responses

* Added empty eligibleAuths to 2020-02-01-preview MRD examples
  • Loading branch information
skayani authored Feb 3, 2021
1 parent 2f29e93 commit d606d4b
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"marketplaceIdentifier": "publisher.product.planName.version",
"api-version": "2020-02-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
"authorizations": [
{
"principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "Support User",
"roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
},
{
"principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "User Access Administrator",
"roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9",
"delegatedRoleDefinitionIds": [
"b24988ac-6180-42a0-ab88-20f7382dd24c"
]
}
],
"eligibleAuthorizations": [],
"offerDisplayName": "Marketplace Test Offer",
"publisherDisplayName": "Marketplace Test Publisher",
"planDisplayName": "Test Plan"
},
"plan": {
"name": "test-plan",
"product": "test",
"publisher": "marketplace-test",
"version": "1.0.0"
},
"id": "/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/marketplace-test.test.test-plan.1.0.0",
"type": "Microsoft.ManagedServices/marketplaceRegistrationDefinitions",
"name": "marketplace-test.test.test-plan.1.0.0"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"$filter": "planIdentifier eq 'publisher.offerIdentifier.planName.version'",
"api-version": "2020-02-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
"authorizations": [
{
"principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "Support User",
"roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
},
{
"principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "User Access Administrator",
"roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9",
"delegatedRoleDefinitionIds": [
"b24988ac-6180-42a0-ab88-20f7382dd24c"
]
}
],
"eligibleAuthorizations": [],
"offerDisplayName": "Marketplace Test Offer",
"publisherDisplayName": "Marketplace Test Publisher",
"planDisplayName": "Test Plan"
},
"plan": {
"name": "test-plan",
"product": "test",
"publisher": "marketplace-test",
"version": "1.0.0"
},
"id": "/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/marketplace-test.test.test-plan.1.0.0",
"type": "Microsoft.ManagedServices/marketplaceRegistrationDefinitions",
"name": "marketplace-test.test.test-plan.1.0.0"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,45 @@
}
}
},
"/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions": {
"get": {
"tags": [
"MarketplaceRegistrationDefinitions"
],
"operationId": "MarketplaceRegistrationDefinitionsWithoutScope_List",
"description": "Gets a list of the marketplace registration definitions for the marketplace identifier.",
"parameters": [
{
"$ref": "#/parameters/Filter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns a list of the marketplace registration definitions.",
"schema": {
"$ref": "#/definitions/MarketplaceRegistrationDefinitionList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Get Marketplace Registration Definitions At Tenant Scope": {
"$ref": "./examples/GetMarketplaceRegistrationDefinitionsAtTenantScope.json"
}
}
}
},
"/{scope}/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/{marketplaceIdentifier}": {
"get": {
"tags": [
Expand Down Expand Up @@ -461,6 +500,42 @@
}
}
},
"/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/{marketplaceIdentifier}": {
"get": {
"tags": [
"MarketplaceRegistrationDefinitions"
],
"operationId": "MarketplaceRegistrationDefinitionsWithoutScope_Get",
"description": "Get the marketplace registration definition for the marketplace identifier.",
"parameters": [
{
"$ref": "#/parameters/MarketplaceIdentifier"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns the details of the marketplace registration definition.",
"schema": {
"$ref": "#/definitions/MarketplaceRegistrationDefinition"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get Marketplace Registration Definition At Tenant Scope": {
"$ref": "./examples/GetMarketplaceRegistrationDefinitionAtTenantScope.json"
}
}
}
},
"/providers/Microsoft.ManagedServices/operations": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"marketplaceIdentifier": "publisher.product.planName.version",
"api-version": "2019-09-01"
},
"responses": {
"200": {
"body": {
"properties": {
"managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
"authorizations": [
{
"principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "Support User",
"roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
},
{
"principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "User Access Administrator",
"roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9",
"delegatedRoleDefinitionIds": [
"b24988ac-6180-42a0-ab88-20f7382dd24c"
]
}
],
"offerDisplayName": "Marketplace Test Offer",
"publisherDisplayName": "Marketplace Test Publisher",
"planDisplayName": "Test Plan"
},
"plan": {
"name": "test-plan",
"product": "test",
"publisher": "marketplace-test",
"version": "1.0.0"
},
"id": "/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/marketplace-test.test.test-plan.1.0.0",
"type": "Microsoft.ManagedServices/marketplaceRegistrationDefinitions",
"name": "marketplace-test.test.test-plan.1.0.0"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"$filter": "planIdentifier eq 'publisher.offerIdentifier.planName.version'",
"api-version": "2019-09-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
"authorizations": [
{
"principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "Support User",
"roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
},
{
"principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
"principalIdDisplayName": "User Access Administrator",
"roleDefinitionId": "18d7d88d-d35e-4fb5-a5c3-7773c20a72d9",
"delegatedRoleDefinitionIds": [
"b24988ac-6180-42a0-ab88-20f7382dd24c"
]
}
],
"offerDisplayName": "Marketplace Test Offer",
"publisherDisplayName": "Marketplace Test Publisher",
"planDisplayName": "Test Plan"
},
"plan": {
"name": "test-plan",
"product": "test",
"publisher": "marketplace-test",
"version": "1.0.0"
},
"id": "/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/marketplace-test.test.test-plan.1.0.0",
"type": "Microsoft.ManagedServices/marketplaceRegistrationDefinitions",
"name": "marketplace-test.test.test-plan.1.0.0"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,45 @@
}
}
},
"/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions": {
"get": {
"tags": [
"MarketplaceRegistrationDefinitions"
],
"operationId": "MarketplaceRegistrationDefinitionsWithoutScope_List",
"description": "Gets a list of the marketplace registration definitions for the marketplace identifier.",
"parameters": [
{
"$ref": "#/parameters/Filter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns a list of the marketplace registration definitions.",
"schema": {
"$ref": "#/definitions/MarketplaceRegistrationDefinitionList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Get Marketplace Registration Definitions At Tenant Scope": {
"$ref": "./examples/GetMarketplaceRegistrationDefinitionsAtTenantScope.json"
}
}
}
},
"/{scope}/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/{marketplaceIdentifier}": {
"get": {
"tags": [
Expand Down Expand Up @@ -461,6 +500,42 @@
}
}
},
"/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/{marketplaceIdentifier}": {
"get": {
"tags": [
"MarketplaceRegistrationDefinitions"
],
"operationId": "MarketplaceRegistrationDefinitionsWithoutScope_Get",
"description": "Get the marketplace registration definition for the marketplace identifier.",
"parameters": [
{
"$ref": "#/parameters/MarketplaceIdentifier"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK - Returns the details of the marketplace registration definition.",
"schema": {
"$ref": "#/definitions/MarketplaceRegistrationDefinition"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get Marketplace Registration Definition At Tenant Scope": {
"$ref": "./examples/GetMarketplaceRegistrationDefinitionAtTenantScope.json"
}
}
}
},
"/providers/Microsoft.ManagedServices/operations": {
"get": {
"tags": [
Expand Down

0 comments on commit d606d4b

Please sign in to comment.