Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix operation results contract for Tenant Git operations #13903

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3511,6 +3511,21 @@
"description": "Api Operation Entity Base Contract details."
},
"OperationResultContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/OperationResultContractProperties",
"description": "Properties of the Operation Contract."
}
},
"allOf": [
{
"$ref": "./apimanagement.json#/definitions/Resource"
}
],
"description": "Long Running Git Operation Results."
},
"OperationResultContractProperties": {
"properties": {
"id": {
"type": "string",
Expand Down Expand Up @@ -5473,6 +5488,16 @@
"description": "Contract defining the Tag property in the Tag Resource Contract"
},
"TenantConfigurationSyncStateContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/TenantConfigurationSyncStateContractProperties",
"description": "Properties returned Tenant Configuration Sync State check."
}
},
"description": "Result of Tenant Configuration Sync State."
},
"TenantConfigurationSyncStateContractProperties": {
"properties": {
"branch": {
"type": "string",
Expand Down Expand Up @@ -5503,6 +5528,10 @@
"type": "string",
"format": "date-time",
"description": "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"
},
"lastOperationId": {
"type": "string",
"description": "Most recent tenant configuration operation identifier"
}
},
"description": "Tenant Configuration Synchronization State."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
"responses": {
"200": {
"body": {
"branch": "master",
"commitId": "44c29c27a876372e2ea18d9c381cc493a6a89fc5",
"isExport": true,
"isSynced": false,
"isGitEnabled": true,
"syncDate": "2016-10-24T19:17:14.3641403Z",
"configurationChangeDate": "2017-06-03T00:41:30.9670873Z"
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/configuration/syncState",
"type": "Microsoft.ApiManagement/service/tenant/syncState",
"name": "syncState",
"properties": {
"branch": "master",
"commitId": "de891c2342c7058dde45e5e624eae7e558c94683",
"isExport": true,
"isSynced": true,
"isGitEnabled": true,
"syncDate": "2021-04-13T01:15:53.9824995Z",
"configurationChangeDate": "2021-04-13T00:11:43.862781Z",
"lastOperationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/configuration/operationResults/6074f0bd093a9d0dac3d7347"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@
},
"200": {
"body": {
"id": "5a1af4ae2a6d2e0b688d7517",
"status": "Failed",
"started": "2017-11-26T17:06:54.303Z",
"updated": "2017-11-26T17:07:21.777Z",
"error": {
"code": "ValidationError",
"message": "File not found: 'api-management/configuration.json'"
"id": "6074e652093a9d0dac3d733c",
"type": "Microsoft.ApiManagement/service/tenant/operationResults",
"name": "6074e652093a9d0dac3d733c",
"properties": {
"status": "Failed",
"started": "2017-11-26T17:06:54.303Z",
"updated": "2017-11-26T17:07:21.777Z",
"error": {
"code": "ValidationError",
"message": "File not found: 'api-management/configuration.json'"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
},
"200": {
"body": {
"id": "5cae98acb597440f487b0d78",
"status": "Succeeded",
"started": "2019-04-11T01:30:20.883Z",
"updated": "2019-04-11T01:30:41.623Z",
"resultInfo": "The configuration was successfully saved to master as commit 709678560f72e689e469cf98ba9ba6d1b7736893.",
"error": null,
"actionLog": []
"id": "6074e652093a9d0dac3d733c",
"type": "Microsoft.ApiManagement/service/tenant/operationResults",
"name": "6074e652093a9d0dac3d733c",
"properties": {
"status": "Succeeded",
"started": "2021-04-13T00:31:14.94Z",
"updated": "2021-04-13T00:31:27.59Z",
"resultInfo": "The configuration was successfully saved to master as commit c0ae274f6046912107bad734834cbf65918668b6.",
"actionLog": []
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,153 +19,16 @@
},
"200": {
"body": {
"id": "5a1af64e2a6d2e0b688d751e",
"status": "Succeeded",
"started": "2019-04-11T01:30:51.767Z",
"updated": "2019-04-11T01:30:57.653Z",
"resultInfo": "Validation is successfull",
"actionLog": [
{
"objectType": "ApiSpecificationContract",
"action": "Updated",
"objectKey": "57914cb351f68a16889be190;rev=1"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "5768181ea40f7eb6c49f6ac7"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "576819c9a40f7e86289fb3e3"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "576819f1a40f7e86289fb6de"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681a67a40f7e72b4132522"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681a73a40f7e72b413281d"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681a7ea40f7e72b4132b18"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681b88a40f7ea0f017f099"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681b9fa40f7ea0f017f682"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681bb5a40f7ea0f017fc6b"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681bcaa40f7ea0f0180254"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681bdfa40f7ea0f018083d"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681bf5a40f7ea0f0180e26"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681c0ea40f7ea0f018140f"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681c26a40f7ea0f01819f8"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681c83a40f7e85f44db237"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681cb2a40f7e85f44dbcd0"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681ce3a40f7e85f44dc769"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681d1fa40f7e85f44dd202"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681d60a40f7e85f44ddc9b"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681db4a40f7e85f44de735"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681e11a40f7e85f44df1ce"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681e73a40f7e85f44dfc67"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "57681f06a40f7e74ec07785c"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "5768211fa40f7e74ec07a74a"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "576823cfa40f7e74ec07d63a"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "5600b57e7e8880006a060001"
},
{
"objectType": "ProductSpecificationContract",
"action": "Updated",
"objectKey": "5600b57e7e8880006a060002"
}
]
"id": "6074ec02093a9d0dac3d7345",
"type": "Microsoft.ApiManagement/service/tenant/operationResults",
"name": "6074ec02093a9d0dac3d7345",
"properties": {
"status": "Succeeded",
"started": "2021-04-13T00:55:30.62Z",
"updated": "2021-04-13T00:55:39.857Z",
"resultInfo": "Validation is successfull",
"actionLog": []
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3454,6 +3454,21 @@
"description": "Api Operation Entity Base Contract details."
},
"OperationResultContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/OperationResultContractProperties",
"description": "Properties of the Operation Contract."
}
},
"allOf": [
{
"$ref": "./apimanagement.json#/definitions/Resource"
}
],
"description": "Long Running Git Operation Results."
},
"OperationResultContractProperties": {
"properties": {
"id": {
"type": "string",
Expand Down Expand Up @@ -5408,6 +5423,16 @@
"description": "Contract defining the Tag property in the Tag Resource Contract"
},
"TenantConfigurationSyncStateContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/TenantConfigurationSyncStateContractProperties",
"description": "Properties returned Tenant Configuration Sync State check."
}
},
"description": "Result of Tenant Configuration Sync State."
},
"TenantConfigurationSyncStateContractProperties": {
"properties": {
"branch": {
"type": "string",
Expand Down Expand Up @@ -5438,6 +5463,10 @@
"type": "string",
"format": "date-time",
"description": "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"
},
"lastOperationId": {
"type": "string",
"description": "Most recent tenant configuration operation identifier"
}
},
"description": "Tenant Configuration Synchronization State."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
"responses": {
"200": {
"body": {
"branch": "master",
"commitId": "44c29c27a876372e2ea18d9c381cc493a6a89fc5",
"isExport": true,
"isSynced": false,
"isGitEnabled": true,
"syncDate": "2016-10-24T19:17:14.3641403Z",
"configurationChangeDate": "2017-06-03T00:41:30.9670873Z"
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/configuration/syncState",
"type": "Microsoft.ApiManagement/service/tenant/syncState",
"name": "syncState",
"properties": {
"branch": "master",
"commitId": "de891c2342c7058dde45e5e624eae7e558c94683",
"isExport": true,
"isSynced": true,
"isGitEnabled": true,
"syncDate": "2021-04-13T01:15:53.9824995Z",
"configurationChangeDate": "2021-04-13T00:11:43.862781Z",
"lastOperationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/configuration/operationResults/6074f0bd093a9d0dac3d7347"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@
"responses": {
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/operationResults/5a1af4ae2a6d2e0b688d7517?api-version=2020-12-01"
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/operationResults/6074e652093a9d0dac3d733c?api-version=2020-12-01"
}
},
"200": {
"body": {
"id": "5a1af4ae2a6d2e0b688d7517",
"status": "Failed",
"started": "2017-11-26T17:06:54.303Z",
"updated": "2017-11-26T17:07:21.777Z",
"error": {
"code": "ValidationError",
"message": "File not found: 'api-management/configuration.json'"
"id": "6074e652093a9d0dac3d733c",
"type": "Microsoft.ApiManagement/service/tenant/operationResults",
"name": "6074e652093a9d0dac3d733c",
"properties": {
"status": "Failed",
"started": "2017-11-26T17:06:54.303Z",
"updated": "2017-11-26T17:07:21.777Z",
"error": {
"code": "ValidationError",
"message": "File not found: 'api-management/configuration.json'"
}
}
}
}
Expand Down
Loading