rubrik-sdk-for-go icon indicating copy to clipboard operation
rubrik-sdk-for-go copied to clipboard

Add support for "Forever" SLA in objectID

Open drew-russell opened this issue 6 years ago • 0 comments

What would you like to be added:

When the objectID object_type is sla we should add a check for forever or unprotected as the objectName. If detected, we should then return "UNPROTECTED" as the SLA ID

Code logic from Python SDK

if object_name.upper() == "FOREVER" or object_name.upper() == "UNPROTECTED":
                return "UNPROTECTED"

https://github.com/rubrikinc/rubrik-sdk-for-go/blob/devel/rubrikcdm/data_management.go#L70

Why is this needed:

Match full functionality of the GUI and allow support for unmanaged snapshots

drew-russell avatar Jan 09 '19 17:01 drew-russell