deleteOrg
deleteOrg(Accepted keys: Control plane fine-grained API key Delete an org retention policy Requires org.retention_policy.delete at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Retires this scope’s current override and returns the inherited effective policy. Preserves prior policy values and records the retiring actor, time, and cleared reason. Repeated deletion is safe when no override exists.request:DeleteOrgRetentionPolicyRequest):Promise<DeleteOrgRetentionPolicyResponse>
deleteProject
deleteProject(Accepted keys: Control plane fine-grained API key Delete a project retention policy Requires project.retention_policy.delete at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Retires this scope’s current override and returns the inherited effective policy. Preserves prior policy values and records the retiring actor, time, and cleared reason. Repeated deletion is safe when no override exists.request:DeleteProjectRetentionPolicyRequest):Promise<DeleteProjectRetentionPolicyResponse>
deleteWorkspace
deleteWorkspace(Accepted keys: Control plane fine-grained API key Delete a workspace retention policy Requires workspace.retention_policy.delete at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Retires this scope’s current override and returns the inherited effective policy. Preserves prior policy values and records the retiring actor, time, and cleared reason. Repeated deletion is safe when no override exists.request:DeleteWorkspaceRetentionPolicyRequest):Promise<DeleteWorkspaceRetentionPolicyResponse>
getOrg
getOrg(Accepted keys: Control plane fine-grained API key Get an org retention policy Requires org.retention_policy.get at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Returns the explicit policy, if present, and the effective policy with its source scope. The nearest current policy supplies both windows. Fields are not merged across scopes. When no scope in the lineage has a current policy, effective_policy is null and data is retained indefinitely.request:GetOrgRetentionPolicyRequest):Promise<GetOrgRetentionPolicyResponse>
getProject
getProject(Accepted keys: Control plane fine-grained API key Get a project retention policy Requires project.retention_policy.get at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Returns the explicit policy, if present, and the effective policy with its source scope. The nearest current policy supplies both windows. Fields are not merged across scopes. When no scope in the lineage has a current policy, effective_policy is null and data is retained indefinitely.request:GetProjectRetentionPolicyRequest):Promise<GetProjectRetentionPolicyResponse>
getWorkspace
getWorkspace(Accepted keys: Control plane fine-grained API key Get a workspace retention policy Requires workspace.retention_policy.get at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Returns the explicit policy, if present, and the effective policy with its source scope. The nearest current policy supplies both windows. Fields are not merged across scopes. When no scope in the lineage has a current policy, effective_policy is null and data is retained indefinitely.request:GetWorkspaceRetentionPolicyRequest):Promise<GetWorkspaceRetentionPolicyResponse>
replaceOrg
replaceOrg(Accepted keys: Control plane fine-grained API key Replace an org retention policy Requires org.retention_policy.put at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Replaces both windows. Both fields are required. Null retains data indefinitely. A shorter window makes older data expire. Runs of the retention expiry job delete it, and a large amount of expired data can take more than one run. Deleted data cannot be recovered. An explicit policy overrides inherited windows, including when both values are null. Creates a new policy version and preserves the previous version for audit.request:ReplaceOrgRetentionPolicyRequest):Promise<ReplaceOrgRetentionPolicyResponse>
replaceProject
replaceProject(Accepted keys: Control plane fine-grained API key Replace a project retention policy Requires project.retention_policy.put at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Replaces both windows. Both fields are required. Null retains data indefinitely. A shorter window makes older data expire. Runs of the retention expiry job delete it, and a large amount of expired data can take more than one run. Deleted data cannot be recovered. An explicit policy overrides inherited windows, including when both values are null. Creates a new policy version and preserves the previous version for audit.request:ReplaceProjectRetentionPolicyRequest):Promise<ReplaceProjectRetentionPolicyResponse>
replaceWorkspace
replaceWorkspace(Accepted keys: Control plane fine-grained API key Replace a workspace retention policy Requires workspace.retention_policy.put at the scope in the URL. The key must cover that scope. Scope headers do not select the target. Replaces both windows. Both fields are required. Null retains data indefinitely. A shorter window makes older data expire. Runs of the retention expiry job delete it, and a large amount of expired data can take more than one run. Deleted data cannot be recovered. An explicit policy overrides inherited windows, including when both values are null. Creates a new policy version and preserves the previous version for audit.request:ReplaceWorkspaceRetentionPolicyRequest):Promise<ReplaceWorkspaceRetentionPolicyResponse>