Skip to content

Commit

Permalink
APIM Missing Operations reported in S360 (Azure#12621)
Browse files Browse the repository at this point in the history
* missing operations

* swagger linter issues

* suppression

* add count property

* fix swagger model issues
  • Loading branch information
solankisamir authored and mkarmark committed Jul 20, 2021
1 parent 05c2ebc commit d3c66e8
Show file tree
Hide file tree
Showing 11 changed files with 372 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4392,6 +4392,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/TagResourceCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
"schema": {
"$ref": "#/definitions/OperationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -528,6 +534,12 @@
"schema": {
"$ref": "#/definitions/ApiManagementServiceListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,48 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings": {
"get": {
"tags": [
"PortalSettings"
],
"operationId": "PortalSettings_ListByService",
"description": "Lists a collection of portalsettings defined within a service instance..",
"x-ms-examples": {
"ApiManagementListPortalSettings": {
"$ref": "./examples/ApiManagementListPortalSettings.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Lists a collection of Portal Settings entities.",
"schema": {
"$ref": "./definitions.json#/definitions/PortalSettingsCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin": {
"head": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -146,6 +152,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -206,6 +218,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -266,6 +284,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -319,6 +343,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -379,6 +409,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -447,6 +483,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/ReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -500,6 +542,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/RequestReportCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,12 @@
"schema": {
"$ref": "./definitions.json#/definitions/TenantConfigurationSyncStateContract"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,60 @@
"x-ms-odata": "./definitions.json#/definitions/SubscriptionContract"
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}": {
"get": {
"tags": [
"Subscription"
],
"operationId": "UserSubscription_Get",
"description": "Gets the specified Subscription entity associated with a particular user.",
"x-ms-examples": {
"ApiManagementGetUserSubscription": {
"$ref": "./examples/ApiManagementGetUserSubscription.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/UserIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionEntityIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The response body contains the specified Subscription entity.",
"schema": {
"$ref": "./definitions.json#/definitions/SubscriptionContract"
},
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@
"description": "Page values.",
"readOnly": true
},
"count": {
"type": "integer",
"format": "int64",
"description": "Total record count number across all pages."
},
"nextLink": {
"type": "string",
"description": "Next page link if any.",
Expand Down Expand Up @@ -3620,6 +3625,11 @@
},
"description": "Policy Contract value."
},
"count": {
"type": "integer",
"format": "int64",
"description": "Total record count number."
},
"nextLink": {
"type": "string",
"description": "Next page link if any."
Expand Down Expand Up @@ -3711,6 +3721,7 @@
},
"scope": {
"type": "integer",
"format": "int64",
"description": "Binary OR value of the Snippet scope.",
"readOnly": true
}
Expand Down Expand Up @@ -3771,6 +3782,69 @@
},
"description": "Delegation settings contract properties."
},
"PortalSettingsCollection": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/PortalSettingsContract"
},
"description": "Descriptions of APIM policies."
},
"count": {
"type": "integer",
"format": "int64",
"description": "Total record count number."
}
},
"description": "Descriptions of APIM policies."
},
"PortalSettingsContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/PortalSettingsContractProperties",
"description": "Portal Settings contract properties."
}
},
"allOf": [
{
"$ref": "./apimanagement.json#/definitions/Resource"
}
],
"description": "Portal Settings for the Developer Portal."
},
"PortalSettingsContractProperties": {
"properties": {
"url": {
"type": "string",
"description": "A delegation Url."
},
"validationKey": {
"x-ms-secret": true,
"type": "string",
"description": "A base64-encoded validation key to validate, that a request is coming from Azure API Management."
},
"subscriptions": {
"$ref": "#/definitions/SubscriptionsDelegationSettingsProperties",
"description": "Subscriptions delegation settings."
},
"userRegistration": {
"$ref": "#/definitions/RegistrationDelegationSettingsProperties",
"description": "User registration delegation settings."
},
"enabled": {
"type": "boolean",
"description": "Redirect Anonymous users to the Sign-In page."
},
"termsOfService": {
"type": "object",
"$ref": "#/definitions/TermsOfServiceProperties",
"description": "Terms of service contract properties."
}
},
"description": "Sign-in settings contract properties."
},
"PortalSigninSettingProperties": {
"properties": {
"enabled": {
Expand Down Expand Up @@ -5361,6 +5435,11 @@
},
"description": "Page values."
},
"count": {
"type": "integer",
"format": "int64",
"description": "Total record count number across all pages."
},
"nextLink": {
"type": "string",
"description": "Next page link if any."
Expand Down
Loading

0 comments on commit d3c66e8

Please sign in to comment.