Skip to content

Commit

Permalink
DE23446:MetalClient should have ImagingComplete UserDefinedStep
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-saito committed Aug 13, 2024
1 parent 3f680c6 commit 1fe5145
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions v1/api/swagger/components/schemas/UserDefinedSteps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: >-
Indicates custom operations to be executed within the host life cycle.
required:
- ImagingPrepSteps
- ImagingCompleteSteps
- MaintenanceSteps
properties:
ImagingPrepSteps:
Expand All @@ -12,6 +13,13 @@ properties:
description: >-
Allows setting operations to be executed before host imaging.
If a firmware update operation is defined, Firmware Baseline must be set.
ImagingCompleteSteps:
type: array
items:
$ref: UserOp.yaml
description: >-
Allows setting operations to be executed after host imaging.
If a firmware update operation is defined, Firmware Baseline must be set.
MaintenanceSteps:
type: array
items:
Expand Down
7 changes: 7 additions & 0 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5981,13 +5981,20 @@ components:
items:
$ref: '#/components/schemas/UserOp'
type: array
ImagingCompleteSteps:
description: Allows setting operations to be executed after host imaging. If
a firmware update operation is defined, Firmware Baseline must be set.
items:
$ref: '#/components/schemas/UserOp'
type: array
MaintenanceSteps:
description: Allows setting operations to be executed during host maintenance. If
a firmware update operation is defined, Firmware Baseline must be set.
items:
$ref: '#/components/schemas/UserOp'
type: array
required:
- ImagingCompleteSteps
- ImagingPrepSteps
- MaintenanceSteps
type: object
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/UserDefinedSteps.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ImagingPrepSteps** | [**[]UserOp**](UserOp.md) | Allows setting operations to be executed before host imaging. If a firmware update operation is defined, Firmware Baseline must be set. |
**ImagingCompleteSteps** | [**[]UserOp**](UserOp.md) | Allows setting operations to be executed after host imaging. If a firmware update operation is defined, Firmware Baseline must be set. |
**MaintenanceSteps** | [**[]UserOp**](UserOp.md) | Allows setting operations to be executed during host maintenance. If a firmware update operation is defined, Firmware Baseline must be set. |

[[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_user_defined_steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ package client
type UserDefinedSteps struct {
// Allows setting operations to be executed before host imaging. If a firmware update operation is defined, Firmware Baseline must be set.
ImagingPrepSteps []UserOp `json:"ImagingPrepSteps"`
// Allows setting operations to be executed after host imaging. If a firmware update operation is defined, Firmware Baseline must be set.
ImagingCompleteSteps []UserOp `json:"ImagingCompleteSteps"`
// Allows setting operations to be executed during host maintenance. If a firmware update operation is defined, Firmware Baseline must be set.
MaintenanceSteps []UserOp `json:"MaintenanceSteps"`
}

0 comments on commit 1fe5145

Please sign in to comment.