pub struct Client { /* private fields */ }
Expand description

A client that implements the API by making HTTP calls out to a server.

Implementations

Create an HTTP client.

Arguments
  • base_path - base path of the client API, i.e. “www.my-api-implementation.com”

Create a client with a custom implementation of hyper::net::NetworkConnector.

Intended for use with custom implementations of connect for e.g. protocol logging or similar functionality which requires wrapping the transport layer. When wrapping a TCP connection, this function should be used in conjunction with swagger::{http_connector, https_connector, https_mutual_connector}.

For ordinary tcp connections, prefer the use of try_new_http, try_new_https and try_new_https_mutual, to avoid introducing a dependency on the underlying transport layer.

Arguments
  • base_path - base path of the client API, i.e. “www.my-api-implementation.com”
  • protocol - Which protocol to use when constructing the request url, e.g. Some("http")
  • connector - An instance of C: hyper::net::NetworkConnection

Constructor for creating a Client by passing in a pre-made hyper client.

One should avoid relying on this function if possible, since it adds a dependency on the underlying transport implementation, which it would be better to abstract away. Therefore, using this function may lead to a loss of code generality, which may make it harder to move the application to a serverless environment, for example.

The reason for this function’s existence is to support legacy test code, which did mocking at the hyper layer. This is not a recommended way to write new tests. If other reasons are found for using this function, they should be mentioned here.

This function is deprecated in the upstream openapi-generator which uses newer hyper. However, the suggested replacement does not exist in hyper 0.9.

Trait Implementations

Create a new account.

Delete an account.

Get a specific account.

Get all accounts.

Select a user’s account to work on.

Update an account.

Add an application.

Delete a particular app

Get all apps information.

Get details of a particular app.

Get an attested app’s certificate.

Get an app’s certificate for a compute node.

Get all the unique labels across all the applications within selected account

Update details of a particular app.

Add an app config.

Delete a particular app config

Get all app configs

Get details of a particular app config.

Get app config

Get details of a particular runtime app config.

Update details of a particular app config.

Approve a request.

Create approval request.

Delete an approval request.

Deny a request.

Get all approval requests

Get an approval request.

Get the result for an approved or failed request.

User authentication

Convert a docker image and create a new image.

Create a new image.

Delete a particular image.

Get all images information.

Get details of a particular image.

Get all deployments of an image.

Update details of a particular image.

Retrieve a certificate.

Request a new certificate for an Enclave application

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Get all datasets

Formats the value using the given formatter. Read more

Deactivate a particular compute node.

Get all compute nodes information.

Get details of a particular compute node.

Get an attested compute node’s certificate.

Get a compute node’s certificate.

Get all the unique labels across all the nodes within selected account

Provision a new compute node.

Update details of a particular compute node.

Called periodically by a compute node.

Add a new registry to an account

Delete registry

Get details of all registry in the account

Get details of a particular registry

Get details of the registry that will be used for the particular app images

Get details of the registry that will be used for the particular image

Update a particular registry details

Get Manager Version.

Get all the tasks.

Get details of a particular task.

Get status and result of a particular task.

Update status of approver and task.

Convert an application to run in EnclaveOS.

Current user accepts latest terms and conditions.

Change user password.

Confirms user’s email address.

Create a new user.

Completely delete a user profile from system

Removed user’s association with an account.

Initiate password reset sequence for a user.

Get all user’s information.

Get details of the current logged in user.

Get details of a particular user.

Invite a user.

Process a user’s pending account invitations.

Resend email with link to confirm user’s email address.

Resend invite to the user to join a specific account.

Reset a user’s password.

Update status, name, and the role of a user. User with MANAGER access role can only update another user.

Validates password reset token for the user.

Delete a particular draft workflow

Get details of a particular draft workflow

Delete a particular final workflow

Get details of a particular final workflow version

Get details of a particular final workflow

Create a new version for a particular final workflow

Get zone details.

Get the authentication token.

Get all zones.

Auto Trait Implementations

Blanket Implementations

Create a new account.

Delete an account.

Get a specific account.

Get all accounts.

Select a user’s account to work on.

Update an account.

Gets the TypeId of self. Read more

Create a new account.

Delete an account.

Get a specific account.

Get all accounts.

Select a user’s account to work on.

Update an account.

Add an application.

Delete a particular app

Get all apps information.

Get details of a particular app.

Get an attested app’s certificate.

Get an app’s certificate for a compute node.

Get all the unique labels across all the applications within selected account

Update details of a particular app.

Add an app config.

Delete a particular app config

Get all app configs

Get details of a particular app config.

Get app config

Get details of a particular runtime app config.

Update details of a particular app config.

Approve a request.

Create approval request.

Delete an approval request.

Deny a request.

Get all approval requests

Get an approval request.

Get the result for an approved or failed request.

User authentication

Convert a docker image and create a new image.

Create a new image.

Delete a particular image.

Get all images information.

Get details of a particular image.

Get all deployments of an image.

Update details of a particular image.

Retrieve a certificate.

Request a new certificate for an Enclave application

Get all datasets

Deactivate a particular compute node.

Get all compute nodes information.

Get details of a particular compute node.

Get an attested compute node’s certificate.

Get a compute node’s certificate.

Get all the unique labels across all the nodes within selected account

Provision a new compute node.

Update details of a particular compute node.

Called periodically by a compute node.

Add a new registry to an account

Delete registry

Get details of all registry in the account

Get details of a particular registry

Get details of the registry that will be used for the particular app images

Get details of the registry that will be used for the particular image

Update a particular registry details

Get Manager Version.

Get all the tasks.

Get details of a particular task.

Get status and result of a particular task.

Update status of approver and task.

Convert an application to run in EnclaveOS.

Current user accepts latest terms and conditions.

Change user password.

Confirms user’s email address.

Create a new user.

Completely delete a user profile from system

Removed user’s association with an account.

Initiate password reset sequence for a user.

Get all user’s information.

Get details of the current logged in user.

Get details of a particular user.

Invite a user.

Process a user’s pending account invitations.

Resend email with link to confirm user’s email address.

Resend invite to the user to join a specific account.

Reset a user’s password.

Update status, name, and the role of a user. User with MANAGER access role can only update another user.

Validates password reset token for the user.

Delete a particular draft workflow

Get details of a particular draft workflow

Delete a particular final workflow

Get details of a particular final workflow version

Get details of a particular final workflow

Create a new version for a particular final workflow

Get zone details.

Get the authentication token.

Get all zones.

Create a new account.

Delete an account.

Get a specific account.

Get all accounts.

Select a user’s account to work on.

Update an account.

Add an application.

Delete a particular app

Get all apps information.

Get details of a particular app.

Get an attested app’s certificate.

Get an app’s certificate for a compute node.

Get all the unique labels across all the applications within selected account

Update details of a particular app.

Add an app config.

Delete a particular app config

Get all app configs

Get details of a particular app config.

Get app config

Get details of a particular runtime app config.

Update details of a particular app config.

Approve a request.

Create approval request.

Delete an approval request.

Deny a request.

Get all approval requests

Get an approval request.

Get the result for an approved or failed request.

User authentication

Convert a docker image and create a new image.

Create a new image.

Delete a particular image.

Get all images information.

Get details of a particular image.

Get all deployments of an image.

Update details of a particular image.

Retrieve a certificate.

Request a new certificate for an Enclave application

Get all datasets

Deactivate a particular compute node.

Get all compute nodes information.

Get details of a particular compute node.

Get an attested compute node’s certificate.

Get a compute node’s certificate.

Get all the unique labels across all the nodes within selected account

Provision a new compute node.

Update details of a particular compute node.

Called periodically by a compute node.

Add a new registry to an account

Delete registry

Get details of all registry in the account

Get details of a particular registry

Get details of the registry that will be used for the particular app images

Get details of the registry that will be used for the particular image

Update a particular registry details

Get Manager Version.

Get all the tasks.

Get details of a particular task.

Get status and result of a particular task.

Update status of approver and task.

Convert an application to run in EnclaveOS.

Current user accepts latest terms and conditions.

Change user password.

Confirms user’s email address.

Create a new user.

Completely delete a user profile from system

Removed user’s association with an account.

Initiate password reset sequence for a user.

Get all user’s information.

Get details of the current logged in user.

Get details of a particular user.

Invite a user.

Process a user’s pending account invitations.

Resend email with link to confirm user’s email address.

Resend invite to the user to join a specific account.

Reset a user’s password.

Update status, name, and the role of a user. User with MANAGER access role can only update another user.

Validates password reset token for the user.

Delete a particular draft workflow

Get details of a particular draft workflow

Delete a particular final workflow

Get details of a particular final workflow version

Get details of a particular final workflow

Create a new version for a particular final workflow

Get zone details.

Get the authentication token.

Get all zones.

Add an application.

Delete a particular app

Get all apps information.

Get details of a particular app.

Get an attested app’s certificate.

Get an app’s certificate for a compute node.

Get all the unique labels across all the applications within selected account

Update details of a particular app.

Add an app config.

Delete a particular app config

Get all app configs

Get details of a particular app config.

Get app config

Get details of a particular runtime app config.

Update details of a particular app config.

Approve a request.

Create approval request.

Delete an approval request.

Deny a request.

Get all approval requests

Get an approval request.

Get the result for an approved or failed request.

User authentication

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert a docker image and create a new image.

Create a new image.

Delete a particular image.

Get all images information.

Get details of a particular image.

Get all deployments of an image.

Update details of a particular image.

Retrieve a certificate.

Request a new certificate for an Enclave application

Get all datasets

Performs the conversion.

Performs the conversion.

Deactivate a particular compute node.

Get all compute nodes information.

Get details of a particular compute node.

Get an attested compute node’s certificate.

Get a compute node’s certificate.

Get all the unique labels across all the nodes within selected account

Provision a new compute node.

Update details of a particular compute node.

Called periodically by a compute node.

Add a new registry to an account

Delete registry

Get details of all registry in the account

Get details of a particular registry

Get details of the registry that will be used for the particular app images

Get details of the registry that will be used for the particular image

Update a particular registry details

Get Manager Version.

Get all the tasks.

Get details of a particular task.

Get status and result of a particular task.

Update status of approver and task.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Convert an application to run in EnclaveOS.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.

Current user accepts latest terms and conditions.

Change user password.

Confirms user’s email address.

Create a new user.

Completely delete a user profile from system

Removed user’s association with an account.

Initiate password reset sequence for a user.

Get all user’s information.

Get details of the current logged in user.

Get details of a particular user.

Invite a user.

Process a user’s pending account invitations.

Resend email with link to confirm user’s email address.

Resend invite to the user to join a specific account.

Reset a user’s password.

Update status, name, and the role of a user. User with MANAGER access role can only update another user.

Validates password reset token for the user.

Delete a particular draft workflow

Get details of a particular draft workflow

Delete a particular final workflow

Get details of a particular final workflow version

Get details of a particular final workflow

Create a new version for a particular final workflow

Get zone details.

Get the authentication token.

Get all zones.