Repository navigation
Conversation
…mmon.proto and common.pb.go This change eliminates the Identifiers field from the CreateMetadata message, which previously allowed for a specific list of ObjectRef instances or wildcards. The associated methods and logic in the generated Go code have also been removed to maintain consistency and reduce complexity.
Signed-off-by: kgarg-px <kgarg@purestorage.com>
Fields used to sort by as mentioned below. - Name - ClusterName - Creation TimeStamp - Size The sorting order supported is ascending and descending. Signed-off-by: Lalatendu Das <ldas@purestorage.com>
- Added one more sorting field as per latest UX which was missed in previous commit - changed the variable name so that swagger UI the description looks clean Signed-off-by: Lalatendu Das <ldas@purestorage.com>
…ed delete/suspend/resume in case of include/exclude filter
- Updated BackupScheduleUpdateRequest and BackupScheduleDeleteRequest to replace ObjectRef cluster_ref with ClusterScope. - Introduced ClusterScope message to encapsulate cluster references and support all_clusters option. - Added ObjectRefList message to hold multiple ObjectRef instances. - Modified corresponding Swagger definitions to reflect changes in API structure. - Implemented unit tests for ClusterScope and ObjectRefList to ensure proper serialization and deserialization. - Added JSON and text marshaling tests for new messages to validate data integrity.
Signed-off-by: Kesavan Thiruvenkadasamy <kthiruvenkadasamy@purestorage.com>
Signed-off-by: Pallav <pamathur@purestorage.com>
Signed-off-by: vsundarraj-px <vsundarraj@purestorage.com>
…VM backups Signed-off-by: vsundarraj-px <vsundarraj@purestorage.com> Signed-off-by: Abhisheka <aks@purestorage.com>
Signed-off-by: vsundarraj-px <vsundarraj@purestorage.com> PB-10523 vendor latest stork Signed-off-by: vsundarraj-px <vsundarraj@purestorage.com>
- Updated the BackupScheduleInfo message in api.proto to include new statuses for backup scheduling: Suspending (10) and Resuming (11).
|
OSS Scan Results:
Total issues: 93 |
|
License Evaluation Results:
Total License Issues: 0 |
…326) Signed-off-by: vsundarraj-px <vsundarraj@purestorage.com>
|
OSS Scan Results:
Total issues: 93 |
|
License Evaluation Results:
Total License Issues: 0 |
Signed-off-by: Pallav <pamathur@purestorage.com>
|
OSS Scan Results:
Total issues: 93 |
|
License Evaluation Results:
Total License Issues: 0 |
|
OSS Scan Results:
Total issues: 93 |
|
License Evaluation Results:
Total License Issues: 0 |
|
OSS Scan Results:
Total issues: 93 |
…tus in Enumerate API
Add a BackupLocationEnumerateOptions message (mirrors ClusterEnumerateOptions)
on BackupLocationEnumerateRequest.backup_location_enumerate_options (field 9),
to back the new Backup Locations listing UX:
- provider_types (BackupLocationInfo.Type): S3, Azure, Google, NFS, Invalid
- statuses (BackupLocationInfo.StatusInfo.Status): Valid, Invalid,
ValidationInProgress, ValidationFailed, DeletePending, LimitedAvailability
Multi-value, OR within each list and AND across the two. Empty lists preserve
existing behaviour. When statuses is non-empty, it takes precedence over the
legacy include_validation_state flag (handled in the server PR).
Generated bindings (api.pb.go) and swagger (api.swagger.json) are regenerated.
object_lock_enabled is a property of the bucket, not a user choice. The backend always fills it in (derived from the bucket in non-federated mode, or from Stork's validation result in federated mode) and ignores any value set in the request. Document the field as read-only/output-only so clients stop passing it. Signed-off-by: Pallav <pamathur@purestorage.com>
Run make docker-build-proto to propagate the object_lock_enabled doc comment (added in #429) into the generated api.pb.go and api.swagger.json, which the proto-only change missed. Signed-off-by: Pallav <pamathur@purestorage.com>
Add BackupScheduleFilterOptions, holding the selectors that pick which schedules a bulk operation acts on, and reference it from BackupScheduleUpdateRequest (32) and BackupScheduleDeleteRequest (13). - volume_resource_only_policy_ref mirrors the existing EnumerateOptions field, so the filter the Schedules page applies can be sent with a bulk suspend, resume or delete
* PB-14369: Proto Changes for Bulk Backup Delete * incorporated the review comments
of VM related restores Signed-off-by: kgarg_pure <kgarg@purestorage.com>
Add an acknowledge boolean field to BackupDeleteRequest. Bulk delete requests must set this flag to true to proceed; enforcement is handled in the backend. Regenerated api.pb.go and api.swagger.json. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- New unary RPC returns access details for a restore CR JSON
- SignedURLLocation (URL + expiry) for S3/Azure/Google
- NFSLocation (server/export/path) for NFS.
- REST: GET /v1/restore/{org_id}/{name}/crDownloadLocation.
Signed-off-by: Lalatendu Das <ldas@purestorage.com>
VirtualMachineRestoreFilter.os_name was declared in the initial proto (PB-14450) but had no data to match against on the restore side — VirtualMachineDetail carried only name+namespace, no OS. The current restore-side filter documents os_name as a no-op. Add string os_name = 5 to VirtualMachineDetail. px-backup populates it at response-assembly time by looking up the referenced backup's BackupInfo.VirtualMachineInfo.os_name; the restore-side filter can then apply the same os_name list-match semantic as the backup-side FilterVirtualMachinesWithPattern helper. Additive field, backward compatible: existing clients ignore the new field, and the server leaves it empty when the source backup did not capture guest OS metadata. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds Harvester=6 to ClusterInfo.Provider so Harvester HCI clusters can be distinguished from generic RKE2/Rancher clusters. Regenerated pb.go and swagger. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add synced field to BackupInfo proto message to support marking backups created by external clusters in federated backup scenarios. This field enables distinct alerting and reporting for synced backups. - Added bool synced field (field 60) to BackupInfo message - Regenerated api.pb.go and api.swagger.json - Synced flag tracks whether backup originated from a cluster outside this deployment
Signed-off-by: kgarg_pure <kgarg@purestorage.com>
* PB-17039: Add filters for BackupDeleteRequest * PB-17039: Created custom field for the new filters * PB-17039: Change to Enum based filters
getRestoreResourceDetails API reqs Signed-off-by: kgarg_pure <kgarg@purestorage.com>
Carry per-volume timing across the API contract so px-backup can emit per-volume timing metrics, including for volumes that failed. BackupInfo.Volume and RestoreInfo.Volume are separate nested messages, so both gain start_time and finish_time as google.protobuf.Timestamp, matching the style of every other Timestamp field in this file: plain fields with no gogoproto options. Backup uses 19 and 20 rather than the next free number on this branch. Field 18 is already assigned to cleanup_details on the in-flight PB-15309 branches, which have not merged and are not ancestors of any release branch, so taking 18 here would have left two shipping builds disagreeing about what field 18 means with no textual conflict to reveal it. Restore uses 10 and 11, which are unclaimed on every branch. The comments record that either field may be unset and that finish_time can be set without start_time. That matters downstream: the stork CR fields these come from are value-typed metav1.Time whose zero value converts to year 0001 rather than nil, so a copier that does not check for unset would turn a volume that failed before starting into a duration of roughly two thousand years. Regenerated api.pb.go and api.swagger.json. api.pb.gw.go is unchanged, as no service signature moved.
…e messages" This reverts commit ce81520.
* PB-17837: Add owner, status, and backup-location filters to bulk BackupSchedule APIs * PB-17837: Nit
Adds google.protobuf.Timestamp start_time/finish_time to BackupInfo.Volume (19/20) and RestoreInfo.Volume (10/11). This was merged to 3.3.0-fc1 in #449, but the 2026-09-07 rebase of 3.3.0-fc1 onto 3.2.0-fc1 replayed the 3.2.0 revert (#446) directly on top of it, so the fields were silently removed again. This restores them without touching anything else on the branch. Only api.proto was taken from the original change. api.pb.go and api.swagger.json were regenerated with make docker-build-proto rather than re-applying the old generated hunk, because the branch has since gained other proto changes (PB-15309 cleanup_details = 18, PB-16076, PB-16527, PB-17837) whose generated code that hunk would clobber.
When sync_manual is not set on Create, the server now stores sync_manual=true (Manual) in both Federated and Non-Federated mode, instead of rejecting the request in Non-Federated mode. On Update a missing value keeps the stored one. Existing backup locations are unaffected: the startup migration in px-backup backfills them to false (Automatic) in Non-Federated mode and true (Manual) in Federated mode. Comment-only change; proto, pb.go and swagger kept in sync.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Which issue(s) this PR fixes (optional)
Closes #
Special notes for your reviewer: