Skip to content

Commit e0441f6

Browse files
authored
APIM Missing Operations reported in S360 (#12621)
* missing operations * swagger linter issues * suppression * add count property * fix swagger model issues
1 parent 737e566 commit e0441f6

File tree

11 files changed

+372
-2
lines changed

11 files changed

+372
-2
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimapis.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4392,6 +4392,12 @@
43924392
"schema": {
43934393
"$ref": "./definitions.json#/definitions/TagResourceCollection"
43944394
}
4395+
},
4396+
"default": {
4397+
"description": "Error response describing why the operation failed.",
4398+
"schema": {
4399+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
4400+
}
43954401
}
43964402
},
43974403
"x-ms-pageable": {

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimdeployment.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
"schema": {
5858
"$ref": "#/definitions/OperationListResult"
5959
}
60+
},
61+
"default": {
62+
"description": "Error response describing why the operation failed.",
63+
"schema": {
64+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
65+
}
6066
}
6167
},
6268
"x-ms-pageable": {
@@ -528,6 +534,12 @@
528534
"schema": {
529535
"$ref": "#/definitions/ApiManagementServiceListResult"
530536
}
537+
},
538+
"default": {
539+
"description": "Error response describing why the operation failed.",
540+
"schema": {
541+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
542+
}
531543
}
532544
},
533545
"x-ms-pageable": {

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimportalsettings.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,48 @@
3434
}
3535
},
3636
"paths": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings": {
38+
"get": {
39+
"tags": [
40+
"PortalSettings"
41+
],
42+
"operationId": "PortalSettings_ListByService",
43+
"description": "Lists a collection of portalsettings defined within a service instance..",
44+
"x-ms-examples": {
45+
"ApiManagementListPortalSettings": {
46+
"$ref": "./examples/ApiManagementListPortalSettings.json"
47+
}
48+
},
49+
"parameters": [
50+
{
51+
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
52+
},
53+
{
54+
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
55+
},
56+
{
57+
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
58+
},
59+
{
60+
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
61+
}
62+
],
63+
"responses": {
64+
"200": {
65+
"description": "Lists a collection of Portal Settings entities.",
66+
"schema": {
67+
"$ref": "./definitions.json#/definitions/PortalSettingsCollection"
68+
}
69+
},
70+
"default": {
71+
"description": "Error response describing why the operation failed.",
72+
"schema": {
73+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
74+
}
75+
}
76+
}
77+
}
78+
},
3779
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin": {
3880
"head": {
3981
"tags": [

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimreports.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
"schema": {
8787
"$ref": "./definitions.json#/definitions/ReportCollection"
8888
}
89+
},
90+
"default": {
91+
"description": "Error response describing why the operation failed.",
92+
"schema": {
93+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
94+
}
8995
}
9096
},
9197
"x-ms-pageable": {
@@ -146,6 +152,12 @@
146152
"schema": {
147153
"$ref": "./definitions.json#/definitions/ReportCollection"
148154
}
155+
},
156+
"default": {
157+
"description": "Error response describing why the operation failed.",
158+
"schema": {
159+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
160+
}
149161
}
150162
},
151163
"x-ms-pageable": {
@@ -206,6 +218,12 @@
206218
"schema": {
207219
"$ref": "./definitions.json#/definitions/ReportCollection"
208220
}
221+
},
222+
"default": {
223+
"description": "Error response describing why the operation failed.",
224+
"schema": {
225+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
226+
}
209227
}
210228
},
211229
"x-ms-pageable": {
@@ -266,6 +284,12 @@
266284
"schema": {
267285
"$ref": "./definitions.json#/definitions/ReportCollection"
268286
}
287+
},
288+
"default": {
289+
"description": "Error response describing why the operation failed.",
290+
"schema": {
291+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
292+
}
269293
}
270294
},
271295
"x-ms-pageable": {
@@ -319,6 +343,12 @@
319343
"schema": {
320344
"$ref": "./definitions.json#/definitions/ReportCollection"
321345
}
346+
},
347+
"default": {
348+
"description": "Error response describing why the operation failed.",
349+
"schema": {
350+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
351+
}
322352
}
323353
},
324354
"x-ms-pageable": {
@@ -379,6 +409,12 @@
379409
"schema": {
380410
"$ref": "./definitions.json#/definitions/ReportCollection"
381411
}
412+
},
413+
"default": {
414+
"description": "Error response describing why the operation failed.",
415+
"schema": {
416+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
417+
}
382418
}
383419
},
384420
"x-ms-pageable": {
@@ -447,6 +483,12 @@
447483
"schema": {
448484
"$ref": "./definitions.json#/definitions/ReportCollection"
449485
}
486+
},
487+
"default": {
488+
"description": "Error response describing why the operation failed.",
489+
"schema": {
490+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
491+
}
450492
}
451493
},
452494
"x-ms-pageable": {
@@ -500,6 +542,12 @@
500542
"schema": {
501543
"$ref": "./definitions.json#/definitions/RequestReportCollection"
502544
}
545+
},
546+
"default": {
547+
"description": "Error response describing why the operation failed.",
548+
"schema": {
549+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
550+
}
503551
}
504552
},
505553
"x-ms-pageable": {

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimtenant.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,12 @@
751751
"schema": {
752752
"$ref": "./definitions.json#/definitions/TenantConfigurationSyncStateContract"
753753
}
754+
},
755+
"default": {
756+
"description": "Error response describing why the operation failed.",
757+
"schema": {
758+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
759+
}
754760
}
755761
}
756762
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimusers.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,60 @@
570570
"x-ms-odata": "./definitions.json#/definitions/SubscriptionContract"
571571
}
572572
},
573+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}": {
574+
"get": {
575+
"tags": [
576+
"Subscription"
577+
],
578+
"operationId": "UserSubscription_Get",
579+
"description": "Gets the specified Subscription entity associated with a particular user.",
580+
"x-ms-examples": {
581+
"ApiManagementGetUserSubscription": {
582+
"$ref": "./examples/ApiManagementGetUserSubscription.json"
583+
}
584+
},
585+
"parameters": [
586+
{
587+
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
588+
},
589+
{
590+
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
591+
},
592+
{
593+
"$ref": "./apimanagement.json#/parameters/UserIdParameter"
594+
},
595+
{
596+
"$ref": "./apimanagement.json#/parameters/SubscriptionEntityIdParameter"
597+
},
598+
{
599+
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
600+
},
601+
{
602+
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
603+
}
604+
],
605+
"responses": {
606+
"200": {
607+
"description": "The response body contains the specified Subscription entity.",
608+
"schema": {
609+
"$ref": "./definitions.json#/definitions/SubscriptionContract"
610+
},
611+
"headers": {
612+
"ETag": {
613+
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
614+
"type": "string"
615+
}
616+
}
617+
},
618+
"default": {
619+
"description": "Error response describing why the operation failed.",
620+
"schema": {
621+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
622+
}
623+
}
624+
}
625+
}
626+
},
573627
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities": {
574628
"get": {
575629
"tags": [

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/definitions.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,11 @@
619619
"description": "Page values.",
620620
"readOnly": true
621621
},
622+
"count": {
623+
"type": "integer",
624+
"format": "int64",
625+
"description": "Total record count number across all pages."
626+
},
622627
"nextLink": {
623628
"type": "string",
624629
"description": "Next page link if any.",
@@ -3620,6 +3625,11 @@
36203625
},
36213626
"description": "Policy Contract value."
36223627
},
3628+
"count": {
3629+
"type": "integer",
3630+
"format": "int64",
3631+
"description": "Total record count number."
3632+
},
36233633
"nextLink": {
36243634
"type": "string",
36253635
"description": "Next page link if any."
@@ -3711,6 +3721,7 @@
37113721
},
37123722
"scope": {
37133723
"type": "integer",
3724+
"format": "int64",
37143725
"description": "Binary OR value of the Snippet scope.",
37153726
"readOnly": true
37163727
}
@@ -3771,6 +3782,69 @@
37713782
},
37723783
"description": "Delegation settings contract properties."
37733784
},
3785+
"PortalSettingsCollection": {
3786+
"properties": {
3787+
"value": {
3788+
"type": "array",
3789+
"items": {
3790+
"$ref": "#/definitions/PortalSettingsContract"
3791+
},
3792+
"description": "Descriptions of APIM policies."
3793+
},
3794+
"count": {
3795+
"type": "integer",
3796+
"format": "int64",
3797+
"description": "Total record count number."
3798+
}
3799+
},
3800+
"description": "Descriptions of APIM policies."
3801+
},
3802+
"PortalSettingsContract": {
3803+
"properties": {
3804+
"properties": {
3805+
"x-ms-client-flatten": true,
3806+
"$ref": "#/definitions/PortalSettingsContractProperties",
3807+
"description": "Portal Settings contract properties."
3808+
}
3809+
},
3810+
"allOf": [
3811+
{
3812+
"$ref": "./apimanagement.json#/definitions/Resource"
3813+
}
3814+
],
3815+
"description": "Portal Settings for the Developer Portal."
3816+
},
3817+
"PortalSettingsContractProperties": {
3818+
"properties": {
3819+
"url": {
3820+
"type": "string",
3821+
"description": "A delegation Url."
3822+
},
3823+
"validationKey": {
3824+
"x-ms-secret": true,
3825+
"type": "string",
3826+
"description": "A base64-encoded validation key to validate, that a request is coming from Azure API Management."
3827+
},
3828+
"subscriptions": {
3829+
"$ref": "#/definitions/SubscriptionsDelegationSettingsProperties",
3830+
"description": "Subscriptions delegation settings."
3831+
},
3832+
"userRegistration": {
3833+
"$ref": "#/definitions/RegistrationDelegationSettingsProperties",
3834+
"description": "User registration delegation settings."
3835+
},
3836+
"enabled": {
3837+
"type": "boolean",
3838+
"description": "Redirect Anonymous users to the Sign-In page."
3839+
},
3840+
"termsOfService": {
3841+
"type": "object",
3842+
"$ref": "#/definitions/TermsOfServiceProperties",
3843+
"description": "Terms of service contract properties."
3844+
}
3845+
},
3846+
"description": "Sign-in settings contract properties."
3847+
},
37743848
"PortalSigninSettingProperties": {
37753849
"properties": {
37763850
"enabled": {
@@ -5361,6 +5435,11 @@
53615435
},
53625436
"description": "Page values."
53635437
},
5438+
"count": {
5439+
"type": "integer",
5440+
"format": "int64",
5441+
"description": "Total record count number across all pages."
5442+
},
53645443
"nextLink": {
53655444
"type": "string",
53665445
"description": "Next page link if any."

0 commit comments

Comments
 (0)