Interface ICloudCodeModulesAdminApi
Represents a collection of functions to interact with the API endpoints
Namespace: Unity.Services.Apis.Admin.CloudCode
Assembly: Unity.Services.Apis.dll
Syntax
public interface ICloudCodeModulesAdminApi : IApiAccessor
Methods
DeleteModule(string, string, string, CancellationToken)
Delete module
Declaration
ApiOperation DeleteModule(string projectId, string environmentId, string moduleName, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | projectId | ID of the project. |
| string | environmentId | ID of the environment |
| string | moduleName | Name of a Cloud Code module. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| ApiOperation | The operation |
GetModule(string, string, string, CancellationToken)
Get module
Declaration
ApiOperation<GetModuleResponse> GetModule(string projectId, string environmentId, string moduleName, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | projectId | ID of the project. |
| string | environmentId | ID of the environment |
| string | moduleName | Name of a Cloud Code module. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| ApiOperation<GetModuleResponse> | The operation |
ListModules(string, string, int?, string, CancellationToken)
List modules
Declaration
ApiOperation<ListModulesResponse> ListModules(string projectId, string environmentId, int? limit = null, string after = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | projectId | ID of the project. |
| string | environmentId | ID of the environment |
| int? | limit | The number of modules to return. (optional) |
| string | after | Page token (optional) |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| ApiOperation<ListModulesResponse> | The operation |