Skip to content

Commit

Permalink
DE24092: exposing volume export count (#132)
Browse files Browse the repository at this point in the history
* vol: exposing volume export count

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: achu-1612 <[email protected]>
  • Loading branch information
achu-1612 and achu-1612 authored Sep 23, 2024
1 parent 70bdb68 commit 8a5b529
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 5 deletions.
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/Volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ allOf:
- UnmanagedVolume
- ActiveSite
- CreatedSite
- ExportCount

properties:
Description:
Expand Down Expand Up @@ -92,3 +93,9 @@ allOf:
format: uuid
description: >-
The site where the volume was originally created.
ExportCount:
type: integer
format: int32
example: 150
minimum: 0
description: The number of active exports for this volume
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 @@ -7166,12 +7166,19 @@ components:
description: 'The site where the volume was originally created. '
format: uuid
type: string
ExportCount:
description: The number of active exports for this volume
example: 150
format: int32
minimum: 0
type: integer
required:
- ActiveSite
- Capacity
- CapacityUsed
- CreatedSite
- Description
- ExportCount
- FlavorID
- Labels
- LocationID
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/Volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Name | Type | Description | Notes
**UnmanagedVolume** | **bool** | Indicates whether the volume is a native Metal created one or an external one. |
**ActiveSite** | **string** | The site where the remote copy role for the volume is Primary at the time of most recent import. |
**CreatedSite** | **string** | The site where the volume was originally created. |
**ExportCount** | **int32** | The number of active exports for this volume |

[[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/VolumeAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**UnmanagedVolume** | **bool** | Indicates whether the volume is a native Metal created one or an external one. |
**ActiveSite** | **string** | The site where the remote copy role for the volume is Primary at the time of most recent import. |
**CreatedSite** | **string** | The site where the volume was originally created. |
**ExportCount** | **int32** | The number of active exports for this volume |

[[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.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ type Volume struct {
ActiveSite string `json:"ActiveSite"`
// The site where the volume was originally created.
CreatedSite string `json:"CreatedSite"`
// The number of active exports for this volume
ExportCount int32 `json:"ExportCount"`
}
2 changes: 2 additions & 0 deletions v1/pkg/client/model_volume_all_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ type VolumeAllOf struct {
ActiveSite string `json:"ActiveSite"`
// The site where the volume was originally created.
CreatedSite string `json:"CreatedSite"`
// The number of active exports for this volume
ExportCount int32 `json:"ExportCount"`
}

0 comments on commit 8a5b529

Please sign in to comment.