Skip to content

Commit

Permalink
US73543: Enhance Host so user knows when a Firmware update is availab…
Browse files Browse the repository at this point in the history
…le (#139)
  • Loading branch information
ron-saito authored Dec 12, 2024
1 parent 104263b commit 17a11fd
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 14 deletions.
26 changes: 25 additions & 1 deletion v1/api/swagger/components/schemas/Host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ allOf:
- SummaryStatus
- Labels
- WWPNs
- FWBaselineID
- FWBaselineVersion
- AvailableFWBaselineID
- AvailableFWBaselineVersion
properties:
Description:
type: string
Expand Down Expand Up @@ -199,4 +203,24 @@ allOf:
type: string
example:
- 20:31:01:02:ad:f2:a8:e5
- 21:31:01:02:ad:f2:a8:e5
- 21:31:01:02:ad:f2:a8:e5
FWBaselineID:
type: string
format: uuid
description: >-
The ID of the firmware baseline that is installed on the host.
FWBaselineVersion:
type: string
description: >-
The version of the firmware baseline that is installed on the host.
AvailableFWBaselineID:
type: string
format: uuid
description: >-
The ID of the firmware baseline that is available for the host. This
field is only populated when there is a new firmware baseline available.
AvailableFWBaselineVersion:
type: string
description: >-
The version of the firmware baseline that is available for the host. This
field is only populated when there is a new firmware baseline available.
26 changes: 13 additions & 13 deletions v1/html/index.html

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7113,12 +7113,34 @@ components:
items:
type: string
type: array
FWBaselineID:
description: The ID of the firmware baseline that is installed on the host.
format: uuid
type: string
FWBaselineVersion:
description: The version of the firmware baseline that is installed on the
host.
type: string
AvailableFWBaselineID:
description: The ID of the firmware baseline that is available for the host.
This field is only populated when there is a new firmware baseline available.
format: uuid
type: string
AvailableFWBaselineVersion:
description: The version of the firmware baseline that is available for
the host. This field is only populated when there is a new firmware baseline
available.
type: string
required:
- Alert
- AlertInfo
- AvailableFWBaselineID
- AvailableFWBaselineVersion
- Connections
- Deleted
- Description
- FWBaselineID
- FWBaselineVersion
- ISCSIConfig
- Labels
- LocationID
Expand Down
4 changes: 4 additions & 0 deletions v1/pkg/client/docs/Host.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Name | Type | Description | Notes
**SummaryStatus** | [**HealthStatus**](HealthStatus.md) | |
**Labels** | **map[string]string** | The map of label name to label value for the resource. |
**WWPNs** | **[]string** | FC HBA world wide port names |
**FWBaselineID** | **string** | The ID of the firmware baseline that is installed on the host. |
**FWBaselineVersion** | **string** | The version of the firmware baseline that is installed on the host. |
**AvailableFWBaselineID** | **string** | The ID of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available. |
**AvailableFWBaselineVersion** | **string** | The version of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available. |

[[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: 4 additions & 0 deletions v1/pkg/client/docs/HostAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Name | Type | Description | Notes
**SummaryStatus** | [**HealthStatus**](HealthStatus.md) | |
**Labels** | **map[string]string** | The map of label name to label value for the resource. |
**WWPNs** | **[]string** | FC HBA world wide port names |
**FWBaselineID** | **string** | The ID of the firmware baseline that is installed on the host. |
**FWBaselineVersion** | **string** | The version of the firmware baseline that is installed on the host. |
**AvailableFWBaselineID** | **string** | The ID of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available. |
**AvailableFWBaselineVersion** | **string** | The version of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available. |

[[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
8 changes: 8 additions & 0 deletions v1/pkg/client/model_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,12 @@ type Host struct {
Labels map[string]string `json:"Labels"`
// FC HBA world wide port names
WWPNs []string `json:"WWPNs"`
// The ID of the firmware baseline that is installed on the host.
FWBaselineID string `json:"FWBaselineID"`
// The version of the firmware baseline that is installed on the host.
FWBaselineVersion string `json:"FWBaselineVersion"`
// The ID of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available.
AvailableFWBaselineID string `json:"AvailableFWBaselineID"`
// The version of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available.
AvailableFWBaselineVersion string `json:"AvailableFWBaselineVersion"`
}
8 changes: 8 additions & 0 deletions v1/pkg/client/model_host_all_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,12 @@ type HostAllOf struct {
Labels map[string]string `json:"Labels"`
// FC HBA world wide port names
WWPNs []string `json:"WWPNs"`
// The ID of the firmware baseline that is installed on the host.
FWBaselineID string `json:"FWBaselineID"`
// The version of the firmware baseline that is installed on the host.
FWBaselineVersion string `json:"FWBaselineVersion"`
// The ID of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available.
AvailableFWBaselineID string `json:"AvailableFWBaselineID"`
// The version of the firmware baseline that is available for the host. This field is only populated when there is a new firmware baseline available.
AvailableFWBaselineVersion string `json:"AvailableFWBaselineVersion"`
}

0 comments on commit 17a11fd

Please sign in to comment.