Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "3e11b6f", "specHash": "ad08e8c", "version": "10.4.0" }
{ "engineHash": "f9e2519", "specHash": "f8fb08c", "version": "10.4.0" }
2 changes: 1 addition & 1 deletion docs/legalholdpolicyassignments.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Returns a list of legal hold policy assignments.

## Assign legal hold policy

Assign a legal hold to a file, file version, folder, or user.
Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions.

This operation is performed by calling function `createLegalHoldPolicyAssignment`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public enum CreateLegalHoldPolicyAssignmentRequestBodyAssignToTypeField implemen
FOLDER("folder"),
USER("user"),
OWNERSHIP("ownership"),
INTERACTION("interaction");
INTERACTIONS("interactions");

private final String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public LegalHoldPolicyAssignments getLegalHoldPolicyAssignments(
}

/**
* Assign a legal hold to a file, file version, folder, or user.
* Assign a legal hold to an item type of: file, file version, folder, user, ownership, or
* interactions.
*
* @param requestBody Request body of createLegalHoldPolicyAssignment method
*/
Expand All @@ -92,7 +93,8 @@ public LegalHoldPolicyAssignment createLegalHoldPolicyAssignment(
}

/**
* Assign a legal hold to a file, file version, folder, or user.
* Assign a legal hold to an item type of: file, file version, folder, user, ownership, or
* interactions.
*
* @param requestBody Request body of createLegalHoldPolicyAssignment method
* @param headers Headers of createLegalHoldPolicyAssignment method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class LegalHoldPolicy extends LegalHoldPolicyMini {
@JsonSerialize(using = LegalHoldPolicyStatusField.LegalHoldPolicyStatusFieldSerializer.class)
protected EnumWrapper<LegalHoldPolicyStatusField> status;

/** Counts of assignments within this a legal hold policy by item type. */
/** Counts of assignments within a legal hold policy by item type. */
@JsonProperty("assignment_counts")
protected LegalHoldPolicyAssignmentCountsField assignmentCounts;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@JsonFilter("nullablePropertyFilter")
public class LegalHoldPolicyAssignmentCountsField extends SerializableObject {

/** The number of users this policy is applied to. */
/** The number of users this policy is applied to with the `access` type assignment. */
protected Long user;

/** The number of folders this policy is applied to. */
Expand All @@ -22,6 +22,12 @@ public class LegalHoldPolicyAssignmentCountsField extends SerializableObject {
@JsonProperty("file_version")
protected Long fileVersion;

/** The number of users this policy is applied to with the `ownership` type assignment. */
protected Long ownership;

/** The number of users this policy is applied to with the `interactions` type assignment. */
protected Long interactions;

public LegalHoldPolicyAssignmentCountsField() {
super();
}
Expand All @@ -32,6 +38,8 @@ protected LegalHoldPolicyAssignmentCountsField(Builder builder) {
this.folder = builder.folder;
this.file = builder.file;
this.fileVersion = builder.fileVersion;
this.ownership = builder.ownership;
this.interactions = builder.interactions;
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
}

Expand All @@ -51,6 +59,14 @@ public Long getFileVersion() {
return fileVersion;
}

public Long getOwnership() {
return ownership;
}

public Long getInteractions() {
return interactions;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -63,12 +79,14 @@ public boolean equals(Object o) {
return Objects.equals(user, casted.user)
&& Objects.equals(folder, casted.folder)
&& Objects.equals(file, casted.file)
&& Objects.equals(fileVersion, casted.fileVersion);
&& Objects.equals(fileVersion, casted.fileVersion)
&& Objects.equals(ownership, casted.ownership)
&& Objects.equals(interactions, casted.interactions);
}

@Override
public int hashCode() {
return Objects.hash(user, folder, file, fileVersion);
return Objects.hash(user, folder, file, fileVersion, ownership, interactions);
}

@Override
Expand All @@ -89,6 +107,14 @@ public String toString() {
+ "fileVersion='"
+ fileVersion
+ '\''
+ ", "
+ "ownership='"
+ ownership
+ '\''
+ ", "
+ "interactions='"
+ interactions
+ '\''
+ "}";
}

Expand All @@ -102,6 +128,10 @@ public static class Builder extends NullableFieldTracker {

protected Long fileVersion;

protected Long ownership;

protected Long interactions;

public Builder user(Long user) {
this.user = user;
return this;
Expand All @@ -122,6 +152,16 @@ public Builder fileVersion(Long fileVersion) {
return this;
}

public Builder ownership(Long ownership) {
this.ownership = ownership;
return this;
}

public Builder interactions(Long interactions) {
this.interactions = interactions;
return this;
}

public LegalHoldPolicyAssignmentCountsField build() {
return new LegalHoldPolicyAssignmentCountsField(this);
}
Expand Down
Loading