-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified OS Service Image model to include download service health at…
…tributes
- Loading branch information
1 parent
f3109d3
commit 784f11c
Showing
17 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
v1/api/swagger/components/schemas/OSServiceImageDetailedDownloadHealth.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: object | ||
additionalProperties: | ||
$ref: OSServiceImageDownloadHealthDetails.yaml |
11 changes: 11 additions & 0 deletions
11
v1/api/swagger/components/schemas/OSServiceImageDownloadHealth.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
type: object | ||
required: | ||
- DetailedDownloadHealth | ||
- DownloadHealthSummary | ||
properties: | ||
DetailedDownloadHealth: | ||
$ref: OSServiceImageDetailedDownloadHealth.yaml | ||
DownloadHealthSummary: | ||
$ref: OSServiceImageDownloadHealthSummary.yaml | ||
description: >- | ||
Provides download health info of the OS service image. |
24 changes: 24 additions & 0 deletions
24
v1/api/swagger/components/schemas/OSServiceImageDownloadHealthDetails.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
type: object | ||
required: | ||
- Changed | ||
- Details | ||
- Reason | ||
- Summary | ||
properties: | ||
Changed: | ||
type: string | ||
format: date-time | ||
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 |
9 changes: 9 additions & 0 deletions
9
v1/api/swagger/components/schemas/OSServiceImageDownloadHealthSummary.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type: string | ||
enum: | ||
- OK | ||
- Warning | ||
- Critical | ||
- Unknown | ||
example: OK | ||
description: > | ||
Indicates the download health summary of the OS service image. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# OsServiceImageDownloadHealth | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**DetailedDownloadHealth** | [**map[string]OsServiceImageDownloadHealthDetails**](OSServiceImageDownloadHealthDetails.md) | | | ||
**DownloadHealthSummary** | [**OsServiceImageDownloadHealthSummary**](OSServiceImageDownloadHealthSummary.md) | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# OsServiceImageDownloadHealthDetails | ||
|
||
## Properties | ||
|
||
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) | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# OsServiceImageDownloadHealthSummary | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP | ||
|
||
/* | ||
* HPE GreenLake for bare metal API | ||
* | ||
* This Metal Client REST API provides access to bare metal as-a-service (BMaaS) within a single project context. Clients are able to create fully-provisioned hosts, storage volumes, and project-specific private networks in an isolated project environment. Project-owned resources that can be accessed via this API include - Host, Volume, VolumeAttachment, Network (project private), and SSH Key. Each API call is done within a single project context. The specific Project identifier must be provided within the header of for each REST call. The server will validate that the provided authentication credentials (JWTs) are valid for the referenced project before any operation is performed. If a single credential is valid for multiple projects, the client must still reference a single project in the header for each API call. Clients can also access information about available services and resources through the AvailableResources object. This object provides detailed information about the OS imaging options, the machine size options, the storage volume options, and data center locations which are needed when creating hosts and volumes. | ||
* | ||
* API version: v1 | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package client | ||
// OsServiceImageDownloadHealth Provides download health info of the OS service image. | ||
type OsServiceImageDownloadHealth struct { | ||
DetailedDownloadHealth map[string]OsServiceImageDownloadHealthDetails `json:"DetailedDownloadHealth"` | ||
DownloadHealthSummary OsServiceImageDownloadHealthSummary `json:"DownloadHealthSummary"` | ||
} |
24 changes: 24 additions & 0 deletions
24
v1/pkg/client/model_os_service_image_download_health_details.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP | ||
|
||
/* | ||
* HPE GreenLake for bare metal API | ||
* | ||
* This Metal Client REST API provides access to bare metal as-a-service (BMaaS) within a single project context. Clients are able to create fully-provisioned hosts, storage volumes, and project-specific private networks in an isolated project environment. Project-owned resources that can be accessed via this API include - Host, Volume, VolumeAttachment, Network (project private), and SSH Key. Each API call is done within a single project context. The specific Project identifier must be provided within the header of for each REST call. The server will validate that the provided authentication credentials (JWTs) are valid for the referenced project before any operation is performed. If a single credential is valid for multiple projects, the client must still reference a single project in the header for each API call. Clients can also access information about available services and resources through the AvailableResources object. This object provides detailed information about the OS imaging options, the machine size options, the storage volume options, and data center locations which are needed when creating hosts and volumes. | ||
* | ||
* API version: v1 | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package client | ||
import ( | ||
"time" | ||
) | ||
// OsServiceImageDownloadHealthDetails struct for OsServiceImageDownloadHealthDetails | ||
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"` | ||
Summary OsServiceImageDownloadHealthSummary `json:"Summary"` | ||
} |
22 changes: 22 additions & 0 deletions
22
v1/pkg/client/model_os_service_image_download_health_summary.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP | ||
|
||
/* | ||
* HPE GreenLake for bare metal API | ||
* | ||
* This Metal Client REST API provides access to bare metal as-a-service (BMaaS) within a single project context. Clients are able to create fully-provisioned hosts, storage volumes, and project-specific private networks in an isolated project environment. Project-owned resources that can be accessed via this API include - Host, Volume, VolumeAttachment, Network (project private), and SSH Key. Each API call is done within a single project context. The specific Project identifier must be provided within the header of for each REST call. The server will validate that the provided authentication credentials (JWTs) are valid for the referenced project before any operation is performed. If a single credential is valid for multiple projects, the client must still reference a single project in the header for each API call. Clients can also access information about available services and resources through the AvailableResources object. This object provides detailed information about the OS imaging options, the machine size options, the storage volume options, and data center locations which are needed when creating hosts and volumes. | ||
* | ||
* API version: v1 | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package client | ||
// OsServiceImageDownloadHealthSummary Indicates the download health summary of the OS service image. | ||
type OsServiceImageDownloadHealthSummary string | ||
|
||
// List of OSServiceImageDownloadHealthSummary | ||
const ( | ||
OSSERVICEIMAGEDOWNLOADHEALTHSUMMARY_OK OsServiceImageDownloadHealthSummary = "OK" | ||
OSSERVICEIMAGEDOWNLOADHEALTHSUMMARY_WARNING OsServiceImageDownloadHealthSummary = "Warning" | ||
OSSERVICEIMAGEDOWNLOADHEALTHSUMMARY_CRITICAL OsServiceImageDownloadHealthSummary = "Critical" | ||
OSSERVICEIMAGEDOWNLOADHEALTHSUMMARY_UNKNOWN OsServiceImageDownloadHealthSummary = "Unknown" | ||
) |