Class UsersResource
The "users" collection of methods.
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, long)
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. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
Declaration
public virtual UsersResource.BulkEditAssignedUserRolesRequest BulkEditAssignedUserRoles(BulkEditAssignedUserRolesRequest body, long userId)
Parameters
Type | Name | Description |
---|---|---|
BulkEditAssignedUserRolesRequest | body | The body of the request. |
long | 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. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
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(long)
Deletes a user. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
Declaration
public virtual UsersResource.DeleteRequest Delete(long userId)
Parameters
Type | Name | Description |
---|---|---|
long | userId | Required. The ID of the user to delete. |
Returns
Type | Description |
---|---|
UsersResource.DeleteRequest |
Get(long)
Gets a user. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
Declaration
public virtual UsersResource.GetRequest Get(long userId)
Parameters
Type | Name | Description |
---|---|---|
long | 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. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
Declaration
public virtual UsersResource.ListRequest List()
Returns
Type | Description |
---|---|
UsersResource.ListRequest |
Patch(User, long)
Updates an existing user. Returns the updated user if successful. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
Declaration
public virtual UsersResource.PatchRequest Patch(User body, long userId)
Parameters
Type | Name | Description |
---|---|---|
User | body | The body of the request. |
long | userId | Output only. The unique ID of the user. Assigned by the system. |
Returns
Type | Description |
---|---|
UsersResource.PatchRequest |