From 80b0c052c72f7f92f75d6962c49c6bde629c5c56 Mon Sep 17 00:00:00 2001 From: Ron Saito Date: Fri, 6 Dec 2024 14:45:29 +0000 Subject: [PATCH] US73543: Enhance Host so user knows when a Firmware update is available --- v1/api/swagger/components/schemas/Host.yaml | 22 ++++++++++++++++++++- v1/pkg/client/api/openapi.yaml | 18 +++++++++++++++++ v1/pkg/client/docs/Host.md | 4 ++++ v1/pkg/client/docs/HostAllOf.md | 4 ++++ v1/pkg/client/model_host.go | 8 ++++++++ v1/pkg/client/model_host_all_of.go | 8 ++++++++ 6 files changed, 63 insertions(+), 1 deletion(-) diff --git a/v1/api/swagger/components/schemas/Host.yaml b/v1/api/swagger/components/schemas/Host.yaml index 83a304da..020eb499 100644 --- a/v1/api/swagger/components/schemas/Host.yaml +++ b/v1/api/swagger/components/schemas/Host.yaml @@ -199,4 +199,24 @@ allOf: type: string example: - 20:31:01:02:ad:f2:a8:e5 - - 21:31:01:02:ad:f2:a8:e5 \ No newline at end of file + - 21:31:01:02:ad:f2:a8:e5 + InstalledFWBaselineID: + type: string + format: uuid + description: >- + The ID of the firmware baseline that is installed on the host. + InstalledFWBaselineVersion: + 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. \ No newline at end of file diff --git a/v1/pkg/client/api/openapi.yaml b/v1/pkg/client/api/openapi.yaml index c16ea6fc..b8af0c9c 100644 --- a/v1/pkg/client/api/openapi.yaml +++ b/v1/pkg/client/api/openapi.yaml @@ -7113,6 +7113,24 @@ components: items: type: string type: array + InstalledFWBaselineID: + description: The ID of the firmware baseline that is installed on the host. + format: uuid + type: string + InstalledFWBaselineVersion: + 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 diff --git a/v1/pkg/client/docs/Host.md b/v1/pkg/client/docs/Host.md index 3939fd07..60fc12a3 100644 --- a/v1/pkg/client/docs/Host.md +++ b/v1/pkg/client/docs/Host.md @@ -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 | +**InstalledFWBaselineID** | **string** | The ID of the firmware baseline that is installed on the host. | [optional] +**InstalledFWBaselineVersion** | **string** | The version of the firmware baseline that is installed on the host. | [optional] +**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. | [optional] +**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. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/v1/pkg/client/docs/HostAllOf.md b/v1/pkg/client/docs/HostAllOf.md index ceffdd95..989932d8 100644 --- a/v1/pkg/client/docs/HostAllOf.md +++ b/v1/pkg/client/docs/HostAllOf.md @@ -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 | +**InstalledFWBaselineID** | **string** | The ID of the firmware baseline that is installed on the host. | [optional] +**InstalledFWBaselineVersion** | **string** | The version of the firmware baseline that is installed on the host. | [optional] +**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. | [optional] +**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. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/v1/pkg/client/model_host.go b/v1/pkg/client/model_host.go index 7a7080ab..51d1e4b6 100644 --- a/v1/pkg/client/model_host.go +++ b/v1/pkg/client/model_host.go @@ -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. + InstalledFWBaselineID string `json:"InstalledFWBaselineID,omitempty"` + // The version of the firmware baseline that is installed on the host. + InstalledFWBaselineVersion string `json:"InstalledFWBaselineVersion,omitempty"` + // 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,omitempty"` + // 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,omitempty"` } diff --git a/v1/pkg/client/model_host_all_of.go b/v1/pkg/client/model_host_all_of.go index c9dd2d52..d3e86982 100644 --- a/v1/pkg/client/model_host_all_of.go +++ b/v1/pkg/client/model_host_all_of.go @@ -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. + InstalledFWBaselineID string `json:"InstalledFWBaselineID,omitempty"` + // The version of the firmware baseline that is installed on the host. + InstalledFWBaselineVersion string `json:"InstalledFWBaselineVersion,omitempty"` + // 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,omitempty"` + // 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,omitempty"` }