Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared_with_groups is an object #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class GitLabProject {
private boolean publicJobs;
@SerializedName("shared_with_groups")
@Expose
private List<String> sharedWithGroups = null;
private List<SharedWithGroup> sharedWithGroups = null;
@SerializedName("only_allow_merge_if_pipeline_succeeds")
@Expose
private boolean onlyAllowMergeIfPipelineSucceeds;
Expand Down Expand Up @@ -292,7 +292,7 @@ public boolean isPublicJobs() {
return publicJobs;
}

public List<String> getSharedWithGroups() {
public List<SharedWithGroup> getSharedWithGroups() {
return sharedWithGroups;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

package cd.go.authorization.gitlab.client.models;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class SharedWithGroup {
@Expose
@SerializedName("group_id")
private long groupId;
@Expose
@SerializedName("group_name")
private String groupName;
@Expose
@SerializedName("group_full_path")
private String groupFullPath;
@Expose
@SerializedName("access_level")
private AccessLevel accessLevel;
@Expose
@SerializedName("expires_at")
private String expiresAt;

SharedWithGroup() {
}

public long getGroupId() {
return groupId;
}

public String getGroupName() {
return groupName;
}

public String getGroupFullPath() {
return groupFullPath;
}

public AccessLevel getAccessLevel() {
return accessLevel;
}

public String getExpiresAt() {
return expiresAt;
}
}