Class UsersResource
The "users" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.DisplayVideo.v1
Assembly: Google.Apis.DisplayVideo.v1.dll
Syntax
public class UsersResource
Constructors
UsersResource(IClientService)
Constructs a new resource.
Declaration
public UsersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
BulkEditAssignedUserRoles(BulkEditAssignedUserRolesRequest, Int64)
Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles.
Declaration
public virtual UsersResource.BulkEditAssignedUserRolesRequest BulkEditAssignedUserRoles(BulkEditAssignedUserRolesRequest body, long userId)
Parameters
Type | Name | Description |
---|---|---|
BulkEditAssignedUserRolesRequest | body | The body of the request. |
System.Int64 | userId | Required. The ID of the user to which the assigned user roles belong. |
Returns
Type | Description |
---|---|
UsersResource.BulkEditAssignedUserRolesRequest |
Create(User)
Creates a new user. Returns the newly created user if successful.
Declaration
public virtual UsersResource.CreateRequest Create(User body)
Parameters
Type | Name | Description |
---|---|---|
User | body | The body of the request. |
Returns
Type | Description |
---|---|
UsersResource.CreateRequest |
Delete(Int64)
Deletes a user.
Declaration
public virtual UsersResource.DeleteRequest Delete(long userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | userId | Required. The ID of the user to delete. |
Returns
Type | Description |
---|---|
UsersResource.DeleteRequest |
Get(Int64)
Gets a user.
Declaration
public virtual UsersResource.GetRequest Get(long userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | userId | Required. The ID of the user to fetch. |
Returns
Type | Description |
---|---|
UsersResource.GetRequest |
List()
Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other.
Declaration
public virtual UsersResource.ListRequest List()
Returns
Type | Description |
---|---|
UsersResource.ListRequest |
Patch(User, Int64)
Updates an existing user. Returns the updated user if successful.
Declaration
public virtual UsersResource.PatchRequest Patch(User body, long userId)
Parameters
Type | Name | Description |
---|---|---|
User | body | The body of the request. |
System.Int64 | userId | Output only. The unique ID of the user. Assigned by the system. |
Returns
Type | Description |
---|---|
UsersResource.PatchRequest |