C# 클래스 Smartsheet.Api.Internal.GroupResourcesImpl

This is the implementation of the UserResources. Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
상속: AbstractResources, GroupResources
파일 보기 프로젝트 열기: smartsheet-platform/smartsheet-csharp-sdk 1 사용 예제들

공개 메소드들

메소드 설명
AddGroupMembers ( long groupId, IEnumerable groupMembers ) : IList

Adds one or more members to a Group.

If called with a single GroupMember object, and that group member already exists, error code 1129 will be returned. If called with an array of GroupMember objects any users specified in the array that are already group members will be ignored and omitted from the response.

This operation is only available to group administrators and system administrators.

This operation is asynchronous, meaning the users may not yet have sharing access to sheets for a period of time after this operation returns. For small groups with limited sharing, the operation should complete quickly (within a few seconds). For large groups with many shares, this operation could possibly take more than a minute to complete.

It mirrors To the following Smartsheet REST API method: POST /groups/{groupId}/members

CreateGroup ( Group group ) : Group

Creates a new Group.

It mirrors To the following Smartsheet REST API method: POST /groups

This operation is only available to group administrators and system administrators.

DeleteGroup ( long groupId ) : void

Deletes the Group specified in the URL.

This operation is only available to system administrators.

It mirrors To the following Smartsheet REST API method: DELETE /groups/{groupId}

GetGroup ( long groupId ) : Group

Gets the Group specified in the URL.

It mirrors To the following Smartsheet REST API method: GET /groups/{groupId}

GroupResourcesImpl ( SmartsheetImpl smartsheet ) : System.Collections.Generic

Constructor. Exceptions: - IllegalArgumentException : if any argument is null

ListGroups ( PaginationParameters paging ) : PaginatedResult

List all Users.

It mirrors To the following Smartsheet REST API method: GET /groups

This operation supports pagination of results. For more information, see Paging.

RemoveGroupMember ( long groupId, long userId ) : void

Removes a member from a Group.

This operation is only available to group administrators and system administrators.

This operation is asynchronous, meaning group members may retain their sharing access for a brief period of time after the call returns. For small groups with limited sharing, the operation should complete quickly (within a few seconds). For large groups with many shares, this operation could possibly take more than a minute to complete.

It mirrors To the following Smartsheet REST API method: DELETE /groups/{groupId}/members/{userId}

UpdateGroup ( Group group ) : Group

Updates the Group specified in the URL.

It mirrors To the following Smartsheet REST API method: PUT /groups/{groupId}

This operation is only available to group administrators and system administrators.

메소드 상세

AddGroupMembers() 공개 메소드

Adds one or more members to a Group.

If called with a single GroupMember object, and that group member already exists, error code 1129 will be returned. If called with an array of GroupMember objects any users specified in the array that are already group members will be ignored and omitted from the response.

This operation is only available to group administrators and system administrators.

This operation is asynchronous, meaning the users may not yet have sharing access to sheets for a period of time after this operation returns. For small groups with limited sharing, the operation should complete quickly (within a few seconds). For large groups with many shares, this operation could possibly take more than a minute to complete.

It mirrors To the following Smartsheet REST API method: POST /groups/{groupId}/members

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public AddGroupMembers ( long groupId, IEnumerable groupMembers ) : IList
groupId long the Id of the group
groupMembers IEnumerable array of Group Member objects
리턴 IList

CreateGroup() 공개 메소드

Creates a new Group.

It mirrors To the following Smartsheet REST API method: POST /groups

This operation is only available to group administrators and system administrators.
if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public CreateGroup ( Group group ) : Group
group Group the group object
리턴 Group

DeleteGroup() 공개 메소드

Deletes the Group specified in the URL.

This operation is only available to system administrators.

It mirrors To the following Smartsheet REST API method: DELETE /groups/{groupId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public DeleteGroup ( long groupId ) : void
groupId long the Id of the group
리턴 void

GetGroup() 공개 메소드

Gets the Group specified in the URL.

It mirrors To the following Smartsheet REST API method: GET /groups/{groupId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public GetGroup ( long groupId ) : Group
groupId long
리턴 Group

GroupResourcesImpl() 공개 메소드

Constructor. Exceptions: - IllegalArgumentException : if any argument is null
public GroupResourcesImpl ( SmartsheetImpl smartsheet ) : System.Collections.Generic
smartsheet SmartsheetImpl the Smartsheet
리턴 System.Collections.Generic

ListGroups() 공개 메소드

List all Users.

It mirrors To the following Smartsheet REST API method: GET /groups

This operation supports pagination of results. For more information, see Paging.
if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public ListGroups ( PaginationParameters paging ) : PaginatedResult
paging PaginationParameters the pagination
리턴 PaginatedResult

RemoveGroupMember() 공개 메소드

Removes a member from a Group.

This operation is only available to group administrators and system administrators.

This operation is asynchronous, meaning group members may retain their sharing access for a brief period of time after the call returns. For small groups with limited sharing, the operation should complete quickly (within a few seconds). For large groups with many shares, this operation could possibly take more than a minute to complete.

It mirrors To the following Smartsheet REST API method: DELETE /groups/{groupId}/members/{userId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public RemoveGroupMember ( long groupId, long userId ) : void
groupId long the Id of the group
userId long the Id of the user
리턴 void

UpdateGroup() 공개 메소드

Updates the Group specified in the URL.

It mirrors To the following Smartsheet REST API method: PUT /groups/{groupId}

This operation is only available to group administrators and system administrators.
if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public UpdateGroup ( Group group ) : Group
group Group the group To update
리턴 Group