Class OptimizerWaiters
Contains collection of helper methods to produce Oci.Common.Waiters for different resources of Optimizer.
Inherited Members
Namespace: Oci.OptimizerService
Assembly: OCI.DotNetSDK.Optimizer.dll
Syntax
public class OptimizerWaiters
Constructors
OptimizerWaiters(OptimizerClient)
Declaration
public OptimizerWaiters(OptimizerClient client)
Parameters
Type | Name | Description |
---|---|---|
OptimizerClient | client |
Methods
ForCategory(GetCategoryRequest, WaiterConfiguration, params LifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetCategoryRequest, GetCategoryResponse> ForCategory(GetCategoryRequest request, WaiterConfiguration config, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetCategoryRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
LifecycleState[] | 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<GetCategoryRequest, GetCategoryResponse> | a new Oci.common.Waiter instance |
ForCategory(GetCategoryRequest, params LifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetCategoryRequest, GetCategoryResponse> ForCategory(GetCategoryRequest request, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetCategoryRequest | request | Request to send. |
LifecycleState[] | 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<GetCategoryRequest, GetCategoryResponse> | a new Oci.common.Waiter instance |
ForEnrollmentStatus(GetEnrollmentStatusRequest, WaiterConfiguration, params LifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetEnrollmentStatusRequest, GetEnrollmentStatusResponse> ForEnrollmentStatus(GetEnrollmentStatusRequest request, WaiterConfiguration config, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetEnrollmentStatusRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
LifecycleState[] | 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<GetEnrollmentStatusRequest, GetEnrollmentStatusResponse> | a new Oci.common.Waiter instance |
ForEnrollmentStatus(GetEnrollmentStatusRequest, params LifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetEnrollmentStatusRequest, GetEnrollmentStatusResponse> ForEnrollmentStatus(GetEnrollmentStatusRequest request, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetEnrollmentStatusRequest | request | Request to send. |
LifecycleState[] | 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<GetEnrollmentStatusRequest, GetEnrollmentStatusResponse> | a new Oci.common.Waiter instance |
ForProfile(GetProfileRequest, WaiterConfiguration, params LifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetProfileRequest, GetProfileResponse> ForProfile(GetProfileRequest request, WaiterConfiguration config, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetProfileRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
LifecycleState[] | 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<GetProfileRequest, GetProfileResponse> | a new Oci.common.Waiter instance |
ForProfile(GetProfileRequest, params LifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetProfileRequest, GetProfileResponse> ForProfile(GetProfileRequest request, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetProfileRequest | request | Request to send. |
LifecycleState[] | 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<GetProfileRequest, GetProfileResponse> | a new Oci.common.Waiter instance |
ForRecommendation(GetRecommendationRequest, WaiterConfiguration, params LifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetRecommendationRequest, GetRecommendationResponse> ForRecommendation(GetRecommendationRequest request, WaiterConfiguration config, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetRecommendationRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
LifecycleState[] | 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<GetRecommendationRequest, GetRecommendationResponse> | a new Oci.common.Waiter instance |
ForRecommendation(GetRecommendationRequest, params LifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetRecommendationRequest, GetRecommendationResponse> ForRecommendation(GetRecommendationRequest request, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetRecommendationRequest | request | Request to send. |
LifecycleState[] | 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<GetRecommendationRequest, GetRecommendationResponse> | a new Oci.common.Waiter instance |
ForResourceAction(GetResourceActionRequest, WaiterConfiguration, params LifecycleState[])
Creates a waiter using the provided configuration.
Declaration
public Waiter<GetResourceActionRequest, GetResourceActionResponse> ForResourceAction(GetResourceActionRequest request, WaiterConfiguration config, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetResourceActionRequest | request | Request to send. |
WaiterConfiguration | config | Wait Configuration |
LifecycleState[] | 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<GetResourceActionRequest, GetResourceActionResponse> | a new Oci.common.Waiter instance |
ForResourceAction(GetResourceActionRequest, params LifecycleState[])
Creates a waiter using default wait configuration.
Declaration
public Waiter<GetResourceActionRequest, GetResourceActionResponse> ForResourceAction(GetResourceActionRequest request, params LifecycleState[] targetStates)
Parameters
Type | Name | Description |
---|---|---|
GetResourceActionRequest | request | Request to send. |
LifecycleState[] | 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<GetResourceActionRequest, GetResourceActionResponse> | 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 |
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 |