def create_resource(self): create_details = self.get_create_model() return oci_wait_utils.call_and_wait( call_fn=self.client.create_network_security_group, call_fn_args=(), call_fn_kwargs=dict(create_network_security_group_details=create_details), waiter_type=oci_wait_utils.LIFECYCLE_STATE_WAITER_KEY, operation=oci_common_utils.CREATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )
def create_resource(self): create_details = self.get_create_model() return oci_wait_utils.call_and_wait( call_fn=self.client.create_auto_scaling_configuration, call_fn_args=(), call_fn_kwargs=dict( create_auto_scaling_configuration_details=create_details), waiter_type=oci_wait_utils.NONE_WAITER_KEY, operation=oci_common_utils.CREATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )
def create_resource(self): create_details = self.get_create_model() return oci_wait_utils.call_and_wait( call_fn=self.client.launch_autonomous_exadata_infrastructure, call_fn_args=(), call_fn_kwargs=dict( launch_autonomous_exadata_infrastructure_details=create_details ), waiter_type=oci_wait_utils.LIFECYCLE_STATE_WAITER_KEY, operation=oci_common_utils.CREATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )
def update_resource(self): update_details = self.get_update_model() return oci_wait_utils.call_and_wait( call_fn=self.client.update_dynamic_group, call_fn_args=(), call_fn_kwargs=dict( dynamic_group_id=self.module.params.get("dynamic_group_id"), update_dynamic_group_details=update_details, ), waiter_type=oci_wait_utils.LIFECYCLE_STATE_WAITER_KEY, operation=oci_common_utils.UPDATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )
def create_resource(self): create_api_key_details = self.get_create_model() return oci_wait_utils.call_and_wait( call_fn=self.client.upload_api_key, call_fn_args=(), call_fn_kwargs=dict( user_id=self.module.params.get("user_id"), create_api_key_details=create_api_key_details, ), type=oci_wait_utils.NONE_WAITER_KEY, operation=oci_common_utils.CREATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )
def update_resource(self): update_details = self.get_update_model() return oci_wait_utils.call_and_wait( call_fn=self.client.put_object_lifecycle_policy, call_fn_args=(), call_fn_kwargs=dict( namespace_name=self.module.params.get("namespace_name"), bucket_name=self.module.params.get("bucket_name"), put_object_lifecycle_policy_details=update_details, ), waiter_type=oci_wait_utils.NONE_WAITER_KEY, operation=oci_common_utils.UPDATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )
def update_resource(self): update_details = self.get_update_model() return oci_wait_utils.call_and_wait( call_fn=self.client.update_auto_scaling_policy, call_fn_args=(), call_fn_kwargs=dict( auto_scaling_configuration_id=self.module.params.get( "auto_scaling_configuration_id"), auto_scaling_policy_id=self.module.params.get( "auto_scaling_policy_id"), update_auto_scaling_policy_details=update_details, ), waiter_type=oci_wait_utils.NONE_WAITER_KEY, operation=oci_common_utils.UPDATE_OPERATION_KEY, waiter_client=self.client, resource_helper=self, wait_for_states=self.module.params.get("wait_until") or oci_common_utils.get_resource_active_states(), )