C# Класс IO.Swagger.Api.ResourceApi

Represents a collection of functions to interact with the API endpoints
Наследование: IResourceApi
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddResource ( Resource body ) : void

Add resource Adds a single resource

AddResourceAsync ( Resource body ) : System.Threading.Tasks.Task

Add resource Adds a single resource

GetBasePath ( ) : String

Gets the base path of the API client.

GetResource ( string resourceId ) : Resource

Find resource by ID Returns a single resource

GetResourceAsync ( string resourceId ) : System.Threading.Tasks.Task

Find resource by ID Returns a single resource

ResourceApi ( ApiClient apiClient = null ) : System

Initializes a new instance of the ResourceApi class.

ResourceApi ( String basePath ) : System

Initializes a new instance of the ResourceApi class.

SetBasePath ( String basePath ) : void

Sets the base path of the API client.

Описание методов

AddResource() публичный Метод

Add resource Adds a single resource
public AddResource ( Resource body ) : void
body IO.Swagger.Model.Resource Resource object that needs to be added to the datastorage
Результат void

AddResourceAsync() публичный Метод

Add resource Adds a single resource
public AddResourceAsync ( Resource body ) : System.Threading.Tasks.Task
body IO.Swagger.Model.Resource Resource object that needs to be added to the datastorage
Результат System.Threading.Tasks.Task

GetBasePath() публичный Метод

Gets the base path of the API client.
public GetBasePath ( ) : String
Результат String

GetResource() публичный Метод

Find resource by ID Returns a single resource
public GetResource ( string resourceId ) : Resource
resourceId string ID of the resource to be returned
Результат IO.Swagger.Model.Resource

GetResourceAsync() публичный Метод

Find resource by ID Returns a single resource
public GetResourceAsync ( string resourceId ) : System.Threading.Tasks.Task
resourceId string ID of the resource to be returned
Результат System.Threading.Tasks.Task

ResourceApi() публичный Метод

Initializes a new instance of the ResourceApi class.
public ResourceApi ( ApiClient apiClient = null ) : System
apiClient IO.Swagger.Client.ApiClient an instance of ApiClient (optional)
Результат System

ResourceApi() публичный Метод

Initializes a new instance of the ResourceApi class.
public ResourceApi ( String basePath ) : System
basePath String
Результат System

SetBasePath() публичный Метод

Sets the base path of the API client.
public SetBasePath ( String basePath ) : void
basePath String The base path
Результат void