Skip to content

Commit

Permalink
Added attach protocol field in volume attachment schema. (#109)
Browse files Browse the repository at this point in the history
* Added attach protocol field in volume attachment schema.
  • Loading branch information
chitranm authored Mar 8, 2024
1 parent 178cd6f commit 7c93703
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 11 deletions.
1 change: 1 addition & 0 deletions v1/api/swagger/components/schemas/ProtocolKind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ type: string
enum:
- unknown
- iscsi
- fc
3 changes: 3 additions & 0 deletions v1/api/swagger/components/schemas/VolumeAttachment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ allOf:
- VolumeTargetIPAddress
- State
- FSConfig
- AttachProtocol
properties:
VolumeID:
type: string
Expand Down Expand Up @@ -63,3 +64,5 @@ allOf:
type: object
allOf:
- $ref: ./VAFSConfig.yaml
AttachProtocol:
$ref: ./ProtocolKind.yaml
10 changes: 5 additions & 5 deletions v1/html/index.html

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4764,6 +4764,13 @@ components:
- TicketExpiryTime
- UserName
type: object
ProtocolKind:
description: The protocol to be used to attach the volume
enum:
- unknown
- iscsi
- fc
type: string
ProtocolParameters:
example:
ISCSI:
Expand Down Expand Up @@ -5653,12 +5660,6 @@ components:
- InfoLink
- Tooltip
type: object
ProtocolKind:
description: The protocol to be used to attach the volume
enum:
- unknown
- iscsi
type: string
ISCSIParameters:
example:
HostIPAddress: 10.1.2.3
Expand Down Expand Up @@ -6473,7 +6474,10 @@ components:
description: File share specific configuration parameters
nullable: true
type: object
AttachProtocol:
$ref: '#/components/schemas/ProtocolKind'
required:
- AttachProtocol
- CHAPSecret
- CHAPUserName
- FSConfig
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 @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**VolumeTargetIPAddress** | **string** | VolumeTargetIPAddress is the IPV4 address of the iSCSI volume export |
**State** | [**VaStateEnum**](VaStateEnum.md) | |
**FSConfig** | Pointer to [**VafsConfig**](VAFSConfig.md) | File share specific configuration parameters |
**AttachProtocol** | [**ProtocolKind**](ProtocolKind.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)

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 @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**VolumeTargetIPAddress** | **string** | VolumeTargetIPAddress is the IPV4 address of the iSCSI volume export |
**State** | [**VaStateEnum**](VaStateEnum.md) | |
**FSConfig** | Pointer to [**VafsConfig**](VAFSConfig.md) | File share specific configuration parameters |
**AttachProtocol** | [**ProtocolKind**](ProtocolKind.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)

Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/model_protocol_kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ type ProtocolKind string
const (
PROTOCOLKIND_UNKNOWN ProtocolKind = "unknown"
PROTOCOLKIND_ISCSI ProtocolKind = "iscsi"
PROTOCOLKIND_FC ProtocolKind = "fc"
)
1 change: 1 addition & 0 deletions v1/pkg/client/model_volume_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ type VolumeAttachment struct {
State VaStateEnum `json:"State"`
// File share specific configuration parameters
FSConfig *VafsConfig `json:"FSConfig"`
AttachProtocol ProtocolKind `json:"AttachProtocol"`
}
1 change: 1 addition & 0 deletions v1/pkg/client/model_volume_attachment_all_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ type VolumeAttachmentAllOf struct {
State VaStateEnum `json:"State"`
// File share specific configuration parameters
FSConfig *VafsConfig `json:"FSConfig"`
AttachProtocol ProtocolKind `json:"AttachProtocol"`
}

0 comments on commit 7c93703

Please sign in to comment.