Skip to content

Commit

Permalink
docs: Fix sample tags in retention policy documentation (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjankowski authored Dec 21, 2022
1 parent cf7836d commit 57a4133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/retention_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ To get an iterable with all files under retention for assignment
policy, call the [`getFilesUnderRetention(BoxAPIConnection api, int limit, String... fields)`][get-files-under-retention-for-assignment]
method. This will return an interable with [`BoxFile.Info`][file] objects containing information about the files.

<!-- sample get_files_under_retention_for_assignment -->
<!-- sample get_retention_policy_assignments_id_files_under_retention -->
```java
BoxRetentionPolicyAssignment policyAssignment = new BoxRetentionPolicyAssignment(api, id);
Iterable<BoxFile.Info> filesUnderRetention = policyAssignment.getFilesUnderRetention();
Expand All @@ -277,7 +277,7 @@ policy, call the [`getFileVersionsUnderRetention(BoxAPIConnection api, int limit
method. This will return an interable with [`BoxFile.Info`][file] objects containing information about the file.
You can get version by calling [`BoxFile.Info#getVersion()`][file-version].

<!-- sample get_file_versions_under_retention_for_assignment -->
<!-- sample get_retention_policy_assignments_id_file_versions_under_retention -->
```java
BoxRetentionPolicyAssignment policyAssignment = new BoxRetentionPolicyAssignment(api, id);
Iterable<BoxFile.Info> fileVersionsUnderRetention = policyAssignment.getFileVersionsUnderRetention();
Expand Down

0 comments on commit 57a4133

Please sign in to comment.