Skip to content

Commit

Permalink
PCCM-101165-Included service download health in avaulable image object
Browse files Browse the repository at this point in the history
  • Loading branch information
dbozzato81 committed Jan 22, 2025
1 parent ea75ca1 commit 67413b6
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 18 deletions.
7 changes: 6 additions & 1 deletion v1/api/swagger/components/schemas/AvailableImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ required:
- Name
- Version
- Description
- DownloadHealth
properties:
ID:
type: string
Expand Down Expand Up @@ -35,4 +36,8 @@ properties:
Description:
type: string
example: ubuntu OS also including Docker runtime
description: Additional image information for additional services added to the OS
description: Additional image information for additional services added to the OS
DownloadHealth:
type: object
$ref: ./OSServiceImageDownloadHealth.yaml
description: Provides download health info of the service.
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
type: object
description: This is a map of controllers ID to detailed dpwnload health info.
additionalProperties:
$ref: OSServiceImageDownloadHealthDetails.yaml
$ref: OSServiceImageDownloadHealthDetails.yaml
example:
046b6c7f-0b8a-43b9-b35d-6489e6daee91:
Summary: OK
Reason: ''
Changed: 2019-06-27T22:59:01.661Z
91eec8b5-6460-4532-aad1-47b983edb63c:
Summary: OK
Reason: ''
Changed: 2019-06-27T22:59:01.661Z
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@ required:
- DownloadHealthSummary
properties:
DetailedDownloadHealth:
type: object
description: This is a map of controllers ID to detailed download health info.
$ref: OSServiceImageDetailedDownloadHealth.yaml
example:
046b6c7f-0b8a-43b9-b35d-6489e6daee91:
Summary: OK
Reason: ''
Changed: 2019-06-27T22:59:01.661Z
91eec8b5-6460-4532-aad1-47b983edb63c:
Summary: OK
Reason: ''
Changed: 2019-06-27T22:59:01.661Z
DownloadHealthSummary:
type: string
description: This is a high-level summary of the download health status.
$ref: OSServiceImageDownloadHealthSummary.yaml
example: OK
description: >-
Provides download health info of the OS service image.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ properties:
example: 2019-06-27T22:59:01.661Z
description: >-
Indicates last time this download health has been updated.
Details:
type: object
additionalProperties:
$ref: OSServiceImageDownloadHealthSummary.yaml
Reason:
type: string
example: "Service download health timed out"
description: >-
Indicates the reason for the reported download health status if not OK.
Summary:
$ref: OSServiceImageDownloadHealthSummary.yaml
type: string
description: High-level summary of the download health status.
$ref: OSServiceImageDownloadHealthSummary.yaml
example: OK
76 changes: 70 additions & 6 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3903,13 +3903,35 @@ components:
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
SizeID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Images:
- Category: Linux
- DownloadHealth:
DetailedDownloadHealth:
"046b6c7f-0b8a-43b9-b35d-6489e6daee91":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
"91eec8b5-6460-4532-aad1-47b983edb63c":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
DownloadHealthSummary: OK
Category: Linux
Description: ubuntu OS also including Docker runtime
Version: "18.04"
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Flavor: ubuntu
Name: HPE Ubuntu 18.04
- Category: Linux
- DownloadHealth:
DetailedDownloadHealth:
"046b6c7f-0b8a-43b9-b35d-6489e6daee91":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
"91eec8b5-6460-4532-aad1-47b983edb63c":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
DownloadHealthSummary: OK
Category: Linux
Description: ubuntu OS also including Docker runtime
Version: "18.04"
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Expand Down Expand Up @@ -5061,6 +5083,17 @@ components:
AvailableImage:
description: Entry describing an available imaging service
example:
DownloadHealth:
DetailedDownloadHealth:
"046b6c7f-0b8a-43b9-b35d-6489e6daee91":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
"91eec8b5-6460-4532-aad1-47b983edb63c":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
DownloadHealthSummary: OK
Category: Linux
Description: ubuntu OS also including Docker runtime
Version: "18.04"
Expand Down Expand Up @@ -5095,9 +5128,12 @@ components:
to the OS
example: ubuntu OS also including Docker runtime
type: string
DownloadHealth:
$ref: '#/components/schemas/OSServiceImageDownloadHealth'
required:
- Category
- Description
- DownloadHealth
- Flavor
- ID
- Name
Expand Down Expand Up @@ -5891,10 +5927,32 @@ components:
type: object
OSServiceImageDownloadHealth:
description: Provides download health info of the OS service image.
example:
DetailedDownloadHealth:
"046b6c7f-0b8a-43b9-b35d-6489e6daee91":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
"91eec8b5-6460-4532-aad1-47b983edb63c":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
DownloadHealthSummary: OK
properties:
DetailedDownloadHealth:
additionalProperties:
$ref: '#/components/schemas/OSServiceImageDownloadHealthDetails'
description: This is a map of controllers ID to detailed dpwnload health
info.
example:
"046b6c7f-0b8a-43b9-b35d-6489e6daee91":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
"91eec8b5-6460-4532-aad1-47b983edb63c":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
type: object
DownloadHealthSummary:
$ref: '#/components/schemas/OSServiceImageDownloadHealthSummary'
Expand Down Expand Up @@ -6578,6 +6636,16 @@ components:
OSServiceImageDetailedDownloadHealth:
additionalProperties:
$ref: '#/components/schemas/OSServiceImageDownloadHealthDetails'
description: This is a map of controllers ID to detailed dpwnload health info.
example:
"046b6c7f-0b8a-43b9-b35d-6489e6daee91":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
"91eec8b5-6460-4532-aad1-47b983edb63c":
Summary: OK
Reason: ""
Changed: 2019-06-27T22:59:01.661Z
type: object
OSServiceImageDownloadHealthSummary:
description: Indicates the download health summary of the OS service image.
Expand Down Expand Up @@ -6730,10 +6798,6 @@ components:
example: 2019-06-27T22:59:01.661Z
format: date-time
type: string
Details:
additionalProperties:
$ref: '#/components/schemas/OSServiceImageDownloadHealthSummary'
type: object
Reason:
description: Indicates the reason for the reported download health status
if not OK.
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/AvailableImage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**Name** | **string** | Name of imaging service. |
**Version** | **string** | Specific version of a imaging service flavor. |
**Description** | **string** | Additional image information for additional services added to the OS |
**DownloadHealth** | [**OsServiceImageDownloadHealth**](.md) | Provides download health info of the service. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions v1/pkg/client/docs/OsServiceImageDownloadHealth.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**DetailedDownloadHealth** | [**map[string]OsServiceImageDownloadHealthDetails**](OSServiceImageDownloadHealthDetails.md) | |
**DownloadHealthSummary** | [**OsServiceImageDownloadHealthSummary**](OSServiceImageDownloadHealthSummary.md) | |
**DetailedDownloadHealth** | [**map[string]OsServiceImageDownloadHealthDetails**](OSServiceImageDownloadHealthDetails.md) | This is a map of controllers ID to detailed dpwnload health info. |
**DownloadHealthSummary** | [**OsServiceImageDownloadHealthSummary**](OSServiceImageDownloadHealthSummary.md) | This is a high-level summary of the download health status. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
3 changes: 1 addition & 2 deletions v1/pkg/client/docs/OsServiceImageDownloadHealthDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Changed** | [**time.Time**](time.Time.md) | Indicates last time this download health has been updated. |
**Details** | [**map[string]OsServiceImageDownloadHealthSummary**](OSServiceImageDownloadHealthSummary.md) | |
**Reason** | **string** | Indicates the reason for the reported download health status if not OK. |
**Summary** | [**OsServiceImageDownloadHealthSummary**](OSServiceImageDownloadHealthSummary.md) | |
**Summary** | [**OsServiceImageDownloadHealthSummary**](OSServiceImageDownloadHealthSummary.md) | High-level summary of the download health status. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 2 additions & 0 deletions v1/pkg/client/model_available_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ type AvailableImage struct {
Version string `json:"Version"`
// Additional image information for additional services added to the OS
Description string `json:"Description"`
// Provides download health info of the service.
DownloadHealth OsServiceImageDownloadHealth `json:"DownloadHealth"`
}
2 changes: 2 additions & 0 deletions v1/pkg/client/model_os_service_image_download_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
package client
// OsServiceImageDownloadHealth Provides download health info of the OS service image.
type OsServiceImageDownloadHealth struct {
// This is a map of controllers ID to detailed dpwnload health info.
DetailedDownloadHealth map[string]OsServiceImageDownloadHealthDetails `json:"DetailedDownloadHealth"`
// This is a high-level summary of the download health status.
DownloadHealthSummary OsServiceImageDownloadHealthSummary `json:"DownloadHealthSummary"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
type OsServiceImageDownloadHealthDetails struct {
// Indicates last time this download health has been updated.
Changed time.Time `json:"Changed"`
Details map[string]OsServiceImageDownloadHealthSummary `json:"Details"`
// Indicates the reason for the reported download health status if not OK.
Reason string `json:"Reason"`
// High-level summary of the download health status.
Summary OsServiceImageDownloadHealthSummary `json:"Summary"`
}

0 comments on commit 67413b6

Please sign in to comment.