Class UsersResource.InsertRequest
Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't
fully created due to propagation delay in our backends. Check the error details for the "User creation is
not complete" message to see if this is the case. Retrying the calls after some time can help in this case.
If resolveConflictAccount
is set to true
, a 202
response code means that a conflicting unmanaged
account exists and was invited to join the organization. A 409
response code means that a conflicting
account exists so the user wasn't created based on the handling unmanaged user
accounts option selected.
Inheritance
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.InsertRequest : DirectoryBaseServiceRequest<User>, IClientServiceRequest<User>, IClientServiceRequest
Constructors
InsertRequest(IClientService, User)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, User body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
User | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ResolveConflictAccount
Optional. If set to true
, the option selected for handling unmanaged user
accounts will apply. Default: false
Declaration
[RequestParameter("resolveConflictAccount", RequestParameterType.Query)]
public virtual bool? ResolveConflictAccount { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()