Skip to content

Commit

Permalink
Included WWPNs in volume attachment model (#121)
Browse files Browse the repository at this point in the history
* Included WWPNs in volume attachment model

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: dbozzato81 <dbozzato81@users.noreply.github.com>
  • Loading branch information
dbozzato81 and dbozzato81 authored Jun 14, 2024
1 parent 1760c2f commit ede0358
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 6 deletions.
9 changes: 8 additions & 1 deletion v1/api/swagger/components/schemas/VolumeAttachment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ allOf:
- State
- FSConfig
- AttachProtocol
- WWPNs
properties:
VolumeID:
type: string
Expand Down Expand Up @@ -65,4 +66,10 @@ allOf:
allOf:
- $ref: ./VAFSConfig.yaml
AttachProtocol:
$ref: ./ProtocolKind.yaml
$ref: ./ProtocolKind.yaml
WWPNs:
type: array
items:
type: string
example: 20:31:01:02:ad:f2:a8:e5
description: List of FC host port wwpns.
10 changes: 5 additions & 5 deletions v1/html/index.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7228,6 +7228,12 @@ components:
type: object
AttachProtocol:
$ref: '#/components/schemas/ProtocolKind'
WWPNs:
description: List of FC host port wwpns.
items:
example: 20:31:01:02:ad:f2:a8:e5
type: string
type: array
required:
- AttachProtocol
- CHAPSecret
Expand All @@ -7241,6 +7247,7 @@ components:
- VolumeID
- VolumeTargetIPAddress
- VolumeTargetIQN
- WWPNs
Network_allOf:
properties:
LocationID:
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/VolumeAttachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**State** | [**VaStateEnum**](VaStateEnum.md) | |
**FSConfig** | Pointer to [**VafsConfig**](VAFSConfig.md) | File share specific configuration parameters |
**AttachProtocol** | [**ProtocolKind**](ProtocolKind.md) | |
**WWPNs** | **[]string** | List of FC host port wwpns. |

[[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
1 change: 1 addition & 0 deletions v1/pkg/client/docs/VolumeAttachmentAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**State** | [**VaStateEnum**](VaStateEnum.md) | |
**FSConfig** | Pointer to [**VafsConfig**](VAFSConfig.md) | File share specific configuration parameters |
**AttachProtocol** | [**ProtocolKind**](ProtocolKind.md) | |
**WWPNs** | **[]string** | List of FC host port wwpns. |

[[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_volume_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ type VolumeAttachment struct {
// File share specific configuration parameters
FSConfig *VafsConfig `json:"FSConfig"`
AttachProtocol ProtocolKind `json:"AttachProtocol"`
// List of FC host port wwpns.
WWPNs []string `json:"WWPNs"`
}
2 changes: 2 additions & 0 deletions v1/pkg/client/model_volume_attachment_all_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ type VolumeAttachmentAllOf struct {
// File share specific configuration parameters
FSConfig *VafsConfig `json:"FSConfig"`
AttachProtocol ProtocolKind `json:"AttachProtocol"`
// List of FC host port wwpns.
WWPNs []string `json:"WWPNs"`
}

0 comments on commit ede0358

Please sign in to comment.