Class BastionWaiters
Contains collection of helper methods to produce Oci.Common.Waiters for different resources of Bastion.
Inherited Members
Namespace: Oci.BastionService
Assembly: OCI.DotNetSDK.Bastion.dll
Syntax
public class BastionWaiters
Constructors
BastionWaiters(BastionClient)
Declaration
public BastionWaiters(BastionClient client)
Parameters
Type | Name | Description |
---|---|---|
BastionClient | client |
Methods
ForBastion(GetBastionRequest, params BastionLifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetBastionRequest, GetBastionResponse> ForBastion(GetBastionRequest request, params BastionLifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetBastionRequest | request | Request to send. |
BastionLifecycleState[] | targetStates | Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states |
Returns
Type | Description |
---|---|
Waiter<GetBastionRequest, GetBastionResponse> | a new Oci.common.Waiter instance |
ForBastion(GetBastionRequest, WaiterConfiguration, params BastionLifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetBastionRequest, GetBastionResponse> ForBastion(GetBastionRequest request, WaiterConfiguration config, params BastionLifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetBastionRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
BastionLifecycleState[] | targetStates | Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states |
Returns
Type | Description |
---|---|
Waiter<GetBastionRequest, GetBastionResponse> | a new Oci.common.Waiter instance |
ForSession(GetSessionRequest, params SessionLifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetSessionRequest, GetSessionResponse> ForSession(GetSessionRequest request, params SessionLifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetSessionRequest | request | Request to send. |
SessionLifecycleState[] | targetStates | Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states |
Returns
Type | Description |
---|---|
Waiter<GetSessionRequest, GetSessionResponse> | a new Oci.common.Waiter instance |
ForSession(GetSessionRequest, WaiterConfiguration, params SessionLifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetSessionRequest, GetSessionResponse> ForSession(GetSessionRequest request, WaiterConfiguration config, params SessionLifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetSessionRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
SessionLifecycleState[] | targetStates | Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states |
Returns
Type | Description |
---|---|
Waiter<GetSessionRequest, GetSessionResponse> | a new Oci.common.Waiter instance |
ForWorkRequest(GetWorkRequestRequest, params OperationStatus[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetWorkRequestRequest, GetWorkRequestResponse> ForWorkRequest(GetWorkRequestRequest request, params OperationStatus[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetWorkRequestRequest | request | Request to send. |
OperationStatus[] | targetStates | Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states |
Returns
Type | Description |
---|---|
Waiter<GetWorkRequestRequest, GetWorkRequestResponse> | a new Oci.common.Waiter instance |
ForWorkRequest(GetWorkRequestRequest, WaiterConfiguration, params OperationStatus[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetWorkRequestRequest, GetWorkRequestResponse> ForWorkRequest(GetWorkRequestRequest request, WaiterConfiguration config, params OperationStatus[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetWorkRequestRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
OperationStatus[] | targetStates | Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states |
Returns
Type | Description |
---|---|
Waiter<GetWorkRequestRequest, GetWorkRequestResponse> | a new Oci.common.Waiter instance |