AccessRequestsClientCompositeOperations

class oci.operator_access_control.AccessRequestsClientCompositeOperations(client, **kwargs)

This class provides a wrapper around AccessRequestsClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality

Methods

__init__(client, **kwargs) Creates a new AccessRequestsClientCompositeOperations object
interaction_request_and_wait_for_state(…) Calls interaction_request() and waits for the AccessRequest acted upon to enter the given state(s).
review_access_request_and_wait_for_state(…) Calls review_access_request() and waits for the AccessRequest acted upon to enter the given state(s).
__init__(client, **kwargs)

Creates a new AccessRequestsClientCompositeOperations object

Parameters:client (AccessRequestsClient) – The service client which will be wrapped by this object
interaction_request_and_wait_for_state(access_request_id, interaction_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls interaction_request() and waits for the AccessRequest acted upon to enter the given state(s).

Parameters:
  • access_request_id (str) – (required) unique AccessRequest identifier
  • interaction_request_details (oci.operator_access_control.models.InteractionRequestDetails) – (required) Details containing Query for additional information provided by Customer.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to interaction_request()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
review_access_request_and_wait_for_state(access_request_id, review_access_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls review_access_request() and waits for the AccessRequest acted upon to enter the given state(s).

Parameters:
  • access_request_id (str) – (required) unique AccessRequest identifier
  • review_access_request_details (oci.operator_access_control.models.ReviewAccessRequestDetails) – (required) Details regarding the approval of an access request created by the operator.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to review_access_request()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait