CreateApiTokenRequest
Class in BIM.works_SDK.
API catalogue · BIM.works_SDK · Class
.NET#
public class CreateApiTokenRequest : RequestInheritance and interfaces#
System.Object- Request
Members#
| Member | Kind | Description |
|---|---|---|
| CreateApiTokenRequest(Guid, string, ApiTokenCredential[]) | Constructor | |
| CreateApiTokenRequest(Guid, string, ISet<Scope>, DateTime?) | Constructor | An API token restricted to the given scopes |
| WriteInput(Utf8JsonWriter) | Method | |
| addCredential(ApiTokenCredential) | Method |
CreateApiTokenRequest(Guid, string, ApiTokenCredential[])#
.NET#
public CreateApiTokenRequest(Guid nodeUuid, string name, ApiTokenCredential[] apiTokenCredentials)Parameters#
| Name | Type | Description |
|---|---|---|
nodeUuid |
System.Guid |
|
name |
System.String |
|
apiTokenCredentials |
BIM.works_SDK.ApiTokenCredential[] |
CreateApiTokenRequest(Guid, string, ISet<Scope>, DateTime?)#
.NET#
public CreateApiTokenRequest(Guid nodeUuid, string name, ISet<Scope> scopes, DateTime? expiresOn)An API token restricted to the given scopes
Parameters#
| Name | Type | Description |
|---|---|---|
nodeUuid |
System.Guid |
|
name |
System.String |
|
scopes |
System.Collections.Generic.ISet{BIM.works_SDK.Scope} |
|
expiresOn |
System.Nullable{System.DateTime} |
The day the token stops working (it works through the whole of that UTC day); null for the server's default of one month. The server refuses a day further ahead than its maximum (three years by default) |
WriteInput(Utf8JsonWriter)#
.NET#
public override void WriteInput(Utf8JsonWriter writer)Parameters#
| Name | Type | Description |
|---|---|---|
writer |
System.Text.Json.Utf8JsonWriter |
addCredential(ApiTokenCredential)#
.NET#
public void addCredential(ApiTokenCredential apiTokenCredential)Parameters#
| Name | Type | Description |
|---|---|---|
apiTokenCredential |
ApiTokenCredential |
Inherited members#
- taskName
- id
- projectName
- AddStream(string)
- WriteVersions(Utf8JsonWriter, ISet<Guid>)
System.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString